/* ==================== 变量定义 ==================== */
:root {
    /* 主色调 */
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    
    /* 辅助色 */
    --secondary-color: #ec4899;
    --accent-color: #14b8a6;
    
    /* 背景色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;
    
    /* 文字颜色 */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    
    /* 边框与阴影 */
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* 过渡 */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    
    /* 字体 */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==================== 重置样式 ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ==================== 容器 ==================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== 顶部提示栏 ==================== */
.top-notice {
    background: linear-gradient(90deg, var(--bg-dark) 0%, #1e293b 100%);
    color: var(--text-light);
    padding: 10px 0;
    font-size: 14px;
}

.top-notice .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-item .icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ==================== 头部导航 ==================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: box-shadow var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
}

.logo-icon.small {
    width: 32px;
    height: 32px;
}

.logo-icon svg {
    width: 22px;
    height: 22px;
}

.logo-icon.small svg {
    width: 18px;
    height: 18px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.nav-link.active {
    color: var(--text-white);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    padding: 8px;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    padding: 20px;
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
    z-index: 999;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-link {
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.mobile-nav-link:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.mobile-nav-link.active {
    color: var(--text-white);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

/* ==================== 英雄区域 ==================== */
.hero {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(20, 184, 166, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.search-box {
    display: flex;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    padding: 6px;
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    transition: border-color var(--transition-base);
}

.search-box:focus-within {
    border-color: var(--primary-color);
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    background: none;
    outline: none;
    color: var(--text-primary);
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.search-btn svg {
    width: 20px;
    height: 20px;
}

/* ==================== 通用区块 ==================== */
.section {
    padding: 80px 0;
}

.alt-bg {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.section-title svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ==================== 卡片网格 ==================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* ==================== 链接卡片 ==================== */
.link-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    cursor: pointer;
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.link-card:hover .card-icon {
    transform: scale(1.1);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: transform var(--transition-base);
}

.card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--text-white);
}

.card-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.card-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ==================== 访问入口 ==================== */
.access-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.access-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-color);
    transition: all var(--transition-base);
    text-align: center;
}

.access-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.access-card:hover .access-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--text-white);
}

.access-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.access-icon svg {
    width: 24px;
    height: 24px;
}

.access-card span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ==================== 页脚 ==================== */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo-text {
    background: none;
    -webkit-text-fill-color: var(--text-white);
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column a {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-light);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-light);
}

/* ==================== 响应式设计 ==================== */

/* 平板设备 */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .access-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 小平板 */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .access-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* 手机设备 */
@media (max-width: 480px) {
    .top-notice {
        font-size: 12px;
        padding: 8px 0;
    }
    
    .header-content {
        height: 60px;
    }
    
    .mobile-menu {
        top: 60px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .search-box {
        margin: 0 10px;
    }
    
    .search-input {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .search-btn {
        width: 40px;
        height: 40px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 32px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .link-card {
        flex-direction: row;
        padding: 16px;
        gap: 16px;
    }
    
    .card-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .card-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .card-content {
        flex: 1;
    }
    
    .card-content h3 {
        font-size: 15px;
    }
    
    .card-content p {
        font-size: 12px;
    }
    
    .access-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .access-card {
        flex-direction: row;
        padding: 20px;
        gap: 16px;
    }
    
    .access-icon {
        width: 48px;
        height: 48px;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-bottom p {
        font-size: 12px;
    }
}

/* ==================== 动画效果 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link-card, .access-card {
    animation: fadeInUp 0.5s ease forwards;
}

.link-card:nth-child(1), .access-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2), .access-card:nth-child(2) { animation-delay: 0.15s; }
.link-card:nth-child(3), .access-card:nth-child(3) { animation-delay: 0.2s; }
.link-card:nth-child(4), .access-card:nth-child(4) { animation-delay: 0.25s; }
.link-card:nth-child(5), .access-card:nth-child(5) { animation-delay: 0.3s; }
.link-card:nth-child(6) { animation-delay: 0.35s; }
.link-card:nth-child(7) { animation-delay: 0.4s; }
.link-card:nth-child(8) { animation-delay: 0.45s; }
.link-card:nth-child(9) { animation-delay: 0.5s; }
.link-card:nth-child(10) { animation-delay: 0.55s; }
