/* ========================================
   运动助手 v4.0 - 样式文件
   紫色渐变风格，参考v2版本布局
   ======================================== */

/* 全局样式 */
* {
    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);
}

/* 按钮样式 */
.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;
}

/* 卡密输入 */
.card-input {
    font-size: 18px !important;
    letter-spacing: 2px;
    font-family: monospace;
    text-align: center;
}

/* 页脚 */
.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: 20px 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 25px;
    font-size: 20px;
    font-weight: bold;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    margin-bottom: 15px;
    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: 14px 20px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    margin: 2px 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 {
    margin: 0 0 18px;
    font-size: 18px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.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%);
}
.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: 75px;
        padding: 8px 5px;
        font-size: 15px;
        border-radius: 10px;
    }
    .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);
}


/* ============================================================
   后台管理系统 · 简约浅色主题
   仅作用于 .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 {
    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 .logout-inline {
    -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;
}
.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;
    }
}
