/*!
 * 飞扬五子棋 · 模型研发中心样式
 * ==================================================================
 * 设计基调完全沿用网站主样式（css/styles.css 的深色主题变量）：
 *   · 背景 #0D1117 / 卡片 #161B22 / 边框 #30363D
 *   · 主色 #4F8EF7（蓝）、辅助色 #F5A623（橙）
 *   · 圆角、阴影、间距一律用 var(--xxx)，保证与全站视觉统一
 * 页面：models.html（列表） / model-detail.html（详情）
 */

/* ==================== Hero ==================== */
.mc-hero {
    position: relative;
    padding: 120px 0 64px;
    overflow: hidden;
    text-align: center;
}

.mc-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.mc-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .5;
}
.mc-orb-1 {
    width: 340px; height: 340px;
    background: rgba(79, 142, 247, .35);
    top: -80px; left: 12%;
}
.mc-orb-2 {
    width: 280px; height: 280px;
    background: rgba(245, 166, 35, .22);
    top: 20px; right: 10%;
}

.mc-hero-content {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.mc-hero-title {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
}
.mc-hero-title .title-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mc-hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.9;
}

.mc-hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 32px;
}
.mc-stat-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}
.mc-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ==================== 主体 ==================== */
.mc-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px var(--space-xl);
}

.mc-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.mc-section-title {
    font-size: 22px;
    font-weight: 700;
}
.mc-section-note {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ==================== 模型卡片网格 ==================== */
.mc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 24px;
}

.mc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 26px 24px 20px;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.mc-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 142, 247, .55);
    box-shadow: var(--shadow-md);
}
/* 当前默认引擎：顶部发光条 */
.mc-card.is-current {
    border-color: rgba(79, 142, 247, .5);
    box-shadow: 0 0 0 1px rgba(79, 142, 247, .18), var(--shadow-glow);
}
.mc-card.is-current::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    background: var(--gradient-primary);
}

.mc-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.mc-card-name {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: .2px;
}
.mc-card-tagline {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}
.mc-card-summary {
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.mc-card-highlights {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.mc-card-highlights li {
    position: relative;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
}
.mc-card-highlights li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
}
.mc-card-highlights strong {
    color: var(--text-primary);
    font-weight: 600;
}

.mc-card-foot {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.mc-card-date {
    font-size: 12px;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}
.mc-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: gap var(--transition-fast), color var(--transition-fast);
}
.mc-card-link:hover {
    gap: 10px;
    color: #7ba9ff;
}

/* ==================== 编号 / 徽标（与五子棋页保持一致） ==================== */
.mc-code {
    display: inline-block;
    padding: 0 6px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    line-height: 17px;
    vertical-align: middle;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    letter-spacing: .4px;
    color: var(--text-secondary);
    background: rgba(148, 163, 184, .18);
    border: 1px solid rgba(148, 163, 184, .4);
}
.mc-tag {
    display: inline-block;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 17px;
    vertical-align: middle;
    white-space: nowrap;
    color: #34d399;
    background: rgba(16, 185, 129, .18);
    border: 1px solid rgba(16, 185, 129, .5);
}
.mc-tag.is-preview {
    color: #fbbf24;
    background: rgba(245, 158, 11, .18);
    border-color: rgba(245, 158, 11, .5);
}
.mc-tag.is-current {
    color: var(--primary);
    background: rgba(79, 142, 247, .18);
    border-color: rgba(79, 142, 247, .5);
}

/* ==================== 详情页 ==================== */
.mc-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px var(--space-xl);
}

.mc-breadcrumb {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.mc-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.mc-breadcrumb a:hover { color: var(--primary); }
.mc-breadcrumb span { margin: 0 8px; opacity: .6; }

.mc-detail-head {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}
.mc-detail-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 700;
    margin-bottom: 10px;
}
.mc-detail-tagline {
    font-size: 15px;
    color: var(--text-secondary);
}
.mc-detail-meta {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.mc-meta-item {
    font-size: 13px;
    color: var(--text-secondary);
}
.mc-meta-item b {
    display: block;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    margin-top: 3px;
    font-variant-numeric: tabular-nums;
}

.mc-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 22px;
}
.mc-panel-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mc-panel-title::before {
    content: '';
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: var(--gradient-primary);
}
.mc-panel p {
    font-size: 14px;
    line-height: 1.95;
    color: var(--text-secondary);
}
.mc-panel p + p { margin-top: 12px; }

.mc-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.mc-detail-list li {
    padding-left: 16px;
    border-left: 2px solid rgba(79, 142, 247, .35);
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--text-secondary);
}
.mc-detail-list strong {
    color: var(--text-primary);
    font-weight: 600;
    margin-right: 6px;
}

/* ---------- 对抗战绩 / 分色表现：横向对比条 ---------- */
.mc-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mc-bar-row {
    display: grid;
    grid-template-columns: minmax(118px, 190px) 1fr 62px;
    align-items: center;
    gap: 14px;
}
.mc-bar-label {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mc-bar-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, .16);
    overflow: hidden;
}
.mc-bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--gradient-primary);
    box-shadow: 0 0 12px rgba(79, 142, 247, .35);
}
.mc-bar-fill.is-warn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 0 12px rgba(245, 158, 11, .3);
}
.mc-bar-fill.is-weak {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 0 0 12px rgba(239, 68, 68, .3);
}
.mc-bar-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.mc-bar-sub {
    grid-column: 2 / -1;
    margin-top: -8px;
    font-size: 11.5px;
    color: var(--text-secondary);
    opacity: .85;
    line-height: 1.6;
}
/* 对比条内的数值说明（分色区块用） */
.mc-bars-note {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* ---------- 三代横向对比表 ---------- */
.mc-cmp-wrap { overflow-x: auto; }
.mc-cmp {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 520px;
}
.mc-cmp th, .mc-cmp td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    text-align: center;
    white-space: nowrap;
}
.mc-cmp thead th {
    font-weight: 600;
    color: var(--text-primary);
}
.mc-cmp th:first-child, .mc-cmp td:first-child {
    text-align: left;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: normal;
    min-width: 130px;
}
/* 高亮「当前查看的模型」所在列 */
.mc-cmp th.is-current,
.mc-cmp td.is-current {
    background: rgba(79, 142, 247, .1);
    color: var(--primary);
    font-weight: 700;
}
.mc-cmp tbody tr:last-child th,
.mc-cmp tbody tr:last-child td { border-bottom: 0; }
.mc-cmp .mc-cmp-code {
    display: block;
    font-size: 10.5px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 2px;
}

/* 上一版 / 下一版导航 */
.mc-pager {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.mc-pager a {
    flex: 1 1 220px;
    display: block;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.mc-pager a:hover {
    border-color: rgba(79, 142, 247, .55);
    transform: translateY(-2px);
}
.mc-pager-label {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
}
.mc-pager-name {
    font-size: 15px;
    font-weight: 600;
}

/* 空态 */
.mc-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}
.mc-empty a { color: var(--primary); }

/* ==================== 响应式 ==================== */
@media (max-width: 640px) {
    .mc-hero { padding: 96px 0 44px; }
    .mc-hero-stats { gap: 26px; }
    .mc-grid { gap: 16px; }
    .mc-card { padding: 22px 18px 18px; }
    .mc-panel { padding: 18px; }
    .mc-detail-meta { gap: 18px; }
}
