:root {
    /* 更新的配色方案 */
    --bg: linear-gradient(135deg, #f5f7fa 0%, #e4edf9 100%);
    --primary: #4361ee;
    --primary-hover: #3a56d4;
    --accent: #7209b7;
    --accent-hover: #6508a3;
    --ink: #2b2d42;
    --muted: #6b7280;
    --light: #f8f9fa;
    --card: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 4px 12px rgba(67, 97, 238, 0.1);
    --shadow-hover: 0 6px 16px rgba(67, 97, 238, 0.15);

    /* 新增颜色变量 */
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --info: #2196f3;
}

* {
    box-sizing: border-box;
}

/* Noto Sans SC 字体引入 */
@font-face {
    font-family: 'Noto Sans SC';
    src: url('./fonts/noto-sans-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--ink);
    background: var(--bg);
    min-height: 100vh;
    scroll-behavior: smooth;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航样式优化 */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
    color: var(--primary);
}

.logo .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 2px 6px rgba(67, 97, 238, 0.4);
}

.nav-links {
    display: flex;
    gap: 18px;
    font-size: 15px;
    font-weight: 500;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: transparent;
    color: var(--muted);
    padding: 8px 16px 8px 16px;
    font-size: 15px;
    font-weight: 500;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.dropbtn::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--muted);
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropbtn::after {
    border-top-color: var(--primary);
}

/* 当下拉菜单显示时，旋转箭头 */
.dropdown.active .dropbtn::after {
    transform: rotate(180deg);
}

.dropbtn:hover {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    border-radius: 12px;
    z-index: 1000;
    margin-top: 8px;
    border: 1px solid var(--border);
    padding: 8px;
}

.dropdown-content a {
    color: var(--ink);
    padding: 10px 14px;
    text-decoration: none;
    display: block;
    font-size: 15px;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 2px 0;
}

.dropdown-content a:hover {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary);
}



/* Hero 区域样式优化 */
.hero {
    padding: 70px 0 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 42px);
    margin: 0 0 16px;
    line-height: 1.2;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ink), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.badge {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.badge.purple {
    background: rgba(114, 9, 183, 0.1);
    color: var(--accent);
}

/* 按钮样式优化 */
.cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    /* 优化子元素渲染 */
    transform: translateZ(0);
}

.btn {
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    outline: none;
    box-sizing: border-box;
    position: relative;
    /* 优化圆角渲染 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    /* 确保圆角正确渲染 */
    will-change: transform;
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: var(--shadow);
    border: none;
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--primary-hover), var(--accent-hover));
}

.btn.ghost {
    border: 1px solid var(--border);
    color: var(--ink);
    background: transparent;
}

.btn.ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(67, 97, 238, 0.05);
}

/* 标题样式优化 */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 700;
    /* 添加渲染优化属性，避免动画后模糊 */
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.section-title .line {
    width: 36px;
    height: 4px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    /* 添加渲染优化属性 */
    transform: translateZ(0);
}

/* 卡片网格样式优化 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
    margin-top: 16px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.card h3 {
    margin: 0 0 12px;
    font-size: 19px;
    font-weight: 700;
    color: var(--ink);
}

.card p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 15px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.tag {
    padding: 6px 10px;
    border-radius: 10px;
    background: #eef2ff;
    color: #4361ee;
    font-size: 12px;
    font-weight: 500;
}

/* 快速链接样式优化 */
.quick {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--primary);
    font-size: 15px;
    transition: all 0.2s ease;
}

.quick:hover {
    color: var(--primary-hover);
    gap: 10px;
}

.quick svg {
    width: 16px;
    height: 16px;
}

/* Pill 列表样式优化 */
.pill-list {
    display: grid;
    gap: 10px;
    margin: 14px 0;
}

.pill {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.03);
    color: var(--ink);
    font-size: 14px;
    transition: all 0.2s ease;
}

.pill:hover {
    background: rgba(67, 97, 238, 0.08);
    transform: translateX(3px);
}

.dot-sm {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    flex-shrink: 0;
    margin-top: 3px;
}

.subtext {
    color: var(--muted);
    font-size: 13px;
}

/* 动画效果 */
.pop-highlight {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.pop {
    animation: popScale 0.45s ease-out;
}

@keyframes popScale {
    0%   { transform: scale(0.98); }
    55%  { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* 动画结束后清除不必要的变换，避免文字模糊 */
.pop.animation-ended {
    will-change: auto;
    transform: none;
}

/* 其他样式 */
.note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.full-height {
    height: 100%;
}

.mb-8 {
    margin-bottom: 6px;
}

.mt-12 {
    margin-top: 10px;
}

.mt-38 {
    margin-top: 30px;
}

.mt-6 {
    margin-top: 5px;
}

.anchor-section {
    scroll-margin-top: 75px;
}

/* 页脚样式优化 */
footer {
    margin-top: 65px;
    padding: 32px 0;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .nav {
        height: 58px;
    }

    .nav-links {
        gap: 14px;
        font-size: 14px;
    }

    .hero {
        padding: 55px 0 40px;
        gap: 25px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .badges {
        gap: 10px;
        margin-bottom: 20px;
    }

    .cta {
        gap: 10px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .section-title {
        font-size: 22px;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card {
        padding: 20px;
    }

    footer {
        margin-top: 50px;
        padding: 25px 0;
    }
}

@media (max-width: 480px) {
    .shell {
        padding: 0 14px;
    }

    .nav-links {
        gap: 6px;
    }

    .nav-links a {
        padding: 6px 10px;
    }

    .hero {
        padding: 40px 0 30px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 15px;
    }

    .badge {
        padding: 6px 10px;
        font-size: 11px;
    }

    .cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .card-grid {
        gap: 16px;
    }

    .card {
        padding: 16px;
    }

    .section-title {
        font-size: 20px;
    }
}