/* ==========================================
   暗夜无明 — 悬疑推理小说宣传页样式
   Dark Suspense Theme
   ========================================== */

/* --- CSS Variables --- */
:root {
    --color-bg-primary: #0a0a0f;
    --color-bg-secondary: #12121a;
    --color-bg-card: rgba(18, 18, 30, 0.8);
    --color-accent-gold: #d4a843;
    --color-accent-red: #8b2035;
    --color-accent-red-light: #c4384f;
    --color-accent-blue: #1a3a5c;
    --color-text-primary: #e8e6e3;
    --color-text-secondary: #9a9a9a;
    --color-text-muted: #5a5a6a;
    --color-border: rgba(212, 168, 67, 0.15);
    --color-glow: rgba(212, 168, 67, 0.4);
    --font-serif: 'Noto Serif SC', 'SimSun', serif;
    --font-sans: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent-gold) var(--color-bg-primary);
}

html::-webkit-scrollbar { width: 6px; }
html::-webkit-scrollbar-track { background: var(--color-bg-primary); }
html::-webkit-scrollbar-thumb { background: var(--color-accent-gold); border-radius: 3px; }

body {
    font-family: var(--font-sans);
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    overflow-x: hidden;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--color-accent-gold);
    color: var(--color-bg-primary);
}

/* --- Cursor Glow --- */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}
.cursor-glow.active { opacity: 1; }

/* --- Particle Canvas --- */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s var(--transition-smooth);
    backdrop-filter: blur(0px);
}
.navbar.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    padding: 0.8rem 3rem;
    border-bottom: 1px solid var(--color-border);
}
.nav-brand {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--color-accent-gold);
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px rgba(212, 168, 67, 0.3);
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent-gold);
    transition: width 0.3s var(--transition-smooth);
}
.nav-links a:hover { color: var(--color-accent-gold); }
.nav-links a:hover::after { width: 100%; }

/* ====== HERO SECTION ====== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(139, 32, 53, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(26, 58, 92, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(212, 168, 67, 0.05) 0%, transparent 40%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}
.hero-badge {
    display: inline-block;
    padding: 0.4rem 1.6rem;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--color-accent-gold);
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInDown 1s 0.5s var(--transition-smooth) forwards;
}

/* Title characters animation */
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: 0.15em;
}
.title-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px) scale(0.8);
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-accent-gold) 50%, var(--color-text-primary) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: charReveal 0.8s calc(0.8s + var(--i) * 0.2s) var(--transition-bounce) forwards,
               shimmer 4s 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(212, 168, 67, 0.2));
}

@keyframes charReveal {
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-tagline {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s 1.8s var(--transition-smooth) forwards;
}
.tagline-divider { color: var(--color-accent-gold); opacity: 0.5; }

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    opacity: 0;
    animation: fadeInUp 1s 2.2s var(--transition-smooth) forwards;
}
.meta-dot { color: var(--color-accent-gold); }

/* Scroll indicator - fixed at bottom of hero, no overlap */
.scroll-indicator-wrapper {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 1s 2.6s var(--transition-smooth) forwards;
    transition: color 0.3s ease;
}
.scroll-indicator:hover { color: var(--color-accent-gold); }
.scroll-arrow { animation: bounceDown 2s infinite; }
@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}

/* Floating elements */
.floating-elements {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.float-element {
    position: absolute;
    color: var(--color-accent-gold);
    opacity: 0.08;
    font-size: 1.5rem;
    animation: floatAround 20s linear infinite;
}
.fe-1 { top: 15%; left: 10%; animation-duration: 25s; font-size: 2rem; }
.fe-2 { top: 70%; left: 85%; animation-duration: 18s; animation-delay: -5s; }
.fe-3 { top: 30%; left: 75%; animation-duration: 22s; animation-delay: -10s; }
.fe-4 { top: 80%; left: 20%; animation-duration: 20s; animation-delay: -15s; }

@keyframes floatAround {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -40px) rotate(90deg); }
    50% { transform: translate(-20px, -80px) rotate(180deg); }
    75% { transform: translate(40px, -30px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* ====== SECTION COMMON ====== */
.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}
.section-header { text-align: center; margin-bottom: 4rem; }
.section-label {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: var(--color-accent-gold);
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 700;
}
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-text-primary), var(--color-accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent-gold), transparent);
    margin: 0 auto;
}

/* ====== SUSPENSE SECTION ====== */
.suspense {
    position: relative;
    z-index: 1;
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 50%, var(--color-bg-primary) 100%);
}
.suspense-intro { text-align: center; margin-bottom: 4rem; }
.intro-text {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--color-text-secondary);
    line-height: 2;
}
.highlight {
    color: var(--color-accent-gold);
    font-weight: 700;
    position: relative;
}
.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-accent-gold);
    opacity: 0.4;
}

/* Clue Grid */
.clue-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.clue-card {
    position: relative;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2.5rem;
    overflow: hidden;
    transition: all 0.5s var(--transition-smooth);
    cursor: default;
}
.clue-card::before {
    content: attr(data-number);
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(212, 168, 67, 0.04);
    font-family: var(--font-serif);
    line-height: 1;
    transition: color 0.5s ease;
}
.clue-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.clue-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 168, 67, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(212, 168, 67, 0.06);
}
.clue-card:hover::before { color: rgba(212, 168, 67, 0.08); }
.clue-card:hover::after { opacity: 1; }

.clue-icon {
    color: var(--color-accent-gold);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}
.clue-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
    position: relative;
    z-index: 1;
}
.clue-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}
.clue-stamp {
    position: absolute;
    bottom: 15px;
    right: 20px;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--color-accent-red-light);
    border: 1px solid var(--color-accent-red);
    padding: 0.2rem 0.8rem;
    border-radius: 2px;
    opacity: 0.4;
    transform: rotate(-5deg);
    font-weight: 700;
    transition: opacity 0.3s ease;
    z-index: 1;
}
.clue-card:hover .clue-stamp { opacity: 0.8; }

/* ====== QUOTES SECTION ====== */
.quotes {
    position: relative;
    z-index: 1;
    padding: 8rem 0;
    overflow: hidden;
    background: var(--color-bg-primary);
}
.quotes-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(8rem, 20vw, 20rem);
    font-weight: 900;
    font-family: var(--font-serif);
    color: rgba(212, 168, 67, 0.02);
    letter-spacing: 0.2em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.quote-block {
    text-align: center;
    padding: 3rem 0;
    position: relative;
}
.quote-mark {
    font-family: var(--font-serif);
    font-size: 4rem;
    color: var(--color-accent-gold);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
}
.quote-text {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--color-text-secondary);
    line-height: 2.2;
    border: none;
    font-style: normal;
}
.quote-highlight {
    color: var(--color-accent-gold);
    font-weight: 700;
    position: relative;
}
.quote-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent-gold), transparent);
    opacity: 0.5;
}

.quote-divider-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 0;
}
.divider-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border));
}
.divider-symbol {
    color: var(--color-accent-gold);
    opacity: 0.3;
    font-size: 0.8rem;
}

/* ====== INFO SECTION ====== */
.info {
    position: relative;
    z-index: 1;
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.4s var(--transition-smooth);
}
.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 168, 67, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}
.info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.info-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.info-value {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--color-text-primary);
    font-weight: 700;
}

/* CTA Button */
.cta-section { text-align: center; }
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--color-accent-gold), #b8922f);
    color: var(--color-bg-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.1em;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--transition-smooth);
}
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(212, 168, 67, 0.3);
}
.cta-glow {
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--color-accent-gold), transparent, var(--color-accent-gold));
    opacity: 0;
    z-index: -1;
    animation: ctaPulse 2s ease-in-out infinite;
}
@keyframes ctaPulse {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.05); }
}
.cta-button:hover .cta-glow { opacity: 1; }
.cta-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}
.cta-button:hover .cta-arrow { transform: translateX(4px); }
.cta-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ====== FOOTER ====== */
.footer {
    position: relative;
    z-index: 1;
    padding: 3rem 0;
    background: var(--color-bg-secondary);
}
.footer-content { text-align: center; }
.footer-line {
    width: 60px;
    height: 1px;
    background: var(--color-border);
    margin: 0 auto 2rem;
}
.footer-text {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 2;
    margin-bottom: 1.5rem;
}
.footer-badge {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: var(--color-accent-gold);
    opacity: 0.4;
    letter-spacing: 0.2em;
}

/* ====== ANIMATIONS ====== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal animations */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: all 0.8s var(--transition-smooth);
}
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .clue-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .navbar { padding: 1rem 1.5rem; }
    .navbar.scrolled { padding: 0.6rem 1.5rem; }
    .nav-links { gap: 1rem; }
    .nav-links a { font-size: 0.75rem; letter-spacing: 0.1em; }

    .hero-title { letter-spacing: 0.1em; }

    .clue-grid { grid-template-columns: 1fr; }
    .clue-card { padding: 2rem; }

    .info-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .glass-card { padding: 1.5rem 1rem; }

    .quote-text { font-size: 1rem; }

    .section-container { padding: 0 1.5rem; }
    .suspense, .quotes, .info { padding: 5rem 0; }
}

@media (max-width: 480px) {
    .nav-links { display: none; }
    .navbar { justify-content: center; }

    .hero-badge { font-size: 0.65rem; letter-spacing: 0.2em; }
    .hero-meta { flex-direction: column; gap: 0.3rem; }
    .meta-dot { display: none; }

    .info-grid { grid-template-columns: 1fr; }

    .clue-card { padding: 1.5rem; }
    .clue-card::before { font-size: 4rem; }

    .quote-mark { font-size: 3rem; }

    .cta-button { padding: 0.8rem 2rem; font-size: 0.9rem; }

    .cursor-glow { display: none; }
}

/* ====== SPECIAL EFFECTS ====== */

/* Glitch text effect on hover for section titles */
.section-title {
    position: relative;
}
.section-title:hover {
    animation: glitch 0.3s ease;
}
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* Scanning line effect */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent-gold), transparent);
    opacity: 0.1;
    z-index: 3;
    animation: scanLine 8s linear infinite;
}
@keyframes scanLine {
    0% { top: -2px; }
    100% { top: 100%; }
}

/* Noise overlay */
.hero-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

/* Vignette effect */
.hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 0;
    pointer-events: none;
}