/* ========================================
   运动助手 统一样式文件（当前主题 v7.3）
   - 前台：.mp-* 导航/功能按钮、.func-btn-*、.vip-badge、.pay-* 支付弹窗
   - 后台：.admin-layout（浅色主题，单一主色 #4f46e5）
   - 改样式前先确认作用域，避免前后台互相污染
   ======================================== */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部 */
.header {
    text-align: center;
    padding: 30px 20px;
    color: #fff;
}

.header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.header p {
    font-size: 16px;
    opacity: 0.9;
}

/* 导航栏 */
.navbar {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 14px;
}

.navbar a:hover,
.navbar a.active {
    background: rgba(255,255,255,0.25);
}

.navbar .nav-left,
.navbar .nav-right {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 主卡片 */
.card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    margin-bottom: 20px;
}

.card-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 600;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 下拉选项放大（v7.3.79：全局） */
.form-group select, select { font-size: 16px; }
option { font-size: 16px; padding: 10px 12px; }

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(17, 153, 142, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(245, 87, 108, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: #fff;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(235, 51, 73, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

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

.btn-sm {
    padding: 6px 15px;
    font-size: 13px;
}

/* 提示消息 */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* 表格样式 */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -15px;
    padding: 0 15px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    min-width: 600px; /* 确保表格有最小宽度，允许横向滚动 */
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.table td {
    font-size: 14px;
    color: #666;
}

.table tr:hover {
    background: #f8f9fa;
}

/* 状态标签 */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-primary {
    background: #cfe2ff;
    color: #084298;
}

.badge-vip {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.badge-manual {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination a,
.pagination .current {
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination a {
    background: #f0f0f0;
    color: #666;
}

.pagination a:hover {
    background: #667eea;
    color: #fff;
}

.pagination .current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

/* 功能卡片网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: #333;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.feature-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.feature-card .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.feature-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat-card .number {
    font-size: 32px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-card .label {
    font-size: 14px;
    color: #666;
}

/* 会员卡片 */
.vip-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
}

.vip-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.vip-card .days {
    font-size: 36px;
    font-weight: bold;
    margin: 10px 0;
}

.vip-card p {
    opacity: 0.9;
    font-size: 14px;
}

/* 价格套餐 - 明显的选择按钮 */
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.price-item {
    border: 3px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    position: relative;
}

.price-item:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

.price-item.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.price-item.active::after {
    content: "✓";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #fff;
    color: #667eea;
    border-radius: 50%;
    font-size: 14px;
    line-height: 20px;
    font-weight: bold;
}

.price-item .name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.price-item .price {
    font-size: 28px;
    font-weight: bold;
    color: #667eea;
}

.price-item.active .price {
    color: white;
}

.price-item .price small {
    font-size: 14px;
    font-weight: normal;
}

/* 支付方式选择 */
.pay-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.pay-type-item {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    font-weight: 500;
}

.pay-type-item:hover {
    border-color: #667eea;
}

.pay-type-item.active {
    border-color: #667eea;
    background: #f8f9ff;
    color: #667eea;
}

/* 卡密输入 */
.form-group input.card-input {
    font-size: 18px !important;
    letter-spacing: 2px;
    font-family: monospace;
    text-align: center;
    background: rgba(15, 23, 42, 0.92);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.28);
}
.form-group input.card-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

/* 开通VIP页 ZP邮箱/QQ号：白底深字（与卡密激活一致，!important 压住深色模式插件） */
#buy_zepp_account,
#buy_qq {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #e5e7eb !important;
}
#buy_zepp_account::placeholder,
#buy_qq::placeholder {
    color: #999999 !important;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255,255,255,0.95);
    font-size: 14px;
}

.footer a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

/* 登录注册页面 */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.auth-card h1 {
    text-align: center;
    font-size: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
}

.auth-card .form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.auth-card .form-footer a {
    color: #667eea;
    text-decoration: none;
}

/* ========== 后台管理 - 科技感深色风格 v5.4 ========== */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
.sidebar {
    width: 240px;
    background: linear-gradient(180deg, #0c1426 0%, #162033 100%);
    color: white;
    padding: 14px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid rgba(0, 212, 255, 0.15);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
}
.sidebar .logo {
    padding: 0 20px 16px;
    font-size: 20px;
    font-weight: bold;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    margin-bottom: 10px;
    background: linear-gradient(90deg, #00d4ff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
.sidebar .logo .logout-inline {
    -webkit-text-fill-color: initial;
    color: #ef4444;
    font-size: 18px;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.3s;
    background: rgba(239, 68, 68, 0.1);
}
.sidebar .logo .logout-inline:hover {
    background: rgba(239, 68, 68, 0.2);
}
.sidebar a {
    display: block;
    padding: 9px 18px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    margin: 1px 0;
}
.sidebar a:hover {
    background: rgba(0, 212, 255, 0.08);
    color: #00d4ff;
    border-left-color: #00d4ff;
    padding-left: 17px;
}
.sidebar a.active {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.15), transparent);
    color: #00d4ff;
    border-left-color: #00d4ff;
    font-weight: 500;
    padding-left: 17px;
}
.main-content {
    flex: 1;
    margin-left: 240px;
    padding: 25px 30px;
    background: transparent;
}
.main-content h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 26px;
    font-weight: 600;
    color: #f1f5f9;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
    padding-bottom: 15px;
}
.card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #f1f5f9;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}
.form-group label {
    color: #cbd5e1;
    font-weight: 500;
}
.form-group input, .form-group select, .form-group textarea {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 12px 15px;
    color: #f1f5f9;
    font-size: 14px;
    transition: all 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}
.btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.3);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}
.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}
.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
}
.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}
.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}
.btn-block {
    width: 100%;
    padding: 12px;
}
.alert {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}
.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}
.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}
.table {
    width: 100%;
    border-collapse: collapse;
    color: #cbd5e1;
    background: transparent;
    box-shadow: none;
}
.table th {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
}
.table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.table tr:hover td {
    background: rgba(0, 212, 255, 0.05);
}
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}
.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}
.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}
.badge-vip {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}
.badge-secondary {
    background: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}
.stat-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.stat-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.15);
}
.stat-card .num {
    font-size: 32px;
    font-weight: bold;
    background: linear-gradient(90deg, #00d4ff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}
.stat-card .label {
    color: #94a3b8;
    font-size: 14px;
}
.pagination {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 20px;
}
.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: 6px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.15);
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s;
}
.pagination a:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: #00d4ff;
    color: #00d4ff;
}
.pagination .active {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: white;
    border-color: #00d4ff;
}
/* 后台登录页深色 */
.login-container {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
.login-card {
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 255, 0.1);
}
.login-card h2 {
    background: linear-gradient(90deg, #00d4ff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* ========== 控制台卡片样式 ========== */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    color: white;
    transition: transform 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-3px);
}

.dashboard-number {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.dashboard-label {
    opacity: 0.9;
    font-size: 14px;
}

/* 卡片颜色 */
.dashboard-card-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dashboard-card-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.dashboard-card-pink {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.dashboard-card-cyan {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.dashboard-card-red {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.dashboard-card-yellow {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* ========== 后台管理手机适配 v1.0 ========== */
/* 平板适配：侧边栏变窄 */
@media (max-width: 1024px) and (min-width: 769px) {
    .sidebar {
        width: 70px;
        padding: 15px 0;
    }
    .sidebar .logo {
        font-size: 0;
        padding: 0 10px 20px;
        text-align: center;
    }
    .sidebar .logo:before {
        content: "🏃";
        font-size: 24px;
        background: none;
        -webkit-text-fill-color: initial;
    }
    .sidebar a {
        padding: 12px 0;
        text-align: center;
        font-size: 0;
        border-left: none;
        padding-left: 0 !important;
        position: relative;
    }
    .sidebar a:before {
        font-size: 20px;
    }
    .main-content {
        margin-left: 70px;
        padding: 20px;
    }
}

/* 手机适配：侧边栏变成顶部导航 */
@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 0;
        border-right: none;
        border-bottom: 1px solid rgba(0, 212, 255, 0.15);
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    }
    
    .sidebar .logo {
        padding: 15px 20px;
        font-size: 18px;
        border-bottom: none;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    /* 添加汉堡菜单按钮 */
    .sidebar .logo:after {
        content: "☰";
        font-size: 24px;
        background: none;
        -webkit-text-fill-color: #00d4ff;
        cursor: pointer;
        display: block;
    }
    
    .sidebar nav {
        display: none;
        padding: 10px 0;
    }
    
    .sidebar.expanded nav {
        display: block;
    }
    
    .sidebar a {
        padding: 12px 20px;
        border-left: 3px solid transparent;
        font-size: 15px;
        display: block;
        text-align: left;
    }
    
    .sidebar a:hover,
    .sidebar a.active {
        padding-left: 17px;
    }
    
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
    
    .main-content h2 {
        font-size: 20px;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }
    
    /* 卡片适配 */
    .card {
        padding: 15px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    /* 统计卡片网格适配 */
    .stats-grid,
    div[style*="grid-template-columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    /* 控制台卡片缩小 */
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .dashboard-card {
        padding: 15px 10px !important;
    }
    
    .dashboard-number {
        font-size: 24px !important;
        margin-bottom: 3px !important;
    }
    
    .dashboard-label {
        font-size: 12px !important;
    }
    
    /* 表格文字缩小适配手机 */
    .table th,
    .table td {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    /* 按钮组在手机端垂直排列 */
    div[style*="display: flex"][style*="gap: 10px"] {
        flex-direction: column;
        gap: 5px !important;
    }
    
    div[style*="display: flex"][style*="gap: 10px"] .btn {
        width: 100%;
        margin: 2px 0;
    }
    
    /* 表格容器适配 */
    .table-responsive {
        margin: 0 -15px;
        padding: 0 15px;
    }
    
    /* 操作按钮组适配 */
    .action-btns {
        flex-direction: column;
        gap: 5px;
    }
    
    .action-btns .btn {
        width: 100%;
        text-align: center;
    }
    
    /* 表单输入适配 */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* 防止iOS自动缩放 */
    }
    
    /* 按钮适配 */
    .btn-block {
        padding: 14px;
    }
    
    /* 分页适配 */
    .pagination {
        gap: 3px;
    }
    
    .pagination a,
    .pagination span {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* 操作按钮组 */
.action-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 选项卡 */
.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.tab {
    padding: 12px 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.tab:hover {
    color: #667eea;
}

.tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 进度条 */
.progress {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s;
}

/* 响应式 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 28px;
    }
    
    .card {
        padding: 20px;
    }
    
    .navbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .navbar .nav-left,
    .navbar .nav-right {
        justify-content: center;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .price-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pay-type-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .sidebar a {
        display: inline-block;
        white-space: nowrap;
    }
    
    .sidebar > div {
        display: flex;
        overflow-x: auto;
    }
    
    .sidebar a:hover,
    .sidebar a.active {
        border-left: none;
        border-bottom: 4px solid #667eea;
        padding-left: 25px;
    }
    
    .table {
        display: block;
        overflow-x: auto;
    }
}

/* 工具类 */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-10 { gap: 10px; }
.w-full { width: 100%; }

/* 首页功能按钮 - 参考网站样式 */
/* 区块标题：纯标题（白字加粗，无底色、无边框、不像按钮） */
.sec-title {
    display: block;
    width: fit-content;
    margin: 0 auto 18px;
    padding: 4px 0;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    color: #fff;
}

.func-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80px;
    padding: 10px 8px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    color: white;
    border: none;
    text-align: center;
    line-height: 1.4;
    box-sizing: border-box;
}
.func-btn:active {
    transform: scale(0.95);
}
.func-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.func-btn-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.func-btn-white {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    border: none;
}
.func-btn-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}
.func-btn-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}
.func-btn-lightgreen {
    background: linear-gradient(135deg, #86efac 0%, #4ade80 100%);
    color: #166534;
}
.func-btn-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}
/* v7.3.391：森林能量按钮 · 「能量球」改为与森林能量页「🌳 使用方法」底色块 .fi-ball 同款立体球，
   不再是 v7.3.388 的白色平面圆片（含 SVG data-URI，已整体移除）：
     球体 = 径向渐变（#ffffb0 → #c6f34a → #7ede1e → #45b012 → #2f8c0c）
          + 左上/右下内阴影制造球感 + ::after 右上高光；
   主球 = 左上角「296g」能量球，放大到 56px 并让左/上各外溢 16px ——
     超出按钮的部分由本按钮 overflow:hidden 裁切（可遮挡、可剪切一部分），
     球内 296g 数值用 translate 补偿外溢量，落回可见区域中心；
   绝对定位脱离文档流 → 文本与 VIP 标签排布与相邻按钮逐位一致（不动文本格局）；
   球 z-index:0 衬于文字底部，.fb-text/.vip-tag 为 z-index:1 且 .fb-text 带投影
     → 即使球体压到文字区域，按钮文字依旧完整、清晰可读。 */
.func-btn-forest {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #7ede1e 0%, #3faa12 100%);
    color: #fff;
}
.func-btn-forest .fb-ball {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 32% 26%, #ffffb0 0%, #c6f34a 22%, #7ede1e 55%, #45b012 82%, #2f8c0c 100%);
    box-shadow: inset -3px -5px 10px rgba(20, 80, 0, 0.35), inset 3px 4px 10px rgba(255, 255, 255, 0.45);
}
/* 球体高光（与 .forest-intro .fi-ball::after 同款） */
.func-btn-forest .fb-ball::after {
    content: '';
    position: absolute;
    left: 20%; top: 14%;
    width: 34%; height: 22%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    filter: blur(1px);
}
/* 主球 · 左上角 · 56px · 左/上各外溢 16px（由按钮 overflow:hidden 裁切） */
.func-btn-forest .fb-ball-1 {
    left: -16px;
    top: -16px;
    width: 56px;
    height: 56px;
    opacity: 0.55;
}
/* 主球上的「296g」数值：translate 补偿外溢量，落在可见球面中心；白字带深绿投影 */
.func-btn-forest .fb-ball-1::before {
    content: '296g';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 700 12px/1 Arial, Helvetica, sans-serif;
    color: #fff;
    letter-spacing: -0.3px;
    text-shadow: 0 1px 2px rgba(20, 80, 0, 0.75);
    transform: translate(6px, 6px);
}
/* 右上点缀球 · 24px */
.func-btn-forest .fb-ball-2 {
    right: 4px;
    top: -10px;
    width: 24px;
    height: 24px;
    opacity: 0.4;
}
/* 右下点缀球 · 18px */
.func-btn-forest .fb-ball-3 {
    right: -3px;
    bottom: -8px;
    width: 18px;
    height: 18px;
    opacity: 0.45;
}
.func-btn-forest .fb-text,
.func-btn-forest .vip-tag {
    position: relative;
    z-index: 1;
}
/* 文字投影：能量球压到文字区域时，文字仍完整清晰 */
.func-btn-forest .fb-text {
    text-shadow: 0 1px 3px rgba(20, 80, 0, 0.45);
}
@media (max-width: 480px) {
    /* v7.3.391：移动端按钮 60px 高 —— 主球 48px（较旧版 38px 放大 26%），
       左/上各外溢 14px，由按钮 overflow:hidden 裁切；296g 用 translate 补偿回可见球心 */
    .func-btn-forest .fb-ball-1 {
        left: -14px;
        top: -14px;
        width: 48px;
        height: 48px;
        opacity: 0.55;
    }
    .func-btn-forest .fb-ball-1::before {
        font-size: 10px;
        transform: translate(5px, 5px);
    }
    .func-btn-forest .fb-ball-2 {
        right: 3px;
        top: -7.5px;
        width: 18px;
        height: 18px;
        opacity: 0.4;
    }
    .func-btn-forest .fb-ball-3 {
        right: -2px;
        bottom: -6px;
        width: 13.5px;
        height: 13.5px;
        opacity: 0.45;
    }
}

.func-btn small {
    font-size: 11px;
    font-weight: normal;
    margin-top: 3px;
    opacity: 0.95;
    line-height: 1.2;
}

/* 手机适配 */
@media (max-width: 480px) {
    .func-btn {
        height: 60px;
        padding: 6px 4px;
        font-size: 14px;
        border-radius: 9px;
    }
    .price-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ============================================================
   金色VIP会员标识（全局 · 参考各大互联网厂商VIP风格）
   设计：金色渐变 + 皇冠图标，高对比、有质感、带微光呼吸动效
   ============================================================ */
:root {
    /* 金色渐变（浅金→正金→暗金） */
    --vip-gold: linear-gradient(135deg, #FFE9A8 0%, #F8CC4E 52%, #E0A52E 100%);
    /* 皇冠图标（金色），用于VIP标识前 */
    --vip-crown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 8 L7 11 L12 4 L17 11 L21 8 L19.5 19 L4.5 19 Z' fill='%23B8860B'/%3E%3Ccircle cx='3' cy='7.5' r='1.7' fill='%23B8860B'/%3E%3Ccircle cx='12' cy='3.5' r='1.7' fill='%23B8860B'/%3E%3Ccircle cx='21' cy='7.5' r='1.7' fill='%23B8860B'/%3E%3Crect x='4.5' y='19' width='15' height='2.2' rx='1' fill='%239A6E06'/%3E%3C/svg%3E");
}

/* 独立皇冠图标（可单独使用） */
.vip-crown {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: var(--vip-crown);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: -2px;
}

/* 紧凑型VIP标识：用于功能按钮下方小标签（替代原 VIP 纯文本） */
.vip-tag {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-top: 3px;
    padding: 1px 7px 1px 5px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.4;
    color: #6b3e00;
    background: var(--vip-gold);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 9px;
    box-shadow: 0 1px 4px rgba(180, 120, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
    align-self: center;
}
.vip-tag::before {
    content: "";
    width: 11px;
    height: 11px;
    background-image: var(--vip-crown);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 标准VIP徽章：用于标题/品牌/会员卡片处 */
.vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 11px 2px 7px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #6b3e00;
    background: var(--vip-gold);
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(180, 120, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
    vertical-align: middle;
    white-space: nowrap;
}
.vip-badge::before {
    content: "";
    width: 15px;
    height: 15px;
    background-image: var(--vip-crown);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
/* 小一号徽章：用于按钮/链接内的VIP */
.vip-badge.vip-badge-sm {
    font-size: 11px;
    padding: 1px 9px 1px 6px;
    border-radius: 10px;
    gap: 3px;
}
.vip-badge.vip-badge-sm::before {
    width: 12px;
    height: 12px;
}

/* 升级原 .badge-vip（个人中心/后台 永久VIP 等）为金色质感 */
.badge-vip {
    background: var(--vip-gold) !important;
    color: #6b3e00 !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 1px 4px rgba(180, 120, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    font-weight: 700;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* v7.3.391：森林能量激活用户 —— VIP 金底不变，仅外框加绿色（内里仍金色）
   用于「用户管理 · 用户类型」与「执行记录 / 执行队列 · 用户类型」列 */
.badge-vip.badge-forest {
    border: 2px solid #16a34a !important;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.18), 0 1px 4px rgba(180, 120, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}
/* 森林能量任务类型徽章（任务监控「类型」：森林能量 → 绿色框文案） */
.badge-forest-task {
    background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(22, 163, 74, 0.35);
}
/* 模拟走路任务类型徽章（v7.3.391：由绿色改为紫色） */
.badge-sim-task {
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(124, 58, 237, 0.32);
}


/* ============================================================
   后台管理系统 · 简约浅色主题
   仅作用于 .admin-layout（含后台登录 .login-container），不影响前台
   设计：单一主色 #4f46e5 + 中性灰阶，去渐变、去杂色（大厂后台风）
   ============================================================ */
.admin-layout {
    background: #f4f6f9;
}
.admin-layout .sidebar {
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    box-shadow: none;
    color: #1f2937;
}
.admin-layout .sidebar .logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
    font-size: 18px;
    color: #111827;
    border-bottom: 1px solid #f0f0f0;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: #111827;
}
.admin-layout .sidebar .logo span {
    flex-shrink: 0;
}
.admin-layout .sidebar .logo .logout-inline {
    flex-shrink: 0;
    -webkit-text-fill-color: #dc2626;
    color: #dc2626;
    background: #fef2f2;
}
.admin-layout .sidebar .logo .logout-inline:hover {
    background: #fee2e2;
}
.admin-layout .sidebar a {
    color: #4b5563;
    border-left: 3px solid transparent;
}
.admin-layout .sidebar a:hover {
    background: #f3f4f6;
    color: #111827;
    border-left-color: #4f46e5;
    padding-left: 17px;
}
.admin-layout .sidebar a.active {
    background: #eef2ff;
    color: #4f46e5;
    border-left-color: #4f46e5;
    font-weight: 600;
    padding-left: 17px;
}
.admin-layout .main-content {
    background: transparent;
}
.admin-layout .main-content h2 {
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
}
.admin-layout .card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.04);
    backdrop-filter: none;
}
.admin-layout .card-title {
    color: #111827;
    border-bottom: 1px solid #f0f0f0;
}

/* 网站设置分组（含「数据维护 / 修改密码」子项，置于导航底部） */
.sidebar .nav-group { display: block; }
.sidebar .nav-sub {
    display: block;
    margin-left: 6px;
    padding-left: 14px;
    border-left: 2px solid rgba(79, 70, 229, 0.14);
}
.sidebar .nav-sub a { opacity: 0.95; }
.admin-layout .form-group label {
    color: #374151;
}
.admin-layout .form-group input,
.admin-layout .form-group select,
.admin-layout .form-group textarea {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #111827;
}
.admin-layout .form-group input:focus,
.admin-layout .form-group select:focus,
.admin-layout .form-group textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.admin-layout .btn {
    box-shadow: none;
}
.admin-layout .btn-primary {
    background: #4f46e5;
    color: #ffffff;
}
.admin-layout .btn-primary:hover {
    background: #4338ca;
    transform: none;
    box-shadow: none;
}
.admin-layout .btn-success {
    background: #16a34a;
    color: #ffffff;
}
.admin-layout .btn-success:hover {
    background: #15803d;
}
.admin-layout .btn-danger {
    background: #dc2626;
    color: #ffffff;
}
.admin-layout .btn-danger:hover {
    background: #b91c1c;
}
.admin-layout .btn-warning {
    background: #d97706;
    color: #ffffff;
}
.admin-layout .btn-warning:hover {
    background: #b45309;
}
.admin-layout .alert {
    border: 1px solid transparent;
}
.admin-layout .alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}
.admin-layout .alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}
.admin-layout .alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}
.admin-layout .alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
}
.admin-layout .table {
    color: #374151;
    background: #ffffff;
    box-shadow: none;
}
.admin-layout .table th {
    background: #f9fafb;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}
.admin-layout .table td {
    border-bottom: 1px solid #f1f3f5;
}
.admin-layout .table tr:hover td {
    background: #f9fafb;
}
.admin-layout .badge {
    font-weight: 500;
}
.admin-layout .badge-success {
    background: #dcfce7;
    color: #166534;
}
.admin-layout .badge-danger {
    background: #fee2e2;
    color: #991b1b;
}
.admin-layout .badge-warning {
    background: #fef3c7;
    color: #92400e;
}
.admin-layout .badge-info {
    background: #dbeafe;
    color: #1e40af;
}
.admin-layout .badge-primary {
    background: #e0e7ff;
    color: #3730a3;
}
.admin-layout .badge-vip {
    background: #eef2ff;
    color: #4f46e5;
}
.admin-layout .badge-secondary,
.admin-layout .badge-manual {
    background: #f1f5f9;
    color: #475569;
}
/* 仪表盘卡片：统一白底中性，单一主色左边框，去除彩虹渐变 */
.admin-layout .dashboard-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 3px solid #4f46e5;
    color: #1f2937;
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.04);
    text-align: center;
}
.admin-layout .dashboard-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.08);
}
.admin-layout .dashboard-number {
    color: #111827;
}
.admin-layout .dashboard-label {
    color: #6b7280;
    opacity: 1;
}
.admin-layout .dashboard-card-blue,
.admin-layout .dashboard-card-green,
.admin-layout .dashboard-card-pink,
.admin-layout .dashboard-card-cyan,
.admin-layout .dashboard-card-red,
.admin-layout .dashboard-card-yellow {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 3px solid #4f46e5;
}
.admin-layout .stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.04);
}
.admin-layout .stat-card:hover {
    border-color: #c7d2fe;
    transform: none;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.08);
}
.admin-layout .stat-card .num {
    background: none;
    -webkit-text-fill-color: #111827;
    color: #111827;
}
.admin-layout .stat-card .label {
    color: #6b7280;
}
.admin-layout .pagination a,
.admin-layout .pagination span {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #4b5563;
}
.admin-layout .pagination a:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
}
.admin-layout .pagination .active {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
}

/* 后台登录页：简约浅色（仅 .login-container，前台登录用 .auth-container 不受影响） */
.login-container {
    background: #f4f6f9;
}
.login-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}
.login-card h2 {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: #111827;
    color: #111827;
}

/* 手机端侧边栏（浅色适配） */
@media (max-width: 768px) {
    .admin-layout .sidebar {
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06);
    }
    .admin-layout .sidebar .logo:after {
        -webkit-text-fill-color: #4f46e5;
        color: #4f46e5;
    }
    .admin-layout .sidebar a:hover,
    .admin-layout .sidebar a.active {
        padding-left: 17px;
    }
}

/* ============================================================
   前端站点导航（mainpage / auto / simulate / records / activate
   / accounts / help / pay / qq_groups 等统一，单一来源）
   - 功能按钮区固定 3 列 = 2 排（用类，避开后台媒体查询里
     div[style*="grid-template-columns"] 强制 2 列的 !important 规则）
   - 代理赚米 / 售后Q群 / 使用帮助 按钮各页同尺寸
   - 标题「运动步数助手」各页同字号
   ============================================================ */
.mp-promo {
    display: flex;
    gap: 8px;
}
.mp-promo-card {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    min-width: 60px;
    color: #333;
}
.mp-promo-card .mp-ico {
    font-size: 20px;
    display: block;
    margin-bottom: 3px;
}
.mp-agent { background: linear-gradient(135deg, #fff4e6, #ffe8cc); color: #b45309; }
.mp-qq { background: linear-gradient(135deg, #e7f5ff, #d0ebff); color: #1c7ed6; }
.mp-help { background: linear-gradient(135deg, #e6fcf5, #c3fae8); color: #0ca678; }
/* 功能按钮区：固定 3 列 = 2 排 */
.mp-func-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}
/* v7.3.388：多账号后移一排独立展示（单个按钮占满整行，避免与主网格错位） */
.mp-func-grid.mp-func-grid-single {
    grid-template-columns: 1fr;
}
.mp-site-title {
    margin: 0;
    font-size: 22px;
    font-weight: bold;
}

/* 手机端统一适配（用 !important 覆盖各页内联媒体查询的不一致值） */
@media (max-width: 480px) {
    .mp-promo { gap: 5px !important; }
    .mp-promo-card {
        padding: 4px 6px !important;
        min-width: 42px !important;
        font-size: 10px !important;
    }
    .mp-promo-card .mp-ico {
        font-size: 15px !important;
        margin-bottom: 2px !important;
    }
    /* 功能按钮区：保持 3 列（2 排），不被后台 2 列规则影响 */
    .mp-func-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 7px !important;
        margin-bottom: 12px !important;
    }
    /* 标题「运动步数助手」统一字号 */
    .container > div:first-child h1,
    .mp-site-title {
        font-size: 22px !important;
    }
}

/* ========================================
   统一支付卡片（与 activate.php 开通VIP收款码弹窗一致）
   多账号开通会员/购买额度、代理充值/升级 共用
   注意：必须置于 @media 之外（顶层），桌面/PC 宽度下也要生效
   ======================================== */
.pay-page-wrap {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* v7.3.146：改 flex-start 配合 auto 外边距，手机矮视口下卡片顶部可滚动、不裁切 */
    padding: 24px 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    text-align: center;
}
/* v7.3.146：溢出安全的垂直居中——内容不超高时整体居中，超高时顶部对齐可完整向上滚动（与电脑端显示一致） */
.pay-page-wrap > :first-child { margin-top: auto; }
.pay-page-wrap > :last-child { margin-bottom: auto; }
.pay-modal-box { background: #fff; border-radius: 16px; max-width: 360px; width: 100%; padding: 24px 20px; text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,0.25); position: relative; }
.pay-modal-close { position: absolute; top: 10px; right: 14px; font-size: 24px; color: #999; cursor: pointer; line-height: 1; }
.pay-modal-app-icon { font-size: 42px; line-height: 1; margin-bottom: 8px; }
.pay-modal-title { font-size: 18px; font-weight: 700; color: #333; margin-bottom: 4px; }
.pay-modal-product { font-size: 13px; color: #666; margin-bottom: 10px; }
.pay-modal-amount { font-size: 36px; font-weight: 800; color: #f5576c; margin: 6px 0; }
.pay-modal-amount small { font-size: 16px; font-weight: 600; margin-left: 2px; }
.pay-countdown { display: table; margin: 10px auto 16px; font-size: 15px; font-weight: 700; color: #444; background: linear-gradient(135deg, #fff7ed, #ffedd5); border: 1px solid #fdba74; border-radius: 999px; padding: 9px 18px; box-shadow: 0 2px 8px rgba(249,115,22,0.12); }
.pay-countdown span { font-weight: 800; color: #f97316; font-size: 18px; font-family: monospace; letter-spacing: 1px; }
.pay-modal-meta { font-size: 13px; color: #555; margin: 2px 0 14px; line-height: 1.9; }
.pay-modal-meta span { font-weight: 600; color: #222; word-break: break-all; }
.pay-qr-wrap { position: relative; margin: 14px 0; display: flex; justify-content: center; align-items: center; min-height: 180px; }
.pay-qr-wrap img { width: 220px; max-width: 100%; border: 1px solid #eee; border-radius: 10px; padding: 8px; background: #fff; transition: filter 0.3s; }
.pay-qr-box { position: relative; display: inline-block; max-width: 78%; line-height: 0; }
.pay-expired-overlay { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.45); border-radius: 10px; padding: 12px; box-sizing: border-box; }
.pay-expired-badge { background: transparent; border-radius: 0; padding: 0; width: 100%; min-width: auto; max-width: none; box-shadow: none; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.pay-expired-icon { line-height: 0; margin-bottom: 0; }
.pay-expired-icon svg { width: 52px; height: 48px; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25)); }
.pay-expired-title { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: 1px; text-shadow: 0 1px 3px rgba(0,0,0,0.5); line-height: 1.25; }
.pay-expired-sub { font-size: 13px; color: rgba(255,255,255,0.85); margin-top: 0; line-height: 1.4; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.pay-exact-warning { color: #ef4444; font-size: 14px; font-weight: 700; margin: 12px 0 8px; line-height: 1.5; }
.pay-after-instruction { color: #1677ff; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.pay-support-btn { display: inline-block; margin: 8px 0 10px; padding: 10px 18px; border-radius: 20px; background: #ff5252; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.pay-return-btn { display: inline-block; margin-top: 14px; padding: 10px 22px; border-radius: 20px; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.5); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.pay-return-btn:active { background: rgba(255,255,255,0.28); }

/* ============================================================
   后台管理 · 通用组件 v7.3.176
   统一：工具栏 / 筛选控件 / 筛选胶囊 / 批量操作栏 / 分页信息 / 标题计数 / 汇总行
   仅作用于 .admin-layout，复用既有浅色主题（单一主色 #4f46e5 + 中性灰）
   目的：消除各页自行内联 border:2px #e0e0e0、各自定义 .batch-bar / .ot-control /
   .gen-control 导致的"结构不统一 / 按钮逻辑不统一"。
   ============================================================ */
.admin-layout .adm-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.admin-layout .adm-toolbar .adm-spacer { margin-left: auto; }
.admin-layout .adm-control {
    height: 34px;
    padding: 0 10px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-sizing: border-box;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.admin-layout .adm-control:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}
.admin-layout select.adm-control { cursor: pointer; }
.admin-layout .adm-field {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #475569;
}
.admin-layout .adm-field .adm-control { margin: 0; }
/* 筛选快捷胶囊 */
.admin-layout .adm-pills {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 3px;
}
.admin-layout .adm-pill {
    padding: 6px 13px;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: all .15s;
}
.admin-layout .adm-pill:hover { background: #e2e8f0; }
.admin-layout .adm-pill.active {
    background: #fff;
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
/* 批量操作栏（统一：默认隐藏，JS 加 .show 显示） */
.admin-layout .adm-batchbar {
    display: none;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    padding: 9px 14px;
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 13px;
    color: #b91c1c;
}
.admin-layout .adm-batchbar.show { display: flex; }
.admin-layout .adm-batchbar b { color: #dc2626; }
.admin-layout .adm-batchbar .btn { margin: 0; }
.admin-layout .adm-batchbar .btn-danger { background: #dc2626; border-color: #dc2626; }
.admin-layout .adm-batchbar .btn-sm { padding: 5px 14px; }
/* 分页信息 */
.admin-layout .adm-pageinfo {
    margin: 14px 0 8px;
    font-size: 13px;
    color: #666;
}
/* 标题计数（统一 h2 内的数量展示） */
.admin-layout .main-content h2 .adm-count {
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    margin-left: 8px;
}
/* 汇总行（允许换行，杜绝横向溢出） */
.admin-layout .adm-summary {
    font-size: 13px;
    color: #475569;
    white-space: normal;
    line-height: 1.6;
}
.admin-layout .adm-summary b { color: #0f172a; }
.admin-layout .adm-summary .c-red { color: #dc2626; }
.admin-layout .adm-summary .c-green { color: #16a34a; }
/* 复选框统一尺寸 */
.admin-layout .adm-check { width: 16px; height: 16px; cursor: pointer; vertical-align: middle; }

/* v7.3.176 补充：行内表单（任务操作按钮）+ 工具栏移动端堆叠 */
.admin-layout .adm-form-inline { display: inline; margin: 0 2px; vertical-align: middle; }
@media (max-width: 768px) {
    .admin-layout .adm-toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
    .admin-layout .adm-toolbar .adm-control,
    .admin-layout .adm-toolbar select { width: 100%; }
}

/* ============================================================
   后台管理 · v7.3.178 优化（适配 14 英寸 / 统一布局 / 修复溢出 / 放大卡片）
   仅作用于 .admin-layout（含后台登录 .login-container），不影响前台
   ============================================================ */

/* 1) 修复表格横向溢出：去掉全局 .table-responsive 的负边距，
      限制在 .admin-layout 内横向滚动，避免整页被撑出屏幕外（14 英寸常见现象） */
.admin-layout { overflow-x: hidden; }
.admin-layout .table-responsive {
    margin: 0;
    padding: 0;
    max-width: 100%;
}
/* 表格本体不超过容器宽度，超宽时由 .table-responsive 内部横向滚动 */
.admin-layout .table { max-width: 100%; }

/* 2) 主内容区在超大屏下限制最大宽度，避免卡片/表格被无限拉宽、留白过多 */
.admin-layout .main-content { max-width: 1680px; }

/* 3) 通用：标题与卡片间距收紧，减少大段留白 */
.admin-layout .main-content h2 { margin-bottom: 18px; }
.admin-layout .card { padding: 20px 22px; }

/* 4) 后台统计/数量卡片放大（默认尺寸提升；控制台卡片在 index.php 内联已单独放大） */
.dashboard-number { font-size: 28px; line-height: 1.25; }
.dashboard-label { font-size: 13px; }
.stat-card .num { font-size: 30px; }

/* 5) 统一「网站设置」标签页为全站靛蓝主色（原为紫色 #667eea，与后台其余不一致） */
.admin-layout .tab-nav { border-bottom: 2px solid #e5e7eb; }
.admin-layout .tab-nav a { color: #4b5563; }
.admin-layout .tab-nav a:hover { color: #4f46e5; }
.admin-layout .tab-nav a.active { color: #4f46e5; border-bottom-color: #4f46e5; }

/* 6) 批量操作栏 / 工具栏间距微调，避免过空 */
.admin-layout .adm-toolbar { margin-bottom: 14px; }

/* 7) 登录页：账号/密码标签与输入文字强制深色，确保白底可读
      （登录页未包 .admin-layout，单独兜底；登录卡片底色为白，深色文字高对比） */
.login-card .form-group label { color: #1f2937 !important; font-weight: 600; }
.login-card .form-group input { color: #111827 !important; background: #ffffff !important; }
.login-card .form-group input::placeholder { color: #9ca3af !important; }
.login-container .login-card .alert-error { color: #b91c1c; }

/* =========================================================================
   v7.3.307 后台统一规范（Item2 输入框/按钮尺寸间距 + Item3 标签页格式）
   基准取自「充值卡生成 / 卡密生成」页：控件 36px 高、字号 14px、圆角 8px
   ========================================================================= */

/* ---------- A. 统一表单控件（补齐此前缺失的 .form-control） ---------- */
.form-control,
.admin-layout .gen-control,
.admin-layout .form-control {
    height: 36px;
    padding: 0 12px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 14px;
    line-height: 34px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
    vertical-align: middle;
}
.form-control:focus,
.admin-layout .gen-control:focus,
.admin-layout .form-control:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}
.form-control:disabled,
.form-control[readonly] { background: #f5f6f8; color: #999; cursor: not-allowed; }
select.form-control { padding-right: 28px; line-height: normal; }
textarea.form-control { height: auto; min-height: 84px; padding: 8px 12px; line-height: 1.6; resize: vertical; }

/* 后台内所有 .form-group 控件收敛到同一尺寸（原 12px/15px padding + 2px 边框偏高） */
.admin-layout .form-group { margin-bottom: 16px; }
.admin-layout .form-group label { margin-bottom: 6px; font-size: 13px; color: #555; }
.admin-layout .form-group input[type="text"],
.admin-layout .form-group input[type="number"],
.admin-layout .form-group input[type="password"],
.admin-layout .form-group input[type="email"],
.admin-layout .form-group input[type="url"],
.admin-layout .form-group input[type="tel"],
.admin-layout .form-group input[type="date"],
.admin-layout .form-group input[type="time"],
.admin-layout .form-group input[type="search"],
.admin-layout .form-group input:not([type]),
.admin-layout .form-group select {
    height: 36px;
    padding: 0 12px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 14px;
    line-height: 34px;
    box-sizing: border-box;
}
.admin-layout .form-group select { padding-right: 28px; line-height: normal; }
.admin-layout .form-group textarea {
    padding: 8px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}
.admin-layout .form-group input:focus,
.admin-layout .form-group select:focus,
.admin-layout .form-group textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}
/* 勾选框不受高度约束 */
.admin-layout input[type="checkbox"],
.admin-layout input[type="radio"] { height: auto; width: auto; vertical-align: middle; }

/* 横向表单行（生成类表单）统一间距 */
.admin-layout .gen-form { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; }
.admin-layout .gen-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #555; }
.admin-layout .gen-btn { height: 36px; padding: 0 18px; font-size: 14px; border-radius: 8px; border: none; cursor: pointer; box-sizing: border-box; }

/* ---------- B. 补齐缺失的 .btn-info，并统一后台按钮尺寸 ---------- */
.btn-info { background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%); color: #fff; }
.btn-info:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(79, 70, 229, .35); }

.admin-layout .btn { height: 36px; padding: 0 18px; font-size: 14px; border-radius: 8px; line-height: 34px; box-sizing: border-box; }
.admin-layout .btn-sm { height: 28px; padding: 0 11px; font-size: 12px; border-radius: 6px; line-height: 26px; }
.admin-layout .btn-block { width: 100%; }
.admin-layout .adm-toolbar .btn,
.admin-layout .action-bar .btn { vertical-align: middle; }

/* ---------- C. 统一后台标签页（原有 6 套写法收敛为一套） ---------- */
.admin-layout .tab-nav,
.admin-layout .adm-tabs,
.admin-layout .plat-tabs,
.admin-layout .ipx-tabs,
.admin-layout .sub-tabs,
.admin-layout .detail-tab-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 4px;
    margin: 0 0 18px;
    padding: 0;
    border-bottom: 2px solid #e5e7eb;
    background: none;
}
.admin-layout .tab-nav > a,
.admin-layout .adm-tabs > a,
.admin-layout .plat-tabs .plat-tab,
.admin-layout .ipx-tabs .ipx-tab,
.admin-layout .sub-tabs > a,
.admin-layout .detail-tab-nav > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 38px;
    margin: 0 0 -2px;
    padding: 0 18px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 8px 8px 0 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: #6b7280;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    transition: color .15s, background .15s, border-color .15s;
}
.admin-layout .tab-nav > a:hover,
.admin-layout .adm-tabs > a:hover,
.admin-layout .plat-tabs .plat-tab:hover,
.admin-layout .ipx-tabs .ipx-tab:hover,
.admin-layout .sub-tabs > a:hover,
.admin-layout .detail-tab-nav > a:hover {
    color: #4f46e5;
    background: #f5f3ff;
}
.admin-layout .tab-nav > a.active,
.admin-layout .adm-tabs > a.active,
.admin-layout .plat-tabs .plat-tab.active,
.admin-layout .ipx-tabs .ipx-tab.active,
.admin-layout .sub-tabs > a.active,
.admin-layout .detail-tab-nav > a.active {
    color: #4f46e5;
    background: #f4f5ff;
    border-bottom-color: #4f46e5;
    box-shadow: none;
}
/* 「⚙ 管理」类工具入口：保持同一几何尺寸，仅色相区分 */
.admin-layout .plat-tabs .plat-tab-manage { color: #c2410c; }
.admin-layout .plat-tabs .plat-tab-manage:hover { color: #c2410c; background: #fff7ed; }
.admin-layout .plat-tabs .plat-tab-manage.active { color: #c2410c; background: #fff7ed; border-bottom-color: #f97316; }
.admin-layout .ipx-tab .cur { font-size: 11px; color: #16a34a; margin-left: 2px; }

.admin-layout .tab-content,
.admin-layout .detail-tab-content { display: none; }
.admin-layout .tab-content.active,
.admin-layout .detail-tab-content.active { display: block; }

@media (max-width: 768px) {
    .admin-layout .tab-nav,
    .admin-layout .adm-tabs,
    .admin-layout .plat-tabs,
    .admin-layout .ipx-tabs,
    .admin-layout .sub-tabs,
    .admin-layout .detail-tab-nav { gap: 2px; overflow-x: auto; flex-wrap: nowrap; }
    .admin-layout .tab-nav > a,
    .admin-layout .adm-tabs > a,
    .admin-layout .plat-tabs .plat-tab,
    .admin-layout .ipx-tabs .ipx-tab,
    .admin-layout .sub-tabs > a,
    .admin-layout .detail-tab-nav > a { height: 34px; padding: 0 12px; font-size: 13px; }
}
