/* ===== TRAINING PAGE STYLES ===== */
/* 基于官网 style.css 变量体系扩展 */

/* ===== CSS VARIABLES (fallback) ===== */
:root {
    --primary: #1a6eff;
    --primary-gradient: linear-gradient(135deg, #1a6eff 0%, #0d5bd9 100%);
    --primary-light: rgba(26, 110, 255, 0.08);
    --text: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-light: #8a8a9a;
    --border: #e8e8f0;
    --bg-warm: #f8f9fc;
    --radius: 16px;
    --radius-sm: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ===== GLOBAL RESET FOR MOBILE ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    min-width: 320px;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text);
    background: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 640px) {
    .container {
        padding: 0 24px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 32px;
    }
}

/* ===== SECTION COMMON ===== */
.section {
    padding: 60px 0;
}

@media (min-width: 768px) {
    .section {
        padding: 80px 0;
    }
}

.section-alt {
    background: var(--bg-warm);
}

.section-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 8px;
}

.section-title {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
}

.section-desc {
    font-size: clamp(14px, 2vw, 16px);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== BUTTON STYLES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-height: 44px;
    touch-action: manipulation;
}

@media (min-width: 768px) {
    .btn {
        padding: 14px 28px;
        font-size: 15px;
    }
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 16px rgba(26, 110, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 110, 255, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--text);
    border: 1.5px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(26, 110, 255, 0.1);
}

/* ===== PAGE HEADER / HERO ===== */
.training-hero {
    padding: 100px 0 40px;
    background: linear-gradient(180deg, #f0f5ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .training-hero {
        padding: 140px 0 60px;
    }
}

.training-hero::before {
    content: '';
    position: absolute;
    top: -30%; right: -10%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(26, 110, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

@media (min-width: 768px) {
    .training-hero::before {
        width: 500px; height: 500px;
    }
}

.training-hero::after {
    content: '';
    position: absolute;
    bottom: -20%; left: -5%;
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(26, 110, 255, 0.04) 0%, transparent 70%);
    border-radius: 50%;
}

@media (min-width: 768px) {
    .training-hero::after {
        width: 400px; height: 400px;
    }
}

.training-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .training-hero-content {
        padding: 0 24px;
    }
}

.training-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(26, 110, 255, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
    border: 1px solid rgba(26, 110, 255, 0.15);
}

@media (min-width: 768px) {
    .training-hero-badge {
        font-size: 13px;
        padding: 8px 20px;
        margin-bottom: 24px;
    }
}

.training-hero h1 {
    font-size: clamp(26px, 6vw, 48px);
    font-weight: 900;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .training-hero h1 {
        margin-bottom: 16px;
    }
}

.training-hero h1 .highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.training-hero p {
    font-size: clamp(14px, 2.2vw, 18px);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .training-hero p {
        line-height: 1.8;
        margin-bottom: 32px;
    }
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-bottom: 32px;
}

@media (min-width: 480px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
    }
}

/* Stats Bar */
.training-stats-bar {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .training-stats-bar {
        gap: 48px;
        margin-top: 40px;
    }
}

.training-stat {
    text-align: center;
    min-width: 60px;
}

.training-stat-number {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

@media (min-width: 768px) {
    .training-stat-number {
        font-size: 32px;
    }
}

.training-stat-label {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
    font-weight: 500;
}

@media (min-width: 768px) {
    .training-stat-label {
        font-size: 13px;
        margin-top: 6px;
    }
}

/* ===== TRAINING FEATURES ===== */
.training-features {
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

.feature-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    text-align: center;
}

@media (min-width: 768px) {
    .feature-card {
        padding: 32px;
    }
}

.feature-card:hover {
    border-color: rgba(26, 110, 255, 0.2);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
}

.feature-icon svg {
    width: 28px; height: 28px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .feature-card p {
        font-size: 14px;
    }
}

/* ===== LEARNING PATH ===== */
.learning-path {
    padding: 48px 0;
    background: var(--bg-warm);
}

@media (min-width: 768px) {
    .learning-path {
        padding: 80px 0;
    }
}

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

@media (min-width: 768px) {
    .path-container {
        padding: 0 24px;
    }
}

.path-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 0 8px;
}

@media (min-width: 768px) {
    .path-header {
        margin-bottom: 48px;
    }
}

.path-header h2 {
    font-size: clamp(20px, 4vw, 32px);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .path-header h2 {
        margin-bottom: 12px;
    }
}

.path-header p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .path-header p {
        font-size: 15px;
        line-height: 1.8;
    }
}

/* Path Timeline */
.path-timeline {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

@media (min-width: 768px) {
    .path-timeline {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }
}

.path-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    min-height: 56px;
}

.path-step:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.path-step.active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.path-step-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    flex-shrink: 0;
}

.path-step-icon svg {
    width: 18px; height: 18px;
}

.path-step-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.path-step-info span {
    font-size: 12px;
    color: var(--text-light);
}

.path-arrow {
    display: none;
    color: var(--border);
    font-size: 20px;
    font-weight: 300;
    align-self: center;
}

@media (min-width: 768px) {
    .path-arrow {
        display: block;
    }
}

/* ===== COURSE CATEGORIES ===== */
.course-categories {
    padding: 48px 0;
}

@media (min-width: 768px) {
    .course-categories {
        padding: 80px 0;
    }
}

.category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .category-tabs {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
        padding-bottom: 0;
    }
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: white;
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 40px;
    touch-action: manipulation;
}

@media (min-width: 768px) {
    .category-tab {
        padding: 10px 20px;
        font-size: 14px;
    }
}

.category-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.category-tab.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(26, 110, 255, 0.3);
}

.category-tab svg {
    width: 16px; height: 16px;
}

/* Course Grid */
.courses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 24px;
    }
}

.course-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.course-card:hover {
    border-color: rgba(26, 110, 255, 0.2);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.course-card:hover::before {
    transform: scaleX(1);
}

/* ===== COURSE CANVAS ILLUSTRATIONS ===== */
.course-thumb {
    height: 140px;
    background: linear-gradient(135deg, #e8f1ff 0%, #d4e4ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .course-thumb {
        height: 160px;
    }
}

.course-thumb .course-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.course-thumb svg {
    width: 48px; height: 48px;
    color: var(--primary);
    opacity: 0.6;
}

@media (min-width: 768px) {
    .course-thumb svg {
        width: 56px; height: 56px;
    }
}

.course-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4) 100%);
}

.course-duration {
    position: absolute;
    bottom: 12px; right: 12px;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.course-duration svg {
    width: 12px; height: 12px;
    opacity: 1;
}

.course-level-badge {
    position: absolute;
    top: 12px; left: 12px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: white;
}

/* Course Content */
.course-content {
    padding: 16px 20px 20px;
}

@media (min-width: 768px) {
    .course-content {
        padding: 20px 24px 24px;
    }
}

.course-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.course-tag {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 100px;
    background: var(--primary-light);
    color: var(--primary);
}

.course-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .course-card h3 {
        font-size: 17px;
    }
}

.course-card .subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .course-card .subtitle {
        margin-bottom: 14px;
    }
}

.course-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 6px;
}

.course-meta-left {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-light);
}

.course-meta-left span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.course-meta-left svg {
    width: 14px; height: 14px;
}

/* Course Actions */
.course-actions {
    display: flex;
    gap: 8px;
}

.course-actions a {
    text-decoration: none;
}

.course-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    min-height: 40px;
    touch-action: manipulation;
}

.course-btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(26, 110, 255, 0.25);
}

.course-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 110, 255, 0.35);
}

.course-btn-secondary {
    background: white;
    color: var(--text);
    border: 1.5px solid var(--border);
}

.course-btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.course-btn svg {
    width: 14px; height: 14px;
}

/* ===== COURSE DETAIL MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

@media (min-width: 640px) {
    .modal-overlay {
        align-items: center;
        padding: 24px;
    }
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    border-radius: 16px 16px 0 0;
    max-width: 100%;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.96);
    transition: all 0.3s ease;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

@media (min-width: 640px) {
    .modal-container {
        border-radius: var(--radius);
        max-width: 800px;
        max-height: 85vh;
    }
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 24px 20px 0;
    position: relative;
}

@media (min-width: 768px) {
    .modal-header {
        padding: 32px 32px 0;
    }
}

.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-secondary);
    min-height: 36px;
    touch-action: manipulation;
}

@media (min-width: 768px) {
    .modal-close {
        top: 20px; right: 20px;
    }
}

.modal-close:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.modal-close svg {
    width: 18px; height: 18px;
}

.modal-title-section {
    padding-right: 50px;
}

.modal-title-section .category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 12px;
    white-space: nowrap;
}

.modal-title-section .category-tag svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.modal-title-section h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .modal-title-section h2 {
        font-size: 24px;
    }
}

.modal-title-section .modal-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .modal-title-section .modal-desc {
        font-size: 15px;
        line-height: 1.7;
    }
}

/* Modal Meta */
.modal-meta-bar {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    margin-top: 16px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .modal-meta-bar {
        gap: 24px;
        padding: 20px 32px;
        margin-top: 20px;
    }
}

.modal-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .modal-meta-item {
        gap: 8px;
        font-size: 13px;
    }
}

.modal-meta-item svg {
    width: 16px; height: 16px;
    color: var(--primary);
}

/* Modal Content */
.modal-content-body {
    padding: 20px 20px 24px;
}

@media (min-width: 768px) {
    .modal-content-body {
        padding: 24px 32px 32px;
    }
}

.modal-content-body h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (min-width: 768px) {
    .modal-content-body h3 {
        font-size: 16px;
        margin-bottom: 16px;
    }
}

.modal-content-body h3 svg {
    width: 18px; height: 18px;
    color: var(--primary);
}

.modal-outline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.outline-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-warm);
    border-radius: 12px;
    border: 1.5px solid transparent;
    transition: var(--transition);
}

.outline-item:hover {
    border-color: rgba(26, 110, 255, 0.2);
    background: white;
    box-shadow: var(--shadow);
}

.outline-number {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .outline-number {
        width: 32px; height: 32px;
        font-size: 13px;
    }
}

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

.outline-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

@media (min-width: 768px) {
    .outline-info h4 {
        font-size: 14px;
    }
}

.outline-info p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (min-width: 768px) {
    .outline-info p {
        font-size: 13px;
    }
}

/* Modal Footer */
.modal-footer {
    padding: 16px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--border);
}

.modal-footer a,
.modal-footer button {
    text-decoration: none;
    display: inline-flex;
    font-family: inherit;
}

@media (min-width: 640px) {
    .modal-footer {
        flex-direction: row;
        justify-content: flex-end;
        padding: 16px 32px 24px;
        gap: 12px;
    }
}

.modal-btn,
button.modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    min-height: 36px;
    touch-action: manipulation;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

@media (min-width: 768px) {
    .modal-btn {
        padding: 8px 18px;
        font-size: 13px;
        min-height: 36px;
    }
}

.modal-btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 16px rgba(26, 110, 255, 0.3);
}

.modal-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(26, 110, 255, 0.4);
}

.modal-btn-secondary {
    background: white;
    color: var(--text);
    border: 1.5px solid var(--border);
    box-sizing: border-box;
}

.modal-btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== TRAINING MODE ===== */
.training-mode {
    background: var(--bg-warm);
}

.mode-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .mode-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .mode-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

.mode-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    text-align: center;
}

@media (min-width: 768px) {
    .mode-card {
        padding: 32px;
    }
}

.mode-card:hover {
    border-color: rgba(26, 110, 255, 0.2);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.mode-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
}

.mode-icon svg {
    width: 28px; height: 28px;
}

.mode-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.mode-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .mode-card p {
        font-size: 14px;
    }
}

/* ===== TARGET AUDIENCE ===== */
.target-audience {
    background: #fff;
}

.audience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: stretch;
}

@media (min-width: 640px) {
    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .audience-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

.audience-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

@media (min-width: 768px) {
    .audience-card {
        padding: 32px;
    }
}

.audience-card:hover {
    border-color: rgba(26, 110, 255, 0.2);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.audience-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.audience-card:hover::before {
    transform: scaleX(1);
}

.audience-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
}

.audience-icon svg {
    width: 28px; height: 28px;
}

.audience-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.audience-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
    flex: 1;
}

@media (min-width: 768px) {
    .audience-card p {
        font-size: 14px;
    }
}

.audience-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 100px;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: var(--bg-warm);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1.2fr;
        gap: 32px;
    }
}

.contact-info {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    border: 1.5px solid var(--border);
    height: fit-content;
}

@media (min-width: 768px) {
    .contact-info {
        padding: 32px;
    }
}

.contact-info-header {
    margin-bottom: 24px;
}

.contact-info-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.contact-info-header p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .contact-info-header p {
        font-size: 14px;
    }
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-warm);
    border-radius: 12px;
    transition: var(--transition);
}

.contact-item:hover {
    background: var(--primary-light);
}

.contact-item-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.contact-item-icon svg {
    width: 16px; height: 16px;
}

.contact-item-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.contact-item-info p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (min-width: 768px) {
    .contact-item-info h4 {
        font-size: 14px;
    }
    .contact-item-info p {
        font-size: 13px;
    }
}

/* Contact Form Card */
.contact-form-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    border: 1.5px solid var(--border);
}

@media (min-width: 768px) {
    .contact-form-card {
        padding: 32px;
    }
}

.contact-form-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.form-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .form-desc {
        font-size: 14px;
        margin-bottom: 24px;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.form-group .required {
    color: #dc2626;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: white;
    transition: var(--transition);
    min-height: 44px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 110, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a8a9a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-height: 48px;
    touch-action: manipulation;
    margin-top: 4px;
}

.form-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(26, 110, 255, 0.35);
}

.form-submit-btn svg {
    width: 18px; height: 18px;
}

.form-note {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    margin-top: 4px;
}


/* ===== NAVIGATION STYLES (mobile enhancements, matches style.css) ===== */
.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
    background: var(--primary-light);
}
.mobile-toggle {
    display: none;
    width: 40px; height: 40px;
    border: none;
    background: var(--primary-light);
    border-radius: 10px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.mobile-toggle span {
    display: block;
    width: 20px; height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 1023px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0; right: 0;
        background: white;
        flex-direction: column;
        padding: 16px 24px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        gap: 4px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .nav-links a {
        display: block;
        padding: 10px 16px;
    }
    .mobile-toggle {
        display: flex;
    }
}
/* ===== ANIMATIONS ===== */
@keyframes slideDown {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes slideUp {
    from { opacity: 1; transform: translate(-50%, 0); }
    to { opacity: 0; transform: translate(-50%, -20px); }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== NOTIFICATION ===== */
.training-notification {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(26, 110, 255, 0.3);
    z-index: 3000;
    animation: slideDown 0.3s ease;
    max-width: 90vw;
    text-align: center;
    word-break: break-word;
}

@media (min-width: 768px) {
    .training-notification {
        top: 90px;
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* ===== GAME ZONE BANNER ===== */
.game-zone-banner {
    background: linear-gradient(135deg, #f0f5ff 0%, #e8f1ff 50%, #f8f9fc 100%);
    position: relative;
    overflow: hidden;
}

.game-zone-banner::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26, 110, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.game-zone-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(26, 110, 255, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.game-zone-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .game-zone-inner {
        grid-template-columns: 1.2fr 1fr;
        gap: 48px;
        padding: 0 24px;
    }
}

/* Content Side */
.game-zone-content {
    text-align: center;
}

@media (min-width: 768px) {
    .game-zone-content {
        text-align: left;
    }
}

.game-zone-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(26, 110, 255, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
    border: 1px solid rgba(26, 110, 255, 0.15);
}

.game-zone-content h2 {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
}

.game-zone-content > p {
    font-size: clamp(14px, 2vw, 16px);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 520px;
}

@media (min-width: 768px) {
    .game-zone-content > p {
        margin-bottom: 28px;
    }
}

/* Game Features Grid */
.game-zone-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
    max-width: 480px;
}

@media (min-width: 768px) {
    .game-zone-features {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-bottom: 28px;
    }
}

.gz-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    transition: var(--transition);
    cursor: default;
}

.gz-feature:hover {
    border-color: rgba(26, 110, 255, 0.25);
    box-shadow: 0 4px 16px rgba(26, 110, 255, 0.08);
    transform: translateY(-2px);
}

.gz-feature .gz-icon {
    font-size: 24px;
    line-height: 1;
}

.gz-feature span:last-child {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Actions */
.game-zone-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

@media (min-width: 768px) {
    .game-zone-actions {
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }
}

.game-zone-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 6px 24px rgba(26, 110, 255, 0.3);
    min-height: 48px;
    white-space: nowrap;
}

.game-zone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(26, 110, 255, 0.4);
}

.game-zone-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.game-zone-hint {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

.game-zone-hint strong {
    color: var(--primary);
    font-weight: 700;
}

/* Visual Side - Card Stack */
.game-zone-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    position: relative;
}

@media (min-width: 768px) {
    .game-zone-visual {
        min-height: 360px;
    }
}

.gz-card-stack {
    position: relative;
    width: 240px;
    height: 280px;
}

@media (min-width: 768px) {
    .gz-card-stack {
        width: 280px;
        height: 320px;
    }
}

.gz-card {
    position: absolute;
    width: 160px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: gzFloat 4s ease-in-out infinite;
}

.gz-card:hover {
    transform: scale(1.05) !important;
    box-shadow: var(--shadow-hover);
    z-index: 10;
}

.gz-card-icon {
    font-size: 36px;
    margin-bottom: 8px;
    line-height: 1;
}

.gz-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 8px;
}

.gz-card-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 10px;
    border-radius: 100px;
}

.gz-card-1 {
    top: 0;
    left: 0;
    transform: rotate(-8deg);
    animation-delay: 0s;
    z-index: 3;
}

.gz-card-2 {
    top: 40px;
    left: 60px;
    transform: rotate(5deg);
    animation-delay: 1.3s;
    z-index: 2;
}

.gz-card-3 {
    top: 90px;
    left: 20px;
    transform: rotate(-3deg);
    animation-delay: 2.6s;
    z-index: 1;
}

@media (min-width: 768px) {
    .gz-card {
        width: 180px;
        padding: 24px 20px;
    }

    .gz-card-1 {
        top: 0;
        left: 10px;
    }

    .gz-card-2 {
        top: 50px;
        left: 80px;
    }

    .gz-card-3 {
        top: 110px;
        left: 30px;
    }

    .gz-card-icon {
        font-size: 42px;
    }

    .gz-card-title {
        font-size: 14px;
    }
}

/* Floating badges */
.gz-float-badge {
    position: absolute;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    animation: gzFloat 3s ease-in-out infinite;
    white-space: nowrap;
}

.gz-float-1 {
    top: 10px;
    right: 0;
    animation-delay: 0.5s;
}

.gz-float-2 {
    bottom: 40px;
    right: 10px;
    animation-delay: 2s;
}

@media (max-width: 767px) {
    .gz-float-badge {
        display: none;
    }
}

@keyframes gzFloat {
    0%, 100% {
        transform: translateY(0) rotate(var(--rot, 0deg));
    }
    50% {
        transform: translateY(-10px) rotate(var(--rot, 0deg));
    }
}

.gz-card-1 { --rot: -8deg; }
.gz-card-2 { --rot: 5deg; }
.gz-card-3 { --rot: -3deg; }

/* Responsive adjustments */
@media (max-width: 767px) {
    .game-zone-features {
        max-width: 100%;
    }

    .gz-feature span:last-child {
        font-size: 11px;
    }

    .gz-card-stack {
        transform: scale(0.9);
    }
}

/* ===== INTERACTIVE CANVAS HERO BANNER ===== */
.training-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, #0a1628 0%, #0f1d3a 40%, #162544 100%);
    padding: 140px 0 40px;
}

@media (min-width: 768px) {
    .training-hero {
        padding: 180px 0 60px;
    }
}

#trainingCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: 
        linear-gradient(180deg, rgba(10, 22, 40, 0.85) 0%, rgba(10, 22, 40, 0.4) 12%, transparent 25%, transparent 70%, rgba(10, 22, 40, 0.5) 100%);
    pointer-events: none;
}

/* Knowledge Tips Floating */
.knowledge-tips {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.knowledge-tip {
    position: absolute;
    background: rgba(26, 110, 255, 0.15);
    border: 1px solid rgba(26, 110, 255, 0.3);
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 24px rgba(26, 110, 255, 0.2);
    max-width: 340px;
    min-width: 200px;
    line-height: 1.6;
}

.knowledge-tip.visible {
    opacity: 1;
    transform: translateY(0);
}

.knowledge-tip::before {
    content: '💡';
    margin-right: 6px;
}

/* Canvas Interaction Hint */
.canvas-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    padding: 8px 18px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: hintPulse 3s ease-in-out infinite;
    pointer-events: none;
}

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

.canvas-hint .hint-icon {
    font-size: 14px;
}

/* Training hero content adjustments for dark canvas bg */
.training-hero-content {
    position: relative;
    z-index: 3;
}

.training-hero h1 {
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.training-hero p {
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.training-hero-badge {
    background: rgba(26, 110, 255, 0.15);
    color: #6aa8ff;
    border-color: rgba(26, 110, 255, 0.3);
}

.training-stat-number {
    color: #6aa8ff;
    text-shadow: 0 0 20px rgba(26, 110, 255, 0.4);
}

.training-stat-label {
    color: rgba(255, 255, 255, 0.5);
}

/* Scan cursor effect */
.training-hero {
    cursor: crosshair;
}


/* ===== PAGINATION ===== */
.courses-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: white;
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    min-height: 36px;
    touch-action: manipulation;
    font-family: inherit;
}

.pagination-btn:hover:not(.disabled):not(.active) {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.pagination-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(26, 110, 255, 0.3);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-prev svg,
.pagination-next svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.pagination-pages {
    display: flex;
    gap: 6px;
}

.pagination-num {
    width: 36px;
    height: 36px;
    padding: 0;
}

.pagination-info {
    font-size: 13px;
    color: var(--text-light);
    margin-left: 8px;
    font-weight: 500;
}

@media (max-width: 640px) {
    .courses-pagination {
        gap: 6px;
    }
    .pagination-btn {
        padding: 6px 10px;
        font-size: 12px;
        min-height: 32px;
    }
    .pagination-num {
        width: 32px;
        height: 32px;
    }
    .pagination-info {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-top: 4px;
    }
}


/* ===== 右侧固定快速引导（与攻防演练页一致） ===== */
.quick-nav {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(26, 110, 255, 0.12);
    border-radius: 100px;
    box-shadow: 0 8px 32px rgba(26, 110, 255, 0.12);
    transition: var(--transition);
}
.quick-nav-item {
    position: relative;
    width: 38px; height: 38px;
    border: none;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    font-family: inherit;
    padding: 0;
}
.quick-nav-item svg {
    width: 18px; height: 18px;
    transition: var(--transition);
}
.quick-nav-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.quick-nav-item.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(26, 110, 255, 0.35);
    transform: scale(1.12);
}
.quick-nav-item .qn-label {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: var(--text);
    color: white;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--transition);
}
.quick-nav-item .qn-label::after {
    content: '';
    position: absolute;
    left: 100%; top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: var(--text);
}
.quick-nav-item:hover .qn-label,
.quick-nav-item.active .qn-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}
.quick-nav-divider {
    width: 20px; height: 1px;
    background: var(--border);
    margin: 2px 0;
}
/* 返回顶部按钮独立样式 */
#quickNavTop.active {
    background: linear-gradient(135deg, #ff6b35 0%, #ff4757 100%);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
}
/* 滚动时整体淡化，悬停恢复 */
.quick-nav.nav-idle {
    opacity: 0.55;
}
.quick-nav.nav-idle:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .quick-nav {
        right: 10px;
        padding: 8px 6px;
        gap: 4px;
    }
    .quick-nav-item {
        width: 34px; height: 34px;
    }
    .quick-nav-item svg {
        width: 16px; height: 16px;
    }
    .quick-nav-item .qn-label {
        display: none; /* 移动端不显示气泡，避免遮挡 */
    }
}
/* ============================================================
   补丁: 安全培训页脚 · 移动端单列适配
   根因: 本文件 @media(max-width:768px) 未覆盖 .footer-grid,
         全局 style.css 的 .footer-grid 桌面四列规则在手机端继续生效。
   用法: 将本段整体粘贴到 training.css 文件【最末尾】即可(后者覆盖前者)。
   ============================================================ */
@media (max-width: 768px) {
    .footer { padding: 40px 0 20px; }
    .footer .container { padding: 0 16px; }
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
        margin-bottom: 28px !important;
    }
    .footer-brand .logo-icon img { height: 60px; }
    .footer-brand p { max-width: 100%; font-size: 13px; }
    .footer-col h4 { font-size: 13px; margin-bottom: 12px; }
    .footer-col li { margin-bottom: 6px; }
    .footer-col a { font-size: 13px; }
    /* 底部备案行: 单列纵向排列, 文字居中不溢出 */
    .footer-bottom {
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center;
        gap: 6px;
        padding-top: 16px;
    }
    .footer-bottom p { width: 100%; font-size: 12px; line-height: 1.9; word-break: break-all; }
    .footer-bottom a { word-break: break-all; }
    .footer-bottom img { vertical-align: -1px; }
}
@media (min-width: 641px) and (max-width: 1024px) {
    /* 平板端页脚两列 */
    .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }
    .footer-brand { grid-column: 1 / -1; }
}