/* ========================================
   全局CSS - 深色游戏科技风格
   ======================================== */

/* CSS 变量定义 */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --border-color: #d1d5db;
    --border-highlight: #3b82f6;
    --text-primary: #111827;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --accent-blue: #2563eb;
    --accent-purple: #7c3aed;
    --color-success: #047857;
    --color-warning: #b45309;
    --color-danger: #b91c1c;
    --shadow-glow: 0 0 8px rgba(59, 130, 246, 0.12);
    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.08);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
}

a:hover {
    color: #60a5fa;
}

/* ========================================
   登录/注册页面
   ======================================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 40%, #f1f5f9 100%);
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 1px rgba(59, 130, 246, 0.3);
}

.blurred-card {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #e2e8f0, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-form input {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-form input:focus {
    outline: none;
    border-color: var(--border-highlight);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.login-form input::placeholder {
    color: var(--text-muted);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}

.login-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.download-btn {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.download-btn:hover,
.download-btn:focus,
.download-btn:visited {
    color: #ffffff;
    text-decoration: none;
}

.download-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.error-message {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--color-danger);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 13px;
    text-align: center;
}

.success-message {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--color-success);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.login-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.login-footer a:hover {
    color: var(--accent-blue);
}

.disabled-notice {
    background-color: rgba(100, 116, 139, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 16px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 14px;
}

/* ========================================
   主布局
   ======================================== */
.main-layout {
    display: flex;
    min-height: 100vh;
}

/* ========================================
   侧边栏
   ======================================== */
.sidebar {
    width: 240px;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h2 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin: 2px 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    color: var(--text-primary);
    background-color: rgba(59, 130, 246, 0.05);
}

.sidebar-nav li.active a {
    color: var(--accent-blue);
    background-color: rgba(59, 130, 246, 0.08);
    border-left-color: var(--accent-blue);
}

.sidebar-nav .icon {
    margin-right: 12px;
    font-size: 10px;
    opacity: 0.6;
}

/* ========================================
   主内容区
   ======================================== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ========================================
   顶部栏
   ======================================== */
.top-header {
    height: 64px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
}

.menu-toggle {
    font-size: 20px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    display: none;
}

.menu-toggle:hover {
    color: var(--text-primary);
}

.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
}

.page-title-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.page-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-name {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

.logout-btn {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.logout-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-blue);
    background-color: rgba(59, 130, 246, 0.05);
}

/* ========================================
   内容区域
   ======================================== */
.content-area {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background-color: var(--bg-primary);
}

/* ========================================
   公告区域
   ======================================== */
.announcement-card {
    background-color: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.announcement-icon {
    font-size: 20px;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.announcement-content {
    flex: 1;
}

.announcement-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 6px;
}

.announcement-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ========================================
   统计卡片
   ======================================== */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: var(--shadow-card);
}

.stat-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 8px rgba(59, 130, 246, 0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 16px;
}

.stat-icon.points {
    background-color: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.stat-icon.ingot {
    background-color: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.stat-icon.fixed {
    background-color: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.stat-icon.teleport {
    background-color: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.stat-info h3 {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-weight: 400;
}

.stat-info p {
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 700;
}

/* ========================================
   内容卡片
   ======================================== */
.content-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.content-card:hover {
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 6px rgba(59, 130, 246, 0.08);
}

.card-half {
    width: min(520px, 48%);
    max-width: 520px;
    margin: 0; /* left-align to restore original position and match save_dinosaur card */
}

/* ========================================
   CDK 兑换卡片
   ======================================== */
.cdk-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.cdk-card .cdk-tip {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}
.cdk-input-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.cdk-input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 14px;
    background: var(--bg-tertiary, rgba(255,255,255,0.04));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cdk-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.cdk-btn {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 22px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.05s ease;
}
.cdk-btn:hover:not(:disabled) {
    opacity: 0.92;
}
.cdk-btn:active:not(:disabled) {
    transform: translateY(1px);
}
.cdk-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.cdk-hint {
    font-size: 12px;
    color: var(--text-muted);
    min-height: 16px;
    line-height: 1.4;
}

.card-standard {
    width: min(720px, 100%);
    max-width: 720px;
    margin: 0 auto;
}

.hidden {
    display: none;
}

.status-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.save-form {
    margin-top: 20px;
}

.cannot-save-tip {
    margin-top: 20px;
    padding: 15px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    color: #fbbf24;
}

.empty-state-card {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.empty-state-card .empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.content-card h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* ========================================
   首页 - 卡片并排行 + 签到卡片
   ======================================== */
.home-card-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.home-card-row > .content-card {
    margin-bottom: 0;
    flex: 1;
    min-width: 280px;
}

.checkin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}
.checkin-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px 12px;
    text-align: center;
    position: relative;
}
.checkin-number {
    font-size: 30px;
    font-weight: 700;
    color: var(--accent-blue);
    line-height: 1;
    margin-bottom: 6px;
}
.checkin-label {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}
.online-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.checkin-btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    transition: opacity 0.2s;
}
.checkin-btn:hover { opacity: 0.9; }
.checkin-btn.checked {
    background: #d1d5db;
    color: #6b7280;
    cursor: default;
}
/* 三按钮布局 */
.checkin-btns-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}
.checkin-btns-row .checkin-btn {
    font-size: 13px;
    padding: 10px 6px;
}
.checkin-btns-row .milestone-btn {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}
.checkin-btns-row .milestone-btn:hover { opacity: 0.9; }
.checkin-btns-row .milestone-btn.checked {
    background: #d1d5db;
    color: #6b7280;
    cursor: default;
}
/* 签到单位后缀 */
.checkin-unit {
    font-size: 12px;
    font-weight: 400;
    color: #9ca3af;
    margin-left: 2px;
}
/* 用户签到统计（累计/总/连续） */
.checkin-user-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}
.checkin-user-item {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 8px;
    text-align: center;
}
.checkin-user-number {
    font-size: 22px;
    font-weight: 700;
    color: #f59e0b;
    line-height: 1;
    margin-bottom: 4px;
}
.checkin-user-label {
    font-size: 11px;
    color: var(--text-muted);
}
/* 奖励预览 */
.checkin-reward-preview {
    margin-bottom: 14px;
}
.reward-title {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
}
.reward-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.reward-tag {
    display: inline-block;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid #f59e0b40;
}
/* 签到里程碑展示 */
.milestone-section {
    margin-bottom: 10px;
}
.milestone-title {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 6px;
}
/* 里程碑条件标签（天数/次数） */
.ms-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 4px;
    vertical-align: middle;
}
.ms-tag.claimed {
    background: #e5e7eb;
    color: #9ca3af;
}
.ms-tag.reachable {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    animation: milestone-pulse 1.5s infinite;
}
.ms-tag.locked {
    background: rgba(99, 102, 241, 0.06);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.15);
}
@keyframes milestone-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
}

/* ========================================
   首页 - 折线图卡片
   ======================================== */
/* 日期选择器 */
.chart-date-picker {
    margin-bottom: 14px;
    padding: 12px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}
.chart-picker-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.chart-picker-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.chart-picker-row label {
    font-size: 13px;
    color: var(--text-secondary, #9ca3af);
    font-weight: 600;
}
.chart-picker-row input[type="date"] {
    background: var(--bg-primary, #111827);
    border: 1px solid var(--border-color);
    color: var(--text-primary, #f9fafb);
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 13px;
    outline: none;
    width: 140px;
}
.chart-picker-row input[type="date"]:focus {
    border-color: var(--accent-blue, #3b82f6);
}
.chart-picker-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.chart-picker-btn:hover { opacity: 0.85; }
.chart-card canvas {
    width: 100%;
    height: 320px;
    display: block;
}
.chart-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}
.legend-item::before {
    content: '';
    width: 16px;
    height: 3px;
    border-radius: 2px;
    background: currentColor;
}

/* ========================================
   信息列表
   ======================================== */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    width: 120px;
    color: var(--text-muted);
    font-size: 14px;
    flex-shrink: 0;
}

.info-value {
    flex: 1;
    color: var(--text-primary);
    font-size: 14px;
}

.info-value a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-value a:hover {
    color: #60a5fa;
}

/* ========================================
   按钮样式
   ======================================== */
.btn {
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
}

.btn-success:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
}

.btn-danger:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
        background-color: #e2e8f0;
    border-color: var(--text-muted);
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--border-highlight);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.form-group {
    margin-bottom: 20px;
}

.required-mark {
    color: #ef4444;
}

.empty-state-card.error {
    color: #ef4444;
}

.btn-disabled {
    background-color: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
    border: 1px solid var(--border-color);
    opacity: 0.6;
}

.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* ========================================
   表格样式
   ======================================== */
.table-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-card);
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

    .ranking-table {
        width: 100%;
        border-collapse: collapse;
    }

    .data-table thead,
    .ranking-table thead {
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(45, 55, 72, 0.5);
    color: var(--text-secondary);
    font-size: 14px;
}

.data-table tbody tr:nth-child(even) {
    background-color: rgba(30, 41, 59, 0.3);
}

.data-table tbody tr:hover {
    background-color: var(--bg-tertiary);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.teleport-data-table {
    background-color: #ffffff;
    color: #111827;
}

.teleport-data-table thead {
    background-color: #ffffff;
}

.teleport-data-table th {
    color: #111827;
    border-color: #e5e7eb;
}

.teleport-data-table td {
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
}

.teleport-data-table tbody tr,
.teleport-data-table tbody tr:nth-child(odd),
.teleport-data-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.teleport-data-table tbody tr:hover {
    background-color: #eef2ff;
}

.no-data {
    text-align: center;
    color: var(--text-muted);
    padding: 40px !important;
}

.role-badge, .perm-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}

.role-badge.leader {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.18);
}

.role-badge.vice {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.18);
}

.role-badge.member {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    box-shadow: 0 4px 10px rgba(100, 116, 139, 0.18);
}

.role-badge.online {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.18);
}

.role-badge.offline {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    box-shadow: 0 4px 10px rgba(100, 116, 139, 0.18);
}

.perm-tag.perm-approve {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.18);
}

.perm-tag.perm-kick {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.18);
}

.perm-tag.perm-inventory {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.18);
}

.perm-tag.perm-announcement {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.18);
}

/* ========================================
   操作链接
   ======================================== */
.action-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
    text-decoration: none;
    padding: 3px 12px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.action-link:hover {
    opacity: 0.85;
}

.action-link.kick {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.18);
}

.action-link.set-vice {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.18);
}

.action-link.cancel-vice {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.18);
}

.action-link.approve {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.18);
}

.action-link.reject {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.18);
}

/* ========================================
   团队相关样式
   ======================================== */
.no-team-notice {
    text-align: center;
    padding: 60px 24px;
}

.no-team-notice .notice-icon {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.no-team-notice h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.no-team-notice p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.team-info-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.team-info-card:hover {
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 6px rgba(59, 130, 246, 0.08);
}

.team-info-card h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.team-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.team-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-detail-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.team-detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

/* 团队卡片列表 */
.team-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.team-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.team-card-info {
    flex: 1;
}

.team-card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.team-card-details {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.team-card-action {
    flex-shrink: 0;
    margin-left: 16px;
}

/* ========================================
   公告编辑区
   ======================================== */
.announcement-edit {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.announcement-edit h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.announcement-edit textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.announcement-edit textarea:focus {
    outline: none;
    border-color: var(--border-highlight);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.announcement-readonly {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.announcement-readonly h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.announcement-readonly p {
    padding: 12px 16px;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid var(--border-color);
}

/* ========================================
   成员管理区
   ======================================== */
.members-section {
    margin-bottom: 24px;
}

.members-section h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* 底部操作区 */
.bottom-actions {
    padding: 24px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ========================================
   模态弹窗
   ======================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 1px rgba(59, 130, 246, 0.3);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-container.modal-large {
    max-width: 1000px;
    width: min(1000px, 95vw);
}

.modal-container.modal-small {
    max-width: 400px;
    width: min(400px, 90vw);
}

.modal-message {
    margin: 0;
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 14px;
}

.modal-overlay.high-z-index {
    z-index: 3000;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-tertiary);
}

/* ========================================
   表单样式
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--border-highlight);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    width: 100%;
    max-width: 900px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 1px rgba(59, 130, 246, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-primary);
}

.modal-close {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.modal-close:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-primary);
}

.form-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ========================================
   搜索区域
   ======================================== */
.team-search-area {
    margin-bottom: 16px;
}

.search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.search-box .form-input {
    flex: 1;
}

.search-box .btn {
    flex-shrink: 0;
}

.search-results {
    min-height: 20px;
}

.search-loading,
.search-empty,
.search-error {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 14px;
}

.search-error {
    color: var(--color-danger);
}

/* ========================================
   申请相关
   ======================================== */
.apply-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.apply-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.apply-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.apply-team-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.apply-date {
    font-size: 13px;
    color: var(--text-muted);
}

.apply-status-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.apply-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.apply-status.pending {
    background-color: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.apply-status.approved {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.apply-status.rejected {
    background-color: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.apply-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

/* ========================================
   分页控件
   ======================================== */
.pagination-container {
    margin-top: 16px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 8px 16px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.pagination-btn:hover:not(.disabled) {
    background-color: var(--bg-tertiary);
    border-color: var(--accent-blue);
}

.pagination-btn.disabled {
    background-color: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
    border-color: var(--border-color);
    opacity: 0.5;
}

.pagination-btn.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    border-color: #3b82f6;
}

.pagination-btn.active:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: #2563eb;
}

.pagination-info {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 8px 12px;
}

/* ========================================
   无数据文本
   ======================================== */
.no-data-text {
    text-align: center;
    color: var(--text-muted);
    padding: 24px;
    font-size: 14px;
}

/* ========================================
   新增通用组件 - 状态标签
   ======================================== */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.success {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.warning {
    background-color: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.error {
    background-color: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge.info {
    background-color: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* ========================================
   新增通用组件 - 筛选栏
   ======================================== */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    flex-wrap: wrap;
}

.filter-bar select {
    padding: 8px 32px 8px 12px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.2s ease;
}

.filter-bar select:focus {
    outline: none;
    border-color: var(--border-highlight);
}

/* ========================================
   新增通用组件 - 微光边框
   ======================================== */
.glow-border {
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.15), inset 0 0 10px rgba(59, 130, 246, 0.03);
}

/* ========================================
   侧边栏遮罩
   ======================================== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

/* ========================================
   响应式设计 - 1024px
   ======================================== */
@media (max-width: 1024px) {
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   响应式设计 - 768px
   ======================================== */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -240px;
        top: 0;
        bottom: 0;
        z-index: 1000;
        transition: transform 0.2s ease;
    }

    .sidebar.open {
        left: 0;
    }

    .menu-toggle {
        display: block;
        margin-right: 16px;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }

    .team-details {
        grid-template-columns: 1fr;
    }

    .modal-container {
        max-height: 95vh;
        margin: 10px;
    }

    .action-links {
        flex-direction: column;
        gap: 4px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 12px;
        font-size: 12px;
    }

    .bottom-actions {
        flex-direction: column;
    }

    .bottom-actions .btn {
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .search-box {
        flex-direction: column;
    }

    .team-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .team-card-action {
        margin-left: 0;
        width: 100%;
    }

    .team-card-action .btn {
        width: 100%;
    }

    .apply-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .apply-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .apply-status-area {
        width: 100%;
        justify-content: space-between;
    }

    .pagination {
        flex-direction: column;
        gap: 8px;
    }

    .pagination-btn {
        width: 100%;
        text-align: center;
    }

    .pagination-info {
        order: -1;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-bar select {
        width: 100%;
    }
}

/* ========================================
   图表头部行样式（标题和日期选择器同行）
   ======================================== */
.chart-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.chart-header-row h2 {
    margin: 0;
    white-space: nowrap;
}
.chart-date-picker-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.chart-date-picker-inline label {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 600;
}
.chart-date-picker-inline input[type="date"] {
    padding: 6px 10px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 6px;
    font-size: 13px;
    background: var(--bg-primary, #fff);
    color: var(--text-primary, #111827);
    outline: none;
    transition: border-color 0.2s;
}
.chart-date-picker-inline input[type="date"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}
.chart-date-picker-inline .chart-picker-btn {
    padding: 6px 16px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.chart-date-picker-inline .chart-picker-btn:hover {
    opacity: 0.85;
}
.chart-sub-label {
    font-size: 12px;
    color: var(--text-muted, #9ca3af);
    margin-bottom: 12px;
}

/* ========================================
   活跃会话卡片样式
   ======================================== */
.active-session-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
}
.active-session-header h2 {
    margin: 0;
}
.active-session-sub {
    font-size: 12px;
    color: var(--text-muted, #9ca3af);
    background: rgba(59, 130, 246, 0.08);
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 600;
}
.active-session-body {
    text-align: center;
    padding: 20px 0;
}
.active-session-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}
.active-session-label {
    font-size: 14px;
    color: var(--text-muted, #9ca3af);
    font-weight: 500;
}

/* ========================================
   签到统计胶囊标签样式
   ======================================== */
.checkin-user-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}
.checkin-user-tag {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.04));
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 999px;
    padding: 8px 12px;
}
.checkin-tag-label {
    font-size: 12px;
    color: var(--text-muted, #9ca3af);
    font-weight: 500;
    white-space: nowrap;
}
.checkin-tag-value {
    font-size: 18px;
    font-weight: 700;
    color: #f59e0b;
}
