* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
    background: #f0f2f5;
    color: #333;
    min-height: 100vh;
}
a { color: #1890ff; text-decoration: none; }
a:hover { color: #40a9ff; }

/* 登录/注册卡片 */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.auth-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    width: 380px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.auth-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24,144,255,0.2);
}
.btn {
    display: inline-block;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}
.btn-primary {
    background: #1890ff;
    color: #fff;
    width: 100%;
    padding: 12px;
    font-size: 16px;
}
.btn-primary:hover { background: #40a9ff; }
.btn-success { background: #52c41a; color: #fff; }
.btn-success:hover { background: #73d13d; }
.btn-danger { background: #ff4d4f; color: #fff; }
.btn-danger:hover { background: #ff7875; }
.btn-warning { background: #faad14; color: #fff; }
.btn-warning:hover { background: #ffc53d; }
.btn-default { background: #fff; color: #333; border: 1px solid #d9d9d9; }
.btn-default:hover { border-color: #1890ff; color: #1890ff; }
.btn-sm { padding: 5px 12px; font-size: 12px; }

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

/* 主布局 */
.main-layout { min-height: 100vh; }
.header {
    background: #fff;
    padding: 0 30px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header .logo { font-size: 20px; font-weight: bold; color: #1890ff; }
.header .user-info { display: flex; align-items: center; gap: 15px; font-size: 14px; }
.content { padding: 24px 30px; max-width: 1200px; margin: 0 auto; }

/* 卡片 */
.card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.card h3 { margin-bottom: 16px; font-size: 18px; color: #333; }

/* VIP状态展示 */
.vip-status {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.vip-active {
    background: linear-gradient(135deg, #fadb14 0%, #fa8c16 100%);
    color: #fff;
}
.vip-inactive {
    background: #f5f5f5;
    color: #999;
}
.vip-status .vip-title { font-size: 28px; font-weight: bold; margin-bottom: 10px; }
.vip-status .vip-expire { font-size: 16px; }

/* 表格 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.data-table th, .data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}
.data-table th {
    background: #fafafa;
    font-weight: 600;
    color: #333;
}
.data-table tr:hover { background: #f5f5f5; }
.status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}
.status-green { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.status-red { background: #fff1f0; color: #ff4d4f; border: 1px solid #ffa39e; }
.status-orange { background: #fff7e6; color: #fa8c16; border: 1px solid #ffd591; }
.status-blue { background: #e6f7ff; color: #1890ff; border: 1px solid #91d5ff; }

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}
.pagination button {
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
}
.pagination button:disabled { opacity: 0.5; cursor: not-allowed; }
.pagination .active { background: #1890ff; color: #fff; border-color: #1890ff; }

/* Tab导航 */
.tab-nav {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 20px;
}
.tab-nav .tab-item {
    padding: 12px 24px;
    cursor: pointer;
    font-size: 15px;
    color: #666;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}
.tab-nav .tab-item:hover { color: #1890ff; }
.tab-nav .tab-item.active { color: #1890ff; border-bottom-color: #1890ff; font-weight: 600; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* 搜索栏 */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.search-bar input, .search-bar select {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}
.search-bar input { width: 200px; }

/* 提示消息 */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    z-index: 9999;
    display: none;
}
.toast-success { background: #52c41a; }
.toast-error { background: #ff4d4f; }
.toast-info { background: #1890ff; }

/* 卡密展示 */
.card-code-list {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
    font-family: Consolas, monospace;
    font-size: 14px;
    line-height: 2;
}
.card-code-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    border-bottom: 1px solid #f0f0f0;
}
.card-code-item:last-child { border-bottom: none; }

/* Modal弹窗 */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-content { background: #fff; border-radius: 8px; padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); width: 90%; max-width: 500px; }
.modal-content h3 { margin: 0 0 20px 0; color: #333; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: #555; }
.form-group input { width: 100%; padding: 8px 12px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 14px; box-sizing: border-box; }
.form-group input:focus { outline: none; border-color: #1890ff; }
