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

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f0f4ff 0%, #fdf6e3 100%);
    color: #1a1a2e;
    transition: background 0.3s, color 0.3s;
    line-height: 1.7;
    min-height: 100vh;
}

body.dark {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #0d0d20 100%);
    color: #eaeaea;
}

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

ul {
    list-style: none;
}

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

/* 导航 */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 800;
    color: #f5c518;
}

.logo svg {
    width: 38px;
    height: 38px;
}

.nav {
    display: flex;
    gap: 24px;
    font-size: 15px;
    font-weight: 500;
}

.nav a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s;
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: #f5c518;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #f5c518;
    border-radius: 2px;
}

.dark-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 14px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dark-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(12px);
    padding: 16px 20px;
    gap: 12px;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav a.active {
    color: #f5c518;
}

/* Hero Banner 渐变风格 */
.hero {
    position: relative;
    overflow: hidden;
    height: 85vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 900"%3E%3Crect fill="%231a1a2e" width="1440" height="900"/%3E%3Ccircle cx="200" cy="150" r="120" fill="%23f5c518" opacity="0.08"/%3E%3Ccircle cx="1200" cy="600" r="180" fill="%23f5c518" opacity="0.06"/%3E%3Ccircle cx="700" cy="400" r="250" fill="%23f5c518" opacity="0.04"/%3E%3C/svg%3E') center/cover no-repeat;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 800px;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-content h1 span {
    color: #f5c518;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn {
    display: inline-block;
    background: #f5c518;
    color: #1a1a2e;
    padding: 16px 48px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    transition: 0.3s;
    box-shadow: 0 8px 32px rgba(245, 197, 24, 0.35);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(245, 197, 24, 0.5);
}

.hero-slide {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 1s;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 通用section */
.section {
    padding: 90px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #f5c518;
    border-radius: 4px;
    margin: 12px auto 0;
}

.section-title p {
    color: inherit;
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* 圆角卡片 + 毛玻璃效果 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.dark .card {
    background: rgba(30, 30, 60, 0.6);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f5c518, #e6a800);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 28px;
    color: #1a1a2e;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.card p {
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* 数据展示 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark .stat-item {
    background: rgba(30, 30, 60, 0.5);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #f5c518;
    line-height: 1.2;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.7;
    margin-top: 8px;
}

/* 客户评价 */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 28px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

body.dark .testimonial-card {
    background: rgba(30, 30, 60, 0.6);
}

.testimonial-card p {
    font-style: italic;
    opacity: 0.85;
    margin-bottom: 16px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #ddd;
}

.testimonial-author strong {
    font-weight: 600;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
    padding: 18px 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 6px 0;
}

.faq-question span {
    transition: transform 0.3s;
}

.faq-item.open .faq-question span {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    opacity: 0.8;
    padding-right: 20px;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-top: 12px;
}

/* 合作品牌 */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 24px;
    align-items: center;
    justify-items: center;
}

.partner-item {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 600;
    color: #888;
    font-size: 0.9rem;
    transition: 0.2s;
}

body.dark .partner-item {
    background: rgba(255, 255, 255, 0.05);
    color: #aaa;
}

.partner-item:hover {
    background: rgba(245, 197, 24, 0.15);
    border-color: #f5c518;
    transform: scale(1.02);
}

/* 联系我们 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark .contact-item {
    background: rgba(30, 30, 60, 0.5);
}

.contact-item svg {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    fill: #f5c518;
}

/* Footer */
footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0 30px;
    margin-top: 40px;
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

footer h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

footer a {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    transition: color 0.2s;
}

footer a:hover {
    color: #f5c518;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 30px;
    font-size: 0.85rem;
    grid-column: 1 / -1;
}

.footer-bottom p {
    margin-bottom: 6px;
}

/* 返回顶部 */
.back-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 48px;
    height: 48px;
    background: #f5c518;
    color: #1a1a2e;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(245, 197, 24, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-top.show {
    opacity: 1;
    visibility: visible;
}

.back-top:hover {
    transform: scale(1.08);
}

/* 搜索 */
.search-box {
    display: flex;
    gap: 8px;
    max-width: 400px;
    margin: 30px auto 0;
}

.search-box input {
    flex: 1;
    padding: 12px 18px;
    border-radius: 30px;
    border: 1px solid rgba(128, 128, 128, 0.3);
    background: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    outline: none;
    transition: 0.2s;
}

body.dark .search-box input {
    background: rgba(30, 30, 60, 0.7);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

.search-box input:focus {
    border-color: #f5c518;
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.2);
}

.search-box button {
    padding: 12px 24px;
    border-radius: 30px;
    background: #f5c518;
    color: #1a1a2e;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.search-box button:hover {
    background: #e6a800;
}

.search-results {
    margin-top: 20px;
    text-align: left;
    max-height: 300px;
    overflow-y: auto;
}

.search-results p {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    margin-bottom: 6px;
}

body.dark .search-results p {
    background: rgba(255, 255, 255, 0.05);
}

/* 响应式 */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        height: 60vh;
        min-height: 400px;
    }

    .section {
        padding: 60px 0;
    }

    .header-inner {
        height: 60px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .back-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-btn {
        padding: 14px 32px;
        font-size: 16px;
    }

    .stat-number {
        font-size: 2.2rem;
    }
}

/* 滚动动画 */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 图片懒加载 */
.lazy {
    opacity: 0;
    transition: opacity 0.5s;
}

.lazy.loaded {
    opacity: 1;
}

/* 面包屑 */
.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 0.85rem;
    padding: 16px 0;
    color: rgba(255, 255, 255, 0.6);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
    color: #f5c518;
}

.breadcrumb span {
    margin: 0 4px;
}

/* 暗黑模式额外 */
body.dark .hero {
    background: linear-gradient(135deg, #0a0a1a, #1a1a3e, #0d0d20);
}

body.dark .section-title h2::after {
    background: #f5c518;
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(245, 197, 24, 0.4);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f5c518;
}

/* 辅助隐藏 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}