/* ===== 全局重置 & 字体 ===== */
* { margin:0; padding:0; box-sizing:border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    padding-bottom: 70px;
    line-height: 1.6;
}

/* ===== 容器 ===== */
.container { max-width: 960px; margin:0 auto; padding:0 15px; }
.container-fluid { padding:0 15px; }

/* ===== 卡片 ===== */
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: none;
    margin-bottom: 20px;
    overflow: hidden;
}
.card-header {
    background: transparent;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
    font-size: 1.2rem;
}
.card-body { padding: 20px; }
.card-footer {
    background: #fafafa;
    padding: 12px 20px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #888;
}

/* ===== 按钮 ===== */
.btn {
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-primary { background: #6c5ce7; border-color: #6c5ce7; }
.btn-primary:hover { background: #5a4bd1; border-color: #5a4bd1; }
.btn-success { background: #00b894; border-color: #00b894; }
.btn-success:hover { background: #00a381; border-color: #00a381; }
.btn-danger { background: #e17055; border-color: #e17055; }
.btn-danger:hover { background: #d63031; border-color: #d63031; }
.btn-outline-secondary { color: #6c5ce7; border-color: #6c5ce7; }
.btn-outline-secondary:hover { background: #6c5ce7; color: #fff; }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 4px 12px; font-size: 0.85rem; }

/* ===== 表单 ===== */
.form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 10px 14px;
    transition: border-color 0.2s;
}
.form-control:focus {
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108,92,231,0.1);
}
.form-group { margin-bottom: 16px; }
.form-group label { font-weight: 500; margin-bottom: 4px; }
.form-text { color: #888; font-size: 0.85rem; }
.input-group-append .btn { border-radius: 0 8px 8px 0; }

/* ===== 底部导航 ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-around;
    padding: 8px 0 10px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.03);
}
.bottom-nav a {
    color: #888;
    text-align: center;
    font-size: 12px;
    text-decoration: none;
    flex: 1;
    padding: 4px 0;
    transition: color 0.2s;
}
.bottom-nav a i { display: block; font-size: 22px; margin-bottom: 2px; }
.bottom-nav a.active { color: #6c5ce7; }
.bottom-nav a:hover { color: #6c5ce7; text-decoration: none; }

/* ===== 标签 ===== */
.vip-badge {
    background: #ff6b6b;
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 6px;
}
.free-badge {
    background: #00b894;
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 6px;
}

/* ===== 工具列表 ===== */
.list-group-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 0;
    background: transparent;
}
.list-group-item:last-child { border-bottom: none; }
.list-group-item.disabled { opacity: 0.5; pointer-events: none; }

/* ===== 分页 ===== */
.pagination .page-link { color: #6c5ce7; border: none; border-radius: 8px; margin: 0 3px; }
.pagination .active .page-link { background: #6c5ce7; color: #fff; border-color: #6c5ce7; }
.pagination .page-item.disabled .page-link { color: #ccc; }

/* ===== 模态框 ===== */
.modal-content { border-radius: 12px; border: none; }
.modal-header { border-bottom: 1px solid #f0f0f0; }
.modal-footer { border-top: 1px solid #f0f0f0; }

/* ===== 自适应 ===== */
@media (max-width: 576px) {
    .card-header { font-size: 1rem; padding: 14px 16px; }
    .card-body { padding: 16px; }
    .bottom-nav a { font-size: 11px; }
    .bottom-nav a i { font-size: 20px; }
    .btn { font-size: 0.9rem; padding: 6px 16px; }
    .form-control { font-size: 0.9rem; padding: 8px 12px; }
}
@media (min-width: 768px) {
    .container { padding: 0 30px; }
}