/* 
 * Win10 扁平化风格 - 共享样式库
 * 全站统一UI规范：直角、纯色、极简阴影
 */

/* ==================== 全局基础样式 ==================== */

/* 重置圆角 - 强制所有元素使用直角 */
*, *::before, *::after {
    border-radius: 0 !important;
}

body {
    font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
    background-color: #f5f5f5;
}

/* ==================== 导航栏样式 ==================== */

.site-header {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border-bottom: 1px solid #e0e0e0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    color: #0078d4;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 5px;
}

.main-nav a {
    color: #666666;
    font-size: 14px;
    padding: 8px 16px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.main-nav a:hover {
    background: #f9f9f9;
    color: #0078d4;
    border-color: #e0e0e0;
}

.main-nav a.active {
    background: #0078d4;
    color: #ffffff;
    border-color: #0078d4;
}

/* 用户信息 */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-name {
    color: #666666;
    font-size: 14px;
}

.logout-btn {
    color: #666666;
    background: transparent;
    padding: 6px 14px;
    border: 1px solid #e0e0e0;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: #f9f9f9;
    border-color: #0078d4;
    color: #0078d4;
}

/* ==================== 容器和布局 ==================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ==================== 卡片样式 ==================== */

.card {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #fafafa;
    font-size: 16px;
    font-weight: 600;
    color: #333333;
}

.card-body {
    padding: 20px;
}

/* ==================== 按钮样式 ==================== */

.btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.5;
}

.btn-primary {
    background: #0078d4;
    color: #ffffff;
    border-color: #0078d4;
}

.btn-primary:hover {
    background: #006cbd;
    border-color: #006cbd;
}

.btn-default {
    background: #f0f0f0;
    color: #666666;
    border: 1px solid #d9d9d9;
}

.btn-default:hover {
    background: #e0e0e0;
    border-color: #0078d4;
    color: #0078d4;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 13px;
}

/* ==================== 表单元素 ==================== */

.form-input,
input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    background: #f5f5f5;
    font-size: 14px;
    color: #333333;
    transition: all 0.2s;
}

.form-input:focus,
input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 2px rgba(0,120,212,0.1);
}

/* ==================== 表格样式 ==================== */

.table-wrapper {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

thead {
    background: #f5f5f5;
}

th {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
    color: #333333;
    white-space: nowrap;
}

td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

tbody tr:hover {
    background: #f9f9f9;
}

/* ==================== 统计卡片 ==================== */

.stats-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.stat-card {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    padding: 15px;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.2s;
    flex: 1;
    min-width: 0;
}

.stat-card:hover {
    border-color: #0078d4;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: #666666;
    margin-bottom: 0;
}

.stat-percent {
    font-size: 12px;
    color: #999999;
    font-weight: 500;
}

/* 统计卡片颜色变体 - 纯色替代渐变 */
.stat-card.stat-home {
    background: #0078d4;
    border-color: #0078d4;
}

.stat-card.stat-home .stat-value,
.stat-card.stat-home .stat-label,
.stat-card.stat-home .stat-percent {
    color: #ffffff;
}

.stat-card.stat-draw {
    background: #e81123;
    border-color: #e81123;
}

.stat-card.stat-draw .stat-value,
.stat-card.stat-draw .stat-label,
.stat-card.stat-draw .stat-percent {
    color: #ffffff;
}

.stat-card.stat-away {
    background: #107c10;
    border-color: #107c10;
}

.stat-card.stat-away .stat-value,
.stat-card.stat-away .stat-label,
.stat-card.stat-away .stat-percent {
    color: #ffffff;
}

.stat-card.stat-success {
    background: #ffaa44;
    border-color: #ffaa44;
}

.stat-card.stat-success .stat-value,
.stat-card.stat-success .stat-label,
.stat-card.stat-success .stat-percent {
    color: #ffffff;
}

.stat-card.stat-primary {
    background: #667eea;
    border-color: #667eea;
}

.stat-card.stat-primary .stat-value,
.stat-card.stat-primary .stat-label,
.stat-card.stat-primary .stat-percent {
    color: #ffffff;
}

.stat-card.stat-rq-home {
    background: #00b7c3;
    border-color: #00b7c3;
}

.stat-card.stat-rq-home .stat-value,
.stat-card.stat-rq-home .stat-label,
.stat-card.stat-rq-home .stat-percent {
    color: #ffffff;
}

.stat-card.stat-rq-draw {
    background: #ffb900;
    border-color: #ffb900;
}

.stat-card.stat-rq-draw .stat-value,
.stat-card.stat-rq-draw .stat-label,
.stat-card.stat-rq-draw .stat-percent {
    color: #ffffff;
}

.stat-card.stat-rq-away {
    background: #d13438;
    border-color: #d13438;
}

.stat-card.stat-rq-away .stat-value,
.stat-card.stat-rq-away .stat-label,
.stat-card.stat-rq-away .stat-percent {
    color: #ffffff;
}

/* ==================== 徽章样式 ==================== */

.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    border: 1px solid transparent;
}

.badge-primary {
    background: #0078d4;
}

.badge-success {
    background: #107c10;
}

.badge-danger {
    background: #e81123;
}

.badge-warning {
    background: #ffaa44;
}

.badge-info {
    background: #00b7c3;
}

/* ==================== 标签页样式 ==================== */

.tabs-container {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: #ffffff;
    font-size: 15px;
    font-weight: 600;
    color: #666666;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: #0078d4;
    background: #f9f9f9;
}

.tab-btn.active {
    color: #0078d4;
    border-bottom-color: #0078d4;
    background: #f0f0f0;
}

/* ==================== 筛选区域 ==================== */

.filter-section {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 20px;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-item-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-item-inline label {
    font-size: 14px;
    color: #666666;
    white-space: nowrap;
}

.filter-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

/* ==================== 联赛多选下拉框 ==================== */

.league-multiselect-trigger {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #d9d9d9;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
    height: 36px;
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
    color: #333333;
}

.league-multiselect-trigger:hover {
    border-color: #0078d4;
}

.league-multiselect-trigger.active {
    border-color: #0078d4;
    box-shadow: 0 0 0 2px rgba(0,120,212,0.1);
}

.league-multiselect-dropdown {
    background: #ffffff;
    border: 1px solid #d9d9d9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.league-option:hover {
    background: #f5f5f5;
}

.league-option-all {
    border-bottom: 1px solid #e8e8e8;
    background: #fafafa;
    font-weight: 500;
}

/* ==================== 深色主题适配 ==================== */

.dark-theme body {
    background-color: #1f1f1f;
    color: #e0e0e0;
}

.dark-theme .site-header {
    background: #2d2d2d;
    border-bottom-color: #404040;
}

.dark-theme .logo h1 {
    color: #4cc2ff;
}

.dark-theme .main-nav a {
    color: #999999;
}

.dark-theme .main-nav a:hover {
    background: #383838;
    color: #4cc2ff;
    border-color: #404040;
}

.dark-theme .main-nav a.active {
    background: #0078d4;
    color: #ffffff;
}

.dark-theme .user-name {
    color: #999999;
}

.dark-theme .logout-btn {
    color: #999999;
    border-color: #404040;
}

.dark-theme .logout-btn:hover {
    background: #383838;
    border-color: #4cc2ff;
    color: #4cc2ff;
}

.dark-theme .card {
    background: #2d2d2d;
    border-color: #404040;
}

.dark-theme .card-header {
    background: #252525;
    border-bottom-color: #404040;
    color: #e0e0e0;
}

.dark-theme .btn-default {
    background: #2d2d2d;
    color: #e0e0e0;
    border-color: #404040;
}

.dark-theme .btn-default:hover {
    background: #383838;
    border-color: #4cc2ff;
    color: #4cc2ff;
}

.dark-theme .form-input,
.dark-theme input[type="text"],
.dark-theme input[type="number"],
.dark-theme input[type="date"],
.dark-theme select,
.dark-theme textarea {
    background: #2d2d2d;
    border-color: #404040;
    color: #e0e0e0;
}

.dark-theme .form-input:focus,
.dark-theme input[type="text"]:focus,
.dark-theme input[type="number"]:focus,
.dark-theme input[type="date"]:focus,
.dark-theme select:focus,
.dark-theme textarea:focus {
    border-color: #4cc2ff;
    box-shadow: 0 0 0 2px rgba(76,194,255,0.1);
}

.dark-theme .table-wrapper {
    background: #2d2d2d;
    border-color: #404040;
}

.dark-theme thead {
    background: #252525;
}

.dark-theme th {
    border-bottom-color: #404040;
    color: #e0e0e0;
}

.dark-theme td {
    border-bottom-color: #404040;
}

.dark-theme tbody tr:hover {
    background: #383838;
}

.dark-theme .stat-card {
    background: #2d2d2d;
    border-color: #404040;
}

.dark-theme .stat-card:hover {
    border-color: #4cc2ff;
}

.dark-theme .stat-value {
    color: #e0e0e0;
}

.dark-theme .stat-label {
    color: #999999;
}

.dark-theme .stat-percent {
    color: #666666;
}

.dark-theme .tabs-container {
    background: #2d2d2d;
    border-color: #404040;
}

.dark-theme .tabs {
    border-bottom-color: #404040;
}

.dark-theme .tab-btn {
    background: #2d2d2d;
    color: #999999;
}

.dark-theme .tab-btn:hover {
    background: #383838;
    color: #4cc2ff;
}

.dark-theme .tab-btn.active {
    color: #4cc2ff;
    border-bottom-color: #4cc2ff;
    background: #2d2d2d;
}

.dark-theme .filter-section {
    background: #2d2d2d;
    border-color: #404040;
}

.dark-theme .filter-item-inline label {
    color: #999999;
}

.dark-theme .filter-actions-row {
    border-top-color: #404040;
}

.dark-theme .league-multiselect-trigger {
    background: #2d2d2d;
    border-color: #404040;
    color: #e0e0e0;
}

.dark-theme .league-multiselect-trigger:hover {
    border-color: #4cc2ff;
}

.dark-theme .league-multiselect-trigger.active {
    border-color: #4cc2ff;
    box-shadow: 0 0 0 2px rgba(76,194,255,0.1);
}

.dark-theme .league-multiselect-dropdown {
    background: #2d2d2d;
    border-color: #404040;
}

.dark-theme .league-option:hover {
    background: #383838;
}

.dark-theme .league-option span {
    color: #e0e0e0;
}

.dark-theme .league-option-all {
    border-bottom-color: #404040;
    background: #252525;
}

.dark-theme .league-search-input {
    background: #2d2d2d;
    border-color: #404040;
    color: #e0e0e0;
}

.dark-theme .league-search-input:focus {
    border-color: #4cc2ff;
}
