@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Light Theme Variables (Default) */
    --bg-color: #fcfcfd;
    --bg-gradient-1: #e9efff;
    --bg-gradient-2: #fdfcff;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-tertiary: #6b7280;
    
    --brand-primary: #000000;
    --brand-primary-hover: #333333;
    --brand-accent: #2563eb;
    
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(0, 0, 0, 0.08);
    --card-shadow: 0 4px 24px -6px rgba(0, 0, 0, 0.05);
    
    --nav-bg: rgba(255, 255, 255, 0.8);
    --nav-border: rgba(0, 0, 0, 0.05);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
}

[data-theme="dark"] {
    /* Dark Theme Variables */
    --bg-color: #030712;
    --bg-gradient-1: #111827;
    --bg-gradient-2: #0f172a;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-tertiary: #6b7280;
    
    --brand-primary: #ffffff;
    --brand-primary-hover: #f3f4f6;
    --brand-accent: #3b82f6;
    
    --card-bg: rgba(17, 24, 39, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    --nav-bg: rgba(3, 7, 18, 0.7);
    --nav-border: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out);
    position: relative;
}

/* Dynamic Background Elements */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at 15% 50%, var(--bg-gradient-1), transparent 50%),
                radial-gradient(circle at 85% 30%, var(--bg-gradient-2), transparent 50%);
    opacity: 0.8;
    transition: all 0.5s ease;
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-blob-1 {
    top: -10%; left: -10%; width: 50vw; height: 50vw;
    background: rgba(59, 130, 246, 0.15);
    animation-delay: 0s;
}

.bg-blob-2 {
    bottom: -10%; right: -10%; width: 60vw; height: 60vw;
    background: rgba(139, 92, 246, 0.15);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 10%) scale(1.1); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
}

h1 { font-size: 4.5rem; }
h2 { font-size: 3rem; }
h3 { font-size: 1.5rem; }
p { font-size: 1rem; color: var(--text-secondary); }

.gradient-text {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

/* Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--nav-border);
    transition: transform 0.3s ease, background-color 0.5s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header.hidden {
    transform: translateY(-100%);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0;
}

.nav-logo span {
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-logo-img {
    height: 36px;
    width: auto;
    display: block;
    border-radius: 6px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease-out);
}

.nav-links a.active::after, .nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: var(--bg-color); /* Inverse */
}

.btn-primary:hover {
    background-color: var(--brand-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .btn-primary:hover {
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background-color: var(--card-bg);
    border-color: var(--text-tertiary);
}

/* 小号按钮：原先只在 settings.php 内联定义，提到全局供各页复用 */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* 论坛搜索 */
.search-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.search-input {
    flex: 1;
    min-width: 180px;
    padding: 11px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    backdrop-filter: blur(12px);
}

.search-input:focus { border-color: var(--brand-accent); }

.search-select {
    padding: 11px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-row {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}

.search-row:hover {
    border-color: var(--brand-accent);
    transform: translateY(-2px);
}

.search-main { flex: 1; min-width: 0; }
.search-title { font-weight: 600; font-size: 1rem; color: var(--text-primary); margin-bottom: 6px; }
.search-excerpt { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

.search-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.search-board {
    padding: 1px 8px;
    border-radius: 4px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--brand-accent);
    font-weight: 600;
}

.search-hit {
    background: rgba(245, 158, 11, 0.25);
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}

/* 导航栏通知铃铛 */
.nav-bell {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    padding: 4px !important;
}

.nav-bell svg {
    width: 20px;
    height: 20px;
}

.nav-bell::after { display: none !important; }

.nav-bell-badge {
    position: absolute;
    top: -2px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: var(--radius-full);
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

/* 通知列表 */
.notif-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    transition: border-color 0.2s;
}

.notif-item.unread {
    border-left: 3px solid var(--brand-accent);
    background: rgba(37, 99, 235, 0.04);
}

.notif-item:hover { border-color: var(--brand-accent); }
.notif-icon { font-size: 1.2rem; line-height: 1.4; flex-shrink: 0; }
.notif-main { flex: 1; min-width: 0; }
.notif-title { font-weight: 600; font-size: 0.95rem; color: var(--text-primary); }
.notif-title a { color: inherit; text-decoration: none; }
.notif-title a:hover { color: var(--brand-accent); }
.notif-content { font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; word-break: break-word; }
.notif-time { font-size: 0.75rem; color: var(--text-tertiary); margin-top: 6px; }

.notif-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.notif-btn {
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 0.78rem;
    cursor: pointer;
    padding: 2px 4px;
    white-space: nowrap;
}

.notif-btn:hover { color: var(--brand-accent); }
.notif-btn.danger:hover { color: #ef4444; }

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
}

.theme-toggle:hover {
    background-color: var(--card-bg);
    color: var(--text-primary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.sun-icon, .moon-icon { transition: all 0.3s var(--ease-out); }
[data-theme="dark"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: none; }
:root:not([data-theme="dark"]) .moon-icon { display: none; }


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 72px; /* Offset nav */
    position: relative;
}

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.hero-badge {
    padding: 6px 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: 5.5rem;
    letter-spacing: 0;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.375rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.server-ip-box {
    margin-top: 24px;
    padding: 16px 32px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: copy;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.server-ip-box:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: var(--brand-accent);
    box-shadow: var(--card-shadow);
}

.server-ip-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.server-ip-domain {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: monospace;
    color: var(--text-primary);
}

/* 服务器实时状态条（首页 IP 框下方） */
.status-bar {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--text-tertiary);
}

.status-dot.online {
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    animation: status-pulse 2s infinite;
}

.status-dot.offline { background: #ef4444; }
.status-dot.loading { animation: status-blink 1.2s infinite; }

@keyframes status-pulse {
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes status-blink {
    50% { opacity: 0.3; }
}

.status-text { font-weight: 600; color: var(--text-primary); }
.status-sep { color: var(--text-tertiary); }
.status-players strong { color: var(--brand-accent); font-size: 1rem; }
.status-ver, .status-motd { color: var(--text-tertiary); font-size: 0.8rem; }
.status-motd {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Cards & Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.4s var(--ease-spring);
    position: relative;
    transform-style: preserve-3d;
}

.card-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    mix-blend-mode: overlay;
}

.card:hover .card-glare {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    display: inline-block;
    transform: translateZ(30px);
}

.card h3 {
    margin-bottom: 16px;
    transform: translateZ(20px);
}

.card p {
    transform: translateZ(10px);
    line-height: 1.7;
}

/* Content Sections */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px auto;
}

.section-header p {
    margin-top: 16px;
    font-size: 1.125rem;
}

.content-block {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 64px;
    backdrop-filter: blur(12px);
    margin-bottom: 32px;
}

.content-block p {
    margin-bottom: 16px;
    font-size: 1.125rem;
    line-height: 1.8;
}

.content-block p:last-child {
    margin-bottom: 0;
}

/* Rules List */
.rules-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 48px;
}

.rule-group {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rule-group:hover {
    transform: translateX(8px);
    box-shadow: var(--card-shadow);
    border-color: var(--text-tertiary);
}

.rule-group h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.rule-group ul {
    list-style: none;
}

.rule-group ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.rule-group ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-tertiary);
    transition: background-color 0.3s ease;
}

.rule-group:hover ul li::before {
    background-color: var(--brand-accent);
}

/* Whitelist Methods */
.whitelist-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.method-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.method-card:hover {
    border-color: var(--text-tertiary);
}

.method-card h3 {
    margin-bottom: 16px;
}

.method-card .highlight {
    font-size: 3rem;
    font-weight: 800;
    font-family: monospace;
    color: var(--brand-accent);
    margin: 24px 0;
    letter-spacing: 0.05em;
}

/* Ban List */
.ban-list { display: flex; flex-direction: column; gap: 12px; }

.ban-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    backdrop-filter: blur(12px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ban-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
    border-color: var(--text-tertiary);
}

.ban-avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    flex-shrink: 0;
    image-rendering: pixelated;
    background: var(--bg-color);
}

.ban-info { flex: 1; min-width: 0; }
.ban-name { font-weight: 600; color: var(--text-primary); font-size: 1.05rem; margin-bottom: 4px; word-break: break-all; }
.ban-reason { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 6px; }
.ban-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.8rem; color: var(--text-tertiary); }

.ban-status {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}
.ban-status.active { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.ban-status.lifted { background: rgba(16, 185, 129, 0.12); color: #10b981; }

/* Pager */
.pager { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 40px; }
.pager .btn.disabled { opacity: 0.45; pointer-events: none; }
.pager-info { color: var(--text-secondary); font-size: 0.9rem; }

/* Forum: board index */
.board-list { display: flex; flex-direction: column; gap: 14px; }
.board-row {
    display: flex; align-items: center; gap: 18px;
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: var(--radius-md); padding: 20px 24px; text-decoration: none;
    backdrop-filter: blur(12px); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.board-row:hover { transform: translateY(-2px); box-shadow: var(--card-shadow); border-color: var(--text-tertiary); }
.board-icon { width: 48px; height: 48px; border-radius: var(--radius-md); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand-accent), #8b5cf6); }
.board-main { flex: 1; min-width: 0; }
.board-name { font-weight: 600; font-size: 1.1rem; color: var(--text-primary); display: flex; align-items: center; gap: 10px; }
.board-desc { font-size: .875rem; color: var(--text-tertiary); margin-top: 4px; }
.board-tag { font-size: .7rem; font-weight: 500; padding: 2px 8px; border-radius: var(--radius-full); background: rgba(239,68,68,.1); color: #ef4444; }
.board-meta { text-align: right; flex-shrink: 0; }
.board-count { font-weight: 600; color: var(--text-secondary); font-size: .9rem; }
.board-latest { font-size: .8rem; color: var(--text-tertiary); margin-top: 4px; max-width: 200px; }

/* Forum: thread list */
.crumb { font-size: .9rem; color: var(--text-tertiary); }
.crumb a { color: var(--text-secondary); text-decoration: none; }
.crumb a:hover { color: var(--text-primary); }
.thread-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.thread-list { display: flex; flex-direction: column; gap: 10px; }
.thread-row {
    display: flex; align-items: center; gap: 14px;
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: var(--radius-md); padding: 14px 18px; text-decoration: none;
    transition: transform .15s ease, border-color .15s ease;
}
.thread-row:hover { transform: translateX(4px); border-color: var(--text-tertiary); }
.thread-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.thread-main { flex: 1; min-width: 0; }
.thread-title { font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.thread-sub { font-size: .8rem; color: var(--text-tertiary); margin-top: 2px; }
.thread-stat { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: .8rem; color: var(--text-tertiary); flex-shrink: 0; }
.t-badge { font-size: .7rem; font-weight: 600; padding: 1px 7px; border-radius: 4px; }
.t-badge.pin { background: rgba(245,158,11,.14); color: #d97706; }
.t-badge.lock { background: rgba(107,114,128,.16); color: #6b7280; }

/* Forum: thread detail */
.thread-post { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 32px; backdrop-filter: blur(12px); }
.thread-post-title { font-size: 1.6rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.thread-post-by { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--card-border); margin-bottom: 20px; }
.thread-post-body { color: var(--text-secondary); line-height: 1.8; word-break: break-word; }
.thread-post .post-image { margin-top: 16px; }
.comment-quote-ref { font-size: .82rem; color: var(--text-tertiary); background: var(--bg-color); border-left: 3px solid var(--card-border); padding: 6px 10px; border-radius: 6px; margin-bottom: 6px; }
.comment-quote { margin-left: 4px; background: none; border: none; color: var(--text-tertiary); cursor: pointer; font-size: .75rem; }
.comment-quote:hover { color: var(--brand-accent); }
.reply-form { margin-top: 24px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-md); padding: 20px; }
.reply-form textarea { width: 100%; padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid var(--card-border); background: var(--bg-color); color: var(--text-primary); outline: none; resize: vertical; min-height: 90px; }
.reply-form textarea:focus { border-color: var(--brand-accent); }
.quote-indicator { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--text-secondary); background: var(--bg-color); padding: 8px 12px; border-radius: 6px; margin-bottom: 10px; }
.quote-clear { color: var(--brand-accent); cursor: pointer; }
.post-action.admin-act { color: var(--text-tertiary); }
.post-action.admin-act:hover { color: var(--brand-accent); }

/* Forum: post image + action bar + comments (全局，供 thread.php 使用) */
.post-image { max-width: 100%; border-radius: var(--radius-md); max-height: 480px; object-fit: cover; display: block; }
.post-actions { display: flex; align-items: center; gap: 18px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--card-border); }
.post-action { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; color: var(--text-tertiary); font-size: .9rem; padding: 4px 8px; border-radius: var(--radius-md); transition: color .2s, background .2s; }
.post-action:hover { color: var(--text-secondary); background: var(--bg-color); }
.post-action.liked { color: #ef4444; }
.post-action.liked svg { fill: #ef4444; }
.post-action svg { width: 18px; height: 18px; }
.post-action.danger:hover { color: #ef4444; }
.post-action.disabled { cursor: not-allowed; opacity: .55; }
.like-count { font-variant-numeric: tabular-nums; }

.comments { margin-top: 8px; }
.comment-item { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--card-border); }
.comment-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-main { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.comment-name { font-weight: 600; font-size: .9rem; color: var(--text-primary); }
.comment-time { font-size: .75rem; color: var(--text-tertiary); }
.comment-text { font-size: .92rem; color: var(--text-secondary); line-height: 1.6; word-break: break-word; }
.comment-del { margin-left: auto; background: none; border: none; color: var(--text-tertiary); cursor: pointer; font-size: .75rem; }
.comment-del:hover { color: #ef4444; }

/* ===== 通知系统：toast + 确认框 ===== */
.toast-wrap { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.ui-toast { padding: 12px 22px; border-radius: var(--radius-full); font-weight: 500; font-size: .92rem; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.2); opacity: 0; transform: translateY(-14px); transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); max-width: 90vw; }
.ui-toast.show { opacity: 1; transform: translateY(0); }
.ui-toast-success { background: #10b981; }
.ui-toast-error { background: #ef4444; }
.ui-toast-info { background: var(--text-primary); color: var(--bg-color); }

.ui-modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); backdrop-filter: blur(2px); z-index: 3001; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; transition: opacity .2s; }
.ui-modal-mask.show { opacity: 1; }
.ui-modal { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 28px; max-width: 380px; width: 100%; backdrop-filter: blur(16px); transform: scale(.94); transition: transform .2s var(--ease-spring); }
.ui-modal-mask.show .ui-modal { transform: scale(1); }
.ui-modal-body { color: var(--text-primary); font-size: 1rem; line-height: 1.6; margin-bottom: 24px; }
.ui-modal-actions { display: flex; gap: 12px; justify-content: flex-end; }
.ui-modal-actions .btn { padding: 8px 20px; }

/* ===== 文件上传按钮统一美化（无需改结构） ===== */
input[type="file"] { font-size: .9rem; color: var(--text-tertiary); max-width: 100%; }
input[type="file"]::file-selector-button {
    margin-right: 12px; padding: 9px 18px; border-radius: var(--radius-md);
    border: 1px solid var(--card-border); background: var(--bg-color); color: var(--text-primary);
    cursor: pointer; font-weight: 500; font-size: .9rem; transition: border-color .2s, color .2s, background .2s;
}
input[type="file"]::file-selector-button:hover { border-color: var(--brand-accent); color: var(--brand-accent); }

/* ===== 人机验证勾选框（腾讯验证码触发） ===== */
.hcaptcha-box {
    display: flex; align-items: center; gap: 12px;
    border: 1px solid var(--card-border); border-radius: var(--radius-md);
    background: var(--bg-color); padding: 13px 16px; cursor: pointer; user-select: none;
    transition: border-color .2s, box-shadow .2s;
}
.hcaptcha-box:hover { border-color: var(--brand-accent); box-shadow: 0 2px 10px -4px var(--brand-accent); }
.hcaptcha-check {
    width: 24px; height: 24px; border: 2px solid var(--text-tertiary); border-radius: 6px;
    flex-shrink: 0; position: relative; transition: all .2s; background: #fff;
}
.hcaptcha-label { font-size: .95rem; color: var(--text-primary); font-weight: 500; }
.hcaptcha-brand { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--text-tertiary); font-size: .72rem; line-height: 1.2; }
.hcaptcha-brand svg { width: 22px; height: 22px; color: var(--brand-accent); }
.hcaptcha-box.checked { border-color: #10b981; cursor: default; }
.hcaptcha-box.checked:hover { box-shadow: none; }
.hcaptcha-box.checked .hcaptcha-check { background: #10b981; border-color: #10b981; }
.hcaptcha-box.checked .hcaptcha-check::after {
    content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.hcaptcha-box.checked .hcaptcha-label { color: #10b981; }

@media (max-width: 560px) {
    .ban-row { flex-wrap: wrap; }
    .ban-status { order: -1; margin-left: auto; }
}

/* Alerts */
.alert {
    padding: 16px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-weight: 500;
    display: inline-block;
    backdrop-filter: blur(8px);
}

.alert-red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .alert-red { color: #f87171; }
[data-theme="dark"] .alert-blue { color: #60a5fa; }

/* Footer */
.footer {
    padding: 48px 0;
    text-align: center;
    border-top: 1px solid var(--nav-border);
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-disclaimer {
    margin: 16px auto 0 auto;
    max-width: 720px;
    font-size: 0.75rem;
    line-height: 1.7;
    color: var(--text-tertiary);
}

/* Animation Engine Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease-out);
    will-change: opacity, transform;
}

.stagger-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 500;
    opacity: 0;
    transition: all 0.4s var(--ease-spring);
    z-index: 1000;
    box-shadow: var(--card-shadow);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Screenshot Gallery (Bento) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 16px;
    margin-top: 16px;
}

.gallery-item {
    position: relative;
    grid-column: span 2;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    cursor: zoom-in;
    background: var(--card-bg);
}

.gallery-item.gallery-feature {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-out);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 16px 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    pointer-events: none;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
    backdrop-filter: blur(4px);
}

.lightbox.open {
    display: flex;
    animation: lb-fade 0.25s var(--ease-out);
}

.lightbox img {
    max-width: 95%;
    max-height: 90vh;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes lb-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-item, .gallery-item.gallery-feature {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* 移动端汉堡按钮（由 main.js 注入），桌面端隐藏 */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    line-height: 0;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 768px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* 导航折叠成从顶栏下拉的面板 */
    .nav-links {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 24px 16px;
        background: var(--nav-bg);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--nav-border);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.3s var(--ease-out), opacity 0.3s var(--ease-out), padding 0.3s var(--ease-out);
    }

    .nav-links.open {
        max-height: 80vh;
        opacity: 1;
        pointer-events: auto;
        overflow-y: auto;
    }

    .nav-links li { width: 100%; }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 14px 4px;
        border-bottom: 1px solid var(--nav-border);
    }

    .nav-links a::after { display: none; }

    .nav-links li:last-child {
        display: flex;
        justify-content: flex-start;
        padding-top: 8px;
    }

    .section {
        padding: 80px 0;
    }

    .content-block {
        padding: 32px;
    }
}

@media (max-width: 560px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }
}

/* =====================================================================
   YLG visual refresh: homepage and shared chrome
   ===================================================================== */
:root:not([data-theme="dark"]) {
    --bg-color: #f7faff;
    --bg-gradient-1: #edf5ff;
    --bg-gradient-2: #f8fbff;
    --text-primary: #0b1730;
    --text-secondary: #5f6f87;
    --text-tertiary: #8a99ad;
    --brand-primary: #1769e8;
    --brand-primary-hover: #0d58cd;
    --brand-accent: #1769e8;
    --card-bg: #ffffff;
    --card-border: #e2eaf4;
    --card-shadow: 0 18px 40px rgba(24, 65, 123, .09);
    --nav-bg: #061a38;
    --nav-border: rgba(255, 255, 255, .1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

html { background: var(--bg-color); }
body { background: var(--bg-color); color: var(--text-primary); }
.bg-mesh { display: none; }
.container { max-width: 1200px; padding-left: 24px; padding-right: 24px; }

/* Shared navigation */
.header {
    height: 56px;
    background: rgba(6, 26, 56, .97);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 4px 18px rgba(3, 17, 39, .12);
}
.navbar { height: 56px; }
.header .nav-logo { color: #fff; gap: 8px; font-size: 17px; letter-spacing: 0; }
.nav-logo-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    padding: 1px;
}
.nav-logo-copy { display: inline-flex; align-items: baseline; gap: 5px; }
.nav-logo-copy b { font-weight: 800; }
.nav-logo-copy > span { color: rgba(255, 255, 255, .84); font-weight: 500; }
.header .nav-links { gap: clamp(12px, 2.2vw, 27px); margin-left: auto; }
.header .nav-links a {
    color: rgba(255, 255, 255, .8);
    font-size: .83rem;
    font-weight: 600;
    white-space: nowrap;
}
.header .nav-links a:hover,
.header .nav-links a.active { color: #fff; }
.header .nav-links a::after {
    bottom: -17px;
    height: 2px;
    background: #4d98ff;
}
.header .nav-links .nav-admin {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border-radius: 5px;
    color: #fff;
    background: #1769e8;
    box-shadow: 0 5px 13px rgba(23, 105, 232, .3);
}
.header .nav-links .nav-admin::after { display: none; }
.header .nav-links .nav-account-link { color: rgba(255, 255, 255, .65); }
.header .nav-links .nav-account-link:hover { color: #fff; }
.header .theme-toggle { color: rgba(255, 255, 255, .8); padding: 5px; }
.header .theme-toggle:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.header .theme-toggle svg { width: 19px; height: 19px; }
.header .nav-bell { color: rgba(255, 255, 255, .85); }
.header .nav-bell-badge { top: -4px; right: -7px; }
.nav-icon-item { display: flex; align-items: center; }

/* Homepage hero */
.home-hero {
    position: relative;
    min-height: 460px;
    height: min(520px, 52vw);
    overflow: hidden;
    color: #fff;
    background: #071c3c;
}
.home-hero-media,
.home-hero-scrim,
.home-hero-grid { position: absolute; inset: 0; }
.home-hero-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 54%;
    filter: saturate(.9) contrast(1.05);
}
.home-hero-scrim {
    background: linear-gradient(90deg, rgba(3, 19, 49, .94) 0%, rgba(3, 26, 67, .78) 41%, rgba(6, 43, 91, .2) 100%);
}
.home-hero-grid {
    opacity: .13;
    background-image: linear-gradient(rgba(119, 185, 255, .27) 1px, transparent 1px), linear-gradient(90deg, rgba(119, 185, 255, .27) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: linear-gradient(90deg, #000, transparent 78%);
}
.home-hero-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 56px;
    padding-bottom: 42px;
}
.home-hero-copy { max-width: 630px; }
.home-hero-title { margin: 0; color: #fff; letter-spacing: 0; }
.home-hero-brand {
    display: block;
    font-size: 5.35rem;
    font-weight: 800;
    line-height: .98;
    letter-spacing: 0;
}
.home-hero-promise {
    display: block;
    max-width: 610px;
    margin-top: 17px;
    font-size: 3.1rem;
    font-weight: 750;
    line-height: 1.18;
    letter-spacing: 0;
}
.home-hero-line { white-space: nowrap; }
.home-hero-subtitle {
    margin: 20px 0 0;
    color: rgba(255, 255, 255, .86);
    font-size: 1.24rem;
    font-weight: 500;
}
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 26px; }
.home-btn {
    min-height: 42px;
    padding: 10px 21px;
    border-radius: 5px;
    gap: 12px;
    font-size: .91rem;
    font-weight: 700;
}
.home-btn svg { width: 17px; height: 17px; flex: none; }
.home-btn-primary { color: #fff; background: #1769e8; box-shadow: 0 10px 22px rgba(0, 79, 202, .24); }
.home-btn-primary:hover { color: #fff; background: #2b7af3; transform: translateY(-2px); }
.home-btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .55); background: rgba(7, 31, 68, .2); }
.home-btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .1); }
.home-server-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 21px;
    padding: 0;
    border: 0;
    color: rgba(255, 255, 255, .72);
    background: transparent;
    font: inherit;
    font-size: .82rem;
    cursor: copy;
}
.home-server-pill strong { color: #fff; font-weight: 700; letter-spacing: .02em; }
.home-server-copy { color: rgba(255, 255, 255, .5); }
.home-server-dot { width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; }
.home-server-dot.is-online { background: #3ee08d; box-shadow: 0 0 0 4px rgba(62, 224, 141, .14); }
.home-announcement {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 8px 12px;
    color: #eaf3ff;
    border: 1px solid rgba(116, 181, 255, .4);
    border-radius: 5px;
    background: rgba(11, 79, 161, .45);
    font-size: .82rem;
}
.home-announcement[hidden] { display: none; }
.home-announcement button { padding: 0; border: 0; color: inherit; background: none; cursor: pointer; font-size: 1.2rem; line-height: 1; }

/* Stats band */
.home-stats { background: #fff; border-bottom: 1px solid #e8eef7; }
.home-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.home-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 118px;
    padding: 20px 28px;
    border-right: 1px solid #e5ebf4;
}
.home-stat:last-child { border-right: 0; }
.home-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: none;
    color: #1769e8;
    border-radius: 50%;
    background: #eaf3ff;
}
.home-stat-icon svg { width: 23px; height: 23px; }
.home-stat span:last-child { display: flex; flex-direction: column; min-width: 0; }
.home-stat strong { color: #0a1730; font-size: 1.72rem; line-height: 1.1; letter-spacing: 0; }
.home-stat small { margin-top: 5px; color: #344765; font-size: .84rem; font-weight: 700; }
.home-stat em { margin-top: 1px; color: #8a99ad; font-size: .72rem; font-style: normal; white-space: nowrap; }

/* Homepage sections */
.home-section { padding: 48px 0; }
.home-features { padding: 38px 0 46px; background: #f1f7ff; }
.home-section-heading { margin: 0 auto 22px; text-align: center; }
.home-section-heading h2 { margin: 7px 0 9px; color: #0c1b35; font-size: 2.25rem; letter-spacing: 0; }
.home-section-heading > p:last-child { color: #73839b; font-size: .9rem; }
.home-eyebrow { color: #1769e8 !important; font-size: .68rem !important; font-weight: 800; letter-spacing: .16em; }
.home-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.home-feature-card {
    display: flex;
    flex-direction: column;
    min-height: 190px;
    padding: 20px;
    border: 1px solid #e1eaf6;
    border-radius: 8px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 12px 28px rgba(42, 86, 140, .06);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.home-feature-card:hover { border-color: #b6d1f4; box-shadow: 0 18px 36px rgba(42, 86, 140, .12); transform: translateY(-4px); }
.home-feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; color: #1769e8; border-radius: 50%; background: #e9f2ff; }
.home-feature-icon svg { width: 21px; height: 21px; }
.home-feature-card h3 { margin: 18px 0 9px; color: #0b1730; font-size: 1.1rem; }
.home-feature-card p { color: #6e7f97; font-size: .78rem; line-height: 1.7; }
.home-feature-card a { margin-top: auto; color: #1769e8; font-size: 1.8rem; line-height: 1; text-decoration: none; }
.home-worlds { background: #fff; padding-top: 40px; padding-bottom: 14px; }
.world-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.world-card {
    display: block;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    color: inherit;
    background: transparent;
    text-align: left;
    cursor: zoom-in;
}
.world-card-image { display: block; overflow: hidden; aspect-ratio: 1.76; border-radius: 8px; background: #dce9f8; }
.world-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.world-card:hover .world-card-image img { transform: scale(1.05); }
.world-card-copy { display: flex; flex-direction: column; gap: 4px; padding: 10px 2px 0; }
.world-card-copy strong { color: #142542; font-size: .9rem; }
.world-card-copy small { overflow: hidden; color: #8090a7; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
/* Homepage CTA */
.home-cta { position: relative; min-height: 164px; margin-bottom: 0; overflow: hidden; border-radius: 8px 8px 0 0; color: #fff; background: #092c68; }
.home-cta-image, .home-cta-scrim { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-cta-image { display: block; object-fit: cover; object-position: center 48%; opacity: .72; }
.home-cta-scrim { background: rgba(3, 25, 65, .72); }
.home-cta-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 164px; padding: 22px 24px; text-align: center; }
.home-cta-content h2 { color: #fff; font-size: 2.7rem; letter-spacing: 0; }
.home-cta-content p { margin: 7px 0 17px; color: rgba(255, 255, 255, .85); font-size: .9rem; }
.home-btn-light { color: #1769e8; background: #fff; box-shadow: 0 8px 18px rgba(0, 0, 0, .12); }
.home-btn-light:hover { color: #0d58cd; background: #f4f8ff; transform: translateY(-2px); }

/* Homepage contact */
.home-contact { padding: 44px 0 52px; background: #f1f7ff; border-top: 1px solid #e6eef9; }
.home-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.home-contact-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    border: 1px solid #e1eaf6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(42, 86, 140, .06);
}
.home-contact-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; color: #1769e8; }
.home-contact-icon svg { width: 21px; height: 21px; }
.home-contact-card h3 { margin: 14px 0 9px; color: #0b1730; font-size: 1.1rem; }
.home-contact-card p { margin-bottom: 16px; color: #6e7f97; font-size: .78rem; line-height: 1.7; }
.home-contact-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-top: auto;
    padding: 11px 14px;
    border: 1px solid #dbe7f7;
    border-radius: 6px;
    color: #1769e8;
    background: #f7fbff;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .24s ease, background .24s ease;
}
.home-contact-value:hover { border-color: #b6d1f4; background: #eaf3ff; }
.home-contact-value strong { font-size: 1rem; }
.home-contact-value span { color: #8496ae; font-size: .72rem; white-space: nowrap; }

/* Shared footer */
.site-footer { padding: 30px 0 14px; color: #aab9ce; background: #061a38; border-top: 0; text-align: left; }
.footer-main { display: grid; grid-template-columns: 1.65fr 1fr 1fr 1.2fr; gap: 30px; padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand { padding-right: 20px; }
.footer-logo { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-size: 1.02rem; font-weight: 600; text-decoration: none; }
.footer-logo img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #fff; padding: 1px; }
.footer-logo b { font-weight: 800; }
.footer-brand p { margin-top: 9px; color: #8fa2bd; font-size: .74rem; }
.footer-brand p + p { margin-top: 4px; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-column h2 { margin-bottom: 6px; color: #fff; font-size: .79rem; font-weight: 700; }
.footer-column a, .footer-column p { color: #8fa2bd; font-size: .77rem; text-decoration: none; }
.footer-column a:hover { color: #fff; }
.footer-server p { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin: 0; }
.footer-server p span { color: #8fa2bd; }
.footer-server p strong { color: #dbe8fa; font-weight: 500; }
.footer-online { color: #42d995 !important; }
.footer-online i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: #42d995; vertical-align: middle; }
.site-footer .footer-disclaimer { max-width: none; margin: 11px 0 0; color: #6f829f; font-size: .64rem; line-height: 1.5; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 11px; }
.footer-bottom p, .footer-bottom a { color: #7f91aa; font-size: .7rem; }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* Theme-aware surface adjustments */
[data-theme="dark"] body.home-page { background: #071a35; }
[data-theme="dark"] .home-stats,
[data-theme="dark"] .home-worlds { background: #0a213f; border-color: rgba(255, 255, 255, .08); }
[data-theme="dark"] .home-features { background: #071a35; }
[data-theme="dark"] .home-stat { border-color: rgba(255, 255, 255, .1); }
[data-theme="dark"] .home-stat strong,
[data-theme="dark"] .home-stat small,
[data-theme="dark"] .home-section-heading h2,
[data-theme="dark"] .home-feature-card h3,
[data-theme="dark"] .world-card-copy strong { color: #f5f8ff; }
[data-theme="dark"] .home-stat em,
[data-theme="dark"] .home-section-heading > p:last-child,
[data-theme="dark"] .home-feature-card p,
[data-theme="dark"] .world-card-copy small { color: #9eb0c8; }
[data-theme="dark"] .home-feature-card { border-color: rgba(255, 255, 255, .1); background: rgba(13, 39, 72, .9); }
[data-theme="dark"] .home-contact { background: #0a213f; border-color: rgba(255, 255, 255, .08); }
[data-theme="dark"] .home-contact-card { border-color: rgba(255, 255, 255, .1); background: rgba(13, 39, 72, .9); }
[data-theme="dark"] .home-contact-card h3 { color: #f5f8ff; }
[data-theme="dark"] .home-contact-card p { color: #9eb0c8; }
[data-theme="dark"] .home-contact-value { border-color: rgba(255, 255, 255, .12); color: #7fb4ff; background: rgba(255, 255, 255, .04); }
[data-theme="dark"] .home-contact-value:hover { border-color: rgba(127, 180, 255, .45); background: rgba(255, 255, 255, .08); }
[data-theme="dark"] .home-contact-value span { color: #8fa2ba; }

/* Responsive layout */
@media (max-width: 1050px) {
    .header .nav-links { gap: 14px; }
    .header .nav-links a { font-size: .77rem; }
    .home-stat { padding-left: 18px; padding-right: 18px; }
    .home-hero-brand { font-size: 4.5rem; }
    .home-hero-promise { font-size: 2.15rem; }
    .home-hero-subtitle { font-size: 1.1rem; }
}

@media (max-width: 900px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.35rem; }
    .hero-title { font-size: 4rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .header .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        color: #fff;
    }
    .header .nav-links {
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        padding: 8px 24px 16px;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        background: rgba(6, 26, 56, .98);
        border-bottom: 1px solid rgba(255, 255, 255, .1);
        transition: max-height .3s var(--ease-out), opacity .3s var(--ease-out), padding .3s var(--ease-out);
    }
    .header .nav-links.open {
        max-height: 80vh;
        overflow-y: auto;
        opacity: 1;
        pointer-events: auto;
    }
    .header .nav-links li { width: 100%; }
    .header .nav-links a { display: block; width: 100%; padding: 13px 4px; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; }
    .header .nav-links a::after { display: none; }
    .header .nav-links .nav-admin { display: block; margin-top: 7px; text-align: center; }
    .header .nav-links li:last-child { display: flex; justify-content: flex-start; padding-top: 8px; }
}

@media (max-width: 850px) {
    .home-hero { height: auto; min-height: 520px; }
    .home-hero-inner { align-items: flex-end; padding-top: 95px; padding-bottom: 46px; }
    .home-hero-brand { font-size: 4.1rem; }
    .home-hero-promise { font-size: 2.2rem; }
    .home-stat { min-height: 105px; gap: 9px; padding: 16px 12px; }
    .home-stat strong { font-size: 1.35rem; }
    .home-stat small { font-size: .75rem; }
    .home-stat em { font-size: .66rem; }
    .home-stat-icon { width: 35px; height: 35px; }
    .home-stat-icon svg { width: 20px; height: 20px; }
    .home-feature-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-main { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-server { grid-column: 2 / -1; }
}

@media (max-width: 768px) {
    .header { height: 56px; }
    .navbar { height: 56px; }
    .header .nav-toggle { display: inline-flex; align-items: center; justify-content: center; color: #fff; margin-left: auto; }
    .header .nav-toggle:hover { background: rgba(255, 255, 255, .1); }
    .header .nav-links {
        top: 56px;
        gap: 0;
        padding: 8px 24px 16px;
        background: rgba(6, 26, 56, .98);
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }
    .header .nav-links a { padding: 13px 4px; color: rgba(255, 255, 255, .84); font-size: .9rem; }
    .header .nav-links li:last-child { padding-top: 8px; }
    .home-hero { min-height: 590px; }
    .home-hero-inner { padding-top: 90px; padding-bottom: 42px; }
    .home-hero-brand { font-size: 3.7rem; }
    .home-hero-promise { font-size: 1.95rem; }
    .home-stats-grid { grid-template-columns: repeat(2, 1fr); padding-top: 4px; padding-bottom: 4px; }
    .home-stat:nth-child(2) { border-right: 0; }
    .home-stat:nth-child(-n + 2) { border-bottom: 1px solid #e5ebf4; }
    .home-section { padding: 50px 0; }
    .home-features { padding-top: 48px; padding-bottom: 50px; }
    .home-worlds { padding-top: 46px; padding-bottom: 16px; }
    .world-track { display: flex; overflow-x: auto; gap: 14px; padding-bottom: 5px; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .world-track::-webkit-scrollbar { display: none; }
    .world-card { min-width: min(76vw, 330px); scroll-snap-align: start; }
    .home-contact { padding: 46px 0 50px; }
    .home-contact-grid { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 28px 22px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-server { grid-column: auto; }
}

@media (max-width: 520px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.25rem; }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.125rem; }
    .container { padding-left: 18px; padding-right: 18px; }
    .home-hero { min-height: 620px; }
    .home-hero-brand { font-size: 3rem; }
    .home-hero-promise { font-size: 1.65rem; }
    .home-hero-subtitle { font-size: 1rem; }
    .home-section-heading h2 { font-size: 1.9rem; }
    .home-cta-content h2 { font-size: 2rem; }
    .home-hero-image { object-position: 62% center; }
    .home-hero-scrim { background: linear-gradient(90deg, rgba(3, 19, 49, .95), rgba(3, 26, 67, .55)); }
    .home-hero-actions { flex-direction: column; align-items: stretch; max-width: 255px; }
    .home-btn { justify-content: space-between; }
    .home-server-pill { flex-wrap: wrap; }
    .home-stat { min-height: 102px; padding: 13px 7px; }
    .home-stat-icon { width: 32px; height: 32px; }
    .home-stat-icon svg { width: 18px; height: 18px; }
    .home-stat strong { font-size: 1.18rem; }
    .home-stat small { font-size: .7rem; }
    .home-stat em { font-size: .6rem; }
    .home-feature-grid { grid-template-columns: 1fr; }
    .home-feature-card { min-height: 185px; }
    .home-cta { width: auto; margin-left: 18px; margin-right: 18px; }
    .home-contact-value { align-items: flex-start; flex-direction: column; gap: 4px; }
    .home-contact-value strong { font-size: .94rem; word-break: break-all; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-brand, .footer-server { grid-column: 1 / -1; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
    .footer-bottom nav { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-feature-card, .world-card-image img, .home-btn { transition: none; }
}

/* Reference-image calibration (1024px source composition) */
.home-page main { padding-top: 56px; }

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.nav-logo-wordmark,
.footer-logo-wordmark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 30px;
    height: 30px;
    color: #ff3f91;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    font-size: .54rem;
    font-weight: 800;
    letter-spacing: -.04em;
    transform: rotate(-18deg);
}
.nav-logo-wordmark b,
.footer-logo-wordmark b { transform: rotate(18deg); }
.footer-logo-wordmark { width: 28px; height: 28px; font-size: .5rem; }
.header .nav-logo { gap: 5px; }
.nav-logo-copy b { color: #fff; }
.home-eyebrow { display: none; }
.home-stat-icon,
.home-feature-icon { overflow: hidden; background: transparent; }
.home-cta-image { opacity: 1; }
.home-cta-scrim { background: linear-gradient(90deg, rgba(3, 25, 65, .82), rgba(3, 25, 65, .46)); }
.home-page .site-footer .footer-disclaimer { display: none; }
/* 上下留同样的间距，让卡片在两个区块之间的空白里居中，而不是贴着上一个区块 */
.home-cta { margin-top: 48px; margin-bottom: 48px; border-radius: 8px; }
.site-footer { position: relative; }
.footer-top {
    position: absolute;
    right: 15px;
    bottom: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    color: #c6d4e7;
    background: rgba(255, 255, 255, .07);
    cursor: pointer;
}
.footer-top:hover { color: #fff; background: rgba(255, 255, 255, .13); }
.footer-top svg { width: 16px; height: 16px; }

@media (min-width: 901px) {
    .header .nav-links {
        flex: 1;
        gap: 27px;
        margin-left: 78px;
    }
    .header .nav-links .nav-account-start { margin-left: auto; }
    .header .nav-links .nav-account-start ~ li { margin-left: -13px; }

    .home-hero {
        height: 414px;
        min-height: 414px;
    }
    .home-hero-image {
        object-fit: cover;
        object-position: center;
        filter: none;
    }
    .home-hero-scrim { background: linear-gradient(90deg, rgba(3, 21, 51, .78) 0%, rgba(3, 30, 67, .5) 48%, rgba(3, 24, 54, .12) 100%); }
    .home-hero-grid { opacity: .08; }
    .home-hero-inner {
        align-items: flex-start;
        max-width: 1024px;
        padding: 70px 24px 0 72px;
    }
    .home-hero-copy { max-width: 600px; }
    .home-hero-brand { font-size: 4.25rem; line-height: 1; transform: translateY(1px) scale(1.02, .95); transform-origin: left top; }
    .home-hero-promise { margin-top: 16px; font-size: 2rem; font-weight: 750; line-height: 1.25; transform: translate(1px, -1px) scale(.997, 1.015); transform-origin: left top; }
    .home-hero-subtitle { margin-top: 15px; font-size: 1.08rem; transform: translateX(1px) scale(1.01, .95); transform-origin: left top; }
    .home-hero-actions { margin-top: 24px; gap: 14px; }
    .home-btn { min-height: 42px; padding: 9px 18px; gap: 10px; font-size: .84rem; white-space: nowrap; }
    .home-btn-primary { width: 160px; }
    .home-btn-ghost { width: 145px; padding-right: 14px; padding-left: 14px; gap: 8px; }
    .home-server-pill { display: none !important; }

    .home-stats { height: 122px; }
    .home-stats-grid { width: 100%; max-width: 928px; height: 122px; padding: 0; }
    .home-stat { position: relative; min-height: 122px; padding: 18px 28px; gap: 13px; border-right: 0; }
    .home-stat:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 29px;
        right: -2px;
        width: 1px;
        height: 68px;
        background: #e5ebf4;
    }
    .home-stat-icon { width: 54px; height: 54px; transform: translateY(4px); }
    .home-stat > span:last-child { transform: translateY(6px); }
    .home-stat strong { font-size: 1.5rem; }
    .home-stat small { margin-top: 3px; font-size: .8rem; }
    .home-stat em { font-size: .68rem; }

    .home-features {
        height: 304px;
        padding: 31px 0 24px;
        background-color: #f1f7ff;
        background-image: none;
        background-position: center;
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }
    .home-features > .container { max-width: 896px; padding: 0; }
    .home-section-heading { margin-bottom: 11px; }
    .home-section-heading h2 { margin: 0 0 7px; font-size: 1.5rem; }
    .home-section-heading > p:last-child { font-size: .76rem; }
    .home-feature-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
    .home-feature-card { height: 182px; min-height: 182px; padding: 17px 19px; }
    .home-feature-icon { width: 42px; height: 42px; }
    .home-feature-card h3 { margin: 12px 0 7px; font-size: 1rem; }
    .home-feature-card p { font-size: .7rem; line-height: 1.65; }
    .home-feature-card a { font-size: 1.45rem; }

    .home-worlds { height: 302px; padding: 15px 0 14px; }
    .home-worlds > .container { max-width: 960px; padding: 0; }
    .home-worlds .home-section-heading { margin-bottom: 5px; }
    .home-worlds .home-section-heading h2 { margin-bottom: 6px; font-size: 1.5rem; }
    .home-worlds .home-section-heading > p:last-child { font-size: .73rem; }
    .world-track { gap: 10px; }
    .world-card-image { aspect-ratio: 1.6; }
    .world-card-copy { gap: 2px; padding: 7px 1px 0; }
    .world-card-copy strong { font-size: .78rem; }
    .world-card-copy small { font-size: .66rem; }
    .home-cta {
        width: 100%;
        max-width: 960px;
        min-height: 162px;
        height: 162px;
        margin-top: 28px;
        margin-bottom: 28px;
        padding: 0;
    }
    .home-cta-content { min-height: 162px; padding: 20px 24px; }
    .home-cta-content { transform: translate(-16px, 5px); }
    .home-cta-content h2 { font-size: 2rem; }
    .home-cta-content p { margin: 5px 0 15px; font-size: .82rem; }
    .home-btn-light { min-width: 144px; width: 144px; height: 38px; min-height: 38px; position: relative; top: -2px; justify-content: center; }

    .home-contact { padding: 26px 0 32px; }
    .home-contact > .container { max-width: 960px; padding: 0; }
    .home-contact-grid { gap: 14px; }
    .home-contact-card { padding: 16px 18px; }
    .home-contact-icon { width: 34px; height: 34px; }
    .home-contact-icon svg { width: 19px; height: 19px; }
    .home-contact-card h3 { margin: 10px 0 6px; font-size: .98rem; }
    .home-contact-card p { margin-bottom: 12px; font-size: .69rem; line-height: 1.6; }
    .home-contact-value { padding: 9px 12px; }
    .home-contact-value strong { font-size: .88rem; }
    .home-contact-value span { font-size: .64rem; }

    .site-footer { height: 176px; min-height: 176px; padding: 21px 0 10px; overflow: hidden; }
    .site-footer > .container { max-width: 1024px; padding: 0 50px; }
    .footer-main { grid-template-columns: 264px 172px 172px 1fr; gap: 30px; padding-bottom: 16px; }
    .footer-logo { gap: 8px; font-size: .98rem; }
    .footer-logo img { width: 28px; height: 28px; }
    .footer-brand p { margin-top: 5px; font-size: .69rem; }
    .footer-brand p + p { margin-top: 4px; }
    .footer-column { gap: 3px; }
    .footer-column h2 { margin-bottom: 3px; font-size: .73rem; }
    .footer-column a,
    .footer-column p { font-size: .69rem; }
    .footer-bottom { padding-top: 11px; }
    .footer-bottom p,
    .footer-bottom a { font-size: .65rem; }
}

@media (max-width: 900px) {
    .home-hero-image { object-position: 62% center; filter: none; }
    .home-hero-scrim { background: linear-gradient(90deg, rgba(3, 19, 49, .78), rgba(3, 26, 67, .32)); }
    .home-server-pill { display: none; }
    .home-stat-icon { background: #eaf3ff; }
    .home-feature-icon { width: 42px; height: 42px; }
    .home-cta-image { object-position: center; }
    .home-cta { margin-bottom: 32px; }
}

@media (max-width: 520px) {
    .footer-top { right: 10px; bottom: 10px; }
    .home-cta { margin-bottom: 28px; }
}

/* Wide desktop layout: keep the reference composition at tablet widths, then let
   the page breathe on large browser windows instead of stretching a 1024px mockup. */
@media (min-width: 1200px) {
    .container { max-width: 1440px; padding-left: 40px; padding-right: 40px; }
    .header .nav-links { margin-left: 58px; }

    .home-hero {
        height: clamp(480px, 32vw, 560px);
        min-height: 480px;
    }
    .home-hero-scrim { background: linear-gradient(90deg, rgba(3, 21, 51, .8) 0%, rgba(3, 30, 67, .48) 48%, rgba(3, 24, 54, .1) 100%); }
    .home-hero-inner {
        max-width: 1440px;
        padding: 92px 64px 64px;
    }
    .home-hero-copy { max-width: 780px; }
    .home-hero-brand { font-size: clamp(4.5rem, 5.2vw, 6rem); }
    .home-hero-promise { max-width: 760px; font-size: clamp(2.25rem, 3vw, 3.4rem); }
    .home-hero-subtitle { font-size: 1.2rem; }
    .home-hero-actions { margin-top: 30px; }

    .home-stats { min-height: 132px; }
    .home-stats-grid { max-width: 1280px; height: auto; }
    .home-stat { min-height: 132px; padding: 24px 36px; }
    .home-stat-icon { width: 58px; height: 58px; }
    .home-stat strong { font-size: 1.72rem; }

    .home-features {
        height: auto;
        padding: 72px 0 82px;
        background-image: none;
    }
    .home-features > .container { max-width: 1280px; padding-left: 40px; padding-right: 40px; }
    .home-section-heading { margin-bottom: 32px; }
    .home-section-heading h2 { font-size: 2.35rem; }
    .home-section-heading > p:last-child { font-size: .98rem; }
    .home-feature-grid { gap: 24px; }
    .home-feature-card { min-height: 228px; padding: 28px; }
    .home-feature-icon { width: 48px; height: 48px; }
    .home-feature-card h3 { margin-top: 18px; font-size: 1.15rem; }
    .home-feature-card p { font-size: .84rem; }

    .home-worlds { height: auto; padding: 74px 0 24px; }
    .home-worlds > .container { max-width: 1320px; padding-left: 40px; padding-right: 40px; }
    .home-worlds .home-section-heading { margin-bottom: 32px; }
    .home-worlds .home-section-heading h2 { font-size: 2.35rem; }
    .world-track { gap: 20px; }
    .world-card-image { aspect-ratio: 1.72; }
    .world-card-copy { gap: 5px; padding: 13px 2px 0; }
    .world-card-copy strong { font-size: .98rem; }
    .world-card-copy small { font-size: .78rem; }
    .home-cta {
        width: calc(100% - 80px);
        max-width: 1280px;
        min-height: 220px;
        height: 220px;
        margin-top: 64px;
        margin-bottom: 64px;
        border-radius: 8px;
    }
    .home-cta-content { min-height: 220px; padding: 28px 40px; transform: none; }
    .home-cta-content h2 { font-size: 2.5rem; }
    .home-cta-content p { margin: 8px 0 20px; font-size: .96rem; }
    .home-btn-light { width: 158px; min-width: 158px; height: 42px; min-height: 42px; }

    .home-contact { padding: 68px 0 76px; }
    .home-contact > .container { max-width: 1280px; padding-left: 40px; padding-right: 40px; }
    .home-contact-grid { gap: 24px; }
    .home-contact-card { padding: 28px; }
    .home-contact-icon { width: 44px; height: 44px; }
    .home-contact-icon svg { width: 24px; height: 24px; }
    .home-contact-card h3 { margin-top: 18px; font-size: 1.15rem; }
    .home-contact-card p { margin-bottom: 20px; font-size: .84rem; }
    .home-contact-value { padding: 13px 16px; }

    .site-footer { height: auto; min-height: 246px; padding: 46px 0 20px; overflow: visible; }
    .site-footer > .container { max-width: 1280px; padding-left: 40px; padding-right: 40px; }
    .footer-main { grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 48px; padding-bottom: 26px; }
    .footer-logo { font-size: 1.08rem; }
    .footer-brand p { font-size: .78rem; }
    .footer-column { gap: 8px; }
    .footer-column h2 { font-size: .84rem; }
    .footer-column a, .footer-column p { font-size: .78rem; }
    .footer-bottom { padding-top: 16px; }
    .footer-bottom p, .footer-bottom a { font-size: .72rem; }
}

/* =====================================================================
   Shared inner-page system
   Keep the homepage composition above, while giving every utility page the
   same restrained blue-and-white surface language.
   ===================================================================== */
body:not(.home-page) {
    background: #f7faff;
}

body:not(.home-page) .gradient-text {
    background: none;
    color: #1769e8;
    -webkit-text-fill-color: currentColor;
}

body:not(.home-page) main { min-height: 0; }

body:not(.home-page) .hero {
    min-height: 258px !important;
    padding: 96px 0 42px !important;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    background: #eaf3ff;
    border-bottom: 1px solid #dbe7f5;
}
body:not(.home-page) .hero-content {
    width: 100%;
    max-width: 1200px;
    align-items: flex-start;
    gap: 12px;
}
body:not(.home-page) .hero-title {
    color: #0b1730;
    font-size: clamp(2rem, 4vw, 3.35rem);
}
body:not(.home-page) .hero-subtitle {
    max-width: 680px;
    color: #5f6f87;
    font-size: 1rem;
}
body:not(.home-page) .hero-actions { margin-top: 8px; }

body:not(.home-page) .section {
    padding: 72px 0 !important;
}
body:not(.home-page) .section > .container {
    max-width: 1200px;
}

/* Solid surfaces replace the old translucent/glass treatment. */
body:not(.home-page) .card,
body:not(.home-page) .content-block,
body:not(.home-page) .rule-group,
body:not(.home-page) .method-card,
body:not(.home-page) .ban-row,
body:not(.home-page) .board-row,
body:not(.home-page) .thread-row,
body:not(.home-page) .thread-post,
body:not(.home-page) .reply-form,
body:not(.home-page) .search-row,
body:not(.home-page) .notif-item,
body:not(.home-page) .auth-container,
body:not(.home-page) .profile-card,
body:not(.home-page) .settings-card,
body:not(.home-page) .appeal-card,
body:not(.home-page) .post-form-card,
body:not(.home-page) .terms-doc,
body:not(.home-page) .result-card,
body:not(.home-page) .shop-section,
body:not(.home-page) .pay-section,
body:not(.home-page) .order-summary,
body:not(.home-page) .checkout-section,
body:not(.home-page) .cart-panel,
body:not(.home-page) .admin-nav,
body:not(.home-page) .admin-content {
    background: #fff !important;
    border: 1px solid #e2eaf4 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 28px rgba(42, 86, 140, .06);
    backdrop-filter: none !important;
}

body:not(.home-page) .card:hover,
body:not(.home-page) .rule-group:hover,
body:not(.home-page) .method-card:hover,
body:not(.home-page) .ban-row:hover,
body:not(.home-page) .board-row:hover,
body:not(.home-page) .thread-row:hover,
body:not(.home-page) .search-row:hover,
body:not(.home-page) .notif-item:hover {
    border-color: #b6d1f4 !important;
    box-shadow: 0 14px 30px rgba(42, 86, 140, .1);
}

body:not(.home-page) .btn {
    border-radius: 5px;
    font-size: .88rem;
}
body:not(.home-page) .btn-primary {
    background: #1769e8;
    color: #fff;
    box-shadow: 0 7px 16px rgba(23, 105, 232, .2);
}
body:not(.home-page) .btn-primary:hover { background: #2b7af3; }
body:not(.home-page) .btn-outline {
    color: #1769e8;
    border-color: #b9cde8;
    background: #fff;
    backdrop-filter: none;
}
body:not(.home-page) .btn-outline:hover { background: #eef5ff; border-color: #1769e8; }

body:not(.home-page) .search-input,
body:not(.home-page) .search-select,
body:not(.home-page) .form-control,
body:not(.home-page) input,
body:not(.home-page) textarea,
body:not(.home-page) select {
    border-radius: 5px;
    border-color: #d5e1ef;
    background: #f8fbff;
    box-shadow: none;
}
body:not(.home-page) .search-input:focus,
body:not(.home-page) .search-select:focus,
body:not(.home-page) .form-control:focus,
body:not(.home-page) input:focus,
body:not(.home-page) textarea:focus,
body:not(.home-page) select:focus { border-color: #1769e8; }

body:not(.home-page) .rule-group,
body:not(.home-page) .method-card { padding: 28px; }
body:not(.home-page) .rule-group:hover { transform: translateY(-2px); }
body:not(.home-page) .whitelist-methods { gap: 18px; }
body:not(.home-page) .rules-list { gap: 14px; margin-top: 28px; }
body:not(.home-page) .ban-list,
body:not(.home-page) .board-list,
body:not(.home-page) .thread-list,
body:not(.home-page) .search-results,
body:not(.home-page) .notif-list { gap: 10px; }
body:not(.home-page) .board-icon { border-radius: 6px; background: #1769e8; }
body:not(.home-page) .thread-row:hover { transform: translateY(-2px); }

/* Utility page widths and header clearance. */
body:not(.home-page) .profile-wrap,
body:not(.home-page) .settings-wrap,
body:not(.home-page) .appeal-wrap,
body:not(.home-page) .terms-wrap,
body:not(.home-page) .order-wrap,
body:not(.home-page) .shop-wrap,
body:not(.home-page) .shop-layout,
body:not(.home-page) .admin-layout {
    margin-top: 88px !important;
    margin-bottom: 72px !important;
}
body:not(.home-page) .terms-wrap { max-width: 920px; }
body:not(.home-page) .terms-doc { padding: 44px; }
body:not(.home-page) .terms-section { margin-top: 32px; }
body:not(.home-page) .profile-wrap { max-width: 820px; }
body:not(.home-page) .profile-card,
body:not(.home-page) .settings-card,
body:not(.home-page) .appeal-card { padding: 30px; }
body:not(.home-page) .order-wrap { max-width: 680px; }
body:not(.home-page) .shop-wrap { max-width: 1040px; }
body:not(.home-page) .shop-layout { max-width: 1280px; padding-left: 24px; padding-right: 24px; }
body:not(.home-page) .shop-section:hover { box-shadow: 0 14px 30px rgba(42, 86, 140, .1); }
body:not(.home-page) .cat-tab,
body:not(.home-page) .option-card,
body:not(.home-page) .coin-opt,
body:not(.home-page) .ench-item,
body:not(.home-page) .stat-card { border-radius: 6px; }
body:not(.home-page) .cat-tab { background: #fff; border-color: #d5e1ef; }
body:not(.home-page) .cat-tab.active,
body:not(.home-page) .cat-tab:hover { background: #1769e8; border-color: #1769e8; color: #fff; }

body:not(.home-page) .admin-layout {
    max-width: 1280px;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 20px;
    padding-left: 24px;
    padding-right: 24px;
}
body:not(.home-page) .admin-nav { padding: 14px; top: 76px; }
body:not(.home-page) .admin-nav a { border-radius: 5px; padding: 10px 12px; }
body:not(.home-page) .admin-content { padding: 30px; }
body:not(.home-page) .stat-card { background: #f8fbff !important; box-shadow: none; }
body:not(.home-page) .section-title { font-size: 1.25rem; color: #0b1730; }
body:not(.home-page) .table th { color: #5f6f87; }

body:not(.home-page) .auth-container {
    max-width: 430px;
    margin: 88px auto 72px !important;
    padding: 32px !important;
}
body.auth-page { min-height: 100vh; }
body.auth-page { display: flex; flex-direction: column; }
body.auth-page > .container { flex: 1 0 auto; width: 100%; }
body.auth-page .container { max-width: 1200px; }
body.auth-page .site-footer { margin-top: auto; }

@media (max-width: 900px) {
    body:not(.home-page) .hero { min-height: 220px !important; padding: 84px 0 32px !important; }
    body:not(.home-page) .section { padding: 56px 0 !important; }
    body:not(.home-page) .profile-wrap,
    body:not(.home-page) .settings-wrap,
    body:not(.home-page) .appeal-wrap,
    body:not(.home-page) .terms-wrap,
    body:not(.home-page) .order-wrap,
    body:not(.home-page) .shop-wrap,
    body:not(.home-page) .shop-layout,
    body:not(.home-page) .admin-layout { margin-top: 76px !important; margin-bottom: 48px !important; }
    body:not(.home-page) .terms-doc,
    body:not(.home-page) .profile-card,
    body:not(.home-page) .settings-card,
    body:not(.home-page) .appeal-card,
    body:not(.home-page) .admin-content { padding: 22px !important; }
    body:not(.home-page) .admin-layout { grid-template-columns: 1fr; }
    body:not(.home-page) .admin-nav { position: static; }
}

@media (max-width: 520px) {
    body:not(.home-page) .hero { min-height: 198px !important; padding: 78px 0 26px !important; }
    body:not(.home-page) .hero-title { font-size: 2rem; }
    body:not(.home-page) .hero-subtitle { font-size: .9rem; }
    body:not(.home-page) .thread-head { align-items: flex-start; flex-direction: column; }
    body:not(.home-page) .thread-head > div:last-child,
    body:not(.home-page) .thread-head > .hero-actions { width: 100%; }
    body:not(.home-page) .thread-head .btn { flex: 1; }
    body:not(.home-page) .thread-post { padding: 20px !important; }
    body:not(.home-page) .thread-post-title { font-size: 1.3rem; }
    body:not(.home-page) .board-row { padding: 15px; gap: 12px; }
    body:not(.home-page) .board-meta { display: none; }
    body:not(.home-page) .ban-row { padding: 14px; }
    body:not(.home-page) .profile-top { align-items: flex-start; text-align: left; }
    body:not(.home-page) .profile-top .btn { align-self: stretch; }
    body:not(.home-page) .terms-doc { padding: 18px !important; }
    body:not(.home-page) .terms-section p { text-align: left; font-size: .92rem; }
    body:not(.home-page) .shop-layout { padding-left: 14px; padding-right: 14px; }
    body:not(.home-page) .shop-head { padding: 14px 16px; flex-wrap: wrap; }
    body:not(.home-page) .shop-head > span:not(.arrow) { width: 100%; order: 3; }
    body:not(.home-page) .shop-body-inner { padding-left: 16px; padding-right: 16px; }
    body:not(.home-page) .auth-container { padding: 24px 18px !important; }
}

/* Keep the existing theme switch useful on inner pages too. */
[data-theme="dark"] body:not(.home-page) {
    background: #071a35;
    color: #eef5ff;
}
[data-theme="dark"] body:not(.home-page) .hero {
    background: #0b2b55;
    border-color: rgba(255, 255, 255, .1);
}
[data-theme="dark"] body:not(.home-page) .hero-title,
[data-theme="dark"] body:not(.home-page) .section-title { color: #f5f8ff; }
[data-theme="dark"] body:not(.home-page) .hero-subtitle { color: #a9bed8; }
[data-theme="dark"] body:not(.home-page) .card,
[data-theme="dark"] body:not(.home-page) .content-block,
[data-theme="dark"] body:not(.home-page) .rule-group,
[data-theme="dark"] body:not(.home-page) .method-card,
[data-theme="dark"] body:not(.home-page) .ban-row,
[data-theme="dark"] body:not(.home-page) .board-row,
[data-theme="dark"] body:not(.home-page) .thread-row,
[data-theme="dark"] body:not(.home-page) .thread-post,
[data-theme="dark"] body:not(.home-page) .reply-form,
[data-theme="dark"] body:not(.home-page) .search-row,
[data-theme="dark"] body:not(.home-page) .notif-item,
[data-theme="dark"] body:not(.home-page) .auth-container,
[data-theme="dark"] body:not(.home-page) .profile-card,
[data-theme="dark"] body:not(.home-page) .settings-card,
[data-theme="dark"] body:not(.home-page) .appeal-card,
[data-theme="dark"] body:not(.home-page) .post-form-card,
[data-theme="dark"] body:not(.home-page) .terms-doc,
[data-theme="dark"] body:not(.home-page) .result-card,
[data-theme="dark"] body:not(.home-page) .shop-section,
[data-theme="dark"] body:not(.home-page) .pay-section,
[data-theme="dark"] body:not(.home-page) .order-summary,
[data-theme="dark"] body:not(.home-page) .checkout-section,
[data-theme="dark"] body:not(.home-page) .cart-panel,
[data-theme="dark"] body:not(.home-page) .admin-nav,
[data-theme="dark"] body:not(.home-page) .admin-content {
    background: #102b4d !important;
    border-color: rgba(255, 255, 255, .12) !important;
    color: #eef5ff;
}
[data-theme="dark"] body:not(.home-page) .stat-card,
[data-theme="dark"] body:not(.home-page) input,
[data-theme="dark"] body:not(.home-page) textarea,
[data-theme="dark"] body:not(.home-page) select,
[data-theme="dark"] body:not(.home-page) .search-input,
[data-theme="dark"] body:not(.home-page) .search-select {
    background: #0b213f !important;
    border-color: rgba(255, 255, 255, .14) !important;
    color: #eef5ff;
}
[data-theme="dark"] body:not(.home-page) p,
[data-theme="dark"] body:not(.home-page) .board-desc,
[data-theme="dark"] body:not(.home-page) .thread-sub,
[data-theme="dark"] body:not(.home-page) .ban-reason,
[data-theme="dark"] body:not(.home-page) .terms-section p,
[data-theme="dark"] body:not(.home-page) .terms-meta,
[data-theme="dark"] body:not(.home-page) .points-rule,
[data-theme="dark"] body:not(.home-page) .info-label { color: #a9bed8; }
[data-theme="dark"] body:not(.home-page) .board-name,
[data-theme="dark"] body:not(.home-page) .thread-title,
[data-theme="dark"] body:not(.home-page) .thread-post-title,
[data-theme="dark"] body:not(.home-page) .info-value,
[data-theme="dark"] body:not(.home-page) .search-title,
[data-theme="dark"] body:not(.home-page) .notif-title,
[data-theme="dark"] body:not(.home-page) h1,
[data-theme="dark"] body:not(.home-page) h2,
[data-theme="dark"] body:not(.home-page) h3,
[data-theme="dark"] body:not(.home-page) h4 { color: #f5f8ff; }
[data-theme="dark"] body:not(.home-page) .cat-tab,
[data-theme="dark"] body:not(.home-page) .option-card,
[data-theme="dark"] body:not(.home-page) .coin-opt,
[data-theme="dark"] body:not(.home-page) .ench-item { background: #0b213f; border-color: rgba(255, 255, 255, .14); }

/* Inner pages should occupy the viewport predictably, while keeping the
   board detail header close to the content. */
body:not(.home-page) {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body:not(.home-page) main {
    flex: 1 0 auto;
}

body:not(.home-page) .site-footer {
    flex-shrink: 0;
}

/* Inner-page heroes use one continuous surface instead of a separate color band. */
body:not(.home-page) .hero {
    background: #f7faff;
    border-bottom-color: transparent;
}

body.rules-page main > .section {
    padding-top: 36px !important;
}

body.forum-board-page main > .section {
    padding-top: 88px !important;
    padding-bottom: 64px !important;
}

[data-theme="dark"] body:not(.home-page) .hero {
    background: #071a35;
    border-bottom-color: transparent;
}

@media (max-width: 900px) {
    body.rules-page main > .section {
        padding-top: 28px !important;
    }

    body.forum-board-page main > .section {
        padding-top: 76px !important;
        padding-bottom: 52px !important;
    }
}

@media (max-width: 520px) {
    body.rules-page main > .section {
        padding-top: 22px !important;
    }

    body.forum-board-page main > .section {
        padding-top: 64px !important;
        padding-bottom: 44px !important;
    }
}
