/* ===== 全局（还原 app.css） ===== */
#app { font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; height: 100vh; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body, html { font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body, html, #app { height: 100%; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }
:root {
  --primary-color: #409eff; --success-color: #67c23a; --warning-color: #e6a23c;
  --danger-color: #f56c6c; --info-color: #909399;
  --text-primary: #303133; --text-regular: #606266; --text-secondary: #909399; --text-placeholder: #c0c4cc;
  --border-lighter: #f2f6fc; --border-light: #ebeef5; --border-base: #dcdfe6; --border-dark: #d4d7de;
  --bg-color: #fff; --bg-page: #f2f3f5;
}
.el-table .el-table__header th { background-color: #fafafa; color: var(--text-primary); font-weight: 600; }
.el-button { border-radius: 6px; font-weight: 500; }
.el-input .el-input__wrapper { border-radius: 6px; }

/* ===== 布局（还原 685.css Layout） ===== */
.app-wrapper { display: flex; height: 100vh; }
.sidebar-container { width: 210px; background-color: #304156; transition: width .3s ease; overflow: hidden; flex-shrink: 0; }
.sidebar-container.collapse { width: 54px; }
.sidebar-logo { height: 50px; display: flex; align-items: center; justify-content: center; background-color: #2b2f3a; position: relative; }
.sidebar-logo h2 { color: #fff; font-size: 16px; margin: 0; transition: all .3s ease; white-space: nowrap; }
.sidebar-logo h2.logo-mini { font-size: 18px; font-weight: 700; }
.sidebar-menu { border: none !important; height: calc(100vh - 50px); width: 100% !important; }
.sidebar-menu .el-menu-item.is-active { background-color: #409eff !important; color: #fff !important; }
.sidebar-menu .el-menu-item:hover, .sidebar-menu .el-sub-menu .el-sub-menu__title:hover { background-color: #263445 !important; }
.sidebar-menu .el-sub-menu .el-menu-item { background-color: #1f2d3d !important; }
.sidebar-menu .el-sub-menu .el-menu-item:hover { background-color: #1a252f !important; }
.sidebar-menu .el-sub-menu .el-menu-item.is-active { background-color: #409eff !important; color: #fff !important; }
.main-container { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.navbar { height: 50px; background-color: #fff; box-shadow: 0 1px 4px rgba(0, 21, 41, .08); justify-content: space-between; padding: 0 20px; display: flex; align-items: center; }
.navbar-left { display: flex; align-items: center; }
.hamburger { font-size: 18px; color: #5a5e66; border: none; background: none; padding: 8px; border-radius: 4px; cursor: pointer; transition: all .3s ease; display: flex; align-items: center; }
.hamburger:hover { background-color: #f5f7fa; color: #409eff; }
.hamburger:focus { outline: none; }
.navbar-right, .user-info { display: flex; align-items: center; }
.user-info { color: #5a5e66; cursor: pointer; }
.user-info .el-icon { margin: 0 5px; }
.app-main { flex: 1; overflow: auto; background-color: #f0f2f5; }
@media (max-width: 768px) {
  .sidebar-container.collapse, .sidebar-container { width: 54px; }
  .navbar { padding: 0 15px; }
}

/* ===== 登录页（还原 935.css Login） ===== */
.login-container { min-height: 100vh; width: 100%; position: relative; overflow: hidden; background: linear-gradient(135deg, #667eea, #764ba2 50%, #f093fb); display: flex; justify-content: center; align-items: center; padding: 20px; }
.background-animation, .particles { position: absolute; width: 100%; height: 100%; top: 0; left: 0; pointer-events: none; z-index: 1; }
.particle { position: absolute; background: rgba(255, 255, 255, .6); border-radius: 50%; animation: float linear infinite; }
@keyframes float { 0% { transform: translateY(100vh) rotate(0deg); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(-100px) rotate(360deg); opacity: 0; } }
.geometric-shapes { position: absolute; width: 100%; height: 100%; }
.shape { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .1); animation: rotate 20s linear infinite; }
.shape-1 { width: 100px; height: 100px; top: 10%; left: 10%; animation-delay: 0s; }
.shape-2 { width: 150px; height: 150px; top: 60%; left: 80%; animation-delay: -5s; }
.shape-3 { width: 80px; height: 80px; top: 20%; left: 70%; animation-delay: -10s; }
.shape-4 { width: 120px; height: 120px; top: 70%; left: 20%; animation-delay: -15s; }
.shape-5 { width: 60px; height: 60px; top: 40%; left: 5%; animation-delay: -8s; }
@keyframes rotate { 0% { transform: rotate(0deg) translateX(50px) rotate(0deg); } 100% { transform: rotate(360deg) translateX(50px) rotate(-360deg); } }
.gradient-orb { position: absolute; border-radius: 50%; filter: blur(60px); animation: pulse 4s ease-in-out infinite; }
.orb-1 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(102, 126, 234, .4) 0, transparent 70%); top: -150px; left: -150px; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(240, 147, 251, .3) 0, transparent 70%); bottom: -200px; right: -200px; animation-delay: -2s; }
.orb-3 { width: 250px; height: 250px; background: radial-gradient(circle, rgba(118, 75, 162, .4) 0, transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: -1s; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.1); opacity: .9; } }
.login-wrapper { position: relative; z-index: 10; width: 100%; max-width: 420px; }
.login-form-panel { background: rgba(255, 255, 255, .95); backdrop-filter: blur(20px); border-radius: 20px; padding: 40px; box-shadow: 0 25px 50px rgba(0, 0, 0, .1), 0 0 0 1px rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .3); animation: slideUp .8s ease-out; }
@keyframes slideUp { 0% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: translateY(0); } }
.login-logo-section { text-align: center; margin-bottom: 40px; }
.login-logo-icon { width: 80px; height: 80px; margin: 0 auto 20px; background: linear-gradient(135deg, #667eea, #764ba2); border-radius: 20px; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 10px 30px rgba(102, 126, 234, .3); animation: logoFloat 3s ease-in-out infinite; font-size: 40px; }
@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.system-title { font-size: 28px; font-weight: 700; color: #2c3e50; margin: 0 0 5px 0; background: linear-gradient(135deg, #667eea, #764ba2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.welcome-text { color: #7f8c8d; font-size: 14px; margin: 0; font-weight: 400; }
.login-form-content .el-form-item { margin-bottom: 25px; position: relative; }
.login-form-content .el-form-item:last-of-type { margin-bottom: 30px; }
.custom-input .el-input__wrapper { background: rgba(255, 255, 255, .85); border: 2px solid rgba(102, 126, 234, .15); border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, .05); transition: all .3s ease; padding: 0 16px; height: 50px; }
.custom-input .el-input__wrapper:hover { border-color: rgba(102, 126, 234, .3); box-shadow: 0 6px 20px rgba(102, 126, 234, .15); }
.custom-input .el-input__wrapper.is-focus { border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, .15); }
.custom-input .el-input__inner { color: #2c3e50; font-weight: 500; font-size: 15px; }
.input-icon { color: #667eea; font-size: 18px; }
.password-toggle { color: #95a5a6; cursor: pointer; transition: color .3s ease; font-size: 16px; }
.password-toggle:hover { color: #667eea; }
.login-button { width: 100%; height: 50px; border-radius: 12px; background: linear-gradient(135deg, #667eea, #764ba2); border: none; font-size: 16px; font-weight: 600; box-shadow: 0 8px 20px rgba(102, 126, 234, .3); transition: all .3s ease; }
.login-button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(102, 126, 234, .4); background: linear-gradient(135deg, #764ba2, #667eea); }
@media (max-width: 480px) { .login-container { padding: 10px; } .login-form-panel { padding: 30px 20px; border-radius: 16px; } .system-title { font-size: 22px; } }

/* ===== 页面通用：顶部渐变导航 + 筛选卡 + 指标卡（还原 352/135.css） ===== */
.ecpm-analysis { background: #f5f7fa; min-height: 100vh; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif; color: #1a1a1a; }
.top-navbar { background: linear-gradient(135deg, #667eea, #764ba2); border-bottom: none; padding: 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 20px rgba(0, 0, 0, .1); backdrop-filter: blur(10px); }
.top-navbar .navbar-content { width: 100%; padding: 8px 20px; display: flex; justify-content: center; align-items: center; }
.top-navbar .logo-section { display: flex; align-items: center; gap: 12px; }
.top-navbar .logo { display: flex; align-items: center; justify-content: center; }
.top-navbar .logo-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .3); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.top-navbar .title { font-size: 22px; font-weight: 700; color: #fff; margin: 0; text-shadow: 0 2px 4px rgba(0, 0, 0, .1); }
.page-container2 { width: 100%; padding: 0; position: relative; z-index: 1; }
.content-wrapper2 { background: transparent; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.filter-card { margin: 0 0 8px 0; border-radius: 16px; box-shadow: 0 8px 32px rgba(0, 0, 0, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(10px); transition: all .3s ease; }
.filter-card:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0, 0, 0, .15); }
.filter-card .filter-form { display: flex; flex-wrap: wrap; align-items: end; justify-content: center; gap: 16px; padding: 16px 24px; }
.filter-card .filter-form .el-form-item { margin-bottom: 0; margin-right: 0; }
.filter-card .filter-form .el-form-item .el-form-item__label { font-weight: 700; color: #000; font-size: 15px; }
.stats-section { margin: 0 0 8px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding: 12px 24px; }
.stats-grid .stat-item { background: linear-gradient(145deg, #fff, #f8fafc); padding: 24px; border-radius: 16px; box-shadow: 0 10px 40px rgba(0, 0, 0, .15); text-align: center; border: 3px solid #667eea; transition: all .3s cubic-bezier(.4, 0, .2, 1); position: relative; overflow: hidden; }
.stats-grid .stat-item::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #667eea, #764ba2); opacity: 1; transition: all .3s ease; }
.stats-grid .stat-item:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 20px 60px rgba(0, 0, 0, .2); border-color: #764ba2; }
.stats-grid .stat-item:hover::before { height: 5px; }
.stats-grid .stat-label { font-size: 15px; color: #000; margin-bottom: 14px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.stats-grid .stat-value { font-size: 32px; font-weight: 800; letter-spacing: -.5px; color: #1a1a1a; }
.stats-grid .stat-sub-text { font-size: 12px; color: #666; margin-top: 8px; font-weight: 500; opacity: .8; }
.main-table-section { background: linear-gradient(145deg, #fff, #f8fafc); border-radius: 0; box-shadow: none; overflow: hidden; border: none; transition: all .3s ease; margin: 0; }
.main-table-section .table-header { padding: 16px 24px; border-bottom: 1px solid rgba(228, 231, 237, .3); display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, rgba(102, 126, 234, .05), rgba(118, 75, 162, .05)); }
.main-table-section .table-title { display: flex; align-items: center; gap: 8px; }
.main-table-section .title-text { font-size: 16px; font-weight: 600; color: #1a1a1a; }
.main-table-section .title-count { font-size: 14px; color: #1a1a1a; }
.main-table-section .table-controls { display: flex; align-items: center; gap: 8px; }
.game-name-toggle-btn { font-weight: 700; font-size: 14px; padding: 12px 20px; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); border: 2px solid transparent; transition: all .3s cubic-bezier(.4, 0, .2, 1); }
.game-name-toggle-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 0, 0, .2); }
.game-name-toggle-btn.el-button--warning { background: linear-gradient(135deg, #ff9800, #f57c00); border-color: #ff9800; color: #fff; }
.game-name-toggle-btn.el-button--warning:hover { background: linear-gradient(135deg, #f57c00, #e65100); border-color: #f57c00; }
.game-name-toggle-btn.el-button--success { background: linear-gradient(135deg, #4caf50, #388e3c); border-color: #4caf50; color: #fff; }
.game-name-toggle-btn.el-button--success:hover { background: linear-gradient(135deg, #388e3c, #2e7d32); border-color: #388e3c; }
.data-table .el-table { width: 100%; }
.data-table .el-table th.el-table__cell { background: #f5f7fa; color: #000; font-weight: 700; font-size: 15px; }
.data-table .el-table td.el-table__cell:first-child .cell { font-size: 15px; font-weight: 700; color: #000; }
.table-pagination { padding: 16px 20px; border-top: 1px solid #e4e7ed; background: #fafafa; display: flex; justify-content: flex-end; }
.revenue-red { background: linear-gradient(135deg, #ff4d4f, #d32f2f) !important; box-shadow: 0 2px 8px rgba(255, 77, 79, .3); }
.revenue-red, .revenue-blue { color: #fff !important; padding: 4px 8px; border-radius: 6px; font-weight: 700; font-size: 13px; border: 1px solid rgba(255, 255, 255, .2); }
.revenue-blue { background: linear-gradient(135deg, #1890ff, #1565c0) !important; box-shadow: 0 2px 8px rgba(24, 144, 255, .3); }
.revenue-yellow { background: linear-gradient(135deg, #faad14, #e65100) !important; box-shadow: 0 2px 8px rgba(250, 173, 20, .3); }
.revenue-yellow, .revenue-brown { color: #fff !important; padding: 4px 8px; border-radius: 6px; font-weight: 700; font-size: 13px; border: 1px solid rgba(255, 255, 255, .2); }
.revenue-brown { background: linear-gradient(135deg, #8b4513, #5d4037) !important; box-shadow: 0 2px 8px rgba(139, 69, 19, .3); }
.revenue-green { background: linear-gradient(135deg, #52c41a, #388e3c) !important; color: #fff !important; padding: 4px 8px; border-radius: 6px; font-weight: 700; font-size: 13px; box-shadow: 0 2px 8px rgba(82, 196, 26, .3); border: 1px solid rgba(255, 255, 255, .2); }
@media (max-width: 768px) {
  .filter-card .filter-form { flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 16px; }
  .filter-card .filter-form .el-form-item .el-form-item__label { width: auto !important; margin-bottom: 6px; display: block; }
  .filter-card .filter-form .el-select, .filter-card .filter-form .el-input, .filter-card .filter-form .el-date-editor { width: 100% !important; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 10px 16px; }
  .stats-grid .stat-item:nth-child(5) { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; }
  .stats-grid .stat-item { padding: 14px; }
  .stats-grid .stat-value { font-size: 20px; }
  .main-table-section .table-header { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ===== 仪表盘（还原 303 Dashboard） ===== */
.dash-page { padding: 20px; }
.dash-page .stats-row { margin-bottom: 0; }
.dash-page .stat-card { background: #fff; border-radius: 12px; padding: 20px; display: flex; align-items: center; gap: 14px; box-shadow: 0 2px 12px rgba(0, 0, 0, .06); transition: all .3s ease; margin-bottom: 16px; }
.dash-page .stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 0, 0, .1); }
.dash-page .stat-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; flex-shrink: 0; }
.dash-page .stat-icon.games { background: linear-gradient(135deg, #667eea, #764ba2); }
.dash-page .stat-icon.users { background: linear-gradient(135deg, #36cfc9, #08979c); }
.dash-page .stat-icon.revenue { background: linear-gradient(135deg, #f759ab, #c41d7f); }
.dash-page .stat-icon.ecpm { background: linear-gradient(135deg, #ffa940, #d46b08); }
.dash-page .stat-title { font-size: 13px; color: #909399; }
.dash-page .stat-content .stat-value { font-size: 24px; font-weight: 700; color: #1a1a1a; margin-top: 2px; }
.dash-page .games-header { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: #1a1a1a; }
.dash-page .header-controls { display: flex; align-items: center; }
.dash-page .games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.dash-page .game-stats-card { border: 2px solid #667eea; border-radius: 12px; padding: 14px 16px; background: linear-gradient(145deg, #fff, #f8fafc); transition: all .3s ease; }
.dash-page .game-stats-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(102, 126, 234, .25); border-color: #764ba2; }
.dash-page .game-title { font-size: 15px; font-weight: 700; color: #1a1a1a; margin: 0 0 10px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-page .game-desc { font-size: 12px; color: #909399; margin: -6px 0 8px 0; }
.dash-page .game-stats-card .stats-content .stat-row { display: flex; justify-content: space-between; align-items: center; padding: 3px 0; font-size: 13px; }
.dash-page .game-stats-card .stat-label { color: #606266; }
.dash-page .game-stats-card .stat-value { font-weight: 700; color: #1a1a1a; }
.dash-page .game-stats-card .stat-value.revenue { color: #d32f2f; }
.dash-page .game-stats-card .stat-value.ecpm { color: #667eea; }
.dash-page .quick-actions { margin: 20px 0; }
.dash-page .quick-actions h2 { font-size: 18px; color: #1a1a1a; margin-bottom: 12px; }
.dash-page .action-card { cursor: pointer; transition: all .3s ease; border-radius: 12px; }
.dash-page .action-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(102, 126, 234, .25); }
.dash-page .action-content { text-align: center; padding: 8px 0; }
.dash-page .action-icon { font-size: 34px; color: #667eea; }
.dash-page .action-content h3 { margin: 8px 0 4px; color: #1a1a1a; }
.dash-page .action-content p { margin: 0; color: #909399; font-size: 13px; }
.dash-page .welcome-section h2 { font-size: 18px; color: #1a1a1a; margin-bottom: 10px; }
.dash-page .welcome-section ul { padding-left: 20px; color: #606266; }
.dash-page .welcome-section li { line-height: 2; }
@media (max-width: 768px) { .dash-page .games-grid { grid-template-columns: 1fr; } }

/* ===== 通用管理页 ===== */
.crud-page { padding: 20px; }
.crud-card { background: #fff; border-radius: 12px; padding: 16px 20px; box-shadow: 0 2px 12px rgba(0, 0, 0, .06); }
.crud-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.crud-toolbar .crud-title { font-size: 16px; font-weight: 700; color: #1a1a1a; }
