/* ========================================
   飞行学苑入口页面样式
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    background-color: #f5f7fa;
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ========================================
   顶部导航
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.header-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    transition: color 0.3s;
}

.header-scrolled .logo {
    color: #2c3e50;
}

.logo i {
    font-size: 28px;
    color: #3498db;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.header-scrolled .nav-link {
    color: #2c3e50;
}

.nav-link:hover {
    color: #3498db;
}

.nav-link.active {
    color: #3498db;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: #3498db;
    border-radius: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 用户头像 */
.user-avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s;
}

.user-avatar i {
    font-size: 32px;
    color: #fff;
    transition: all 0.3s;
}

.user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.user-avatar img#userAvatarFrame {
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 0;
    pointer-events: none;
    z-index: 2;
}

.header-scrolled .user-avatar i {
    color: #2c3e50;
}

.user-avatar:hover i {
    transform: scale(1.1);
    color: #3498db;
}

/* 用户下拉菜单 */
.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    padding: 8px 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

.user-avatar:hover .user-dropdown-menu,
.user-avatar.show .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-user-info {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.dropdown-divider {
    height: 1px;
    background: #f0f0f0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    color: #5a6a7a;
    cursor: pointer;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: #f5f7fa;
    color: #3498db;
}

.dropdown-item i {
    font-size: 14px;
}

/* ========================================
   英雄区域
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 30%, #34495e 60%, #3498db 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(40px);
}

.cloud-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -5%;
    animation: float 20s ease-in-out infinite;
}

.cloud-2 {
    width: 400px;
    height: 400px;
    top: 50%;
    right: -10%;
    animation: float 25s ease-in-out infinite reverse;
}

.cloud-3 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 30%;
    animation: float 18s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, -30px);
    }
}

.plane-icon {
    position: absolute;
    top: 20%;
    right: 15%;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.08);
    transform: rotate(-20deg);
    animation: planeFly 15s ease-in-out infinite;
}

@keyframes planeFly {
    0%, 100% {
        transform: rotate(-20deg) translate(0, 0);
    }
    50% {
        transform: rotate(-15deg) translate(-20px, 20px);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
    padding: 0 30px;
    max-width: 900px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.title-line {
    display: block;
}

.title-line.highlight {
    background: linear-gradient(90deg, #5dade2, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
}

.hero-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.btn-large {
    padding: 16px 40px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}

.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
}

.btn-encyclopedia {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.4);
}

.btn-encyclopedia:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(39, 174, 96, 0.5);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: bounce 2s ease-in-out infinite;
}

.hero-scroll i {
    font-size: 20px;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ========================================
   通用区块样式
   ======================================== */

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 17px;
    color: #7f8c8d;
}

/* ========================================
   入口卡片区域
   ======================================== */

.entry-section {
    padding: 100px 0;
    background: #f5f7fa;
}

.entry-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.entry-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    overflow: hidden;
    display: block;
}

.entry-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.entry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #3498db, #5dade2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.entry-card:hover::before {
    transform: scaleX(1);
}

.entry-card-classroom::before {
    background: linear-gradient(90deg, #3498db, #5dade2);
}

.entry-card-video::before {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.entry-card-aicoach::before {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.entry-card-manual::before {
    background: linear-gradient(90deg, #0d9488, #14b8a6);
}

.entry-card-simulator::before {
    background: linear-gradient(90deg, #1a5276, #2e86c1);
}

.entry-card-lift::before {
    background: linear-gradient(90deg, #7d3c98, #af7ac5);
}

.card-icon-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
}

.card-icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    opacity: 0.15;
}

.entry-card-classroom .card-icon-bg {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.entry-card-video .card-icon-bg {
    background: linear-gradient(135deg, #e74c3c, #f39c12);
}

.entry-card-aicoach .card-icon-bg {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.entry-card-manual .card-icon-bg {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
}

.entry-card-simulator .card-icon-bg {
    background: linear-gradient(135deg, #1a5276, #2e86c1);
}

.entry-card-lift .card-icon-bg {
    background: linear-gradient(135deg, #7d3c98, #af7ac5);
}

.card-icon {
    position: relative;
    z-index: 1;
    font-size: 40px;
    line-height: 80px;
    text-align: center;
    width: 100%;
}

.entry-card-classroom .card-icon {
    color: #3498db;
}

.entry-card-video .card-icon {
    color: #e74c3c;
}

.entry-card-aicoach .card-icon {
    color: #667eea;
}

.entry-card-manual .card-icon {
    color: #0d9488;
}

.entry-card-simulator .card-icon {
    color: #2e86c1;
}

.entry-card-lift .card-icon {
    color: #af7ac5;
}

.card-content {
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.card-desc {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 25px;
}

.card-features {
    margin-bottom: 30px;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #555;
    font-size: 15px;
}

.card-features i {
    color: #27ae60;
    font-size: 14px;
}

.card-action {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #3498db;
    transition: gap 0.3s;
}

.entry-card-video .card-action {
    color: #e74c3c;
}

.entry-card-aicoach .card-action {
    color: #667eea;
}

.entry-card-manual .card-action {
    color: #0d9488;
}

.entry-card-simulator .card-action {
    color: #2e86c1;
}

.entry-card-lift .card-action {
    color: #af7ac5;
}

.entry-card-download::before {
    background: linear-gradient(90deg, #b45309, #f59e0b);
}

.entry-card-download .card-icon-bg {
    background: linear-gradient(135deg, #b45309, #f59e0b);
}

.entry-card-download .card-icon {
    color: #f59e0b;
}

.entry-card-download .card-action {
    color: #f59e0b;
}

.entry-card:hover .card-action {
    gap: 15px;
}

.card-decoration {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 150px;
    color: rgba(0, 0, 0, 0.03);
    transition: all 0.4s;
}

.entry-card:hover .card-decoration {
    transform: scale(1.1) rotate(5deg);
}

/* 飞行训练中心 / 模拟飞行赛事 入口卡（与其他入口卡同语言） */
.entry-card-training::before { background: linear-gradient(90deg, #0e9f6e, #34d399); }
.entry-card-training .card-icon-bg { background: linear-gradient(135deg, #0e9f6e, #047857); }
.entry-card-training .card-icon { color: #0e9f6e; }
.entry-card-training .card-action { color: #0e9f6e; }

.entry-card-match::before { background: linear-gradient(90deg, #c89b3c, #e8c34a); }
.entry-card-match .card-icon-bg { background: linear-gradient(135deg, #c89b3c, #b8860b); }
.entry-card-match .card-icon { color: #c89b3c; }
.entry-card-match .card-action { color: #c89b3c; }

/* ========================================
   课程分类区域
   ======================================== */

.categories-section {
    padding: 100px 0;
    background: #fff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.category-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 16px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.category-card:hover {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.category-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
}

.icon-theory {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.icon-practice {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.icon-competition {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.icon-certificate {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.icon-public {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.icon-qa {
    background: linear-gradient(135deg, #1abc9c, #16a085);
}

.category-card h4 {
    font-size: 19px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.category-card p {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.6;
}

/* ========================================
   特色优势区域
   ======================================== */

.features-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
}

.features-section .section-title {
    color: #fff;
}

.features-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #3498db;
    transition: all 0.3s;
}

.feature-item:hover .feature-icon {
    background: #3498db;
    color: #fff;
    transform: scale(1.1);
}

.feature-item h4 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* ========================================
   底部
   ======================================== */

.footer {
    background: #1a252f;
    color: #fff;
    padding: 60px 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    padding-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-logo i {
    color: #3498db;
    font-size: 26px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.footer-col a {
    display: block;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* ========================================
   用户中心弹窗
   ======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s;
}

.modal-overlay.show .modal-box {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title i {
    color: #3498db;
}

.modal-close {
    font-size: 24px;
    color: #95a5a6;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: #e74c3c;
}

.modal-body {
    padding: 24px;
}

.profile-avatar-section {
    text-align: center;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
}

.profile-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-avatar-text {
    font-size: 14px;
    color: #7f8c8d;
}

.profile-avatar-upload-hint {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #3498db;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
}

.profile-avatar:hover .profile-avatar-upload-hint {
    background: #2980b9;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
}

.form-input-wrap {
    position: relative;
}

.form-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
    font-size: 16px;
}

.form-input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 15px;
    color: #2c3e50;
    transition: all 0.3s;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-input::placeholder {
    color: #bdc3c7;
}

.form-radio-group {
    display: flex;
    gap: 24px;
}

.form-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
    color: #2c3e50;
}

.form-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #3498db;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #f0f0f0;
}

.btn-modal {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: inherit;
}

.btn-modal-secondary {
    background: #f5f7fa;
    color: #5a6a7a;
}

.btn-modal-secondary:hover {
    background: #e8eaed;
}

.btn-modal-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.btn-modal-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

/* ========================================
   赛事宣传板块样式
   ======================================== */
.match-section {
    padding: 100px 0;
    background: #f5f7fa;
}

/* 焦点赛事大卡（对齐全站 entry-card 语言） */
/* 赛事卡片（3 张等宽，对齐全站网格） */
.match-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 28px;
}
.match-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    text-decoration: none;
}
.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #3498db, #5dade2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 2;
}
.match-card:hover::before {
    transform: scaleX(1);
}
.match-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
.match-card-cover {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #e8f0fe, #f0e8ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #b8c8e8;
    overflow: hidden;
}
/* 赛事封面图幅不一：统一 16/9 容器 + contain 完整入画，不裁切不变形 */
.match-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
/* 训练科目封面是正方形图：按 1:1 完整入画 */
#trainCardGrid .match-card-cover.has-img {
    aspect-ratio: 1/1;
}
#trainCardGrid .match-card-cover.has-img img {
    object-fit: cover;
}
/* 无图兜底：渐变底 + 图标，保持轻矮条 */
.match-card-cover.no-img {
    height: 132px;
    aspect-ratio: auto;
}
.match-card-body {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
/* 旧 .match-status 定义已于 2026-10-25 删除：首页无此元素，现役样式在 match_list.css */
.match-card-name {
    font-size: 19px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
    max-width: 100%;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.match-card-time {
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.match-card-action {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #3498db;
    transition: gap 0.3s;
    margin-top: auto;
}
.match-card:hover .match-card-action {
    gap: 15px;
}

.match-loading {
    text-align: center;
    color: #7f8c8d;
    padding: 30px 0;
}
.match-empty {
    text-align: center;
    color: #7f8c8d;
    padding: 40px 0;
    font-size: 16px;
}

/* 底部操作行：身份入口 + 查看全部 */
.match-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.match-entry {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.match-entry-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    background: #fff;
    color: #2c3e50;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: all 0.25s;
}
.match-entry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.match-entry-main {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
}
.match-entry-main:hover {
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

/* 查看全部 */

/* ========================================
   赛事身份入口区（浅色背景，统一白卡胶囊）
   ======================================== */
.match-identity {
    margin-bottom: 36px;
}
.match-identity-welcome {
    text-align: center;
    color: #2c3e50;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: 1px;
}
.match-identity-cards {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.identity-card {
    flex: 1;
    min-width: 170px;
    max-width: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 18px;
    border-radius: 16px;
    text-decoration: none;
    background: #fff;
    border: 2px solid transparent;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}
.identity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}
.identity-card .identity-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}
.identity-card .identity-title {
    font-size: 19px;
    font-weight: 700;
    color: #2b2b3a;
}
.identity-card .identity-role {
    font-size: 13px;
    color: #8a8aa0;
}
.identity-card-arbiter { border-color: rgba(255, 140, 66, 0.5); }
.identity-card-arbiter .identity-icon { background: linear-gradient(135deg, #ff9a56, #ff6b35); }
.identity-card-arbiter .identity-role { color: #e0762c; }
.identity-card-player { border-color: rgba(124, 77, 255, 0.5); }
.identity-card-player .identity-icon { background: linear-gradient(135deg, #7c4dff, #5e35b1); }
.identity-card-player .identity-role { color: #5e35b1; }
.identity-card-viewer { border-color: rgba(38, 132, 255, 0.5); }
.identity-card-viewer .identity-icon { background: linear-gradient(135deg, #4facfe, #2684ff); }
.identity-card-viewer .identity-role { color: #2684ff; }
.match-identity-guest {
    text-align: center;
}
.match-identity-note {
    text-align: center;
    color: #7f8c8d;
    font-size: 13px;
    margin-top: 12px;
}
@media (max-width: 720px) {
    .match-identity-cards { flex-direction: column; align-items: center; }
    .identity-card { width: 100%; max-width: 320px; flex-direction: row; justify-content: flex-start; padding: 16px 18px; }
    .identity-card .identity-icon { width: 46px; height: 46px; font-size: 18px; flex: none; }
    .identity-card .identity-title { font-size: 17px; }
}
@media (max-width: 720px) {
    .match-card-grid { grid-template-columns: 1fr; }
    .match-card-cover { aspect-ratio: 16/9; }
    #trainCardGrid .match-card-cover.has-img { aspect-ratio: 16/9; }
    #trainCardGrid .match-card-cover.has-img img { object-fit: contain; }
    .match-card-cover.no-img { height: 120px; aspect-ratio: auto; }
    .match-actions { flex-direction: column; align-items: stretch; }
    .match-entry { justify-content: center; }
    .match-entry-btn { flex: 1; justify-content: center; }
    .match-section { padding: 70px 0; }
}

/* ========================================
   响应式设计
   ======================================== */

@media (max-width: 992px) {
    .hero-title {
        font-size: 42px;
    }
    
    .hero-buttons {
        max-width: 480px;
        gap: 14px;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .entry-cards {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .match-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    /* 用户头像在移动端更紧凑 */
    .user-avatar {
        width: 36px;
        height: 36px;
    }
    
    .user-avatar i {
        font-size: 28px;
    }
    
    /* 用户下拉菜单在移动端自适应宽度 */
    .user-dropdown-menu {
        min-width: 160px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 17px;
        line-height: 1.4;
        margin-bottom: 12px;
    }
    
    .hero-desc {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 100%;
        width: 100%;
    }
    
    .btn-large {
        padding: 14px 30px;
        font-size: 15px;
        justify-content: center;
        display: flex;
        width: 100%;
        box-sizing: border-box;
    }

    .match-card-grid {
        grid-template-columns: 1fr;
    }

    .match-card-cover {
        aspect-ratio: 16/9;
    }
    #trainCardGrid .match-card-cover.has-img {
        aspect-ratio: 16/9;
    }
    #trainCardGrid .match-card-cover.has-img img {
        object-fit: contain;
    }
    .match-card-cover.no-img {
        height: 120px;
        aspect-ratio: auto;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .entry-section,
    .categories-section,
    .features-section {
        padding: 60px 0;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .plane-icon {
        font-size: 80px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 20px;
    }
    
    .logo span {
        font-size: 18px;
    }
    
    .btn-admin span {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
    }
    
    .entry-card {
        padding: 35px 25px;
    }
    
    .card-title {
        font-size: 22px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}
