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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f8f9fa;
    color: #1a1a2e;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

body.dark {
    background: #0f0f1a;
    color: #e0e0e0;
}

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

img {
    display: block;
    max-width: 100%;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 玻璃拟态卡片 */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark .glass-card {
    background: rgba(30, 30, 60, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* 渐变背景 */
.gradient-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
}

.dark .gradient-bg {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #0a2a4a 100%);
}

/* 导航 */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.dark header {
    background: rgba(15, 15, 30, 0.85);
    border-color: rgba(255, 255, 255, 0.05);
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #e94560;
}

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

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #e94560;
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #e94560;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dark-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.dark-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: inherit;
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    .nav-links.open {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
}

/* Banner轮播 */
.banner {
    position: relative;
    margin-top: 64px;
    overflow: hidden;
    border-radius: 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 10%;
}

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

.banner-content {
    max-width: 600px;
    animation: fadeUp 1s ease;
}

.banner-content h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.9;
    margin-bottom: 32px;
}

.btn-primary {
    display: inline-block;
    background: #e94560;
    color: white;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #d63851;
    transform: scale(1.02);
}

.banner-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.banner-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.banner-dots span.active {
    background: white;
    transform: scale(1.3);
}

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

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

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

.section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.7;
}

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 32px;
}

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

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

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

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* 数字动画 */
.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: #e94560;
}

/* 卡片 */
.card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark .card {
    background: #1a1a30;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

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

.card p {
    opacity: 0.8;
}

/* 团队 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    background: #e94560;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    cursor: pointer;
}

.dark .faq-item {
    border-color: rgba(255, 255, 255, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
}

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

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding-top: 0;
}

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

/* 文章卡片 */
.article-card {
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.dark .article-card {
    background: #1a1a30;
}

.article-card:hover {
    transform: translateY(-4px);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-body {
    padding: 24px;
}

.article-body h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.article-body .date {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-bottom: 8px;
}

/* 合作伙伴logo */
.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    transition: background 0.3s ease;
}

.dark .partner-logo {
    background: rgba(255, 255, 255, 0.05);
}

.partner-logo:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* 联系方式 */
.contact-info p {
    margin-bottom: 8px;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e94560;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(233, 69, 96, 0.3);
}

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

/* 搜索框 */
.search-box {
    display: flex;
    gap: 8px;
}

.search-box input {
    padding: 8px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    background: transparent;
    font-size: 14px;
    outline: none;
    transition: border 0.3s ease;
    width: 180px;
}

.dark .search-box input {
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.search-box input:focus {
    border-color: #e94560;
}

.search-box button {
    background: #e94560;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
}

/* 面包屑 */
.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 14px;
    opacity: 0.7;
    padding: 16px 0;
    flex-wrap: wrap;
}

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

/* footer */
footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 64px 0 32px;
}

.dark footer {
    background: #0a0a1a;
}

footer a:hover {
    color: white;
}

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

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-col ul li a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

/* 动画类 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* 响应式 */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    section {
        padding: 48px 0;
    }
    .banner {
        min-height: 60vh;
    }
    .search-box input {
        width: 120px;
    }
}