/* ==================== FXLL H5 公共样式 ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    width: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    color: #333;
    min-height: 100vh;
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ==================== 页面容器 ==================== */
.page {
    max-width: 640px;
    margin: 0 auto;
    padding: 12px;
}
.card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 8px rgba(0,0,0,.05);
    margin-bottom: 12px;
}
.card-title {
    font-size: 17px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 16px;
}

/* ==================== 表单元素 ==================== */
.fg { margin-bottom: 14px; }
.fg label {
    display: block; margin-bottom: 6px; font-weight: 600;
    color: #555; font-size: 14px;
}
.fg input, .fg select, .fg textarea {
    width: 100%; padding: 12px; border: 1px solid #ddd;
    border-radius: 8px; font-size: 16px; background: #fafbfc;
    transition: border-color .2s;
    -webkit-appearance: none; appearance: none;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
    border-color: #3498db; outline: none; background: #fff;
}
.fg .hint { font-size: 12px; color: #999; margin-top: 4px; }
.row2 { display: flex; gap: 10px; }
.row2 > .fg { flex: 1; min-width: 0; }
.row3 { display: flex; gap: 8px; }
.row3 > .fg { flex: 1; min-width: 0; }

/* ==================== 按钮 ==================== */
.btn {
    display: block; width: 100%; padding: 14px; border: none;
    border-radius: 8px; font-size: 16px; font-weight: 600;
    cursor: pointer; text-align: center; transition: all .2s;
}
.btn-primary { background: #3498db; color: #fff; }
.btn-primary:hover { background: #2980b9; }
.btn-primary:disabled { background: #a0c4e8; cursor: not-allowed; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-danger:hover { background: #c0392b; }
.btn-outline {
    background: #fff; color: #3498db; border: 1px solid #3498db;
}
.btn-outline:hover { background: #eef6fc; }
.btn-group { display: flex; gap: 10px; margin-top: 8px; }
.btn-group .btn { flex: 1; }

/* ==================== 消息提示 ==================== */
.msg {
    margin-top: 10px; padding: 10px 12px; border-radius: 8px;
    font-size: 13px; display: none; word-break: break-all;
}
.msg.ok { display: block; background: #eafaf1; color: #1e8449; border: 1px solid #a9dfbf; }
.msg.err { display: block; background: #fdedec; color: #c0392b; border: 1px solid #f5b7b1; }

/* ==================== Fieldset 分组 ==================== */
fieldset {
    border: 1px solid #eef0f3; padding: 16px; border-radius: 10px;
    margin-bottom: 16px;
}
legend {
    font-weight: 700; color: #3498db; padding: 0 8px; font-size: 14px;
}

/* ==================== 标签选择 ==================== */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    padding: 6px 14px; background: #f0f2f5; border-radius: 20px;
    cursor: pointer; font-size: 13px; border: 1px solid transparent;
    user-select: none; transition: all .2s;
}
.tag:hover { background: #e8eaed; }
.tag.active {
    background: #e6f7ff; color: #1890ff; border-color: #1890ff; font-weight: 600;
}

/* ==================== 文件上传区域 ==================== */
.file-zone {
    border: 2px dashed #ddd; padding: 18px; text-align: center;
    border-radius: 8px; cursor: pointer; margin-bottom: 8px;
    font-size: 13px; color: #999; transition: all .2s;
}
.file-zone:hover { border-color: #3498db; background: #f9fbfd; color: #3498db; }
.previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.previews .item {
    width: 72px; height: 72px; position: relative;
    border-radius: 6px; border: 1px solid #eee; overflow: hidden;
}
.previews .item img, .previews .item video {
    width: 100%; height: 100%; object-fit: cover;
}
.previews .item .del {
    position: absolute; top: -4px; right: -4px;
    background: #e74c3c; color: #fff; border: none; border-radius: 50%;
    width: 18px; height: 18px; font-size: 11px; cursor: pointer;
    line-height: 18px; text-align: center; padding: 0;
}

/* ==================== 用户信息卡片 ==================== */
.info-list { background: #f8f9fa; border-radius: 8px; padding: 12px; }
.info-row {
    display: flex; padding: 10px 0;
    border-bottom: 1px solid #eee; font-size: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-row .k { width: 72px; color: #888; flex-shrink: 0; }
.info-row .v { color: #333; font-weight: 500; word-break: break-all; flex: 1; }

/* ==================== 底部导航栏 ==================== */
.bottom-nav {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 640px;
    background: #fff; border-top: 1px solid #eee;
    display: flex; z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
    flex: 1; text-align: center; padding: 8px 0 6px;
    text-decoration: none; color: #999; font-size: 11px;
    transition: color .2s;
}
.bottom-nav a .icon { font-size: 20px; display: block; margin-bottom: 2px; }
.bottom-nav a.active { color: #3498db; }
.bottom-nav a:hover { color: #3498db; }

/* ==================== 页面链接 ==================== */
.page-link {
    display: block; text-align: center; margin-top: 12px;
    color: #3498db; font-size: 14px; text-decoration: none;
}
.page-link:hover { text-decoration: underline; }

/* ==================== 响应式适配 ==================== */
/* 小屏手机 (<=360px): 快捷入口2列，状态卡片竖排 */
@media (max-width: 360px) {
    .page { padding: 8px; }
    .card { padding: 14px; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-row { flex-direction: column; }
    .row2, .row3 { flex-direction: column; gap: 0; }
    .pin-inputs input { width: 48px !important; height: 56px !important; font-size: 22px !important; }
}

/* 中屏手机 (361-414px): 默认样式 */

/* 大屏手机/平板 (>=415px): 稍大间距 */
@media (min-width: 415px) {
    .page { padding: 16px; }
    .card { padding: 20px; }
}
