/* ============================================================
   components.css — 可复用组件
   按钮、卡片、轮播控件、导航链接、标题、二维码框、返回顶部等
   只放组件视觉样式，不含区块布局
   ============================================================ */

/* ---------- 01 Logo ---------- */
.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 1px;
}

.logo span {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 12px;
    letter-spacing: 0;
}

/* ---------- 02 导航链接 ---------- */
.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ---------- 03 移动端菜单按钮 ---------- */
.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: var(--white);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 8px;
}

/* ---------- 04 按钮 ---------- */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    color: #1A1319;
    padding: 13px 36px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(201, 163, 106, 0.3);
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 163, 106, 0.5);
    background: linear-gradient(135deg, #F2D8A8, #D4B07A);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 12px 36px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 400;
    backdrop-filter: blur(10px);
    display: inline-block;
    text-align: center;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* ---------- 05 通用区块标题 ---------- */
.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 1px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 0.92rem;
}

/* ---------- 06 数据统计项 ---------- */
.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.stat-number span {
    font-size: 0.9rem;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 3px;
}

/* ---------- 07 特色卡片 ---------- */
.feature-card {
    background: var(--white);
    padding: 22px 20px;
    border-radius: 14px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(110, 75, 103, 0.08);
}

.feature-card h3 {
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-card h3::before {
    content: '✦';
    color: var(--accent-color);
    font-size: 0.95rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.85rem;
    text-align: justify;
    line-height: 1.65;
}

/* ---------- 08 团队成员 ---------- */
.team-member {
    padding: 10px 10px 16px;
    border-radius: 14px;
    background: #FDFBF9;
    border: 1px solid rgba(201, 163, 106, 0.16);
    transition: var(--transition);
}

.team-member:hover {
    border-color: rgba(201, 163, 106, 0.45);
    box-shadow: 0 10px 24px rgba(26, 19, 25, 0.07);
    transform: translateY(-3px);
}

.team-avatar {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #F3EFF3, #E8E0E6);
    margin: 0 auto 12px;
    border: 1px solid rgba(201, 163, 106, 0.35);
    transition: var(--transition);
}

.team-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
    transition: transform 0.5s ease;
}

.team-member:hover .team-avatar {
    border-color: var(--accent-color);
    box-shadow: 0 6px 18px rgba(201, 163, 106, 0.22);
}

.team-member:hover .team-avatar img {
    transform: scale(1.06);
}

.team-member h4 {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 3px;
    font-weight: 600;
}

.team-member p {
    font-size: 0.78rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 4px;
}

.team-member span {
    font-size: 0.75rem;
    color: var(--text-light);
    display: block;
    line-height: 1.5;
}

/* ---------- 09 产品卡片 ---------- */
.product-card {
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(110, 75, 103, 0.1);
}

.product-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #FDFBFC;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.product-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px 22px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-tag {
    display: inline-block;
    background: rgba(201, 163, 106, 0.1);
    color: var(--accent-color);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    margin-bottom: 10px;
    font-weight: 600;
    align-self: center;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 600;
}

.product-info p {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ---------- 10 轮播控件 ---------- */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 19, 25, 0.5);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    backdrop-filter: blur(8px);
}

.hero-carousel-wrapper:hover .carousel-btn,
.hero-carousel-wrapper:focus-within .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

.carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.15);
    padding: 7px 14px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.dot {
    width: 9px;
    height: 9px;
    background: rgba(110, 75, 103, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 0;
    padding: 0;
    appearance: none;
}

.dot.active {
    background: var(--accent-color);
    transform: scale(1.3);
}

/* ---------- 11 微信二维码框 ---------- */
.wechat-qrcode-box {
    flex: 0 0 340px;
    background: #FDFBFC;
    padding: 35px 30px;
    border-radius: 20px;
    text-align: center;
    color: var(--text-main);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    margin: 0 auto;
    position: relative;
    border: 1px solid rgba(201, 163, 106, 0.2);
}

.wechat-qrcode-box img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto 18px;
    border-radius: 10px;
    border: 1px solid #F0EBF0;
    padding: 8px;
}

.wechat-qrcode-box h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

.wechat-qrcode-box p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.wechat-qrcode-box p.small-tip {
    font-size: 0.82rem;
    color: #A8A0A6;
    margin-top: 6px;
}

/* ---------- 12 返回顶部按钮 ---------- */
#backToTop {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 46px;
    height: 46px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(110, 75, 103, 0.4);
    border: none;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

/* ---------- 13 宣传图文故事 ---------- */
.promo-feature-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.promo-feature-list {
    list-style: none;
    margin-top: 16px;
}

.promo-feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.promo-feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(201, 163, 106, 0.15);
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ---------- 14 代理档位价格卡 ---------- */
.price-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 163, 106, 0.22);
    border-radius: 18px;
    padding: 26px 24px 22px;
    transition: var(--transition);
}

.price-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 163, 106, 0.55);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.price-card-name {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--white);
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(201, 163, 106, 0.35);
}

.price-card-supply {
    display: flex;
    gap: 12px;
    margin: 16px 0 6px;
}

.supply-item {
    flex: 1;
    background: rgba(26, 19, 25, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
}

.supply-item span {
    display: block;
    font-size: 0.75rem;
    color: #A89FA5;
    letter-spacing: 1px;
}

.supply-item strong {
    display: inline-block;
    font-size: 1.9rem;
    line-height: 1.25;
    font-weight: 700;
    color: var(--accent-light);
}

.supply-item em {
    font-style: normal;
    font-size: 0.75rem;
    color: #A89FA5;
}

.price-card-meta {
    margin: 8px 0 0;
}

.price-card-meta > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 9px 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.price-card-meta dt {
    font-size: 0.82rem;
    color: #A89FA5;
    white-space: nowrap;
}

.price-card-meta dd {
    font-size: 0.95rem;
    font-weight: 600;
    color: #E8E0E6;
    text-align: right;
}

/* 总代：金色高亮卡 */
.price-card-best {
    background: linear-gradient(165deg, rgba(201, 163, 106, 0.16), rgba(201, 163, 106, 0.03) 60%);
    border-color: var(--accent-color);
}

.price-card-best .price-card-name {
    color: var(--accent-light);
}

.price-card-best .supply-item {
    background: rgba(26, 19, 25, 0.4);
    border-color: rgba(201, 163, 106, 0.25);
}

.price-card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    color: #1A1319;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 4px 16px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(201, 163, 106, 0.35);
}

/* ---------- 15 零售价标签 ---------- */
.retail-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 163, 106, 0.3);
    color: #D1C6CF;
    padding: 9px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.retail-item strong {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin: 0 3px;
}

/* ---------- 16 代理规则 ---------- */
.price-rules {
    margin: 0;
    padding-left: 22px;
    color: #D1C6CF;
    font-size: 0.9rem;
    line-height: 1.95;
}

.price-rules li {
    margin-bottom: 10px;
    padding-left: 4px;
}

.price-rules li::marker {
    color: var(--accent-color);
    font-weight: 700;
}

/* ---------- 17 图片灯箱 ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(17, 12, 17, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 70px 20px 30px;
    cursor: zoom-out;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-img {
    max-width: min(92vw, 560px);
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    background: #fff;
}

.lightbox-close {
    position: absolute;
    top: 22px;
    right: 26px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #1A1319;
}

.lightbox-hint {
    color: #A89FA5;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* ---------- 18 资质与荣誉占位卡 ---------- */
.trust-item {
    margin: 0;
    text-align: center;
}

.trust-frame {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(110, 75, 103, 0.4);
    border-radius: 12px;
    background: var(--white);
    color: var(--text-light);
    font-size: 0.82rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.trust-item:hover .trust-frame {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.trust-item figcaption {
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--text-light);
}

/* 资料到位后 trust-frame 换成 img：统一框内 contain 显示 */
.trust-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    background: var(--white);
}

/* ---------- 19 合作步骤卡 ---------- */
.step-item {
    position: relative;
    background: var(--white);
    border: 1px solid #EFE9F0;
    border-radius: 16px;
    padding: 26px 20px 22px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(110, 75, 103, 0.05);
    transition: var(--transition);
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(110, 75, 103, 0.12);
}

.step-num {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 800;
    font-style: italic;
    color: var(--accent-color);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.step-item h3 {
    font-size: 1.05rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.step-item p {
    font-size: 0.83rem;
    color: var(--text-light);
    line-height: 1.65;
    text-align: left;
}

/* 桌面端步骤间的金色虚线连接 */
.step-item + .step-item::before {
    content: '';
    position: absolute;
    left: -19px;
    top: 50%;
    width: 18px;
    height: 0;
    border-top: 2px dashed rgba(201, 163, 106, 0.55);
}

/* ---------- 20 FAQ 折叠项 ---------- */
.faq-heading {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.faq-item {
    background: var(--white);
    border: 1px solid #EFE9F0;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 15px 44px 15px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    position: relative;
    transition: var(--transition);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '＋';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-weight: 700;
    transition: var(--transition);
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item[open] summary {
    color: var(--primary-color);
    border-bottom: 1px solid #F0EBF0;
}

.faq-item p {
    padding: 14px 20px 16px;
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.8;
}
