/* ==================== 基础重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #393F4A;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

input,
select {
    outline: none;
    font-family: inherit;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

/* input 的 placeholder 颜色 */
input::placeholder {
    color: #a8abb2 !important;
    opacity: 1;
}

/* 空值未选择状态：显示占位符灰色 */
select:required:invalid {
    color: #a8abb2 !important;
}

/* 下拉列表内的所有选项保持正常文字色，避免展开后第一项也是灰色 */
select option {
    color: #a8abb2 !important;
}

/* ==================== 通用容器 ==================== */
.yp-container {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 20px; */
}

/* ==================== 通用标题 ==================== */
.yp-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.yp-section-title h2 {
    font-size: 18px;
    font-weight: 700;
    color: #101010;
    position: relative;
    padding-left: 14px;
}

.yp-section-title h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: #FF7033;
    border-radius: 2px;
}

.yp-more-link {
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s;
}

.yp-more-link:hover {
    opacity: 0.8;
}

/* ==================== 顶部导航 ==================== */
.yp-header-top {
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.yp-header-top-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: 1;
}

.yp-header-logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.yp-logo-eol {
    display: flex;
    align-items: center;
}

.yp-logo-eol-img {
    height: 36px;
    width: auto;
}

.yp-header-divider {
    display: inline-block;
    width: 1px;
    height: 20px;
    background: #989898;
}

.yp-fooer-divider {
    display: inline-block;
    width: 1px;
    height: 132px;
    background: linear-gradient(to bottom, #fff 0%, #ddd 50%, #fff 100%);
}

.yp-logo-xhd {
    display: flex;
    align-items: center;
    gap: 6px;
}

.yp-logo-xhd .xhd-text {
    font-size: 18px;
    color: #949698;
    font-weight: 700;
    letter-spacing: 1px;
}

.yp-channel-badge {
    color: #101010;
    font-size: 28px;
    font-weight: 700;
}

.yp-header-hotline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #949698;
}

.yp-hotline-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    object-fit: contain;
}

.yp-header-hotline .hotline-number {
    color: #FF7033;
    font-weight: 600;
    font-size: 20px;
}

/* ==================== 分类导航 ==================== */
.yp-category-nav {
    background-color: #F4F5F8;
    /* border-bottom: 1px solid #f0f0f0; */
}

.yp-category-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0;
}

.yp-cat-swiper {
    overflow: visible;
}

.yp-cat-swiper .swiper-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    transform: none !important;
    width: auto !important;
}

.yp-cat-swiper .swiper-slide {
    width: auto !important;
    flex-shrink: 0;
    flex: 0 0 auto;
}

.yp-cat-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.yp-cat-pagination {
    display: none;
}

.yp-cat-item {
    align-items: center;
    /* padding: 6px 18px; */
    height: 36px;
    text-align: center;
    line-height: 36px;
    width: 140px;
    font-size: 15px;
    color: #393F4A;
    border-radius: 4px;
    background-color: #f8f9fa;
    transition: all 0.25s;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    display: block;
}

.yp-cat-item:hover {
    color: #FF7033;
}

.yp-cat-item.active {
    background-color: #FF7033;
    color: #fff;
    font-weight: 500;
}

.yp-cat-item .yp-cat-hot {
    position: absolute;
    top: -6px;
    right: -8px;
    background: linear-gradient(135deg, #ff4d4d, #ff6b6b);
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 8px 8px 8px 0;
    line-height: 1.3;
    font-weight: 600;
}

/* ==================== 底部 ==================== */
.yp-footer {
    background-color: #fff;
    border-top: 1px solid #f0f0f0;
    padding: 60px 0;
}

.yp-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.yp-footer-brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 40px;
}

.yp-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.yp-footer-eol-img {
    height: 36px;
    width: auto;
}

.yp-footer-logo .xhd-text {
    font-size: 20px;
    color: #2D6CDE;
    font-weight: 700;
}

.yp-footer-contact {
    text-align: left;
}

.yp-footer-hotline-label {
    font-size: 15px;
    color: #101010;
    margin-bottom: 6px;
}

.yp-footer-phone {
    font-size: 28px;
    font-weight: 700;
    color: #101010;
    margin-bottom: 6px;
}

.yp-footer-time {
    font-size: 15px;
    color: #101010;
}

.yp-footer-qrcodes {
    display: flex;
    gap: 30px;
}

.yp-footer-qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.yp-footer-qr-item img {
    width: 110px;
    height: 110px;
    margin-bottom: 8px;
}

.yp-footer-qr-label {
    font-size: 15px;
    color: #101010;
}

.yp-category-nav.yp-cat-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ==================== 通用按钮 ==================== */
.yp-btn-orange {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    background: linear-gradient(135deg, #FF8C42, #FF7033);
    color: #fff;
    font-size: 14px;
    border-radius: 24px;
    font-weight: 500;
    transition: all 0.25s;
    cursor: pointer;
    border: none;
}

.yp-btn-orange:hover {
    background: linear-gradient(135deg, #FF7033, #e85d2e);
}

.yp-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    background: transparent;
    color: #FF7033;
    font-size: 14px;
    border-radius: 24px;
    font-weight: 500;
    transition: all 0.25s;
    cursor: pointer;
    border: 1px solid #FF7033;
}

.yp-btn-outline:hover {
    background-color: #FF7033;
    color: #fff;
}