/* 扁平化自适应样式 */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background: #f5f7fa;
}
a { color: #2c8ef0; text-decoration: none; }
a:hover { color: #1a5fa8; }
h2, h3 { margin-top: 20px; margin-bottom: 10px; }
h2 { font-size: 20px; font-weight: 600; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* 按钮 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    transition: background 0.2s, box-shadow 0.2s;
    background: #e9ecef;
    color: #333;
}
.btn-primary { background: #2c8ef0; color: #fff; }
.btn-primary:hover { background: #1a5fa8; }
.btn-success { background: #28a745; color: #fff; }
.btn-success:hover { background: #1e7e34; }
.btn-danger { background: #dc3545; color: #fff; }
.btn-danger:hover { background: #bd2130; }
.btn-warning { background: #ffc107; color: #333; }
.btn-warning:hover { background: #e0a800; }
.btn-info { background: #17a2b8; color: #fff; }
.btn-info:hover { background: #117a8b; }
.btn-xs { padding: 4px 8px; font-size: 12px; }
.btn-block { display: block; width: 100%; }

/* 表单 */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; }
.form-control {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.2s;
}
.form-control:focus { border-color: #2c8ef0; outline: 0; box-shadow: 0 0 0 2px rgba(44,142,240,0.25); }
textarea.form-control { resize: vertical; }
select.form-control { height: 38px; }
small { color: #888; }

/* 警告框 */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}
.alert-success { background: #d4edda; color: #155724; }
.alert-danger { background: #f8d7da; color: #721c24; }
.alert-warning { background: #fff3cd; color: #856404; }
.alert-info { background: #d1ecf1; color: #0c5460; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; margin-bottom: 15px; background: #fff; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee; }
.table th { background: #f8f9fa; font-weight: 600; color: #555; }
.table-striped tbody tr:nth-child(odd) { background: #fafbfc; }
.table-bordered { border: 1px solid #eee; }
.table-bordered th, .table-bordered td { border: 1px solid #eee; }

/* 标签 */
.label {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    color: #fff;
    background: #6c757d;
}
.label-success { background: #28a745; }
.label-warning { background: #ffc107; color: #333; }
.label-danger { background: #dc3545; }

/* 面板 */
.panel {
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 4px;
    margin-bottom: 20px;
}
.panel-heading {
    padding: 12px 16px;
    border-bottom: 1px solid #e3e8ee;
    font-weight: 600;
    font-size: 15px;
    background: #f8f9fa;
}
.panel-body { padding: 16px; }

/* 登录页 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f5f7fa;
}
.login-box {
    width: 400px;
    background: #fff;
    padding: 40px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 后台布局 */
.admin-header {
    background: #2c3e50;
    color: #fff;
    padding: 0 20px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
}
.admin-header .brand { font-size: 18px; font-weight: 600; }
.admin-header .right a { color: #fff; margin-left: 15px; font-size: 14px; }
.admin-sidebar {
    position: fixed;
    top: 50px; bottom: 0; left: 0;
    width: 220px;
    background: #34495e;
    padding-top: 20px;
    overflow-y: auto;
    z-index: 900;
    transition: transform 0.3s;
}
.admin-sidebar ul { list-style: none; padding: 0; margin: 0; }
.admin-sidebar li a {
    display: block;
    padding: 12px 20px;
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}
.admin-sidebar li a i { margin-right: 8px; width: 20px; text-align: center; }
.admin-sidebar li a:hover, .admin-sidebar li.active a { background: #1abc9c; color: #fff; }
.admin-main {
    margin-left: 220px;
    margin-top: 50px;
    padding: 20px;
}
/* 手机端 */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        width: 250px;
    }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .admin-header .toggle-btn { display: inline-block; cursor: pointer; }
    .login-box { width: 90%; padding: 20px; }
}
.admin-header .toggle-btn { display: none; font-size: 20px; background: none; border: none; color: #fff; }
@media (max-width: 768px) {
    .admin-header .toggle-btn { display: inline-block; }
}

/* 安装页 */
.install-box {
    max-width: 600px;
    margin: 80px auto;
    background: #fff;
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 动画 */
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.fa-spin { animation: spin 1.5s linear infinite; }

/* 工具类 */
.text-center { text-align: center; }
.mt-10 { margin-top: 10px; }
.mb-10 { margin-bottom: 10px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.col-sm-6 { width: 50%; padding: 0 10px; }
.col-sm-3 { width: 25%; padding: 0 10px; }
@media (max-width: 768px) {
    .col-sm-6, .col-sm-3 { width: 100%; }
	.membership-cards .card {
        min-width: 100%;
    }
}