/* ========================================
   反派组织档案库 - 主样式文件
   深色主题,宇宙档案气质
   ======================================== */

/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #1A1A1A;
    --bg-secondary: #242424;
    --text-primary: #E0E0E0;
    --text-secondary: #B0B0B0;
    --accent-red: #8B3A3A;
    --accent-green: #4A6B6B;
    --border-color: #333333;
    --font-chinese: "思源宋体", "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", serif;
    --font-latin: "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-chinese);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   浮动圆形导航菜单
   ======================================== */
.floating-nav {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.nav-toggle-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-red), #a04545);
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1001;
}

.nav-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 58, 58, 0.5);
}

.nav-toggle-btn.active {
    background: linear-gradient(135deg, var(--accent-green), #5a7b7b);
    transform: rotate(45deg);
}

.hamburger-icon {
    width: 24px;
    height: 2px;
    background-color: white;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: white;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    top: 8px;
}

.nav-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    background-color: rgba(36, 36, 36, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nav-menu-item {
    display: block;
    padding: 0.8rem 1.2rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.nav-menu-item:last-child {
    margin-bottom: 0;
}

.nav-menu-item:hover {
    background-color: rgba(139, 58, 58, 0.2);
    color: var(--text-primary);
    transform: translateX(-4px);
}

.nav-menu-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.5rem 0;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

/* ========================================
   头部区域 (Hero Section)
   ======================================== */
.hero-section {
    text-align: center;
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.site-title {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.site-definition {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 2rem;
}

/* 三把椅子符号 */
.chairs-symbol {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.chair {
    width: 40px;
    height: 35px;
    border: 2px solid var(--accent-red);
    border-radius: 3px;
    position: relative;
}

.chair::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: var(--accent-red);
}

/* ========================================
   核心理念区
   ======================================== */
.core-principles {
    margin-bottom: 3rem;
}

.principle-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--accent-green);
    background-color: var(--bg-secondary);
}

.principle-item p {
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* ========================================
   章节标题
   ======================================== */
.section-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-red);
    display: inline-block;
}

/* ========================================
   法律大纲速览
   ======================================== */
.laws-preview {
    margin-bottom: 3rem;
}

.laws-list {
    list-style: none;
    padding: 0;
}

.law-item {
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    background-color: var(--bg-secondary);
    border-left: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.law-item:hover {
    border-left-color: var(--accent-red);
    background-color: #2a2a2a;
}

.law-number {
    color: var(--accent-red);
    font-weight: bold;
    margin-right: 0.5rem;
    font-family: var(--font-latin);
}

.law-text {
    color: var(--text-primary);
}

.law-explanation {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: none;
}

.law-item.active .law-explanation {
    display: block;
}

.law-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--accent-green);
    text-decoration: none;
    font-size: 0.9rem;
}

.law-link:hover {
    text-decoration: underline;
}

/* ========================================
   入口卡片
   ======================================== */
.entry-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.entry-card {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.entry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.entry-card:hover::before {
    transform: scaleX(1);
}

.entry-card:hover {
    border-color: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.entry-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.entry-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   页脚
   ======================================== */
footer {
    background-color: var(--bg-secondary);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-chairs {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.footer-chair {
    width: 30px;
    height: 25px;
    border: 1.5px solid var(--accent-green);
    border-radius: 2px;
    position: relative;
}

.footer-chair::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 1.5px;
    background-color: var(--accent-green);
}

.footer-quote {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   引用标记样式
   ======================================== */
blockquote {
    border-left: 3px solid var(--accent-green);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background-color: var(--bg-secondary);
    font-style: italic;
    color: var(--text-secondary);
}

blockquote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: normal;
}

/* ========================================
   链接样式
   ======================================== */
a {
    color: var(--accent-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-red);
    text-decoration: underline;
}

/* ========================================
   辅助类
   ======================================== */
.text-muted {
    color: var(--text-secondary);
}

.text-accent {
    color: var(--accent-red);
}

.hidden {
    display: none;
}

.divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 2rem 0;
}

/* ========================================
   解密状态标记
   ======================================== */
.decryption-status {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-radius: 2px;
    margin-left: 0.5rem;
}

.missing-content {
    color: var(--text-secondary);
    font-style: italic;
}
