/* ========== BANNER 样式 (首页专用) ========== */
.banner {
    width: 100%;
    background-color: #1a1a1a; /* 仅当图片未加载时显示 */
    margin: 20px 0 0;
    position: relative;
    overflow: hidden;
    user-select: none;
}
.banner-container {
    position: relative;
    width: 100%;
    height: min(500px, 70vw); /* 自适应高度，最大500px */
    max-height: 70vh;
    min-height: 280px;
}
.banner-slides {
    position: relative;
    width: 100%;
    height: 100%;
}
.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    z-index: 1;
}
.banner-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}
.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: #2a2a2a; /* 占位背景 */
}
/* 加载动画层 (纯SVG旋转) */
.banner-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20;
}
.banner-slide.loading .banner-loader {
    display: flex;
}
.banner-slide.loading img {
    opacity: 0.5; /* 视觉上降低，让loader突出 */
}
.spinner {
    width: 50px;
    height: 50px;
    animation: rotate 1s linear infinite;
}
.spinner circle {
    fill: none;
    stroke: #ffffff;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 90, 150;
    stroke-dashoffset: 0;
}
@keyframes rotate { 100% { transform: rotate(360deg); } }

/* 文字内容区域 (左对齐，从左往右排列) */
.banner-content {
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: 15%;
    max-width: 600px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
    padding: 1.5rem 2rem;
    border-radius: 0 20px 20px 0;
    backdrop-filter: blur(2px);
    z-index: 15;
    text-align: left;
}
.banner-content h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
.banner-content p {
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    margin-bottom: 1.2rem;
    opacity: 0.9;
}
.banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FF6600;  /* 固定点缀色，不受主题影响 */
    color: white;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: background 0.2s, transform 0.1s;
}
.banner-cta svg {
    width: 18px;
    height: 18px;
    fill: white;
}
.banner-cta:hover {
    background: #e65c00;
    transform: scale(1.02);
}

/* 箭头 */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.3);
    z-index: 20;
    cursor: pointer;
    transition: background 0.2s;
    color: white;
}
.banner-arrow:hover { background: rgba(255,102,0,0.8); }
.banner-arrow.prev { left: 20px; }
.banner-arrow.next { right: 20px; }
.banner-arrow svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* 指示点 */
.banner-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    gap: 10px;
    justify-content: center;
    z-index: 20;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.2);
    transition: all 0.2s;
    cursor: pointer;
    padding: 0;
}
.dot.active {
    background: #FF6600;
    width: 28px;
}

/* 移动端调整 */
@media (max-width: 768px) {
    .banner-content {
        left: 4%;
        right: 4%;
        bottom: 12%;
        padding: 1rem 1.5rem;
    }
    .banner-arrow {
        width: 36px;
        height: 36px;
    }
    .banner-arrow.prev { left: 8px; }
    .banner-arrow.next { right: 8px; }
}
@media (max-width: 480px) {
    .banner-content h2 { font-size: 1.3rem; }
    .banner-content p { font-size: 0.85rem; }
    .banner-cta { padding: 0.5rem 1.2rem; font-size: 0.9rem; }
}
        /* 额外微调：确保公司品牌区域与主题完美融合 (可追加至home.css) */
        .company-section {
            padding: 3rem 0;
            background-color: var(--secondary);
        }
        .company-profile {
            display: flex;
            gap: 3rem;
            align-items: center;
        }
        .profile-text {
            flex: 1;
        }
        .profile-text h2 {
            font-size: 2.2rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 1.5rem;
            letter-spacing: -0.02em;
        }
        .profile-text p {
            font-size: 1.1rem;
            color: var(--text-soft);
            margin-bottom: 1.2rem;
            line-height: 1.6;
        }
        .profile-image {
            flex: 1;
            border-radius: 28px;
            overflow: hidden;
            box-shadow: 0 20px 30px -10px rgba(0,0,0,0.15);
            background-color: var(--primary-light);
            transition: transform 0.3s ease;
        }
        .profile-image img {
            width: 100%;
            height: auto;
            display: block;
            object-fit: cover;
            aspect-ratio: 6 / 4;  /* 与svg比例一致 */
        }

        /* 品牌展示区域 */
        .brands-section {
            background-color: var(--primary);
            padding: 3rem 0;
            margin-top: 2rem;
            border-top: 1px solid var(--border-light);
            border-bottom: 1px solid var(--border-light);
        }
        .brands-section h3 {
            text-align: center;
            font-size: 2rem;
            font-weight: 600;
            color: white;
            margin-bottom: 2.5rem;
            letter-spacing: -0.01em;
        }
        .brand-logos {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 1.5rem;
        }
        .brand-item {
            flex: 0 0 auto;
            width: 150px;
            background: white;
            border-radius: 20px;
            padding: 0.8rem 1rem;
            box-shadow: 0 6px 14px rgba(0,0,0,0.04);
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(0,0,0,0.02);
        }
        .brand-item:hover {
            transform: translateY(-4px);
            box-shadow: 0 14px 24px rgba(0,0,0,0.08);
            border-color: var(--accent);
        }
        .brand-item img {
            width: 100%;
            height: auto;
            max-height: 70px;
            object-fit: contain;
            display: block;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.02));
        }

        /* 移动端优化 */
        @media screen and (max-width: 992px) {
            .company-profile {
                gap: 2rem;
            }
            .profile-text h2 { font-size: 1.9rem; }
            .profile-text p { font-size: 1rem; }
        }
        @media screen and (max-width: 768px) {
            .company-profile {
                flex-direction: column;
                gap: 2rem;
            }
            .profile-text h2 { font-size: 1.8rem; }
            .brand-item {
                width: 130px;
            }
        }
        @media screen and (max-width: 480px) {
            .brand-item {
                width: calc(50% - 1rem);
                max-width: 140px;
            }
            .brand-logos {
                gap: 0.8rem;
            }
            .profile-image {
                border-radius: 20px;
            }
        }
        /* 确保banner之后没有多余空隙 */
        .banner {
            margin-bottom: 0;
        }
        /* ---------- 招商政策/留言引导轮播 (promo-carousel) ---------- */
        .promo-carousel-section {
            width: 100%;
            background-color: var(--primary-light);        /* fallback 背景 */
            height: min(300px, 45vw);                      /* 与 brands-section 视觉高度一致 */
            max-height: 350px;
            position: relative;
            overflow: hidden;
            margin: 0;
            padding: 0;
        }
        .promo-carousel-container {
            position: relative;
            width: 100%;
            height: 100%;
        }
        .promo-slides {
            position: relative;
            width: 100%;
            height: 100%;
        }
        .promo-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.5s ease, visibility 0.5s;
            z-index: 1;
        }
        .promo-slide.active {
            opacity: 1;
            visibility: visible;
            z-index: 10;
        }
        .promo-slide picture,
        .promo-slide img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;           /* 保证图片覆盖区域，不变形 */
        }
        /* 文字内容覆盖层 */
        .promo-content {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.25);    /* 半透明增强文字可读性 */
            backdrop-filter: blur(1px);
            color: white;
            text-shadow: 0 2px 8px rgba(0,0,0,0.5);
            padding: 1.5rem;
            text-align: center;
            z-index: 15;
        }
        .promo-content h3 {
            font-size: clamp(1.4rem, 6vw, 2.2rem);
            font-weight: 700;
            margin-bottom: 0.5rem;
            letter-spacing: -0.01em;
        }
        .promo-content p {
            font-size: clamp(0.9rem, 3.5vw, 1.2rem);
            max-width: 600px;
            opacity: 0.95;
        }
        .promo-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: var(--accent);              /* 主题强调色 */
            color: white;
            font-weight: 600;
            padding: 0.6rem 1.8rem;
            border-radius: 60px;
            font-size: 1rem;
            margin-top: 1rem;
            border: none;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
            transition: background 0.2s, transform 0.1s;
            text-decoration: none;
        }
        .promo-btn svg {
            width: 1.2em;
            height: 1.2em;
            fill: currentColor;
        }
        .promo-btn:hover {
            background: var(--primary);
            transform: scale(1.02);
        }

        /* 轮播箭头 (SVG 完全内联) */
        .promo-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 42px;
            height: 42px;
            background: rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(4px);
            border: 1px solid rgba(255,255,255,0.25);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 20;
            cursor: pointer;
            transition: background 0.2s;
            color: white;
        }
        .promo-arrow:hover {
            background: var(--accent);
        }
        .promo-arrow.prev { left: 16px; }
        .promo-arrow.next { right: 16px; }
        .promo-arrow svg {
            width: 28px;
            height: 28px;
            fill: currentColor;
        }

        /* 指示点 */
        .promo-dots {
            position: absolute;
            bottom: 15px;
            left: 0;
            right: 0;
            display: flex;
            gap: 12px;
            justify-content: center;
            z-index: 20;
        }
        .promo-dots .dot {
            width: 12px;
            height: 12px;
            border-radius: 20px;
            background: rgba(255,255,255,0.6);
            border: 1px solid rgba(0,0,0,0.2);
            transition: all 0.2s;
            cursor: pointer;
            padding: 0;
        }
        .promo-dots .dot.active {
            background: var(--accent);
            width: 30px;
        }

        /* 移动端微调 */
        @media (max-width: 640px) {
            .promo-carousel-section {
                height: min(260px, 50vw);      /* 小屏稍矮，保持比例 */
                max-height: 300px;
            }
            .promo-arrow {
                width: 36px;
                height: 36px;
            }
            .promo-arrow.prev { left: 6px; }
            .promo-arrow.next { right: 6px; }
            .promo-content {
                padding: 0.8rem;
            }
            .promo-btn {
                padding: 0.4rem 1.2rem;
                font-size: 0.9rem;
            }
        }
        @media (max-width: 480px) {
            .promo-content h3 { font-size: 1.2rem; }
            .promo-content p { font-size: 0.8rem; }
        }
/* ========== WHY CHOOSE US 区域样式 (完全兼容主题变量 + 移动端优化) ========== */
.why-choose-us-section {
    padding: 4rem 0;
    background-color: var(--secondary);
    position: relative;
    z-index: 1;
}

.why-choose-us-container {
    display: flex;
    gap: 4rem;
    align-items: center;
    justify-content: space-between;
}

/* 左侧文字区域 */
.why-text {
    flex: 1.2;
}

.why-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.why-title span {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.why-description {
    font-size: 1.05rem;
    color: var(--text-soft);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 90%;
}

/* 统计卡片三列布局 */
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    background: var(--primary-light);
    border-radius: 28px;
    padding: 0.8rem 1.6rem;
    text-align: center;
    min-width: 100px;
    flex: 1 1 0;
    border: 1px solid var(--border-light);
    transition: transform 0.2s ease, box-shadow 0.2s;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.05);
    border-color: var(--accent);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-soft);
    letter-spacing: 0.3px;
}

/* 优势列表 */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.8rem 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--text-dark);
    background: transparent;
    padding: 0.4rem 0;
    border-bottom: 1px dashed var(--border-light);
}

.feature-list svg {
    flex-shrink: 0;
    stroke: var(--accent);
    color: var(--accent);
    stroke-width: 1.8;
}

.feature-list li span {
    font-weight: 500;
}

/* CTA 按钮 */
.why-cta {
    margin-top: 0.5rem;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 1.8rem;
    border-radius: 60px;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateX(5px);
}

/* 右侧图片区域 */
.why-image {
    flex: 0.9;
    position: relative;
}

.image-frame {
    border-radius: 32px;
    overflow: hidden;
    background: var(--primary-light);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

.image-frame:hover {
    transform: scale(1.01);
}

.image-frame svg,
.image-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-top: 1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ========== 移动端响应式 ========== */
@media screen and (max-width: 992px) {
    .why-choose-us-container {
        gap: 2.5rem;
    }
    .why-title {
        font-size: 2rem;
    }
    .why-description {
        max-width: 100%;
    }
    .stats-grid {
        gap: 1rem;
    }
    .stat-item {
        padding: 0.6rem 1rem;
    }
    .stat-number {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 768px) {
    .why-choose-us-section {
        padding: 3rem 0;
    }
    .why-choose-us-container {
        flex-direction: column;
        gap: 2rem;
    }
    .why-text {
        order: 1;
        width: 100%;
    }
    .why-image {
        order: 2;
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }
    .feature-list {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        justify-content: center;
    }
    .stat-item {
        min-width: 110px;
    }
    .why-title {
        font-size: 1.9rem;
        text-align: center;
    }
    .why-description {
        text-align: center;
    }
    .why-cta {
        text-align: center;
    }
    .feature-list li {
        justify-content: flex-start;
    }
}

@media screen and (max-width: 480px) {
    .stats-grid {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }
    .stat-item {
        text-align: center;
    }
    .stat-number {
        font-size: 1.8rem;
    }
    .why-title {
        font-size: 1.7rem;
    }
    .feature-list li {
        font-size: 0.95rem;
    }
    .btn-outline {
        padding: 0.6rem 1.4rem;
    }
}

/* 暗色/亮色主题自适应（已使用CSS变量，自动跟随） */
body[data-theme="scheme2"] .stat-item {
    background: var(--primary-light);
}
body[data-theme="scheme3"] .stat-item {
    background: var(--primary-light);
}

/* 资讯列表区域样式 - 完全继承现有主题变量，移动端适配 */
.info-news-section {
    padding: 4rem 0;
    background-color: var(--secondary);
    margin: 0;
}

.info-news-container {
    display: flex;
    gap: 3rem;
    align-items: stretch;
}

/* 左侧服务条款卡片 */
.service-terms-card {
    flex: 1.2;
    background: var(--primary-light);
    border-radius: 32px;
    padding: 2rem 1.8rem;
    border: 1px solid var(--border-light);
    transition: box-shadow 0.2s;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.service-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.service-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
    margin: 0;
}

.service-description {
    color: var(--text-soft);
    line-height: 1.5;
    margin-bottom: 1.8rem;
    font-size: 0.95rem;
}

.terms-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.terms-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.terms-list svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    stroke: var(--accent);
    color: var(--accent);
}

.terms-footnote {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-soft);
    background: rgba(0,0,0,0.03);
    padding: 0.8rem;
    border-radius: 20px;
    margin-top: 1rem;
}

.terms-footnote svg {
    stroke: var(--accent);
    flex-shrink: 0;
}

/* 右侧标签区域 */
.news-tab-area {
    flex: 2;
    background: var(--secondary);
    border-radius: 32px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tab-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.2rem 1.5rem 0 1.5rem;
    background: var(--secondary);
    border-bottom: 1px solid var(--border-light);
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 0.7rem 1.4rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-soft);
}

.tab-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.tab-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

.tab-btn.active svg {
    stroke: white;
}

.tab-pane {
    display: none;
    padding: 1.5rem;
    animation: fadeIn 0.25s ease-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0.9rem 1rem;
    background: var(--primary-light);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.news-item:hover {
    background: var(--secondary);
    border-color: var(--border-light);
    transform: translateX(6px);
}

.news-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    stroke: var(--accent);
}

.news-title {
    flex: 1;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.4;
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-soft);
    white-space: nowrap;
    font-family: monospace;
}

/* 移动端响应式 */
@media screen and (max-width: 992px) {
    .info-news-container {
        gap: 2rem;
    }
    .service-title {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .info-news-container {
        flex-direction: column;
        gap: 2rem;
    }
    .service-terms-card {
        flex: auto;
        padding: 1.5rem;
    }
    .tab-menu {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 1rem 1rem 0 1rem;
        scrollbar-width: thin;
    }
    .tab-btn {
        white-space: nowrap;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    .news-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    .news-date {
        white-space: normal;
        font-size: 0.7rem;
        margin-left: auto;
    }
    .news-title {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .service-icon {
        width: 40px;
        height: 40px;
    }
    .service-title {
        font-size: 1.3rem;
    }
    .terms-list li {
        font-size: 0.85rem;
    }
    .news-item svg {
        width: 18px;
        height: 18px;
    }
    .tab-pane {
        padding: 1rem;
    }
}