/* ============================================
   每日大赛网站 - 每日大赛剧本杀原创剧本竞技平台
   核心样式表 - 暗黑哥特悬疑风格
   ============================================ */

/* CSS变量定义 */
:root {
    --blood-red: #8B0000;
    --abyss-black: #0A0A0A;
    --phantom-purple: #4B0082;
    --moon-silver: #C0C0C0;
    --pure-black: #000000;
    --dark-gray: #111111;
    --card-bg: #1A1A1A;
    --text-gray: #E0E0E0;
    --dark-gold: #B8860B;
    --blood-glow: rgba(139, 0, 0, 0.3);
    --card-border-glow: rgba(139, 0, 0, 0.15);
    --font-gothic: 'Noto Serif SC', 'STSong', serif;
    --font-body: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

/* 基础重置 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--pure-black);
    color: var(--text-gray);
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 背景纹理 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(75, 0, 130, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 0, 0, 0.03) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23222222' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

/* 链接样式 */
a {
    color: var(--blood-red);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ff2222;
    text-shadow: 0 0 8px rgba(139, 0, 0, 0.5);
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-gothic);
    color: var(--text-gray);
    line-height: 1.4;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

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

/* ============================================
   导航栏
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 2px 20px rgba(139, 0, 0, 0.2);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
}

.site-logo span {
    font-family: var(--font-gothic);
    font-size: 1.3rem;
    color: var(--blood-red);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
}

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

.nav-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--moon-silver);
    font-size: 0.9rem;
    border-radius: 4px;
    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(--blood-red);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 60%;
}

.nav-menu a:hover {
    color: #fff;
    background: rgba(139, 0, 0, 0.1);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--blood-red);
    transition: all 0.3s ease;
}

/* ============================================
   英雄区域 / 线索墙轮播
   ============================================ */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0.5) 70%,
        rgba(0, 0, 0, 0.95) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-family: var(--font-gothic);
    color: #fff;
    text-shadow: 0 0 30px rgba(139, 0, 0, 0.8), 0 0 60px rgba(139, 0, 0, 0.4);
    margin-bottom: 20px;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { text-shadow: 0 0 30px rgba(139, 0, 0, 0.8), 0 0 60px rgba(139, 0, 0, 0.4); }
    to { text-shadow: 0 0 40px rgba(139, 0, 0, 1), 0 0 80px rgba(139, 0, 0, 0.6); }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--moon-silver);
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-cta {
    display: inline-flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--blood-red), #5c0000);
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.5);
    color: #fff;
}

.btn-secondary {
    display: inline-block;
    padding: 14px 36px;
    background: transparent;
    color: var(--moon-silver);
    font-size: 1rem;
    border: 1px solid var(--blood-red);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.btn-secondary:hover {
    background: rgba(139, 0, 0, 0.15);
    color: #fff;
    border-color: #ff2222;
}

/* 线索墙轮播 */
.clue-wall-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
}

.clue-wall-track {
    display: flex;
    transition: transform 0.6s ease;
}

.clue-item {
    min-width: 300px;
    margin: 0 15px;
    position: relative;
}

.clue-item::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--blood-red);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(139, 0, 0, 0.8);
}

.clue-item::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--blood-red);
    opacity: 0.5;
}

/* ============================================
   区块标题
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--text-gray);
    position: relative;
    display: inline-block;
}

.section-header h2::before,
.section-header h2::after {
    content: '†';
    color: var(--blood-red);
    margin: 0 15px;
    font-size: 1.5rem;
    vertical-align: middle;
}

.section-header .subtitle {
    display: block;
    margin-top: 10px;
    font-size: 0.95rem;
    color: var(--moon-silver);
    opacity: 0.7;
}

/* ============================================
   卡片系统
   ============================================ */
.card {
    background: var(--card-bg);
    border: 1px solid rgba(139, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    box-shadow: inset 0 0 20px rgba(139, 0, 0, 0.05);
    pointer-events: none;
    transition: box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 0, 0, 0.4);
    box-shadow: 0 10px 40px rgba(139, 0, 0, 0.15);
}

.card:hover::before {
    box-shadow: inset 0 0 30px rgba(139, 0, 0, 0.1);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 10px;
    font-family: var(--font-gothic);
}

.card-text {
    font-size: 0.9rem;
    color: var(--moon-silver);
    opacity: 0.8;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(139, 0, 0, 0.1);
    font-size: 0.8rem;
    color: var(--moon-silver);
    opacity: 0.6;
}

/* 悬赏令卡片特殊样式 */
.bounty-card {
    background: linear-gradient(135deg, var(--card-bg), rgba(139, 0, 0, 0.05));
    border: 1px solid rgba(139, 0, 0, 0.3);
    position: relative;
}

.bounty-card .bounty-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--blood-red);
    color: #fff;
    padding: 4px 12px;
    font-size: 0.75rem;
    border-radius: 3px;
    font-weight: bold;
    z-index: 2;
}

.bounty-card .bounty-reward {
    color: var(--dark-gold);
    font-size: 1.3rem;
    font-weight: bold;
    font-family: var(--font-gothic);
}

/* ============================================
   网格布局
   ============================================ */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* ============================================
   档案袋手风琴
   ============================================ */
.accordion-folder {
    margin-bottom: 15px;
    border: 1px solid rgba(139, 0, 0, 0.2);
    border-radius: 6px;
    overflow: hidden;
    background: var(--card-bg);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(90deg, var(--card-bg), rgba(139, 0, 0, 0.03));
}

.accordion-header:hover {
    background: rgba(139, 0, 0, 0.08);
}

.accordion-header h4 {
    font-size: 1rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordion-header h4::before {
    content: '📁';
    font-size: 1.2rem;
}

.accordion-icon {
    width: 20px;
    height: 20px;
    position: relative;
    transition: transform 0.3s ease;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background: var(--blood-red);
    transition: all 0.3s ease;
}

.accordion-icon::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.accordion-icon::after {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.accordion-folder.active .accordion-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 24px;
}

.accordion-folder.active .accordion-content {
    max-height: 500px;
    padding: 0 24px 20px;
}

.accordion-content p {
    color: var(--moon-silver);
    font-size: 0.9rem;
    line-height: 1.8;
    opacity: 0.8;
}

/* ============================================
   放大镜探照灯效果
   ============================================ */
.magnifier-zone {
    position: relative;
    overflow: hidden;
    cursor: none;
}

.magnifier-zone .spotlight {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(circle, rgba(139, 0, 0, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 10;
}

.magnifier-zone:hover .spotlight {
    opacity: 1;
}

.magnifier-zone .hidden-text {
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--dark-gold);
    font-style: italic;
}

.magnifier-zone:hover .hidden-text {
    opacity: 1;
}

/* ============================================
   滴血沙漏倒计时
   ============================================ */
.countdown-hourglass {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    background: var(--card-bg);
    border: 1px solid rgba(139, 0, 0, 0.2);
    border-radius: 8px;
    margin: 30px 0;
}

.hourglass-visual {
    width: 80px;
    height: 120px;
    position: relative;
}

.hourglass-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10px;
    right: 10px;
    height: 50%;
    background: linear-gradient(180deg, var(--blood-red), transparent);
    clip-path: polygon(0 0, 100% 0, 60% 100%, 40% 100%);
    animation: bloodDrip 2s ease-in-out infinite;
}

.hourglass-visual::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 50%;
    background: linear-gradient(0deg, var(--blood-red), transparent);
    clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
}

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

.countdown-numbers {
    display: flex;
    gap: 15px;
}

.countdown-item {
    text-align: center;
}

.countdown-item .number {
    display: block;
    font-size: 2.5rem;
    font-family: var(--font-gothic);
    color: var(--blood-red);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
    line-height: 1;
}

.countdown-item .label {
    display: block;
    font-size: 0.75rem;
    color: var(--moon-silver);
    margin-top: 5px;
    opacity: 0.7;
}

/* ============================================
   排行榜
   ============================================ */
.ranking-list {
    list-style: none;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(139, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background: rgba(139, 0, 0, 0.05);
}

.ranking-number {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-gothic);
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 15px;
    border-radius: 50%;
}

.ranking-number.top-1 {
    background: linear-gradient(135deg, #FFD700, #B8860B);
    color: #000;
}

.ranking-number.top-2 {
    background: linear-gradient(135deg, #C0C0C0, #808080);
    color: #000;
}

.ranking-number.top-3 {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    color: #fff;
}

.ranking-info {
    flex: 1;
}

.ranking-info h4 {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 3px;
}

.ranking-info span {
    font-size: 0.8rem;
    color: var(--moon-silver);
    opacity: 0.6;
}

.ranking-score {
    color: var(--dark-gold);
    font-weight: bold;
    font-family: var(--font-gothic);
}

/* ============================================
   评委阵容
   ============================================ */
.judge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.judge-card {
    text-align: center;
    padding: 25px 15px;
    background: var(--card-bg);
    border: 1px solid rgba(139, 0, 0, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.judge-card:hover {
    border-color: rgba(139, 0, 0, 0.4);
    transform: translateY(-3px);
}

.judge-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--blood-red), var(--phantom-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    border: 2px solid rgba(139, 0, 0, 0.3);
}

.judge-card h4 {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 5px;
}

.judge-card p {
    font-size: 0.8rem;
    color: var(--moon-silver);
    opacity: 0.7;
}

/* ============================================
   页脚
   ============================================ */
.site-footer {
    background: linear-gradient(180deg, var(--pure-black), #050505);
    border-top: 1px solid rgba(139, 0, 0, 0.2);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--moon-silver);
    opacity: 0.7;
    font-size: 0.85rem;
    margin-top: 15px;
    line-height: 1.8;
}

.footer-links h4 {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(139, 0, 0, 0.2);
}

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

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--moon-silver);
    font-size: 0.85rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--blood-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(139, 0, 0, 0.1);
    font-size: 0.8rem;
    color: var(--moon-silver);
    opacity: 0.5;
}

/* ============================================
   页面通用Banner
   ============================================ */
.page-banner {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 60px;
}

.page-banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.page-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.8) 100%);
}

.page-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-banner-content h1 {
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(139, 0, 0, 0.6);
    margin-bottom: 10px;
}

.page-banner-content p {
    color: var(--moon-silver);
    font-size: 1rem;
    opacity: 0.8;
}

/* 面包屑 */
.breadcrumb {
    padding: 15px 0;
    font-size: 0.85rem;
    color: var(--moon-silver);
    opacity: 0.7;
}

.breadcrumb a {
    color: var(--moon-silver);
}

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

.breadcrumb span {
    margin: 0 8px;
    color: rgba(192, 192, 192, 0.4);
}

/* ============================================
   内容区域
   ============================================ */
.content-section {
    padding: 80px 0;
}

.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}

.sidebar-widget {
    background: var(--card-bg);
    border: 1px solid rgba(139, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-widget h4 {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(139, 0, 0, 0.15);
}

/* FAQ区域 */
.faq-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(139, 0, 0, 0.1);
}

.faq-item {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid rgba(139, 0, 0, 0.1);
    border-radius: 6px;
}

.faq-item h4 {
    color: var(--dark-gold);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.faq-item p {
    color: var(--moon-silver);
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.7;
}

/* SEO底部说明 */
.seo-description {
    margin-top: 60px;
    padding: 30px;
    background: rgba(26, 26, 26, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(139, 0, 0, 0.05);
}

.seo-description h3 {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.seo-description p {
    font-size: 0.85rem;
    color: var(--moon-silver);
    opacity: 0.6;
    line-height: 1.8;
}

/* ============================================
   搜索页
   ============================================ */
.search-box {
    max-width: 600px;
    margin: 40px auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 16px 24px;
    padding-right: 60px;
    background: var(--card-bg);
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 50px;
    color: var(--text-gray);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--blood-red);
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.2);
}

.search-box button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--blood-red);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: #a00000;
    transform: translateY(-50%) scale(1.05);
}

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

.error-code {
    font-size: 8rem;
    font-family: var(--font-gothic);
    color: var(--blood-red);
    text-shadow: 0 0 30px rgba(139, 0, 0, 0.5);
    line-height: 1;
    margin-bottom: 20px;
}

/* ============================================
   打字机动效
   ============================================ */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--blood-red);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--blood-red); }
}

/* ============================================
   迷雾转场
   ============================================ */
.fog-transition {
    position: relative;
}

.fog-transition::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.8));
    pointer-events: none;
}

/* ============================================
   标签/分类
   ============================================ */
.tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    border-radius: 3px;
    margin: 3px;
    transition: all 0.3s ease;
}

.tag-red {
    background: rgba(139, 0, 0, 0.2);
    color: #ff4444;
    border: 1px solid rgba(139, 0, 0, 0.3);
}

.tag-purple {
    background: rgba(75, 0, 130, 0.2);
    color: #9966ff;
    border: 1px solid rgba(75, 0, 130, 0.3);
}

.tag-gold {
    background: rgba(184, 134, 11, 0.2);
    color: var(--dark-gold);
    border: 1px solid rgba(184, 134, 11, 0.3);
}

/* ============================================
   表单
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--moon-silver);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--card-bg);
    border: 1px solid rgba(139, 0, 0, 0.2);
    border-radius: 4px;
    color: var(--text-gray);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--blood-red);
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.15);
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    html { font-size: 14px; }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid rgba(139, 0, 0, 0.2);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .countdown-hourglass {
        flex-direction: column;
    }
    
    .hero-section {
        height: 80vh;
        min-height: 500px;
    }
    
    .page-banner {
        height: 250px;
    }
    
    .judge-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .countdown-numbers {
        gap: 10px;
    }
    
    .countdown-item .number {
        font-size: 1.8rem;
    }
}

/* ============================================
   动画类
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

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

.slide-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 血迹晕染效果 */
.blood-stain {
    position: relative;
}

.blood-stain::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blood-red), transparent);
    transition: width 0.5s ease;
}

.blood-stain:hover::after {
    width: 100%;
}

/* 下载页样式 */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.download-item {
    background: var(--card-bg);
    border: 1px solid rgba(139, 0, 0, 0.15);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.download-item:hover {
    border-color: rgba(139, 0, 0, 0.4);
    transform: translateY(-3px);
}

.download-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* 合规页样式 */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--text-gray);
}

.legal-content p {
    margin-bottom: 15px;
    color: var(--moon-silver);
    opacity: 0.8;
    line-height: 1.8;
}

.legal-content ul {
    margin: 10px 0 20px 20px;
    color: var(--moon-silver);
    opacity: 0.8;
}

.legal-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}
