```css
/* 全局设计变量与重置 - 糖豆视频品牌色系 */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f6f8fa;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --text-primary: #1f2937;
    --text-secondary: #3b4a5a;
    --text-heading: #0b1c2c;
    --text-link: #1f4e8c;
    --text-footer: #cbd5e1;
    --footer-bg: #0f172a;
    --nav-bg: rgba(255, 255, 255, 0.85);
    --border-light: #e2e8f0;
    --accent: #f59e0b;
    --accent-secondary: #ef4444;
    --accent-dark: #b45309;
    --tag-bg: #fef3c7;
    --code-bg: #f1f5f9;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.12);
    --heading-h1: #0a1e2f;
    --gradient-hero: linear-gradient(135deg, #fef3c7 0%, #fde68a 30%, #fbbf24 60%, #f59e0b 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #fffbeb 100%);
    --gradient-footer: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --bg-glass: rgba(30, 41, 59, 0.75);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-heading: #f8fafc;
    --text-link: #fbbf24;
    --text-footer: #94a3b8;
    --footer-bg: #020617;
    --nav-bg: rgba(15, 23, 42, 0.9);
    --border-light: #334155;
    --accent: #fbbf24;
    --accent-secondary: #f87171;
    --accent-dark: #f59e0b;
    --tag-bg: #3b2f10;
    --code-bg: #1e293b;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.5);
    --heading-h1: #f8fafc;
    --gradient-hero: linear-gradient(135deg, #1e293b 0%, #3b2f10 50%, #78350f 100%);
    --gradient-card: linear-gradient(145deg, #1e293b 0%, #2d3a4a 100%);
    --gradient-footer: linear-gradient(180deg, #020617 0%, #0f172a 100%);
}

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

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

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.7;
    transition: background 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;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0.8rem 0 1.2rem;
    background: linear-gradient(135deg, var(--text-heading) 0%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin: 2rem 0 0.8rem;
    position: relative;
    padding-left: 1.2rem;
}

h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2rem;
    width: 4px;
    height: 1.2em;
    background: var(--accent);
    border-radius: 2px;
}

h4 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem;
    color: var(--text-primary);
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

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

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

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

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

li {
    margin-bottom: 0.4rem;
    position: relative;
}

strong {
    color: var(--text-heading);
    font-weight: 600;
}

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

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

/* 导航栏 - 毛玻璃效果 */
.navbar {
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-heading);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    letter-spacing: -0.02em;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo span {
    color: var(--accent);
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    list-style: none;
    margin: 0;
}

.menu a {
    font-weight: 500;
    color: var(--text-primary);
    padding: 0.4rem 0.2rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    font-size: 0.95rem;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    transition: width 0.3s ease;
}

.menu a:hover::after {
    width: 100%;
}

.menu a:hover {
    color: var(--accent-dark);
    text-decoration: none;
}

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

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 30px;
    padding: 0.15rem 0.5rem 0.15rem 1rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.search-box input {
    border: none;
    background: transparent;
    padding: 0.5rem 0.3rem;
    color: var(--text-primary);
    outline: none;
    width: 120px;
    font-size: 0.9rem;
    transition: width 0.3s ease;
}

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

.search-box input:focus {
    width: 150px;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--accent);
    font-size: 1.1rem;
    padding: 0.4rem 0.6rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button:hover {
    background: var(--tag-bg);
    transform: scale(1.1);
}

.icon-btn {
    background: transparent;
    border: 1px solid var(--border-light);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    cursor: pointer;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    backdrop-filter: blur(10px);
}

.icon-btn:hover {
    background: var(--tag-bg);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dark-toggle {
    font-size: 1.1rem;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #ffffff;
    padding: 0.7rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

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

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    color: white;
    text-decoration: none;
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    box-shadow: none;
}

.btn-outline:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

/* Hero 区域 */
.hero {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 4rem 0 5rem;
    flex-wrap: wrap;
    position: relative;
    background: var(--gradient-hero);
    margin-top: 1rem;
    border-radius: 24px;
    padding: 4rem 3rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    animation: heroShine 8s ease-in-out infinite;
}

@keyframes heroShine {
    0%, 100% { transform: rotate(30deg) translateX(0); }
    50% { transform: rotate(30deg) translateX(20%); }
}

.hero-text {
    flex: 1 1 400px;
    position: relative;
    z-index: 1;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.hero-image {
    flex: 1 1 300px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: var(--accent-dark);
    padding: 0.3rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.1);
}

.badge {
    background: var(--tag-bg);
    color: var(--accent-dark);
    padding: 0.3rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* 卡片网格 */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary), var(--accent));
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: rgba(245, 158, 11, 0.3);
}

.card h3 {
    margin-top: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card p {
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.card .tag {
    display: inline-block;
    margin-bottom: 0.5rem;
}

.tag {
    background: var(--tag-bg);
    color: var(--accent-dark);
    padding: 0.2rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

th, td {
    padding: 1rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}

th {
    background: var(--bg-secondary);
    color: var(--text-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

tr:hover td {
    background: var(--bg-secondary);
}

/* FAQ 区域 */
details {
    background: var(--bg-card);
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    margin-bottom: 0.8rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

details:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

details[open] {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.1);
}

summary {
    font-weight: 600;
    cursor: pointer;
    color: var(--text-heading);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.3s ease;
}

summary:hover {
    color: var(--accent-dark);
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--tag-bg);
    border-radius: 50%;
}

details[open] summary::after {
    content: '−';
    transform: rotate(180deg);
    background: var(--accent);
    color: white;
}

.faq-answer {
    padding-top: 1rem;
    color: var(--text-primary);
    border-top: 1px solid var(--border-light);
    margin-top: 0.8rem;
    animation: fadeIn 0.3s ease;
}

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

/* Footer */
footer {
    background: var(--gradient-footer);
    color: var(--text-footer);
    margin-top: 5rem;
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary), var(--accent), var(--accent-secondary));
    background-size: 300% 100%;
    animation: gradientMove 6s ease infinite;
}

footer h4 {
    color: #f8fafc;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

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

footer a {
    color: #b9c7da;
    font-weight: 400;
    transition: all 0.3s ease;
    text-decoration: none;
}

footer a:hover {
    color: var(--accent);
    text-decoration: none;
    padding-left: 5px;
}

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

footer ul li {
    margin-bottom: 0.6rem;
}

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

.footer-bottom {
    border-top: 1px solid #2a3a52;
    padding: 1.5rem 0;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0;
    color: #94a3b8;
}

/* 滚动动画 */
.reveal {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: translateY(30px);
}

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

/* 新闻列表 */
.news-list article {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 1.2rem;
}

.news-list article:hover {
    background: var(--bg-secondary);
    padding-left: 1.5rem;
}

.news-list time {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-right: 1rem;
    font-weight: 500;
    background: var(--tag-bg);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.news-list article p {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 返回顶部 */
.backtop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.4rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.backtop.show {
    opacity: 1;
    visibility: visible;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.backtop:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.5);
    color: white;
    text-decoration: none;
}

/* SVG 容器 */
.svg-bg {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 24px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.svg-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 20px) scale(1.1); }
}

.svg-text {
    fill: #1f2937;
    font-weight: 600;
}

[data-theme="dark"] .svg-text {
    fill: #E5E7EB;
}

[data-theme="dark"] .svg-bg {
    background: linear-gradient(135deg, #1e293b, #374151);
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
}

/* 视觉隐藏 */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border-width: 0;
}

/* 联系区域 */
#contact .grid-3 > div {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

#contact .grid-3 > div:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

#contact h4 {
    margin-top: 0;
    color: var(--text-heading);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

#contact ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#contact ul li {
    margin-bottom: 0.5rem;
}

#contact ul li a {
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
}

#contact ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .hero {
        padding: 3rem 2rem;
        gap: 2rem;
    }
    
    .grid-3 {
        gap: 1.5rem;
    }
}

@media (max-width: 820px) {
    .menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 20px;
        background: var(--bg-card);
        backdrop-filter: blur(20px);
        border-radius: 16px;
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        box-shadow: var(--shadow-hover);
        border: 1px solid var(--border-light);
        width: 200px;
        animation: slideDown 0.3s ease;
        z-index: 100;
    }
    
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .menu.show {
        display: flex;
    }
    
    .menu a {
        padding: 0.6rem 1rem;
        width: 100%;
        text-align: left;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .menu a:hover {
        background: var(--tag-bg);
        color: var(--accent);
        padding-left: 1.5rem;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .nav-wrap {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .search-box {
        order: 3;
        width: 100%;
    }
    
    .search-box input {
        flex: 1;
        width: auto;
    }
    
    .search-box input:focus {
        width: auto;
    }
    
    .nav-actions {
        gap: 8px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .hero {
        padding: 2rem 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text {
        flex: none;
        width: 100%;
    }
    
    .hero-image {
        flex: none;
        width: 100%;
        max-width: 400px;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding-bottom: 2rem;
    }
    
    .backtop {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    details {
        padding: 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    #contact .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
    
    .btn-group .btn {
        width: 100%;
        max-width: 280px;
        margin-left: 0 !important;
    }
    
    .icon-btn {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .search-box {
        width: 100%;
        order: 2;
    }
    
    .nav-actions {
        width: 100%;
        justify-content: flex-end;
        order: 1;
    }
    
    .nav-wrap {
        gap: 0.3rem;
    }
}

/* 打印样式 */
@media print {
    .navbar, .backtop, .dark-toggle, .search-box {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        background: white;
        box-shadow: none;
        padding: 0;
    }
}

/* 无障碍 - 减少动画偏好 */
@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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 5px;
    transition: all 0.3s ease;
}

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

/* 选中文字样式 */
::selection {
    background: var(--accent);
    color: white;
    text-shadow: none;
}

/* 代码块样式 */
code, pre {
    background: var(--code-bg);
    border-radius: 8px;
    padding: 0.2rem 0.5rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.9em;
    border: 1px solid var(--border-light);
}

pre {
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

pre code {
    background: transparent;
    border: none;
    padding: 0;
}

/* 提示框样式 */
.note, .warning, .tip {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    position: relative;
}

.note {
    background: var(--tag-bg);
    border-color: var(--accent);
}

.warning {
    background: #fef3c7;
    border-color: #f59e0b;
}

.tip {
    background: #d1fae5;
    border-color: #10b981;
}

/* 分隔线 */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
    margin: 2rem 0;
}
```