/* ===== 全局CSS变量 ===== */
:root {
    --bg-light: #f8fafc;
    --bg-dark: #0b1120;
    --text-primary-light: #1e293b;
    --text-secondary-light: #475569;
    --text-heading-light: #0f172a;
    --text-link-light: #1d4ed8;
    --bg-card-light: #ffffff;
    --border-light: #e2e8f0;
    --bg-footer-light: #1e293b;
    --text-footer-light: #e2e8f0;

    --text-primary-dark: #e2e8f0;
    --text-secondary-dark: #94a3b8;
    --text-heading-dark: #ffffff;
    --text-link-dark: #93c5fd;
    --bg-card-dark: #1e293b;
    --border-dark: #334155;
    --bg-footer-dark: #0f172a;
    --text-footer-dark: #e2e8f0;

    --brand: #2563eb;
    --brand-light: #3b82f6;
    --brand-dark: #1e40af;
    --accent: #7c3aed;
    --accent-2: #db2777;
    --gradient-main: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #db2777 100%);
    --gradient-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.1) 50%, rgba(219, 39, 119, 0.1) 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-brand: 0 4px 14px rgba(37, 99, 235, 0.3);
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 999px;
    --blur: blur(12px);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg: var(--bg-dark);
    --text-primary: var(--text-primary-dark);
    --text-secondary: var(--text-secondary-dark);
    --text-heading: var(--text-heading-dark);
    --text-link: var(--text-link-dark);
    --bg-card: var(--bg-card-dark);
    --border: var(--border-dark);
    --bg-footer: var(--bg-footer-dark);
    --text-footer: var(--text-footer-dark);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
    --bg: var(--bg-light);
    --text-primary: var(--text-primary-light);
    --text-secondary: var(--text-secondary-light);
    --text-heading: var(--text-heading-light);
    --text-link: var(--text-link-light);
    --bg-card: var(--bg-card-light);
    --border: var(--border-light);
    --bg-footer: var(--bg-footer-light);
    --text-footer: var(--text-footer-light);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.75;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1.5rem; position: relative; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p {
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

a {
    color: var(--text-link);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--brand);
    text-decoration: none;
}

ul, ol {
    padding-left: 1.5rem;
    color: var(--text-primary);
}

img, svg {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

::selection {
    background-color: var(--brand);
    color: #ffffff;
}

/* ===== 容器与布局 ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.section {
    padding: 4rem 0;
    position: relative;
}

/* ===== 卡片组件 ===== */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand);
}

.card:hover::before {
    opacity: 1;
}

/* ===== 导航栏 ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background-color: color-mix(in srgb, var(--bg-card) 80%, transparent);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0.8rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-heading);
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links > a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.25rem 0;
}

.nav-links > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.3s ease;
    border-radius: var(--radius-full);
}

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

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.3rem 1rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.search-box:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-box input {
    background: transparent;
    border: none;
    padding: 0.4rem;
    color: var(--text-primary);
    outline: none;
    width: 140px;
    font-size: 0.9rem;
}

.search-box input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.search-box button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.1rem;
    padding: 0.25rem;
    transition: transform 0.2s ease;
}

.search-box button:hover {
    transform: scale(1.1);
}

.theme-toggle {
    background: none;
    border: 2px solid var(--border);
    color: var(--text-heading);
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--brand);
    transform: rotate(20deg);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-heading);
    line-height: 1;
    padding: 0.25rem;
}

/* ===== Hero区域 ===== */
.hero {
    background: var(--gradient-main);
    padding: 5rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: rotate(20deg);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 40%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1 1 350px;
}

.hero-text h1 {
    color: #ffffff;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-svg {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
}

.hero-svg svg {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== 按钮 ===== */
.btn {
    display: inline-block;
    background: var(--gradient-main);
    color: #ffffff;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 1rem;
    box-shadow: var(--shadow-brand);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.btn:hover::after {
    left: 100%;
}

.btn:active {
    transform: translateY(0);
}

/* ===== 网格布局 ===== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* ===== 文章卡片 ===== */
.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.article-card:hover h3 {
    color: var(--brand);
}

.article-card .meta {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-card .meta::before {
    content: '📅';
    font-size: 0.9rem;
}

.article-card p {
    flex-grow: 1;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.article-card a {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.article-card a:hover {
    gap: 0.75rem;
}

/* ===== 表格 ===== */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
}

th, td {
    padding: 1rem 1.5rem;
    border: 1px solid var(--border);
    text-align: left;
    color: var(--text-primary);
    font-size: 0.95rem;
}

th {
    background: var(--gradient-soft);
    font-weight: 600;
    color: var(--text-heading);
    border-bottom: 2px solid var(--brand);
}

tr {
    transition: background-color 0.2s ease;
}

tr:hover {
    background-color: color-mix(in srgb, var(--brand) 5%, transparent);
}

/* ===== FAQ ===== */
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
    transition: var(--transition);
}

.faq-item:first-of-type {
    border-top: 1px solid var(--border);
}

.faq-question {
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-heading);
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    user-select: none;
}

.faq-question:hover {
    color: var(--brand);
}

.faq-question span {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    color: var(--brand);
    flex-shrink: 0;
    margin-left: 1rem;
}

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

.faq-answer {
    margin-top: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
    padding-right: 2rem;
    animation: fadeIn 0.3s ease;
}

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

/* ===== 页脚 ===== */
.footer {
    background-color: var(--bg-footer);
    color: var(--text-footer);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
}

.footer h4 {
    color: var(--text-footer);
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.footer p {
    color: var(--text-footer);
    opacity: 0.9;
    font-size: 0.95rem;
}

.footer a {
    color: var(--text-footer);
    transition: color 0.3s ease;
    opacity: 0.85;
}

.footer a:hover {
    color: #ffffff;
    opacity: 1;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-footer);
    opacity: 0.8;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

/* ===== 面包屑 ===== */
.breadcrumb {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 1rem 0;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-link);
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--brand);
}

.breadcrumb span {
    opacity: 0.5;
}

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--gradient-main);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    border: none;
    font-size: 1.5rem;
    z-index: 1000;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

/* ===== 滚动动画 ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 暗色模式微调 ===== */
[data-theme="dark"] .card {
    background-color: var(--bg-card-dark);
    border-color: var(--border-dark);
}

[data-theme="dark"] .navbar {
    background-color: color-mix(in srgb, var(--bg-card-dark) 80%, transparent);
}

[data-theme="dark"] .search-box {
    background-color: var(--bg-dark);
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #6d28d9 50%, #be185d 100%);
}

[data-theme="dark"] .btn {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
}

[data-theme="dark"] .back-to-top {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
}

[data-theme="dark"] .footer {
    background-color: var(--bg-footer-dark);
}

[data-theme="dark"] .footer::before {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
}

[data-theme="dark"] .table-wrap {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] th {
    background: color-mix(in srgb, var(--brand) 20%, transparent);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        order: 2;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
        order: 3;
        border-top: 1px solid var(--border);
        margin-top: 0.5rem;
    }
    
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .search-box {
        order: 4;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .logo {
        order: 1;
    }
    
    .theme-toggle {
        order: 2;
        margin-left: auto;
        margin-right: 0.5rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-content {
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text {
        flex-basis: 100%;
    }
    
    .hero-svg {
        flex-basis: 100%;
    }
    
    .hero-svg svg {
        width: 150px;
        height: 100px;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    th, td {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .footer-grid {
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .card {
        padding: 1.25rem;
    }
    
    .nav-container {
        padding: 0.6rem 1rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
}

/* ===== 无障碍和可访问性 ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

/* ===== 打印样式 ===== */
@media print {
    .navbar, .back-to-top, .theme-toggle, .search-box, .mobile-menu-btn {
        display: none !important;
    }
    
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    a {
        color: #000000 !important;
        text-decoration: underline !important;
    }
    
    .hero {
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    .hero-text h1, .hero-text p {
        color: #000000 !important;
        text-shadow: none !important;
    }
}

/* ===== 自定义滚动条 ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand);
}

/* ===== 工具类 ===== */
.text-secondary { color: var(--text-secondary); }
.text-heading { color: var(--text-heading); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ===== 渐变边框卡片 ===== */
.gradient-border {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1px;
    overflow: hidden;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-main);
    border-radius: inherit;
    z-index: -1;
}

.gradient-border > * {
    background: var(--bg-card);
    border-radius: calc(var(--radius-md) - 1px);
    padding: 1.5rem;
}

/* ===== 毛玻璃效果 ===== */
.glass {
    background: color-mix(in srgb, var(--bg-card) 70%, transparent);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
}

/* ===== 悬停动画增强 ===== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* ===== 徽章/标签 ===== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-soft);
    color: var(--brand);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.badge:hover {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 10%, transparent);
}

/* ===== 分隔线 ===== */
.divider {
    height: 1px;
    background: var(--border);
    margin: 2rem 0;
    position: relative;
}

.divider::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-main);
    border-radius: var(--radius-full);
}

/* ===== 列表项动画 ===== */
.list-animate li {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.list-animate li.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== 链接下划线动画 ===== */
.link-underline {
    position: relative;
    text-decoration: none;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand);
    transition: width 0.3s ease;
}

.link-underline:hover::after {
    width: 100%;
}