/* ========================================
   赛事模块前台 - 内页样式（与 cms 首页 competition.css 配套）
   ======================================== */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #2563eb 100%);
    --radius-md: 0.5rem;
    --radius-sm: 0.375rem;
    --radius-lg: 1rem;
    --shadow-sm: 0 2px 4px rgb(0 0 0 / 0.06);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;
}

/* ========================================
   页头横幅（内页顶部）
   ======================================== */
.page-hero {
    position: relative;
    background: var(--gradient-hero);
    padding: 6.5rem 1.5rem 4.5rem;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("/static/home/img/hero-bg.jpg") center / cover no-repeat;
    opacity: 0.3;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(37, 99, 235, 0.7) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.page-hero-badge .dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.page-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.page-hero-sub {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    max-width: 640px;
    margin: 0 auto;
}

.page-hero-meta {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.page-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.page-hero-meta i {
    color: #93c5fd;
}

/* ========================================
   页面主体容器
   ======================================== */
.page-body {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.page-body-narrow {
    max-width: 960px;
}

/* ========================================
   卡片 / 块（兼容旧 block 结构）
   ======================================== */
.block {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eef2f7;
    background: #fafbfc;
}

.block-header .block-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
}

.block-title {
    margin: 0;
}

.block-content {
    padding: 1.5rem;
}

.block-content-full {
    padding: 1.25rem;
}

.bg-gray-lighter {
    background: #f8fafc;
}

/* ========================================
   通用网格（row / col）
   ======================================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.row > [class*="col-"] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.col-md-2 { width: 16.6667%; }
.col-md-3 { width: 25%; }
.col-md-4 { width: 33.3333%; }
.col-md-5 { width: 41.6667%; }
.col-md-6 { width: 50%; }
.col-md-7 { width: 58.3333%; }
.col-md-8 { width: 66.6667%; }
.col-md-9 { width: 75%; }
.col-md-10 { width: 83.3333%; }
.col-md-12 { width: 100%; }

@media (max-width: 768px) {
    .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
    .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-12 {
        width: 100%;
    }
}

/* ========================================
   表格
   ======================================== */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.table td,
.table th {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eef2f7;
    font-size: 0.9rem;
    color: var(--text-dark);
    vertical-align: middle;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table-condensed td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.table-striped tbody tr:nth-child(odd) {
    background: #fafbfc;
}

/* ========================================
   表单
   ======================================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group .col-xs-12 {
    display: block;
    width: 100%;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group .col-xs-12 label {
    font-weight: normal;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-md);
    outline: none;
    transition: var(--transition);
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control,
.form-control[type="select"] {
    appearance: auto;
    -webkit-appearance: auto;
}

.has-error .form-control {
    border-color: #dc2626;
}

.help-block {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.35rem;
}

.address {
    cursor: pointer;
}

.address input {
    width: 100%;
}

.css-input {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    margin-right: 1rem;
}

.css-input input[type="radio"],
.css-input input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.gender-radio {
    display: flex;
    gap: 1.5rem;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 0.6rem 1.3rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    background: var(--bg-light);
    color: var(--text-dark);
}

.btn:hover {
    opacity: 0.88;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
}

.btn-primary:hover {
    color: #fff;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

.btn-success {
    background: #16a34a;
    color: #fff;
}

.btn-warning {
    background: #f59e0b;
    color: #fff;
}

.btn-default {
    background: var(--bg-light);
    border-color: #e5e7eb;
    color: var(--text-dark);
}

.btn-danger {
    background: #dc2626;
    color: #fff;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-xs {
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
}

.btn-group .btn {
    margin-right: 0.5rem;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* ======================================
   bootstrap-fileinput：让“选择文件”按钮与文件名提示同行
   ====================================== */
.form-group .file-input .file-caption-main {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
}
.form-group .file-input .file-caption-main > .file-caption {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}
.form-group .file-input .file-caption-main .file-caption-icon {
    display: none;
}
.form-group .file-input .file-caption-main .file-caption-name {
    flex: 1 1 auto;
    min-width: 0;
}
.form-group .file-input .file-caption-main > .input-group-btn,
.form-group .file-input .file-caption-main > .input-group-append {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    white-space: nowrap;
    width: auto;
}
.form-group .file-input .file-caption-main .btn {
    border-radius: 0;
    margin-left: 0;
    border: 1px solid #d1d5db;
}
.form-group .file-input .file-caption-main .btn-file {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.form-group .file-input .file-caption-main .fileinput-remove-button,
.form-group .file-input .file-caption-main .fileinput-upload-button {
    border-right: 0;
}
.form-group .file-input .file-drop-zone {
    margin: 12px 0;
}

/* ========================================
   面包屑
   ======================================== */
.page-breadcrumb {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: blur(4px);
}

.page-breadcrumb .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.4rem 1.5rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0.25rem 0;
    margin: 0;
    font-size: 0.85rem;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
    color: var(--text-light);
}

.breadcrumb li + li::before {
    content: '/';
    margin: 0 0.6rem;
    color: #cbd5e1;
}

.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

/* ========================================
   分页
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    gap: 0.4rem;
}

.pagination li {
    display: inline-block;
}

.pagination li a,
.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.6rem;
    border-radius: var(--radius-md);
    border: 1px solid #e5e7eb;
    background: #fff;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.pagination li a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination .active span {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}

.pagination .disabled span {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   资讯文章 / 详情
   ======================================== */
.article-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-md);
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
}

.article-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    color: var(--text-light);
    font-size: 0.85rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #eef2f7;
    margin-bottom: 1.75rem;
}

.article-meta i {
    color: var(--primary-color);
    margin-right: 0.3rem;
}

.article-content {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-dark);
    word-break: break-word;
}

.article-content img {
    max-width: 100%;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    border-top: 1px solid #eef2f7;
    padding-top: 1.25rem;
    font-size: 0.9rem;
}

.article-nav a {
    color: var(--primary-color);
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-nav a:hover {
    color: var(--primary-dark);
}

/* ========================================
   赛项详情
   ======================================== */
.ev-detail-section {
    background: var(--bg-light);
    padding-top: 1.5rem;
}

.detail-side {
    position: sticky;
    top: 90px;
}

.detail-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.detail-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.detail-info-list li i {
    color: var(--primary-color);
    margin-top: 0.2rem;
    width: 18px;
    text-align: center;
}

.detail-btn {
    width: 100%;
    margin-top: 1.25rem;
}

/* ========================================
   报名页
   ======================================== */
.enroll-wrap {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-md);
    padding: 2rem 2.5rem;
}

.enroll-tip {
    padding: 1rem 1.25rem;
    background: #eff6ff;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.fileinput-button {
    display: inline-block;
}

/* ========================================
   我的赛事列表
   ======================================== */
.order-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.order-item:hover {
    box-shadow: var(--shadow-lg);
}

.order-item img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.order-item-body {
    flex: 1;
}

.order-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.order-item-title a {
    color: var(--text-dark);
}

.order-item-title a:hover {
    color: var(--primary-color);
}

.order-item-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .order-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   联系我们
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-md);
    padding: 2rem 1.5rem;
    text-align: center;
}

.contact-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-card-text {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.8;
}

.contact-card-text a {
    color: var(--primary-color);
}

/* ========================================
   登录 / 注册
   ======================================== */
.auth-hero {
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}

.auth-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.07)"/></svg>');
    background-size: 50px 50px;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
}

.auth-logo {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-logo img {
    height: 52px;
    margin-bottom: 0.75rem;
}

.auth-title {
    font-size: 1.4rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.75rem;
    color: var(--text-dark);
}

.auth-card .form-control:focus {
    border-color: var(--primary-color);
}

.auth-submit {
    width: 100%;
    margin-top: 0.5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

.auth-switch {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.auth-switch a {
    padding-bottom: 0.35rem;
    color: var(--text-light);
    font-weight: 600;
    border-bottom: 2px solid transparent;
}

.auth-switch a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.send-code-btn {
    white-space: nowrap;
}

.code-group {
    display: flex;
    gap: 0.6rem;
}

.code-group .form-control {
    flex: 1;
}

/* ========================================
   地址选择器遮罩
   ======================================== */
#addressSelectWrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    width: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
}

#addressSelect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 560px;
    max-width: 92%;
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

#addressSelect .tip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eef2f7;
}

#addressSelect .tip h3 {
    margin: 0;
    font-size: 1.05rem;
}

#addressSelect #cancel {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--bg-light);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}

#addressSelect #cancel::before,
#addressSelect #cancel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: var(--text-light);
}

#addressSelect #cancel::before { transform: translate(-50%, -50%) rotate(45deg); }
#addressSelect #cancel::after { transform: translate(-50%, -50%) rotate(-45deg); }

#addressSelect .selected-address {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eef2f7;
}

#addressSelect .selected-address li {
    font-size: 0.9rem;
    color: var(--text-light);
}

#addressSelect .address-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem 1.5rem;
}

#addressSelect .address-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    min-width: 100px;
}

#addressSelect .address-content li {
    padding: 0.4rem 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: var(--radius-sm, 0.375rem);
    transition: var(--transition);
}

#addressSelect .address-content li:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
}

/* ========================================
   文件上传（fileinput 兼容）
   ======================================== */
.fileinput {
    position: relative;
}

.fileinput .fileinput-preview {
    margin-top: 0.6rem;
}

.fileinput .file-caption,
.fileinput .btn {
    height: 38px;
    line-height: 38px;
    border-radius: var(--radius-md);
}

.fileinput .file-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================================
   工具类
   ======================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary-dark { color: var(--primary-color); }
.text-white { color: #fff; }
.text-info { color: var(--text-light); }
.front-yellow { color: #f59e0b; }
.img-responsive { max-width: 100%; height: auto; }
.hidden { display: none; }
.clearfix::after { content: ''; display: table; clear: both; }
.section-desc a { color: var(--primary-color); }

.push-5 { margin-top: 5px; }
.push-10 { margin-top: 10px; }
.push-20 { margin-top: 20px; }
.push-30 { margin-top: 30px; }
.push-50 { margin-top: 50px; }
.push-50-t { margin-top: 50px; }
.push-10-t { margin-top: 10px; }
.push-100-t { margin-top: 100px; }
.push-10-r { margin-right: 10px; }
.push-20-b { margin-bottom: 20px; }
.push-30-b { margin-bottom: 30px; }

.items-push { margin-top: -0.5rem; }
.items-push > div { margin-top: 0.5rem; }

.font-s12 { font-size: 0.75rem; }
.font-s13 { font-size: 0.8rem; }
.font-s18 { font-size: 1.1rem; }
.text-uppercase { text-transform: uppercase; }
.font-w600 { font-weight: 600; }
.font-w700 { font-weight: 700; }

.list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.list li {
    padding: 0.4rem 0;
}

.list-simple-mini li {
    padding: 0.3rem 0;
    font-size: 0.9rem;
}

/* 工作区图文 */
.page-content img,
.course-content img,
.events-content img {
    max-width: 100%;
    border-radius: var(--radius-md);
}

.margin-bottom-none { margin-bottom: 0; }

/* ========================================
   首页资讯弹窗（面向 match 首页）
   ======================================== */
.news-modal-excerpt a {
    color: var(--primary-color);
}

/* ========================================
   登录 / 注册 页面容器
   ======================================== */
.auth-page {
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 110px 1.5rem 64px;
    position: relative;
    overflow: hidden;
}

.auth-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.07)"/></svg>');
    background-size: 50px 50px;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.auth-card-head {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 0.35rem;
}

.auth-card-sub {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.auth-form .form-group input {
    height: 46px;
}

.auth-form-link {
    text-align: center;
    margin: 1.25rem 0 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.auth-form-link a {
    color: var(--primary-color);
    font-weight: 600;
}

.auth-form .btn-lg1 {
    height: 46px;
    line-height: 46px;
    padding: 0 1.5rem;
    font-size: 1rem;
}

.mob-verify {
    display: flex;
    gap: 0.6rem;
}

.mob-verify .mob-verify-input {
    flex: 1;
}

.mob-verify .mob-verify-btn {
    flex-shrink: 0;
}

.mob-verify .mob-verify-btn .btn {
    height: 46px;
    line-height: 32px;
    white-space: nowrap;
}

/* ========================================
   OneUI 旧类兼容（enroll 表单体等遗留结构）
   ======================================== */
.col-xs-12 { width: 100%; float: left; }
.col-xs-7 { width: 58.3333%; float: left; }
.col-xs-5 { width: 41.6667%; float: left; }

.remove-padding { padding: 0; margin: 0; }

.btn-lg1 {
    height: 44px;
    line-height: 44px;
    padding: 0 1.5rem;
    font-size: 1rem;
}

.lead {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 1.25rem;
}

.table-bordered,
.table-bordered td,
.table-bordered th {
    border: 1px solid #eef2f7;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bg-white { background: #fff; }
.text-bold { font-weight: 700; }

.breadcrumb1 ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
}

.breadcrumb1 a {
    color: rgba(255, 255, 255, 0.85);
}

.breadcrumb1 .current-page {
    color: #93c5fd;
}

.courses_banner {
    display: none;
}

.courses_box1 {
    display: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

.fade-in {
    animation: fade-in 0.6s ease both;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .page-body {
        padding: 2rem 1rem;
    }
    .enroll-wrap,
    .article-card {
        padding: 1.25rem 1.25rem;
    }
    .order-item img {
        width: 100%;
        height: 140px;
    }
}

/* ========================================
   统一用户中心（左侧菜单 / 右侧内容）
   ======================================== */
.uc-menu {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.uc-menu-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.25rem;
    background: var(--primary-color);
    color: #fff;
}

.uc-menu-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.6);
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uc-menu-avatar-default {
    background: rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
}

.uc-menu-name {
    font-weight: 700;
    font-size: 0.95rem;
    word-break: break-all;
}

.uc-menu-sub {
    font-size: 0.72rem;
    opacity: 0.85;
    margin-top: 0.2rem;
}

.uc-menu-nav {
    padding: 0.5rem;
}

.uc-menu-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.9rem;
    margin-bottom: 0.15rem;
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-size: 0.92rem;
    font-weight: 500;
    transition: var(--transition);
}

.uc-menu-item i {
    width: 18px;
    text-align: center;
    color: var(--text-light);
}

.uc-menu-item:hover {
    background: #f1f5f9;
    color: var(--primary-color);
}

.uc-menu-item:hover i {
    color: var(--primary-color);
}

.uc-menu-item.active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    box-shadow: inset 3px 0 0 var(--primary-color);
}

.uc-menu-item.active i {
    color: var(--primary-color);
}

.uc-menu-signout {
    color: #dc2626;
}

.uc-menu-signout i {
    color: #dc2626;
}

.uc-menu-signout:hover {
    background: #fef2f2;
    color: #dc2626;
}

.uc-content {
    min-height: 300px;
}

.uc-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.uc-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eef2f7;
}

.uc-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
}

.uc-card-more {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

.uc-card-more:hover {
    color: #1d4ed8;
}

/* 首页统计 */
.uc-stats {
    display: flex;
    gap: 1rem;
}

.uc-stat {
    flex: 1;
    padding: 1.25rem;
    text-align: center;
    background: #f8fafc;
    border-radius: var(--radius-lg);
}

.uc-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.uc-stat-label {
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* 最近报名列表 */
.uc-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f1f5f9;
    transition: var(--transition);
}

.uc-list-item:last-child {
    border-bottom: none;
}

.uc-list-item:hover {
    padding-left: 0.4rem;
}

.uc-list-title {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uc-list-status {
    flex: 0 0 auto;
    font-size: 0.8rem;
    color: #059669;
    background: #ecfdf5;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
}

.uc-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.uc-empty-icon {
    font-size: 2rem;
    color: #cbd5e1;
    margin-bottom: 0.75rem;
}

.uc-empty-link {
    color: #2563eb;
    font-weight: 600;
}

/* 快捷操作 */
.uc-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.uc-action {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: var(--radius-lg);
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.uc-action:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.uc-action i {
    font-size: 1.4rem;
    color: var(--primary-color);
}

/* 用户中心 - 我的赛事列表 */
.uc-orders .order-item {
    margin: 0 0 1rem;
}

.uc-orders .order-item:last-child {
    margin-bottom: 0;
}

.uc-orders nav {
    margin-top: 1.25rem;
    text-align: center;
}

/* 用户中心表单 */
.uc-form-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.uc-form-label {
    flex: 0 0 96px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-dark);
    text-align: right;
}

.uc-form-control-static {
    flex: 1;
    padding: 0.65rem 0;
    font-size: 0.92rem;
    color: var(--text-dark);
}

.uc-form .form-control {
    flex: 1;
}

.uc-form-hint {
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-light);
}

.uc-form-actions {
    padding-left: 96px;
    padding-top: 0.25rem;
}

.uc-avatar-upload {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 1;
}

.uc-avatar-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px dashed #cbd5e1;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.uc-avatar-preview img,
.uc-avatar-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uc-avatar-preview-default {
    color: #cbd5e1;
    font-size: 1.6rem;
}

.uc-avatar-file {
    display: none;
}

.uc-avatar-control {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.uc-avatar-control .btn-outline {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.uc-avatar-control .btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.uc-radio-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    padding: 0.5rem 0;
}

@media (max-width: 768px) {
    .uc-form-label {
        flex-basis: 80px;
        font-size: 0.85rem;
    }
    .uc-form-actions {
        padding-left: 80px;
    }
    .uc-radio-group {
        flex-wrap: wrap;
    }
    .uc-stat {
        min-width: 120px;
    }
}

/* 用户中心：去除通用蓝紫渐变，统一为纯色品牌风格（去 AI 感） */
.uc-content .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.uc-content .btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.uc-content .pagination .active span,
.uc-orders .pagination .active span {
    background: var(--primary-color);
}
