/* ===== 全局重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}
a { color: #1890ff; text-decoration: none; }
a:hover { color: #40a9ff; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
input, button, textarea, select { font-family: inherit; font-size: inherit; }

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

/* ===== 按钮 ===== */
.btn {
    display: inline-block;
    padding: 8px 20px;
    font-size: 14px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    line-height: 1.5;
    white-space: nowrap;
}
.btn-primary { background: #1890ff; color: #fff; border-color: #1890ff; }
.btn-primary:hover { background: #40a9ff; border-color: #40a9ff; color: #fff; }
.btn-default { background: #fff; color: #333; border-color: #d9d9d9; }
.btn-default:hover { color: #1890ff; border-color: #1890ff; }
.btn-danger { background: #ff4d4f; color: #fff; border-color: #ff4d4f; }
.btn-danger:hover { background: #ff7875; border-color: #ff7875; color: #fff; }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 10px 28px; font-size: 16px; }

/* ===== 卡片 ===== */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 24px;
    margin-bottom: 20px;
}
.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

/* ===== 表单 ===== */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}
.form-control {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    transition: border-color 0.2s;
    outline: none;
}
.form-control:focus { border-color: #1890ff; box-shadow: 0 0 0 2px rgba(24,144,255,0.2); }

/* ===== 提示信息 ===== */
.alert {
    padding: 10px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
}
.alert-error { background: #fff2f0; border: 1px solid #ffccc7; color: #ff4d4f; }
.alert-success { background: #f6ffed; border: 1px solid #b7eb8f; color: #52c41a; }
.alert-warning { background: #fffbe6; border: 1px solid #ffe58f; color: #faad14; }

/* ===== 工具类 ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: #999; }
.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; }

/* ===== 备案信息行（前台页脚，国家规定展示 ICP 备案号 / 公安联网备案号） ===== */
.footer-beian {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    font-size: 12px;
    color: #999;
    text-align: center;
    line-height: 1.6;
}
.footer-beian a { display: inline-flex; align-items: center; color: #999; text-decoration: none; white-space: nowrap; }
.footer-beian a:hover { color: #666; text-decoration: underline; }
.footer-beian .footer-divider { margin: 0 8px; color: #ccc; }
.footer-beian .beian-logo { height: 16px; width: auto; margin-right: 4px; }

/* ===== 响应式显示工具类 ===== */
.hidden-mobile { display: block; }
.visible-mobile { display: none; }
.hidden-desktop { display: none; }
.visible-desktop { display: block; }

/* ===== 响应式：平板 (768px - 1023px) ===== */
@media (max-width: 1023px) {
    .container { padding: 0 16px; }
    .card { padding: 20px; }
}

/* ===== 响应式：手机端 (< 768px) ===== */
@media (max-width: 767px) {
    html { font-size: 14px; }
    body { font-size: 13px; }
    .container { padding: 0 12px; }
    .card { padding: 16px; margin-bottom: 12px; }
    .card-title { font-size: 16px; margin-bottom: 12px; padding-bottom: 10px; }
    .btn { padding: 8px 16px; font-size: 13px; }
    .btn-lg { padding: 10px 20px; font-size: 15px; }
    .form-group { margin-bottom: 16px; }
    .form-control { padding: 10px 12px; font-size: 15px; } /* 15px+ 防止 iOS 缩放 */
    .hidden-mobile { display: none !important; }
    .visible-mobile { display: block !important; }
}

/* ===== 响应式：小屏手机 (< 480px) ===== */
@media (max-width: 479px) {
    .container { padding: 0 10px; }
    .card { padding: 14px; }
    .btn-block { padding: 10px 16px; }
}