/* ========================================
   Age Gate
   ======================================== */
.age-gate {
    position: fixed;
    inset: 0;
    background: rgba(26, 29, 35, 0.97);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.age-gate__inner {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    max-width: 440px;
    width: 90%;
    text-align: center;
}

.age-gate__icon {
    width: 64px;
    height: 64px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.age-gate__icon span {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.age-gate__inner h2 {
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 12px;
}

.age-gate__inner p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 32px;
}

.age-gate__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.age-gate__deny {
    background: none;
    color: var(--muted);
    border: 1.5px solid var(--border);
    padding: 15px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.age-gate__deny:hover {
    border-color: var(--muted);
    color: var(--ink);
}

.age-gate__warning {
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: #9CA3AF;
    letter-spacing: 0.3px;
    margin-bottom: 0;
}

/* ========================================
   Warning Bar
   ======================================== */
.warning-bar {
    background: var(--ink);
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.8px;
}

.warning-bar span {
    color: #FCD34D;
    font-weight: 600;
}

/* ========================================
   Nav
   ======================================== */
.site-nav {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(250, 248, 245, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
}

.site-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.0625rem;
    letter-spacing: -0.03em;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.brand img { height: 32px; width: auto; }

.brand-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links > a {
    text-decoration: none;
    color: var(--ink-light);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links > a:hover { color: var(--accent); }

.nav-links .btn-primary {
    padding: 10px 22px;
    font-size: 0.75rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: #ffffff !important;
    background: var(--accent) !important;
    letter-spacing: 0;
    text-decoration: none;
}

.nav-links .btn-primary:hover {
    background: var(--accent-hover) !important;
    color: #ffffff !important;
}

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--ink-light);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: color 0.2s;
    cursor: pointer;
}

.nav-dropdown-trigger:hover { color: var(--accent); }

.dropdown-arrow {
    font-size: 9px;
    transition: transform 0.25s ease;
    display: inline-block;
}

.nav-dropdown:hover .dropdown-arrow { transform: rotate(90deg); }

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 240px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    box-shadow: 0 16px 48px rgba(0,0,0,0.08);
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 11px 22px;
    font-size: 0.8125rem;
    color: var(--ink-light);
    text-decoration: none;
    transition: background 0.15s, color 0.15s, padding-left 0.15s;
}

.nav-dropdown-menu a:hover {
    background: var(--accent-light);
    color: var(--accent);
    padding-left: 28px;
}

/* News Dropdown */
.nav-dropdown-menu--news { min-width: 340px; }

.news-preview-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
}

.news-preview-item:hover { background: var(--accent-light); }

.news-preview-tag {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-preview-title {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
    transition: color 0.15s;
}

.news-preview-item:hover .news-preview-title { color: var(--accent); }

.news-preview-date {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--muted);
}

.news-preview-all {
    display: block;
    text-align: center;
    padding: 14px 22px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    border-top: 1px solid var(--border-light);
    margin-top: 4px;
    transition: background 0.15s;
}

.news-preview-all:hover { background: var(--accent-light); }

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========================================
   响应式
   ======================================== */
@media (max-width: 768px) {
    .warning-bar { font-size: 0.625rem; padding: 8px 12px; }

    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 24px 24px;
        gap: 4px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    }

    .nav-links.open { display: flex; }

    .nav-links > a {
        padding: 10px 0;
        width: 100%;
        font-size: 0.9375rem;
    }

    .nav-dropdown { width: 100%; }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--accent-light);
        border-radius: 0;
        padding: 4px 0 4px 12px;
        display: none;
    }

    .nav-dropdown:focus-within .nav-dropdown-menu { display: block; }

    .age-gate__inner { padding: 40px 24px; }
}