/* ===== 棒子影院 主题样式 ===== */
:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-soft: #eef2f6;
    --bg-footer: #0b1a2a;
    --text-primary: #17202A;
    --text-secondary: #243447;
    --text-heading: #0f172a;
    --text-link: #1d4ed8;
    --text-link-hover: #1e3a8a;
    --brand-main: #b45309;
    --brand-dark: #78350f;
    --btn-bg: #0f172a;
    --btn-text: #ffffff;
    --border-light: #cbd5e1;
    --tag-bg: #e2e8f0;
    --tag-text: #1e293b;
    --nav-bg: rgba(255,255,255,0.9);
    --shadow: 0 4px 12px rgba(0,0,0,0.05);
    --code-bg: #1e293b;
    --code-text: #e2e8f0;
    --gradient-banner: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    --glass-bg: rgba(255,255,255,0.75);
    --glass-border: rgba(255,255,255,0.3);
    --hover-scale: scale(1.02);
    --transition-fast: 0.2s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-theme="dark"] {
    --bg-main: #0b1220;
    --bg-card: #101b2b;
    --bg-soft: #1a2637;
    --bg-footer: #050d17;
    --text-primary: #E5E7EB;
    --text-secondary: #cbd5e1;
    --text-heading: #F8FAFC;
    --text-link: #7aa5f5;
    --text-link-hover: #a5c8ff;
    --brand-main: #fcd34d;
    --brand-dark: #fbbf24;
    --btn-bg: #fcd34d;
    --btn-text: #0f172a;
    --border-light: #334155;
    --tag-bg: #1f2a41;
    --tag-text: #e2e8f0;
    --nav-bg: rgba(10,18,30,0.9);
    --code-bg: #0f172a;
    --code-text: #94a3b8;
    --gradient-banner: linear-gradient(135deg, #1a2637 0%, #0b1220 100%);
    --gradient-card: linear-gradient(145deg, #101b2b 0%, #0b1220 100%);
    --glass-bg: rgba(16,27,43,0.75);
    --glass-border: rgba(255,255,255,0.1);
    --shadow: 0 4px 12px rgba(0,0,0,0.3);
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "Helvetica Neue", sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.7;
    transition: background 0.3s, color 0.3s;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main {
    flex: 1;
}
h1, h2, h3, h4 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.3;
}
h1 {
    font-size: clamp(2rem, 4vw, 2.4rem);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 1.8rem 0 1rem;
    border-left: 6px solid var(--brand-main);
    padding-left: 0.8rem;
}
h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin: 1.5rem 0 0.8rem;
}
h4 {
    font-size: clamp(1.1rem, 1.5vw, 1.2rem);
    margin: 1rem 0 0.5rem;
}
p {
    margin-bottom: 1rem;
    color: var(--text-primary);
}
a {
    color: var(--text-link);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--text-link-hover);
    text-decoration: underline;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}
/* ===== 渐变Banner ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s, border-color 0.3s;
}
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
}
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-heading);
    text-decoration: none;
    background: linear-gradient(135deg, var(--brand-main), var(--brand-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform var(--transition-fast);
}
.logo:hover {
    transform: scale(1.05);
}
.logo span {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-links {
    display: flex;
    gap: 1.8rem;
    align-items: center;
}
.nav-links a {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-main);
    transition: width 0.3s ease;
}
.nav-links a:hover {
    color: var(--brand-main);
    text-decoration: none;
}
.nav-links a:hover::after {
    width: 100%;
}
.search-toggle, .dark-toggle, .menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--text-heading);
    padding: 0.5rem;
    border-radius: 50%;
    transition: all var(--transition-fast);
    line-height: 1;
}
.search-toggle:hover, .dark-toggle:hover, .menu-toggle:hover {
    background: var(--bg-soft);
    transform: rotate(15deg);
}
.search-panel {
    background: var(--glass-bg);
    padding: 1rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-top: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.search-panel input {
    width: calc(100% - 100px);
    padding: 0.8rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-main);
    color: var(--text-primary);
    transition: border-color 0.3s;
}
.search-panel input:focus {
    outline: none;
    border-color: var(--brand-main);
}
/* ===== 按钮 ===== */
.btn {
    background: var(--btn-bg);
    color: var(--btn-text);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    transition: all var(--transition-slow);
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}
.btn:hover {
    opacity: 0.85;
    color: var(--btn-text);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    text-decoration: none;
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--btn-bg);
    color: var(--text-heading);
}
.btn-outline:hover {
    background: var(--btn-bg);
    color: var(--btn-text);
}
/* ===== 卡片网格 ===== */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.card {
    background: var(--gradient-card);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}
.card:hover {
    transform: var(--hover-scale);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-color: var(--brand-main);
}
.card:hover::before {
    left: 100%;
}
.card h3, .card h4 {
    margin-bottom: 0.5rem;
}
.card p {
    color: var(--text-secondary);
}
/* ===== 标签 ===== */
.tag {
    background: var(--tag-bg);
    color: var(--tag-text);
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-size: 0.85rem;
    display: inline-block;
    margin: 0.2rem;
    transition: all var(--transition-fast);
}
.tag:hover {
    background: var(--brand-main);
    color: var(--btn-text);
    transform: translateY(-2px);
}
/* ===== 表格 ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
}
th {
    background: var(--bg-soft);
    color: var(--text-heading);
    font-weight: 600;
    padding: 1rem;
}
td, th {
    border: 1px solid var(--border-light);
    padding: 0.8rem;
    color: var(--text-primary);
}
tr {
    transition: background 0.2s;
}
tr:hover {
    background: var(--bg-soft);
}
/* ===== FAQ ===== */
details {
    background: var(--glass-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 0.8rem 1.2rem;
    margin: 0.8rem 0;
    transition: all var(--transition-slow);
    backdrop-filter: blur(10px);
}
details:hover {
    border-color: var(--brand-main);
    transform: translateX(5px);
}
details[open] {
    background: var(--bg-card);
    box-shadow: var(--shadow);
}
summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-heading);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
}
summary::-webkit-details-marker {
    display: none;
}
summary::before {
    content: '▸';
    color: var(--brand-main);
    transition: transform 0.3s ease;
    display: inline-block;
}
details[open] summary::before {
    transform: rotate(90deg);
}
summary i {
    margin-right: 0.5rem;
    font-style: normal;
}
details p {
    color: var(--text-primary);
    margin-top: 0.5rem;
    animation: slideDown 0.3s ease;
}
/* ===== Footer ===== */
.site-footer {
    background: var(--bg-footer);
    color: #d1d5db;
    padding: 2.5rem 0;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-main), var(--brand-dark), var(--brand-main));
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
.site-footer a {
    color: #9ca3af;
    transition: color 0.2s, padding-left 0.2s;
}
.site-footer a:hover {
    color: white;
    text-decoration: none;
    padding-left: 5px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}
.footer-grid h4 {
    color: #f9fafb;
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-grid h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--brand-main);
}
/* ===== 返回顶部 ===== */
#backTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    z-index: 2000;
    transition: all var(--transition-slow);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    line-height: 1;
}
#backTop:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
/* ===== 移动菜单 ===== */
.mobile-menu {
    display: none;
}
.mobile-menu-panel {
    background: var(--glass-bg);
    padding: 1rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    margin-bottom: 1rem;
    animation: slideDown 0.3s ease;
}
.mobile-menu-panel a {
    display: block;
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.2s;
}
.mobile-menu-panel a:hover {
    background: var(--bg-soft);
    padding-left: 1.2rem;
    text-decoration: none;
}
/* ===== 动画 ===== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}
/* ===== 增强对比工具类 ===== */
.text-strong {
    color: var(--text-heading) !important;
    font-weight: 700;
}
.text-body {
    color: var(--text-primary) !important;
}
.text-muted {
    color: var(--text-secondary) !important;
}
.bg-card {
    background: var(--bg-card);
}
/* ===== 统计数字 ===== */
.stat-number {
    font-weight: 700;
    font-size: 2rem;
    color: var(--brand-main);
    transition: font-size 0.3s;
}
/* ===== 首屏区块 ===== */
.hero-section {
    padding: 1.5rem 0;
}
.hero-container {
    background: var(--gradient-banner);
    border-radius: 32px;
    padding: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-slow);
}
.hero-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(35deg);
    animation: shine 3s ease-in-out infinite;
}
@keyframes shine {
    0%, 100% {
        transform: rotate(35deg) translateX(0);
    }
    50% {
        transform: rotate(35deg) translateX(100px);
    }
}
.hero-text {
    flex: 2;
    min-width: 300px;
    position: relative;
    z-index: 1;
}
.hero-text h1 {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.hero-text p {
    color: rgba(255,255,255,0.95);
    font-size: 1.2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.hero-btn-group {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}
.hero-btn-group .btn {
    background: white;
    color: #0f172a;
}
.hero-btn-group .btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}
.hero-btn-group .btn-outline:hover {
    background: white;
    color: #0f172a;
}
.hero-visual {
    flex: 1;
    background: rgba(255,255,255,0.15);
    border-radius: 24px;
    padding: 1rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 1;
}
.hero-visual svg {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s;
}
.hero-visual:hover svg {
    transform: scale(1.05);
}
.hero-visual p {
    color: rgba(255,255,255,0.95);
    margin-top: 0.5rem;
    font-weight: 500;
}
/* ===== 品牌信息区 ===== */
.brand-info {
    background: var(--gradient-card);
    padding: 1.5rem;
    border-radius: 20px;
    margin: 1rem 0;
    border: 1px solid var(--border-light);
    transition: all var(--transition-slow);
}
.brand-info:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.brand-info h3 {
    color: var(--brand-main);
}
.brand-info p {
    margin-bottom: 0.5rem;
}
/* ===== 引用块 ===== */
blockquote.card {
    font-style: normal;
    position: relative;
    padding: 1.5rem;
    background: var(--gradient-card);
}
blockquote.card::before {
    content: '"';
    font-size: 4rem;
    color: var(--brand-main);
    position: absolute;
    top: -10px;
    left: 10px;
    opacity: 0.2;
    font-family: Georgia, serif;
}
blockquote.card p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
blockquote.card footer {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}
/* ===== 友情链接 ===== */
.friend-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}
.friend-links a {
    padding: 0.4rem 1rem;
    background: var(--bg-soft);
    border-radius: 20px;
    transition: all var(--transition-fast);
}
.friend-links a:hover {
    background: var(--brand-main);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}
/* ===== 信息行 ===== */
.info-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    .nav-links {
        display: none;
    }
    .mobile-menu {
        display: block;
    }
    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    .hero-container {
        padding: 1.5rem;
        border-radius: 20px;
    }
    .hero-text p {
        font-size: 1rem;
    }
    .grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    .card {
        padding: 1rem;
    }
    #backTop {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.95rem;
    }
    .search-panel input {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .search-panel .btn {
        width: 100%;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    .logo {
        font-size: 1.5rem;
    }
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .hero-btn-group {
        flex-direction: column;
    }
    .hero-btn-group .btn {
        width: 100%;
        text-align: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .info-row {
        gap: 1rem;
        flex-direction: column;
    }
    table {
        font-size: 0.85rem;
    }
    td, th {
        padding: 0.5rem;
    }
}
/* ===== 打印优化 ===== */
@media print {
    .site-header, .site-footer, #backTop, .search-panel, .mobile-menu {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
/* ===== 滚动条优化 ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-main);
}
/* ===== 焦点样式 ===== */
:focus-visible {
    outline: 3px solid var(--brand-main);
    outline-offset: 2px;
    border-radius: 4px;
}
/* ===== 选择器文本 ===== */
::selection {
    background: var(--brand-main);
    color: white;
}
/* ===== 无障碍 ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}