/* ===== CSS Variables ===== */
:root {
    --bg-primary: #0a1628;
    --bg-secondary: #0f1f3d;
    --bg-card: #152238;
    --bg-card-hover: #1a2d4a;
    --text-primary: #e8edf5;
    --text-secondary: #8fa4c4;
    --text-muted: #5a7090;
    --accent-blue: #00b4d8;
    --accent-cyan: #48cae4;
    --accent-teal: #0096c7;
    --accent-orange: #f4a261;
    --accent-coral: #e76f51;
    --accent-green: #2a9d8f;
    --accent-sunset: #e9c46a;
    --gradient-hero: linear-gradient(135deg, #0a1628 0%, #0d2f5e 30%, #0a4a7a 60%, #0a1628 100%);
    --gradient-card: linear-gradient(145deg, #152238 0%, #1a3050 100%);
    --gradient-accent: linear-gradient(135deg, #00b4d8 0%, #48cae4 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 180, 216, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: url('images/hook-cursor.svg') 12 4, auto;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 180, 216, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon { font-size: 1.8rem; }

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-tagline {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--accent-cyan);
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
    transition: var(--transition);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a:focus { color: var(--text-primary); }
.nav-menu a:hover::after,
.nav-menu a:focus::after { width: 100%; }

/* 模拟求生高亮入口 */
.nav-highlight {
    color: var(--accent-cyan) !important;
}
.nav-highlight::after {
    background: linear-gradient(90deg, var(--accent-cyan), #00e5ff) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 4px 8px;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 180, 216, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(72, 202, 228, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(42, 157, 143, 0.05) 0%, transparent 50%);
    animation: heroPulse 8s ease-in-out infinite;
}

@keyframes heroPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 180, 216, 0.015) 2px, rgba(0, 180, 216, 0.015) 4px);
    animation: scanLine 10s linear infinite;
}

@keyframes scanLine {
    0% { transform: translateY(0); }
    100% { transform: translateY(100px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 24px;
}

.title-line { display: block; color: var(--text-primary); }
.title-line.highlight {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 50%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.45);
}

.btn-outline {
    border: 2px solid rgba(0, 180, 216, 0.4);
    color: var(--accent-cyan);
    background: transparent;
}
.btn-outline:hover {
    background: rgba(0, 180, 216, 0.1);
    border-color: var(--accent-cyan);
}

.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.hero-waves svg { display: block; width: 100%; height: 200px; }

/* ===== Hero Search ===== */
.hero-search {
    position: relative;
    margin-top: 36px;
    z-index: 10;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 31, 61, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 180, 216, 0.2);
    border-radius: 50px;
    padding: 10px 20px;
    transition: var(--transition);
    position: relative;
}

.search-box:focus-within {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 24px rgba(0, 180, 216, 0.2);
    background: rgba(15, 31, 61, 0.95);
}

.search-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    padding: 10px 0;
    outline: none;
    cursor: text;
}

.search-input::placeholder {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.search-hint {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-left: 12px;
    border-left: 1px solid rgba(0, 180, 216, 0.15);
}

.search-hint strong {
    color: var(--accent-cyan);
}

/* 搜索结果下拉 */
.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(15, 31, 61, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 180, 216, 0.15);
    border-radius: var(--radius-md);
    padding: 8px 0;
    display: none;
    z-index: 20;
    max-height: 420px;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.search-dropdown.active { display: block; }

.search-dropdown-title {
    padding: 10px 20px 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    transition: var(--transition);
    cursor: pointer;
}

.search-result-item:hover {
    background: rgba(0, 180, 216, 0.08);
}

.search-result-emoji { font-size: 1.5rem; flex-shrink: 0; }

.search-result-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.search-result-name {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.search-result-tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 50px;
}

.search-result-tag.danger { background: rgba(231, 111, 81, 0.15); color: var(--accent-coral); }
.search-result-tag.friendly { background: rgba(42, 157, 143, 0.15); color: var(--accent-green); }
.search-result-tag.neutral { background: rgba(72, 202, 228, 0.15); color: var(--accent-cyan); }

.search-no-result {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(0, 180, 216, 0.1);
    border: 1px solid rgba(0, 180, 216, 0.2);
    color: var(--accent-cyan);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== Courses ===== */
.courses { background: var(--bg-secondary); }

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.course-card {
    background: var(--gradient-card);
    border: 1px solid rgba(0, 180, 216, 0.08);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 180, 216, 0.25);
    box-shadow: var(--shadow-glow);
}

.course-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(72, 202, 228, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(72, 202, 228, 0.25);
}

.course-badge.accent {
    background: rgba(244, 162, 97, 0.15);
    color: var(--accent-orange);
    border-color: rgba(244, 162, 97, 0.25);
}

.course-badge.pro {
    background: rgba(231, 111, 81, 0.15);
    color: var(--accent-coral);
    border-color: rgba(231, 111, 81, 0.25);
}

.course-badge.master {
    background: rgba(233, 196, 106, 0.15);
    color: var(--accent-sunset);
    border-color: rgba(233, 196, 106, 0.25);
}

.course-icon { font-size: 3rem; margin-bottom: 16px; }

.course-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.course-card > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.course-list {
    margin-bottom: 20px;
}

.course-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.course-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-size: 0.75rem;
    top: 0;
}

.course-duration {
    display: block;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 180, 216, 0.1);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Detail link button */
.detail-link {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 180, 216, 0.25);
    border-radius: 50px;
    transition: var(--transition);
    align-self: flex-start;
}
.detail-link:hover {
    background: rgba(0, 180, 216, 0.1);
    border-color: var(--accent-cyan);
    transform: translateX(4px);
}

/* ===== Knowledge ===== */
.knowledge { background: var(--bg-primary); }

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
}

a.knowledge-item {
    text-decoration: none;
    color: inherit;
    display: flex;
}

.knowledge-item {
    display: flex;
    gap: 24px;
    padding: 28px;
    background: var(--gradient-card);
    border: 1px solid rgba(0, 180, 216, 0.06);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.knowledge-item:hover {
    border-color: rgba(0, 180, 216, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.knowledge-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    flex-shrink: 0;
}

.knowledge-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.knowledge-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== Survival Rules ===== */
.survival { background: var(--bg-secondary); }

.rules-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.rule-card {
    background: var(--gradient-card);
    border: 1px solid rgba(0, 180, 216, 0.06);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
}

.rule-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 180, 216, 0.2);
    box-shadow: var(--shadow-glow);
}

.rule-icon { font-size: 3rem; margin-bottom: 16px; }

.rule-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--accent-cyan);
}

.rule-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== Gallery ===== */
.gallery { background: var(--bg-primary); }

/* 图鉴搜索框 */
.gallery-search-wrap {
    max-width: 600px;
    margin: 0 auto 24px;
}

.gallery-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 31, 61, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 180, 216, 0.2);
    border-radius: 50px;
    padding: 8px 16px;
    transition: var(--transition);
}

.gallery-search-box:focus-within {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 24px rgba(0, 180, 216, 0.2);
    background: rgba(15, 31, 61, 0.95);
}

.gallery-search-box .search-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    padding: 10px 0;
    outline: none;
}

.gallery-search-box .search-input::placeholder {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.gallery-search-box .search-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.search-clear {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
    line-height: 1;
}

.search-clear:hover {
    background: rgba(231, 111, 81, 0.25);
    color: var(--accent-coral);
}

/* 图鉴无匹配 */
.gallery-empty {
    text-align: center;
    padding: 64px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.gallery-empty-icon {
    font-size: 3rem;
    opacity: 0.4;
    margin-bottom: 4px;
}

.gallery-empty-title {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
}

.gallery-empty-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    white-space: nowrap;
}

.gallery-empty-reset {
    margin-top: 8px;
    padding: 8px 24px;
    border: 1px solid var(--accent-cyan);
    border-radius: 50px;
    background: transparent;
    color: var(--accent-cyan);
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-empty-reset:hover {
    background: rgba(0, 180, 216, 0.1);
}

.gallery-toolbar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.gallery-filters-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-right: 4px;
    font-weight: 500;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.filter-btn {
    padding: 6px 16px;
    background: rgba(15, 31, 61, 0.6);
    border: 1px solid rgba(0, 180, 216, 0.12);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: rgba(0, 180, 216, 0.3);
    color: var(--text-primary);
}

.filter-btn.active {
    background: rgba(0, 180, 216, 0.15);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.gallery-count {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.gallery-count strong {
    color: var(--accent-cyan);
    font-size: 1.1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-item {
    background: var(--gradient-card);
    border: 1px solid rgba(0, 180, 216, 0.06);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 180, 216, 0.2);
    box-shadow: var(--shadow-md);
}

.gallery-emoji {
    font-size: 3.5rem;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-emoji {
    transform: scale(1.15);
}

.gallery-item h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.gallery-type {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    margin: 0;
}

.gallery-type.danger {
    background: rgba(231, 111, 81, 0.15);
    color: var(--accent-coral);
}

.gallery-type.friendly {
    background: rgba(42, 157, 143, 0.15);
    color: var(--accent-green);
}

.gallery-type.neutral {
    background: rgba(0, 180, 216, 0.15);
    color: var(--accent-cyan);
}

/* 图鉴卡片标签行 */
.gallery-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.gallery-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.74rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    margin: 0;
}

.gallery-item > p:last-child {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

/* ===== 服务网关 ===== */
.gateway {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.gateway-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
}

.gateway-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--gradient-card);
    border: 1px solid rgba(0, 180, 216, 0.08);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.gateway-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 180, 216, 0.3);
    box-shadow: var(--shadow-md), 0 0 30px rgba(0, 180, 216, 0.08);
}

.gateway-icon {
    font-size: 2.8rem;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 180, 216, 0.06);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.gateway-card:hover .gateway-icon {
    background: rgba(0, 180, 216, 0.12);
    transform: scale(1.05);
}

.gateway-info {
    flex: 1;
    min-width: 0;
}

.gateway-info h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.gateway-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.gateway-arrow {
    font-size: 1.4rem;
    color: var(--accent-cyan);
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-8px);
    transition: var(--transition);
}

.gateway-card:hover .gateway-arrow {
    opacity: 1;
    transform: translateX(0);
}

.gateway-status {
    flex-shrink: 0;
    padding: 4px 14px;
    background: rgba(233, 196, 106, 0.1);
    border: 1px solid rgba(233, 196, 106, 0.2);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--accent-sunset);
    white-space: nowrap;
}

.gateway-card-placeholder {
    opacity: 0.65;
    cursor: default;
}

.gateway-card-placeholder:hover {
    transform: none;
    border-color: rgba(0, 180, 216, 0.08);
    box-shadow: none;
}

.gateway-card-placeholder:hover .gateway-icon {
    background: rgba(0, 180, 216, 0.06);
    transform: none;
}

/* Nav gateway link */
.nav-gateway {
    color: var(--accent-sunset) !important;
    font-weight: 500;
}

/* ===== 跳板机弹窗 ===== */
.jumpboard-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(2, 18, 27, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.jumpboard-overlay.active {
    display: flex;
}

.jumpboard-modal {
    position: relative;
    background: var(--gradient-card);
    border: 1px solid rgba(0, 180, 216, 0.2);
    border-radius: var(--radius-xl);
    padding: 48px 40px 40px;
    width: 90%;
    max-width: 440px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 180, 216, 0.06);
    animation: jumpboardIn 0.3s ease;
}

@keyframes jumpboardIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.jumpboard-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.jumpboard-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.jumpboard-step {
    text-align: center;
}

.jumpboard-step-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.jumpboard-step h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.jumpboard-step p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.jumpboard-input {
    display: block;
    width: 100%;
    padding: 14px 18px;
    background: rgba(2, 18, 27, 0.6);
    border: 1px solid rgba(0, 180, 216, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    text-align: center;
}

.jumpboard-input::placeholder {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.jumpboard-input:focus {
    border-color: rgba(0, 180, 216, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.08);
}

.jumpboard-error {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 8px;
    margin-bottom: 0;
    min-height: 1.2em;
}

.jumpboard-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 40px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.jumpboard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 180, 216, 0.35);
}

.jumpboard-hint {
    margin-top: 16px;
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 0 !important;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-secondary);
    position: relative;
    margin-top: 0;
    padding-top: 60px;
}

.footer-waves svg {
    display: block;
    width: 100%;
    height: 80px;
    position: absolute;
    top: -79px;
}

.footer-content {
    background: var(--bg-secondary);
    padding: 40px 24px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--accent-cyan);
}

.footer-col p { color: var(--text-secondary); font-size: 0.9rem; }

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent-cyan);
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* ===== 备案信息 ===== */
.footer-beian {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 180, 216, 0.08);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-beian p {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 16px;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.6;
}

.beian-link {
    display: inline-flex;
    align-items: center;
    gap: 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    transition: var(--transition);
}

.beian-link:hover {
    color: var(--accent-cyan);
}

.beian-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 2px;
}

.beian-separator {
    color: rgba(0, 180, 216, 0.2);
    user-select: none;
}

@media (max-width: 768px) {
    .footer-beian p {
        flex-direction: column;
        gap: 6px;
    }
    .beian-separator {
        display: none;
    }
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 1024px) {
    .hero-title { font-size: 2.6rem; }
    .section-title { font-size: 2rem; }
    .courses-grid,
    .rules-container,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .knowledge-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-grid .footer-col:first-child {
        grid-column: 1 / -1;
    }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 768px) {
    .hero { min-height: 90vh; padding: 80px 0 60px; }
    .hero-content { width: 100%; max-width: 100%; padding: 0 20px; }
    .hero-title { font-size: 1.8rem; line-height: 1.35; word-break: break-word; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 28px; }
    .hero-buttons { flex-direction: column; align-items: center; gap: 12px; }
    .btn { padding: 12px 28px; font-size: 0.9rem; width: 100%; max-width: 240px; }
    .section-title { font-size: 1.6rem; }
    .section { padding: 60px 0; }
    .section-header { margin-bottom: 40px; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(15, 31, 61, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 24px;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(0, 180, 216, 0.1);
    }

    .nav-menu.active { right: 0; }
    .nav-toggle { display: block; z-index: 1001; }

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .knowledge-grid { grid-template-columns: 1fr; }

    .courses-grid,
    .rules-container,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .search-box {
        padding: 8px 16px;
    }
    .search-input {
        font-size: 0.85rem;
    }
    .search-hint {
        display: none;
    }
    .gallery-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .filter-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
    .logo-tagline {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.5rem; }
    .section-title { font-size: 1.4rem; }
    .hero-subtitle { font-size: 0.88rem; }
    .container { padding: 0 16px; }
    .course-card,
    .knowledge-item,
    .rule-card,
    .gallery-item {
        padding: 20px;
    }
}
