/* 风格参考：kasaneteto.jp (重音テト官网)
    配色方案：翡翠绿 (Emerald Green) & 黑白高对比
    适配环境：中国大陆 (移除Google Fonts，使用系统默认中文字体栈)
    响应式：移动端适配优化
*/

:root {
    --primary-color: #000000;
    --accent-color: #00A86B; /* 翡翠绿 */
    --accent-hover: #008f5b;
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --light-gray: #f4f4f4;
    --border-width: 3px; /* 更加硬朗的边框风格 */
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* 字体优化 - 移除Google Fonts，使用系统自带的高质量中英文字体 */
body {
    font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.7;
    font-weight: 400;
}

/* Newspaper Body Override */
body.newspaper-body {
    background-color: #f0e6d2; /* Old paper color */
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjZjBlNmQyIi8+CjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNkOWNhYjMiLz4KPC9zdmc+'); /* Subtle noise */
    font-family: "SimSun", "Songti SC", "Noto Serif SC", serif; /* 宋体/衬线体 */
    color: #2c2c2c;
}

/* Newspaper Container */
.paper-container {
    max-width: 1200px;
    margin: 100px auto 50px; /* Top margin for fixed navbar */
    padding: 20px;
    background: #fffbf0;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border: 1px solid #d4c5a9;
}

.paper-header {
    text-align: center;
    border-bottom: 2px double #000;
    padding-bottom: 20px;
    margin-bottom: 30px;
    position: relative;
}

.paper-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: bold;
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.paper-title {
    font-family: "Times New Roman", Times, serif; /* 英文报纸标题风格 */
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    margin: 0;
    letter-spacing: -2px;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

.paper-subtitle {
    font-size: 1.2rem;
    margin-top: 10px;
    font-style: italic;
    font-family: "KaiTi", "Kaiti SC", serif; /* 楷体作为副标题 */
}

.header-line {
    border-top: 1px solid #000;
    border-bottom: 4px solid #000;
    height: 8px;
    margin-top: 20px;
}

/* Grid Layout */
.paper-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto auto;
    gap: 20px;
}

/* Articles */
.paper-article {
    border: 1px solid #ccc;
    padding: 15px;
    background: #fff;
    position: relative;
}

.article-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-tag {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 2px 5px;
    font-size: 0.8rem;
    font-family: sans-serif;
    margin-bottom: 10px;
}

.paper-article h2 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 15px;
    font-weight: 900;
}

.paper-article h3 {
    font-size: 1.5rem;
    border-bottom: 2px solid #000;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.drop-cap {
    float: left;
    font-size: 3.5rem;
    line-height: 0.8;
    margin-right: 5px;
    font-weight: bold;
    font-family: "Times New Roman", serif;
}

.caption {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
    text-align: right;
    display: block;
    margin-top: 5px;
}

/* Specific Grid Areas */
.hero-article {
    grid-column: 1 / span 3;
    grid-row: 1 / span 2;
    border: 2px solid #000;
}

.hero-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top;
    display: block;
}

.vertical-col {
    grid-column: 4;
    grid-row: 1 / span 2;
    background: #f4f4f4;
    border-left: 1px solid #000;
}

.small-box {
    grid-column: 4;
    grid-row: 3;
    border: 3px double #000;
    background: #e6f7ff;
}

.img-box {
    grid-column: 1;
    grid-row: 3;
}

.wide-bottom {
    grid-column: 2 / span 2;
    grid-row: 3;
}

.ad-box {
    grid-column: 1 / span 4;
    margin-top: 20px;
    border: none;
    background: transparent;
}

/* Inner Layouts */
.cols-2 {
    column-count: 2;
    column-gap: 20px;
    text-align: justify;
}

.log-item {
    margin-bottom: 15px;
    border-bottom: 1px dashed #999;
    padding-bottom: 5px;
}

.log-item .date {
    font-weight: bold;
    color: var(--accent-color);
    margin-right: 5px;
    font-family: sans-serif;
}

.paper-footer {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #000;
    padding-top: 10px;
    font-size: 0.8rem;
    color: #666;
}

/* Mobile Responsiveness for Newspaper */
@media (max-width: 768px) {
    .paper-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .hero-article, .vertical-col, .small-box, .img-box, .wide-bottom, .ad-box {
        grid-column: 1;
        grid-row: auto;
    }

    .hero-image {
        height: auto;
        max-height: 400px; /* 防止图片过长 */
        object-fit: contain; /* 确保内容完整显示 */
        object-position: top;
        margin-bottom: 10px;
    }

    .paper-title {
        font-size: 3rem;
    }

    .paper-meta {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .cols-2 {
        column-count: 1;
    }
}

/* 选中文字颜色 */
::selection {
    background: var(--accent-color);
    color: #fff;
}

/* Flashlight Overlay */
#flashlight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99998; /* Below loading screen (99999) but above everything else */
    /* 默认全黑，中间透明 */
    background: radial-gradient(circle 200px at var(--cursor-x, 50%) var(--cursor-y, 50%), transparent 0%, rgba(0,0,0,0.95) 20%, rgba(0,0,0,0.98) 100%);
    pointer-events: none; /* Allows clicking through the light */
    opacity: 0;
    transition: opacity 0.5s ease;
    display: none; /* Hidden by default */
}

#flashlight-overlay.active {
    display: block;
    opacity: 1;
}

/* Promo Popup Animation */
#promo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 99990; /* Just below loading screen */
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.promo-content {
    position: relative;
    text-align: center;
    max-width: 80%;
    max-height: 80%;
}

.promo-img {
    max-width: 100%;
    max-height: 70vh;
    box-shadow: 10px 10px 0 rgba(0,0,0,0.5);
    border: 5px solid #fff;
    transform: translateX(-200%) rotate(-45deg); /* Initial state: off-screen left */
    opacity: 0;
}

.promo-img.animate {
    animation: flyInStick 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.promo-btn {
    margin-top: 30px;
    padding: 15px 40px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 5px 5px 0 #000;
    opacity: 0;
    transform: translateY(50px);
    transition: transform 0.2s, background 0.2s;
}

.promo-btn:hover {
    background: #000;
    transform: translateY(-2px);
}

.promo-btn.animate {
    animation: slideUpAppear 0.5s ease-out 0.8s forwards; /* Delay match img animation */
}

@keyframes flyInStick {
    0% {
        transform: translateX(-200%) rotate(-45deg);
        opacity: 0;
    }
    100% {
        transform: translateX(0) rotate(-5deg); /* Slight tilt for "stuck" look */
        opacity: 1;
    }
}

@keyframes slideUpAppear {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}


/* Sidebar Overlay */
#sidebar-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100%;
    background: #fff;
    z-index: 100001; /* Above almost everything except loading screen */
    box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    border-left: 3px solid #000;
}

#sidebar-overlay.active {
    transform: translateX(0);
}

.sidebar-header {
    background: #000;
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 900;
}

.close-sidebar-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    font-weight: bold;
}

.sidebar-content {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
}

.sidebar-form-group {
    margin-bottom: 20px;
}

.sidebar-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 0.9rem;
}

.sidebar-form-group input[type="text"],
.sidebar-form-group textarea,
.sidebar-form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #000;
    font-family: inherit;
    font-size: 0.9rem;
}

.sidebar-form-group textarea {
    height: 100px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: 15px;
    font-weight: 900;
    cursor: pointer;
    border: 2px solid #000;
    box-shadow: 5px 5px 0 #000;
    transition: all 0.2s;
}

.submit-btn:hover {
    background: #000;
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 rgba(0,0,0,0.2);
}

/* Sidebar Responsive */
@media (max-width: 480px) {
    #sidebar-overlay {
        width: 100%;
    }
}

/* Agreement Overlay Styles */
#agreement-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 100000; /* Highest priority */
    overflow-y: auto;
    padding: 20px;
    display: none; /* Default hidden, toggled via JS/inline styles */
    justify-content: center;
    align-items: flex-start; /* Align to top for scrolling */
}

.agreement-container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    padding: 50px;
    box-shadow: 10px 10px 0px rgba(0,0,0,0.1);
    border: 3px solid #000;
    width: 100%;
}

.agreement-container h1 {
    text-align: center;
    color: #000;
    margin-bottom: 40px;
    font-size: 24px;
    font-weight: 900;
    border-bottom: 2px solid #000;
    padding-bottom: 20px;
}

.agreement-section {
    margin-bottom: 30px;
}

.agreement-section h2 {
    font-size: 18px;
    color: #000;
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
    font-weight: 900;
}

.agreement-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-top: 20px;
    color: #333;
}

.agreement-section p, .agreement-section li {
    font-size: 14px;
    margin-bottom: 10px;
    text-align: justify;
    line-height: 1.8;
}

.agreement-section ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.highlight {
    font-weight: 700;
    color: var(--accent-color);
}

.agreement-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    text-align: center;
}

.agreement-btn {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 15px 40px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.agreement-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 5px 5px 0 rgba(0,0,0,0.2);
}

.agreement-note {
    font-size: 12px;
    color: #777;
    margin-bottom: 15px;
}

/* Loading Screen - 保持原有逻辑，优化颜色 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader {
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    overflow: hidden;
}

.loader::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--accent-color);
    animation: load 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes load {
    0% { left: -100%; }
    50% { left: 0%; }
    100% { left: 100%; }
}

/* Navigation - 官方风格：硬朗、高白、底部边框 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 2px solid #000; /* 加粗分割线 */
}

.logo {
    font-weight: 900;
    font-size: 26px;
    letter-spacing: 1px;
    color: #000;
    text-transform: uppercase;
    font-style: italic; /* 增加一点动感 */
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 40px;
    overflow-x: auto; /* 允许横向滚动 */
    max-width: 100%; /* 确保不超过容器宽度 */
    scrollbar-width: none; /* Firefox 隐藏滚动条 */
    -ms-overflow-style: none; /* IE/Edge 隐藏滚动条 */
    padding-bottom: 5px; /* 防止滚动条遮挡 */
    outline: none; /* 移除默认focus轮廓 */
    align-items: center;
}

.nav-links::-webkit-scrollbar {
    display: none; /* Chrome/Safari 隐藏滚动条 */
}

.nav-links a, .flashlight-toggle {
    text-decoration: none;
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
    white-space: nowrap; /* 防止换行 */
    flex-shrink: 0; /* 防止压缩 */
    cursor: pointer;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px; /* 更厚的下划线 */
    background: var(--accent-color);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-links a:hover, .flashlight-toggle:hover {
    color: var(--accent-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--accent-color);
}

.nav-links a.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    background-color: #fff;
    padding: 120px 10% 0;
}

/* 背景大字装饰 */
.hero-bg-text {
    position: absolute;
    font-size: 18vw;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px #f0f0f0; /* 仅描边效果 */
    z-index: 1;
    white-space: nowrap;
    pointer-events: none;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-5deg); /* 轻微倾斜 */
    opacity: 0.8;
}

.hero-info {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.sub-title {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 5px 15px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.main-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    color: #000;
}

.main-title span {
    color: var(--accent-color);
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #000;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.2);
}

/* 角色视觉图占位 */
.character-visual {
    position: relative;
    z-index: 2;
    height: 80vh;
    display: flex;
    align-items: flex-end;
}

.character-img {
    max-height: 100%;
    width: auto;
    filter: drop-shadow(10px 10px 0px rgba(0,168,107, 0.2)); /* 翡翠绿阴影 */
}

/* 通用Section样式 */
.content-section {
    padding: 100px 10%;
    position: relative;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 60px;
    text-transform: uppercase;
    position: relative;
    display: table; /* 包裹内容 */
    line-height: 1;
    z-index: 2;
}

/* 标题下的装饰块 */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--accent-color);
    z-index: -1;
}

/* Q&A 风格 */
.qa-container {
    max-width: 1000px;
    margin: 0 auto;
}

.qa-item {
    margin-bottom: 40px;
    padding: 30px;
    border: 3px solid #000; /* 硬边框 */
    background: #fff;
    box-shadow: 8px 8px 0px #000; /* 纯黑硬阴影 */
    transition: transform 0.2s;
}

.qa-item:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px var(--accent-color); /* hover变色阴影 */
}

.question {
    font-weight: 900;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #000;
}

.question::before {
    content: 'Q.';
    font-size: 2.5rem;
    color: var(--accent-color);
    line-height: 0.8;
    font-style: italic;
}

.answer {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.8;
    padding-left: 0;
    font-weight: 500;
    border-top: 1px dashed #ccc;
    padding-top: 15px;
    margin-top: 15px;
}

/* Staff Grid */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.staff-card {
    background: #fff;
    border: 3px solid #000;
    box-shadow: 10px 10px 0px #f0f0f0; /* 浅灰硬阴影 */
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 10px 15px 0px var(--accent-color);
    border-color: #000;
}

.staff-img-container {
    height: 320px;
    overflow: hidden;
    border-bottom: 3px solid #000;
    background: #000;
}

.staff-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    opacity: 0.9;
}

.staff-card:hover .staff-img-container img {
    transform: scale(1.1);
    opacity: 1;
}

.staff-info {
    padding: 30px;
}

.staff-info h3 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 5px;
    color: #000;
}

.staff-info p {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Wiki Style Styles */
.wiki-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border: 3px solid #000;
    box-shadow: 15px 15px 0px #000;
    padding: 40px;
}

.wiki-header {
    border-bottom: 3px solid #000;
    padding-bottom: 20px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.wiki-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 0.9;
}

.wiki-meta {
    font-size: 1.2rem;
    font-weight: 700;
    color: #666;
    text-align: right;
}

.wiki-content-wrapper {
    display: flex;
    gap: 50px;
}

.wiki-main-text {
    flex: 2;
    font-size: 1.1rem;
    line-height: 1.8;
}

.wiki-intro p {
    margin-bottom: 20px;
}

/* TOC */
.wiki-toc {
    background: #f9f9f9;
    border: 2px solid #000;
    padding: 20px;
    margin: 30px 0;
    display: inline-block;
    min-width: 250px;
}

.wiki-toc-title {
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
}

.wiki-toc ul {
    list-style: none;
    padding: 0;
}

.wiki-toc li {
    margin-bottom: 10px;
}

.wiki-toc a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s;
}

.wiki-toc a:hover {
    color: var(--accent-color);
}

.wiki-section-header {
    font-size: 2rem;
    font-weight: 900;
    margin: 50px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ccc;
    position: relative;
}

.wiki-section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
}

.wiki-trivia-box {
    background: rgba(0, 168, 107, 0.05);
    border-left: 5px solid var(--accent-color);
    padding: 20px;
    margin-top: 20px;
}

/* Infobox */
.wiki-infobox {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    border: 2px solid #000;
    background: #fff;
    align-self: flex-start;
}

.infobox-title {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 15px;
    font-weight: 900;
    font-size: 1.2rem;
}

.infobox-image {
    padding: 10px;
    background: #f9f9f9;
    text-align: center;
    border-bottom: 2px solid #000;
}

.infobox-image img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
}

.infobox-caption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

.infobox-data {
    width: 100%;
    border-collapse: collapse;
}

.infobox-data th, .infobox-data td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.infobox-data th {
    text-align: left;
    background: #f4f4f4;
    width: 40%;
    font-weight: 700;
    color: #333;
}

.infobox-data td {
    color: #000;
    font-weight: 500;
}

.infobox-data tr:last-child th, 
.infobox-data tr:last-child td {
    border-bottom: none;
}

/* Gallery/Fanart */
.gallery-grid {
    columns: 3 300px;
    column-gap: 30px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 30px;
    border: 3px solid #000;
    background: #000; /* 图片加载前的底色 */
    box-shadow: 6px 6px 0px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 0px var(--accent-color);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer */
footer {
    background: #000;
    color: #fff;
    padding: 60px 10%;
    text-align: center;
}

footer p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* =========================================
   Mobile Responsiveness (移动端适配)
   ========================================= */

@media (max-width: 768px) {
    /* Agreement 适配 */
    .agreement-container {
        padding: 30px 20px;
        margin: 20px auto;
    }

    /* 导航栏 - 变为上下结构或横向滚动 */
    .navbar {
        height: auto;
        min-height: 60px;
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
        background: rgba(255, 255, 255, 0.98);
    }

    .logo {
        margin-bottom: 10px;
        font-size: 22px;
    }

    /* 移动端菜单：采用横向滑动Tabs模式，符合现代App风格 */
    .nav-links {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        gap: 25px;
        /* 隐藏滚动条 */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a, .flashlight-toggle {
        font-size: 14px;
        padding: 5px 0;
    }

    /* Hero区域适配 */
    .hero-section {
        flex-direction: column-reverse;
        justify-content: flex-end;
        padding: 100px 5% 50px;
        height: auto;
        min-height: 100vh;
        text-align: left;
    }

    .hero-bg-text {
        font-size: 30vw;
        top: 20%;
        left: 50%;
        transform: translate(-50%, 0) rotate(90deg); /* 竖排装饰 */
        opacity: 0.1;
        color: #000;
        -webkit-text-stroke: 0;
    }

    .hero-info {
        width: 100%;
        margin-top: -20px;
    }

    .main-title {
        font-size: 3rem;
        margin-bottom: 20px;
    }
    
    .character-visual {
        width: 100%;
        height: 45vh;
        margin-bottom: 20px;
        justify-content: center;
    }

    .character-img {
        max-width: 90%;
        height: auto;
    }

    /* 内容区域适配 */
    .content-section {
        padding: 60px 5%;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
        border-bottom-width: 4px;
    }

    /* Wiki Mobile */
    .wiki-container {
        padding: 20px;
        box-shadow: 5px 5px 0px #000;
    }

    .wiki-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .wiki-title {
        font-size: 3rem;
    }

    .wiki-content-wrapper {
        flex-direction: column-reverse; /* Infobox on top or bottom? usually top on wiki, but bottom here for reading flow */
        gap: 30px;
    }

    .wiki-infobox {
        width: 100%;
        max-width: 100%;
    }
    
    .promo-content {
        max-width: 90%;
    }
    
    .promo-img {
        max-height: 50vh;
    }

    /* Q&A适配 */
    .qa-item {
        padding: 20px;
        box-shadow: 5px 5px 0px #000;
    }

    .question {
        font-size: 1.2rem;
        flex-direction: column;
        gap: 5px;
    }

    .question::before {
        font-size: 2rem;
        margin-bottom: 5px;
    }

    /* Staff适配 */
    .staff-grid {
        grid-template-columns: 1fr; /* 单列 */
        gap: 30px;
    }
    
    .staff-card {
        margin: 0 10px; /* 留出阴影空间 */
    }

    /* Gallery适配 */
    .gallery-grid {
        columns: 1; /* 单列瀑布流 */
    }
    
    .gallery-item {
        margin-bottom: 20px;
    }

    /* 按钮全宽 */
    .hero-btn {
        display: block;
        text-align: center;
        width: 100%;
    }
}

/* 针对超小屏幕优化 */
@media (max-width: 380px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* News Ticker */
.news-ticker {
    background: #000;
    color: #fff;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 2px solid #000;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}
.ticker-content span {
    display: inline-block;
}
.ticker-sep {
    margin: 0 30px;
    color: var(--accent-color);
}
@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
