:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.7);
    --border-color: rgba(59, 130, 246, 0.3);
    --border-glow: rgba(59, 130, 246, 0.6);
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --gradient-blue: linear-gradient(135deg, #3b82f6, #06b6d4);
    --gradient-purple: linear-gradient(135deg, #8b5cf6, #3b82f6);
    --gradient-neon: linear-gradient(135deg, #06b6d4, #8b5cf6, #ec4899);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    --toggle-icon: '🌙';
}

html.light {
    --bg-primary: #f0f4f8;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --border-color: rgba(59, 130, 246, 0.2);
    --border-glow: rgba(59, 130, 246, 0.5);
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);
    --toggle-icon: '☀️';
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    transition: background 0.5s ease;
}

html.light body::before {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    transition: background-image 0.5s ease;
}

html.light body::after {
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ============ 导航栏 ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

html.light .navbar {
    background: rgba(255, 255, 255, 0.85);
}

html.light .navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 70px;
    gap: 8px;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    margin-left: auto;
}

.nav-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-blue);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.1);
}

html.light .nav-menu a:hover,
html.light .nav-menu a.active {
    background: rgba(59, 130, 246, 0.08);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 24px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-left: auto;
}

.theme-toggle:hover {
    border-color: var(--border-glow);
    transform: rotate(15deg);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

html.light .theme-toggle:hover {
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.theme-toggle .icon-sun {
    display: none;
}

html.light .theme-toggle .icon-sun {
    display: inline;
}

html.light .theme-toggle .icon-moon {
    display: none;
}

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

@media screen and (max-width: 768px) {
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* ============ Hero 区域 ============ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 0 80px;
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.hero-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 30px;
    border: 3px solid transparent;
    background:
        linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
        var(--gradient-neon) border-box;
    padding: 4px;
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.4);
    overflow: hidden;
    animation: avatar-glow 3s ease-in-out infinite alternate;
}

@keyframes avatar-glow {
    0% { box-shadow: 0 0 30px rgba(59, 130, 246, 0.3); }
    100% { box-shadow: 0 0 50px rgba(139, 92, 246, 0.5); }
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.8;
}

.hero-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 18px;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.hero-tag:hover {
    background: rgba(6, 182, 212, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============ 按钮 ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-blue);
    color: #fff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.6);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
}

.btn-outline:hover {
    background: rgba(6, 182, 212, 0.1);
    transform: translateY(-2px);
    color: var(--accent-cyan);
}

/* ============ 通用区域 ============ */
.section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ============ 个人简介卡片 ============ */
.about-section {
    background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.03));
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.about-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.about-highlights {
    list-style: none;
    margin-top: 20px;
}

.about-highlights li {
    padding: 8px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-highlights li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--gradient-blue);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

/* ============ 作品卡片 ============ */
.works-section {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.03), transparent);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.work-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

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

.work-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
}

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

.work-thumb {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--accent-cyan);
    position: relative;
    overflow: hidden;
}

.work-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(10, 14, 23, 0.8));
    transition: background 0.3s ease;
}

html.light .work-thumb::after {
    background: linear-gradient(180deg, transparent 60%, rgba(255, 255, 255, 0.7));
}

.work-body {
    padding: 24px;
}

.work-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.work-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.work-tag {
    font-size: 0.75rem;
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    border-radius: 12px;
}

/* ============ 联系方式 ============ */
.contact-section {
    background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.03));
}

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

.contact-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.contact-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.contact-card a,
.contact-card span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    word-break: break-all;
}

.contact-card a:hover {
    color: var(--accent-cyan);
}

/* ============ 页脚 ============ */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    background: rgba(10, 14, 23, 0.5);
    position: relative;
    z-index: 1;
    transition: background 0.3s ease;
}

html.light .footer {
    background: rgba(255, 255, 255, 0.6);
}

.footer-content {
    text-align: center;
}

.footer-links {
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 12px;
    transition: color 0.3s ease;
}

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

.footer-copy {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

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

.footer-copy .beian:hover {
    color: var(--accent-cyan);
}

/* ============ 错误页面 ============ */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.error-code {
    font-size: 10rem;
    font-weight: 900;
    line-height: 1;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(59, 130, 246, 0.5);
    margin-bottom: 20px;
    animation: error-pulse 2s ease-in-out infinite;
}

@keyframes error-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.error-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.error-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ============ 页面过渡动画 ============ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ============ 回到顶部 ============ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--gradient-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    z-index: 999;
    border: none;
    font-size: 1.2rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 30px rgba(59, 130, 246, 0.6);
}

/* ============ 求药页面 ============ */
.qiuyao-section {
    padding: 140px 0 80px;
    position: relative;
    min-height: 100vh;
}

/* 独立窗口模式：无导航栏，取消顶部留白 */
.qiuyao-standalone .qiuyao-section {
    padding-top: 40px;
}

.qiuyao-card {
    max-width: 980px;
    margin: 0 auto;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    padding: 2.5rem 2.8rem;
    transition: border-color 0.3s ease;
}

.qiuyao-card:hover {
    border-color: var(--border-glow);
}

.qiuyao-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.qiuyao-subhead {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.qiuyao-h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0 1rem 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
    padding-bottom: 0.4rem;
}

.qiuyao-h2:first-of-type {
    border-top: none;
    margin-top: 0;
}

.qiuyao-h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 1.5rem 0 0.6rem 0;
}

.qiuyao-table-wrap {
    overflow-x: auto;
    margin: 0.75rem 0 1.25rem 0;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.qiuyao-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 480px;
}

.qiuyao-table th {
    background: rgba(59, 130, 246, 0.1);
    font-weight: 600;
    color: var(--accent-cyan);
    padding: 0.7rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.qiuyao-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    color: var(--text-primary);
}

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

.qiuyao-table code {
    background: rgba(59, 130, 246, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: "SF Mono", "JetBrains Mono", monospace;
    font-size: 0.9rem;
    color: var(--accent-cyan);
    word-break: break-all;
}

/* 基础信息点击复制按钮 */
.qiuyao-copy-btn {
    margin-left: 0.5rem;
    padding: 0.15rem 0.55rem;
    font-size: 0.72rem;
    font-family: inherit;
    line-height: 1.4;
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: 6px;
    cursor: pointer;
    vertical-align: middle;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.qiuyao-copy-btn:hover {
    background: rgba(6, 182, 212, 0.22);
    border-color: var(--accent-cyan);
    transform: translateY(-1px);
}

.qiuyao-copy-btn:active {
    transform: translateY(0) scale(0.96);
}

.qiuyao-copy-btn.copied {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.45);
}

/* 基础信息表：3 列布局，操作列窄而居中 */
.qiuyao-basic-table th:nth-child(3),
.qiuyao-basic-table td:nth-child(3) {
    width: 84px;
    text-align: center;
    white-space: nowrap;
}

/* 站点数据概况：桌面端单行显示，移动端自动换行为 3 行 */
.qiuyao-stat {
    display: inline;
}

.qiuyao-stat + .qiuyao-stat::before {
    content: ' / ';
    color: var(--text-secondary);
    opacity: 0.55;
}

.qiuyao-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 全站数据：个性化卡片网格 */
.qiuyao-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 0.75rem 0 1.25rem 0;
}

.qiuyao-overview-item {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.08));
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.qiuyao-overview-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    opacity: 0.7;
}

.qiuyao-overview-item:hover {
    transform: translateY(-3px);
    border-color: var(--border-glow);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

.qiuyao-overview-label {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.qiuyao-overview-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.qiuyao-overview-unit {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: 0.15rem;
}

.qiuyao-overview-placeholder {
    color: var(--text-secondary);
    opacity: 0.55;
}

/* 全站数据说明：数据来源与截止时间 */
.qiuyao-overview-note {
    margin-top: 0.75rem;
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    background: rgba(59, 130, 246, 0.06);
    border-left: 3px solid var(--border-glow);
    border-radius: 0 8px 8px 0;
    line-height: 1.6;
}

.qiuyao-screenshot-box {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    margin: 0.75rem 0 1.25rem 0;
    text-align: center;
}

.qiuyao-screenshot-box img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.qiuyao-screenshot-box .img-error {
    display: none;
    color: #ef4444;
    font-size: 0.9rem;
    padding: 1rem;
}

.qiuyao-checklist {
    list-style: none;
    padding-left: 0;
}

.qiuyao-checklist li {
    padding: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.qiuyao-bless {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    padding: 1.2rem 0 0.2rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

/* ============ 响应式 ============ */
@media screen and (max-width: 1024px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .error-code {
        font-size: 7rem;
    }
}

@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 14, 23, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 20px;
        gap: 4px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-bottom: 1px solid var(--border-color);
    }

    html.light .nav-menu {
        background: rgba(255, 255, 255, 0.98);
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu a {
        padding: 12px 20px;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .works-grid {
        grid-template-columns: 1fr;
    }

    .error-code {
        font-size: 5rem;
    }

    .error-title {
        font-size: 1.4rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }

    /* ============ 求药页移动端表格优化 ============ */
    .qiuyao-section {
        padding: 110px 0 60px;
    }

    /* 独立窗口模式：移动端同样无需导航栏留白 */
    .qiuyao-standalone .qiuyao-section {
        padding-top: 24px;
    }

    /* 站点数据概况：移动端每项独占一行，直观展示上传/下载/比率 */
    .qiuyao-stat {
        display: block;
        line-height: 1.7;
    }

    .qiuyao-stat + .qiuyao-stat::before {
        content: '';
    }

    .qiuyao-card {
        padding: 1.5rem 1.1rem;
        border-radius: 16px;
    }

    .qiuyao-title {
        font-size: 1.55rem;
    }

    .qiuyao-h2 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.8rem 0;
    }

    .qiuyao-h3 {
        font-size: 1.02rem;
    }

    /* 关键：移除 min-width，让表格按容器宽度自适应换行，避免出现横向滚动条 */
    .qiuyao-table-wrap {
        margin: 0.5rem 0 1rem 0;
    }

    .qiuyao-table {
        min-width: 0;
        width: 100%;
        font-size: 0.82rem;
        table-layout: auto;
    }

    .qiuyao-table th,
    .qiuyao-table td {
        padding: 0.5rem 0.55rem;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .qiuyao-table code {
        font-size: 0.78rem;
        padding: 0.15rem 0.35rem;
    }

    .qiuyao-screenshot-box img {
        max-height: 280px;
    }

    /* 全站数据：移动端两列紧凑布局，缩小数值字号 */
    .qiuyao-overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }

    .qiuyao-overview-item {
        padding: 0.85rem 0.9rem;
    }

    .qiuyao-overview-value {
        font-size: 1.3rem;
    }

    .qiuyao-bless {
        font-size: 1.05rem;
    }
}

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

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-avatar {
        width: 90px;
        height: 90px;
    }

    .about-card,
    .work-body {
        padding: 20px;
    }

    /* ============ 求药页超小屏进一步压缩 ============ */
    .qiuyao-card {
        padding: 1.2rem 0.8rem;
    }

    .qiuyao-title {
        font-size: 1.3rem;
    }

    .qiuyao-h2 {
        font-size: 1.05rem;
        margin: 1.2rem 0 0.6rem 0;
    }

    .qiuyao-h3 {
        font-size: 0.95rem;
    }

    .qiuyao-table {
        font-size: 0.74rem;
    }

    .qiuyao-table th,
    .qiuyao-table td {
        padding: 0.4rem 0.4rem;
    }

    .qiuyao-table code {
        font-size: 0.7rem;
        padding: 0.1rem 0.3rem;
    }

    .qiuyao-status-badge {
        font-size: 0.72rem;
        padding: 0.15rem 0.5rem;
    }

    .qiuyao-copy-btn {
        margin-left: 0.3rem;
        padding: 0.1rem 0.4rem;
        font-size: 0.66rem;
    }

    .qiuyao-bless {
        font-size: 0.95rem;
    }
}