:root {
    --primary: #1a1a2e;
    --primary-light: #2d2d4a;
    --accent: #e94560;
    --accent-hover: #ff5a75;
    --accent2: #0f3460;
    --accent3: #533483;
    --gradient-start: #1a1a2e;
    --gradient-mid: #16213e;
    --gradient-end: #0f3460;
    --light: #f5f5f7;
    --white: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --border: #e0e0e0;
    --border-light: #f0f0f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.16);
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --transition-fast: 0.2s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
}

[data-theme="dark"] {
    --primary: #0f0f1a;
    --primary-light: #1a1a2e;
    --accent: #e94560;
    --accent-hover: #ff5a75;
    --accent2: #16213e;
    --accent3: #2d1b4e;
    --gradient-start: #0f0f1a;
    --gradient-mid: #1a1a2e;
    --gradient-end: #16213e;
    --light: #1a1a2e;
    --white: #1e1e2f;
    --text: #e8e8e8;
    --text-light: #aaaaaa;
    --text-lighter: #777777;
    --border: #333333;
    --border-light: #2a2a3a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(30, 30, 47, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--white);
    line-height: 1.8;
    transition: background var(--transition), color var(--transition);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

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

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

::selection {
    background: var(--accent);
    color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #fff;
    box-shadow: var(--glass-shadow);
    border-bottom: 1px solid var(--glass-border);
    transition: background var(--transition), box-shadow var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

[data-theme="dark"] .logo {
    color: #fff;
}

.logo:hover {
    transform: scale(1.03);
    color: var(--accent);
}

.logo svg {
    width: 36px;
    height: 36px;
    transition: transform var(--transition);
}

.logo:hover svg {
    transform: rotate(-10deg) scale(1.1);
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
    transition: color var(--transition-fast);
}

[data-theme="dark"] .nav-links a {
    color: #bbb;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent3));
    border-radius: 2px;
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 14px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

[data-theme="dark"] .search-box {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.15);
    background: var(--white);
}

[data-theme="dark"] .search-box:focus-within {
    background: rgba(255, 255, 255, 0.1);
}

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

[data-theme="dark"] .search-box input {
    color: #e0e0e0;
}

.search-box input::placeholder {
    color: var(--text-lighter);
}

.theme-toggle,
.menu-toggle {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
}

[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .menu-toggle {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e0e0e0;
}

.theme-toggle:hover,
.menu-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(233, 69, 96, 0.08);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
}

.banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 40%, var(--gradient-end) 70%, var(--accent3) 100%);
    min-height: 480px;
    display: flex;
    align-items: center;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(233, 69, 96, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(83, 52, 131, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 50% 80%, rgba(15, 52, 96, 0.2) 0%, transparent 50%);
    animation: bannerGlow 12s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes bannerGlow {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-2%, -2%) scale(1.05);
        opacity: 1;
    }
    100% {
        transform: translate(2%, 2%) scale(1);
        opacity: 0.9;
    }
}

.banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--white), transparent);
    pointer-events: none;
    z-index: 2;
}

.slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
}

.slide {
    min-width: 100%;
    padding: 80px 20px 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 24px;
}

.slide h1 {
    font-size: 2.6rem;
    color: #fff;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    animation: slideInUp 0.8s ease both;
}

.slide p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    max-width: 700px;
    line-height: 1.8;
    animation: slideInUp 0.8s ease 0.1s both;
}

.slide .btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), #ff6b81);
    color: #fff;
    padding: 14px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
    transition: all var(--transition);
    animation: slideInUp 0.8s ease 0.2s both;
    position: relative;
    overflow: hidden;
}

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

.slide .btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 32px rgba(233, 69, 96, 0.55);
    color: #fff;
}

.slide .btn:hover::before {
    left: 100%;
}

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

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

.banner-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.banner-dots span::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color var(--transition);
}

.banner-dots span:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.banner-dots span.active {
    background: var(--accent);
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 0 16px rgba(233, 69, 96, 0.6);
}

.breadcrumb {
    padding: 16px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
    transition: color var(--transition-fast);
}

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

section {
    padding: 80px 0;
    position: relative;
}

section:nth-child(even) {
    background: var(--light);
}

[data-theme="dark"] section:nth-child(even) {
    background: var(--light);
}

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

.section-title h2 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent3));
    border-radius: 2px;
    margin: 12px auto 0;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--glass-border);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent3), var(--accent2));
    opacity: 0;
    transition: opacity var(--transition);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(233, 69, 96, 0.2);
}

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

.card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--text);
    font-weight: 700;
    line-height: 1.4;
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

.card .icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    transition: transform var(--transition);
}

.card:hover .icon {
    transform: scale(1.1) rotate(-5deg);
}

.card a {
    color: var(--accent);
    font-weight: 500;
}

.card a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    text-align: center;
}

.stat-item .num {
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-item .label {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 4px;
}

.article-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.article-card .thumb {
    width: 120px;
    height: 80px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent2), var(--accent3));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: transform var(--transition);
}

.article-card:hover .thumb {
    transform: scale(1.05);
}

.article-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    line-height: 1.5;
}

.article-card .meta {
    font-size: 0.8rem;
    color: var(--text-lighter);
    margin-bottom: 6px;
}

.article-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item:hover {
    border-color: rgba(233, 69, 96, 0.3);
    box-shadow: var(--shadow-sm);
}

.faq-item.open {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.08);
}

.faq-q {
    padding: 18px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    transition: background var(--transition-fast), color var(--transition-fast);
    user-select: none;
    gap: 16px;
}

.faq-q:hover {
    background: rgba(233, 69, 96, 0.04);
    color: var(--accent);
}

.faq-q .arrow {
    transition: transform var(--transition);
    font-size: 0.75rem;
    color: var(--text-lighter);
    flex-shrink: 0;
}

.faq-item.open .arrow {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 24px;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.9;
}

.faq-item.open .faq-a {
    max-height: 800px;
    padding: 0 24px 20px;
}

.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: var(--white);
}

th,
td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

th {
    background: linear-gradient(135deg, var(--primary), var(--accent2));
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    position: sticky;
    top: 0;
    white-space: nowrap;
}

td {
    color: var(--text-light);
    transition: background var(--transition-fast);
}

tr {
    transition: background var(--transition-fast);
}

tr:hover td {
    background: rgba(233, 69, 96, 0.04);
    color: var(--text);
}

tr:last-child td {
    border-bottom: none;
}

.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #ff6b81);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
    display: none;
    z-index: 999;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.back-top.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.3s ease;
}

.back-top:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 32px rgba(233, 69, 96, 0.55);
}

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

.site-footer {
    background: linear-gradient(180deg, var(--primary) 0%, #0d0d18 100%);
    color: #ccc;
    padding: 60px 0 20px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

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

.footer-grid h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-grid h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

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

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

.footer-grid a {
    color: #999;
    transition: color var(--transition-fast), padding-left var(--transition-fast);
    display: inline-block;
}

.footer-grid a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-grid p {
    color: #888;
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    line-height: 2;
}

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

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

.author-box {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    margin-top: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.author-box:hover {
    box-shadow: var(--shadow-md);
}

.author-box .avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent2), var(--accent3));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(83, 52, 131, 0.3);
}

.author-box strong {
    color: var(--text);
    font-size: 1rem;
    display: block;
    margin-bottom: 4px;
}

.author-box p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

section h3 {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 16px;
    font-weight: 700;
    position: relative;
    padding-left: 16px;
}

section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--accent), var(--accent3));
    border-radius: 2px;
}

section > .container > .grid > div > h3:first-child,
section > .container > .grid > .card > h3:first-child {
    padding-left: 0;
}

section > .container > .grid > div > h3:first-child::before,
section > .container > .grid > .card > h3:first-child::before {
    display: none;
}

section > .container > h3 {
    margin-top: 8px;
    margin-bottom: 24px;
}

section > .container > .card h3::before {
    display: none;
}

section > .container > .card h3 {
    padding-left: 0;
}

section > .container > .card > h3 {
    padding-left: 0;
}

section > .container > .card > h3::before {
    display: none;
}

section .card h3 {
    padding-left: 0;
}

section .card h3::before {
    display: none;
}

section .author-box strong {
    padding-left: 0;
}

section .author-box strong::before {
    display: none;
}

section .faq-q {
    padding-left: 24px;
}

section .faq-q::before {
    display: none;
}

section > .container > .card > h3,
section > .container > .grid > .card > h3 {
    padding-left: 0;
}

section > .container > .card > h3::before,
section > .container > .grid > .card > h3::before {
    display: none;
}

section > .container > .grid > div > h3 {
    padding-left: 0;
}

section > .container > .grid > div > h3::before {
    display: none;
}

section > .container > .grid > div > h3:not(:first-child) {
    padding-left: 16px;
}

section > .container > .grid > div > h3:not(:first-child)::before {
    display: block;
}

@media (max-width: 1024px) {
    .slide h1 {
        font-size: 2.2rem;
    }

    .banner {
        min-height: 420px;
    }

    section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: var(--shadow-lg);
        animation: menuSlideDown 0.3s ease;
    }

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

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

    .nav-links a {
        font-size: 1rem;
        padding: 8px 0;
        width: 100%;
        color: var(--text);
    }

    [data-theme="dark"] .nav-links a {
        color: #ddd;
    }

    .menu-toggle {
        display: flex;
    }

    .search-box {
        display: none;
    }

    .slide h1 {
        font-size: 1.6rem;
        padding: 0 10px;
    }

    .slide p {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    .slide {
        padding: 60px 16px 100px;
        gap: 18px;
    }

    .slide .btn {
        padding: 12px 32px;
        font-size: 0.95rem;
    }

    .banner {
        min-height: 380px;
    }

    .banner::after {
        height: 80px;
    }

    .article-card {
        flex-direction: column;
    }

    .article-card .thumb {
        width: 100%;
        height: 120px;
    }

    section {
        padding: 48px 0;
    }

    .section-title {
        margin-bottom: 32px;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .section-title p {
        font-size: 0.95rem;
    }

    .card {
        padding: 20px;
    }

    .grid {
        gap: 16px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .back-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .faq-q {
        padding: 14px 18px;
        font-size: 0.9rem;
    }

    .faq-a {
        padding: 0 18px;
        font-size: 0.85rem;
    }

    .faq-item.open .faq-a {
        padding: 0 18px 16px;
    }

    th,
    td {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .author-box .avatar {
        margin: 0 auto;
    }

    section h3 {
        font-size: 1.15rem;
    }

    .stat-item .num {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .slide h1 {
        font-size: 1.35rem;
    }

    .slide p {
        font-size: 0.88rem;
    }

    .banner {
        min-height: 340px;
    }

    .nav-wrap {
        height: 56px;
    }

    .logo {
        font-size: 1.1rem;
    }

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

    .nav-links {
        top: 56px;
    }

    .section-title h2 {
        font-size: 1.3rem;
    }

    .card {
        padding: 16px;
        border-radius: var(--radius-sm);
    }

    .card h3 {
        font-size: 1.05rem;
    }

    .card p {
        font-size: 0.88rem;
    }

    .back-top {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
}

@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;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }
}

@media print {
    .site-header,
    .back-top,
    .banner-dots,
    .theme-toggle,
    .menu-toggle {
        display: none !important;
    }

    .banner {
        min-height: auto;
        background: #fff;
    }

    .slide h1 {
        color: #000;
    }

    .slide p {
        color: #333;
    }

    body {
        color: #000;
        background: #fff;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

@supports not (backdrop-filter: blur(12px)) {
    .site-header {
        background: var(--primary);
    }

    .card {
        background: var(--white);
    }

    .faq-item {
        background: var(--white);
    }

    .author-box {
        background: var(--light);
    }

    .nav-links {
        background: var(--primary);
    }
}

@supports (padding: max(0px)) {
    .container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }

    .back-top {
        bottom: max(30px, env(safe-area-inset-bottom));
        right: max(30px, env(safe-area-inset-right));
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

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

.card:hover .icon {
    animation: float 2s ease-in-out infinite;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--accent);
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}