/* ==========================================================================
   Dragonking's Tech Blog - 极简技术风格 + 主题切换
   ========================================================================== */

/* CSS Variables - 默认深色主题 */
:root {
    /* 主色调 */
    --primary-color: #00d4ff;
    --secondary-color: #ff6b6b;
    --accent-color: #7c3aed;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    /* 背景色调 */
    --bg-primary: #0a0e27;
    --bg-secondary: #1a1d29;
    --bg-tertiary: #2a2d39;
    --bg-glass: rgba(26, 29, 41, 0.8);
    
    /* 文字色调 */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    /* 字体 */
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* 尺寸 */
    --nav-height: 70px;
    --container-max-width: 1200px;
    --border-radius: 12px;
    --border-radius-sm: 6px;
    
    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0, 212, 255, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 212, 255, 0.15);
    --shadow-lg: 0 8px 25px rgba(0, 212, 255, 0.2);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-dark: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}

/* 浅色阅读模式 */
[data-theme="light"] {
    --primary-color: #0066cc;
    --secondary-color: #dc2626;
    --accent-color: #7c2d12;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #e2e8f0;
    --bg-glass: rgba(248, 250, 252, 0.9);
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --shadow-sm: 0 2px 4px rgba(0, 102, 204, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 102, 204, 0.15);
    --shadow-lg: 0 8px 25px rgba(0, 102, 204, 0.2);
    --shadow-glow: 0 0 20px rgba(0, 102, 204, 0.3);
    
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-dark: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

/* 护眼模式（浅绿色背景） */
[data-theme="eye-care"] {
    --primary-color: #059669;
    --secondary-color: #dc2626;
    --accent-color: #7c2d12;
    --success-color: #10b981;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    
    --bg-primary: #f0fdf4;
    --bg-secondary: #ecfdf5;
    --bg-tertiary: #d1fae5;
    --bg-glass: rgba(236, 253, 245, 0.9);
    
    --text-primary: #14532d;
    --text-secondary: #166534;
    --text-muted: #22c55e;
    
    --shadow-sm: 0 2px 4px rgba(5, 150, 105, 0.1);
    --shadow-md: 0 4px 12px rgba(5, 150, 105, 0.15);
    --shadow-lg: 0 8px 25px rgba(5, 150, 105, 0.2);
    --shadow-glow: 0 0 20px rgba(5, 150, 105, 0.3);
    
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-dark: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

/* 暖色模式（米色背景） */
[data-theme="warm"] {
    --primary-color: #d97706;
    --secondary-color: #dc2626;
    --accent-color: #7c2d12;
    --success-color: #059669;
    --warning-color: #f59e0b;
    --danger-color: #dc2626;
    
    --bg-primary: #fffbeb;
    --bg-secondary: #fef3c7;
    --bg-tertiary: #fde68a;
    --bg-glass: rgba(254, 243, 199, 0.9);
    
    --text-primary: #451a03;
    --text-secondary: #78350f;
    --text-muted: #a16207;
    
    --shadow-sm: 0 2px 4px rgba(217, 119, 6, 0.1);
    --shadow-md: 0 4px 12px rgba(217, 119, 6, 0.15);
    --shadow-lg: 0 8px 25px rgba(217, 119, 6, 0.2);
    --shadow-glow: 0 0 20px rgba(217, 119, 6, 0.3);
    
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-dark: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

/* 高对比度模式 */
[data-theme="high-contrast"] {
    --primary-color: #0000ff;
    --secondary-color: #ff0000;
    --accent-color: #8b5cf6;
    --success-color: #00ff00;
    --warning-color: #ffff00;
    --danger-color: #ff0000;
    
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #333333;
    --bg-glass: rgba(26, 26, 26, 0.9);
    
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    
    --shadow-sm: 0 2px 4px rgba(255, 255, 255, 0.2);
    --shadow-md: 0 4px 12px rgba(255, 255, 255, 0.3);
    --shadow-lg: 0 8px 25px rgba(255, 255, 255, 0.4);
    --shadow-glow: 0 0 20px rgba(255, 255, 255, 0.5);
    
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-dark: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}

/* 主题切换器样式 */
.theme-switcher {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 30px;
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.theme-switcher:hover {
    transform: translateY(-50%) translateX(-5px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(0, 212, 255, 0.5);
}

.theme-toggle-btn {
    background: transparent;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.25rem 0;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.theme-toggle-btn:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    transform: scale(1.1);
}

.theme-toggle-btn.active {
    background: var(--primary-color);
    color: var(--bg-primary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.theme-name {
    position: absolute;
    right: 60px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.theme-toggle-btn:hover + .theme-name,
.theme-toggle-btn:focus + .theme-name {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

/* 代码字体 */
code, pre, .code-font {
    font-family: var(--font-mono);
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: var(--bg-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0099cc;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-transparent {
    background: transparent;
    border-bottom: none;
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.nav-brand i {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-brand:hover {
    transform: translateY(-2px);
    text-shadow: var(--shadow-glow);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-weight: 500;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-sm);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 0.1;
}

.nav-link i {
    font-size: 1rem;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.25rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* Home Page Styles */
.home-page {
    background: linear-gradient(135deg, 
        rgba(10, 14, 39, 0.9), 
        rgba(26, 29, 41, 0.9)), 
        url('https://images.unsplash.com/photo-1518709268805-4e9042af2176?ixlib=rb-4.0.3&auto=format&fit=crop&w=2125&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

.main-fullscreen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-section {
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    background: var(--bg-glass);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.hero-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.hero-nav-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.hero-nav-item:hover::before {
    left: 100%;
}

.hero-nav-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-nav-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-nav-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
}

/* Regular Pages */
.main-content {
    margin-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height));
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.page-header {
    padding: 4rem 0 2rem;
    text-align: center;
    background: var(--gradient-dark);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.content-section {
    padding: 4rem 0;
}

/* Cards */
.card {
    background: var(--bg-glass);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}

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

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Grid Layout */
.grid {
    display: grid;
    gap: 2rem;
}

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

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
}

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

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

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

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.25rem;
        padding: 1rem 2rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 10vw, 4rem);
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-nav {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-nav-item {
        padding: 1.5rem 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .grid {
        gap: 1rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero-section {
        padding: 0 1rem;
    }
    
    .page-header {
        padding: 2rem 0 1rem;
    }
    
    .content-section {
        padding: 2rem 0;
    }
    
    .card {
        padding: 1.5rem;
    }
}

/* Scrollbar Animation */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
    
    .hero-nav-item {
        animation: fadeInUp 0.6s ease-out calc(var(--index, 0) * 0.1s) both;
    }
}

/* Hero Quote Styles */
.hero-quote {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh; /* 增加高度让名言更突出 */
    padding: 4rem 2rem;
    /* 移除独立背景色，让它继承主背景 */
}

.quote-container {
    max-width: 800px;
    text-align: center;
}

.hero-quote blockquote {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 3rem 2rem 2rem;
    margin: 0;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-quote blockquote:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(0, 212, 255, 0.4);
}

.hero-quote blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 2rem;
    font-size: 4rem;
    color: var(--primary-color);
    font-family: var(--font-mono);
    line-height: 1;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.hero-quote blockquote p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-family: var(--font-sans);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.hero-quote cite {
    display: block;
    font-size: 1rem;
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-style: normal;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
}

@media (max-width: 768px) {
    .hero-quote {
        min-height: 60vh; /* 手机端适中的高度 */
        padding: 2rem 1rem; /* 减少内边距 */
    }
    
    .hero-quote blockquote {
        padding: 1.5rem 1rem 1rem; /* 进一步减少内边距 */
    }
    
    .hero-quote blockquote p {
        font-size: 1rem; /* 适合手机的字体大小 */
        line-height: 1.5; /* 调整行高 */
    }
    
    .hero-quote blockquote::before {
        font-size: 2.5rem; /* 减小引号大小 */
        left: 1rem;
    }
    
    .hero-quote cite {
        font-size: 0.9rem; /* 减小作者名字体大小 */
    }
}

/* Visitor Stats Styles */
.visitor-stats {
    padding: 2rem; /* 减少默认内边距，让它更紧凑 */
    /* 移除独立背景色，让它继承主背景 */
    margin-top: 2rem; /* 添加上边距分隔 */
}

.stats-container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(0, 212, 255, 0.4);
}

.stat-icon {
    margin-bottom: 1rem;
}

.stat-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .visitor-stats {
        padding: 1.5rem 1rem; /* 移动端更紧凑的内边距 */
        margin-top: 1rem; /* 减少上边距 */
    }
    
    .stats-container {
        gap: 1rem; /* 减少卡片间距 */
    }
    
    .stat-card {
        padding: 1rem; /* 减少卡片内边距 */
    }
    
    .stat-icon i {
        font-size: 1.5rem; /* 减小图标大小 */
    }
    
    .stat-number {
        font-size: 1.3rem; /* 减小数字大小 */
    }
    
    .stat-label {
        font-size: 0.8rem; /* 减小标签字体 */
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .hero-quote {
        min-height: 50vh; /* 进一步减小高度 */
        padding: 1.5rem 0.5rem;
    }
    
    .hero-quote blockquote {
        padding: 1rem 0.8rem 0.8rem;
        margin: 0 0.5rem;
    }
    
    .hero-quote blockquote p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .hero-quote blockquote::before {
        font-size: 2rem;
        left: 0.8rem;
    }
    
    .hero-quote cite {
        font-size: 0.8rem;
    }
    
    .visitor-stats {
        padding: 1rem 0.5rem;
    }
    
    .stats-container {
        gap: 0.8rem;
    }
    
    .stat-card {
        padding: 0.8rem;
    }
    
    .stat-icon i {
        font-size: 1.2rem;
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

/* Comments and Guestbook Styles */
.comments-section {
    margin-top: 3rem;
    padding: 2rem 0;
}

.comments-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.comments-header h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.comments-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.guestbook-intro {
    margin-bottom: 3rem;
}

.intro-card {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.intro-card:hover {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: var(--shadow-lg);
}

.intro-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.intro-content h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.intro-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.intro-content li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.intro-content li i {
    color: var(--success-color);
    font-size: 0.9rem;
}

.comment-rules {
    margin-bottom: 3rem;
}

.comment-rules h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-rules h4 i {
    color: var(--primary-color);
}

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

.rule-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

.rule-item:hover {
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.05);
}

.rule-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.rule-item span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Gitalk样式自定义 */
#gitalk-container .gt-container {
    background: var(--bg-secondary) !important;
    border-radius: var(--border-radius) !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
    padding: 2rem !important;
}

#gitalk-container .gt-header-textarea {
    background: var(--bg-tertiary) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    border-radius: var(--border-radius-sm) !important;
    color: var(--text-primary) !important;
}

#gitalk-container .gt-header-textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2) !important;
}

#gitalk-container .gt-btn {
    background: var(--primary-color) !important;
    border: none !important;
    border-radius: var(--border-radius-sm) !important;
    padding: 0.5rem 1rem !important;
    color: var(--bg-primary) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

#gitalk-container .gt-btn:hover {
    background: var(--accent-color) !important;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3) !important;
}

#gitalk-container .gt-comment-content {
    background: var(--bg-tertiary) !important;
    border: 1px solid rgba(0, 212, 255, 0.1) !important;
    border-radius: var(--border-radius-sm) !important;
    color: var(--text-primary) !important;
}

#gitalk-container .gt-comment-username {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

@media (max-width: 768px) {
    .intro-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .intro-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        align-self: center;
    }
    
    .rules-grid {
        grid-template-columns: 1fr;
    }
    
    /* 主题切换器移动端适配 */
    .theme-switcher {
        right: 10px;
        padding: 0.3rem;
    }
    
    .theme-toggle-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .theme-name {
        right: 55px;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* 超小屏幕主题切换器优化 */
@media (max-width: 480px) {
    .theme-switcher {
        right: 5px;
        top: auto;
        bottom: 80px;
        transform: none;
    }
    
    .theme-switcher:hover {
        transform: translateX(-3px);
    }
    
    .theme-name {
        display: none; /* 超小屏幕隐藏提示文字 */
    }
}