* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: #f2f3f5; }
body { font-family: "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif; color: #303133; -webkit-tap-highlight-color: transparent; }
#app { max-width: 480px; margin: 0 auto; min-height: 100%; background: #f2f3f5; position: relative; }

.page { padding: 14px 14px 76px; }
.card { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.card h3 { font-size: 15px; margin-bottom: 10px; }

/* 登录 */
.auth { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 24px; background: linear-gradient(160deg, #2b6cb0 0%, #1f2d3d 100%); }
.auth .brand { color: #fff; text-align: center; margin-bottom: 26px; }
.auth .brand h1 { font-size: 24px; letter-spacing: 2px; }
.auth .brand p { font-size: 13px; opacity: .8; margin-top: 6px; }
.auth .box { background: #fff; border-radius: 14px; padding: 22px; }
.auth input, .form-input { width: 100%; height: 44px; border: 1px solid #dcdfe6; border-radius: 8px; padding: 0 12px; font-size: 15px; margin-bottom: 12px; outline: none; }
.auth input:focus, .form-input:focus { border-color: #2b6cb0; }
.btn { display: block; width: 100%; height: 44px; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; }
.btn-primary { background: #2b6cb0; color: #fff; }
.btn-plain { background: #fff; color: #2b6cb0; border: 1px solid #2b6cb0; }
.btn-mini { display: inline-block; width: auto; height: 30px; line-height: 30px; padding: 0 12px; font-size: 13px; border-radius: 6px; }
.btn[disabled] { opacity: .6; }
.link { text-align: center; color: #2b6cb0; font-size: 14px; margin-top: 12px; cursor: pointer; }

/* 顶部 */
.hero { background: linear-gradient(135deg, #2b6cb0, #1a4a80); color: #fff; border-radius: 12px; padding: 18px 16px; margin-bottom: 12px; }
.hero .hello { font-size: 17px; font-weight: 600; }
.hero .sub { font-size: 12px; opacity: .85; margin-top: 4px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.quick .q { background: rgba(255,255,255,.15); border-radius: 10px; text-align: center; padding: 10px 0; font-size: 13px; cursor: pointer; }

/* 标签与徽标 */
.tag { display: inline-block; font-size: 11px; border-radius: 4px; padding: 2px 6px; }
.tag.gray { background: #f0f2f5; color: #909399; }
.tag.blue { background: #e8f1fb; color: #2b6cb0; }
.tag.green { background: #e8f7e8; color: #4c9a4c; }
.tag.red { background: #fdeaea; color: #d05050; }
.tag.orange { background: #fdf3e2; color: #c8862a; }

/* 列表项 */
.item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f0f2f5; }
.item:last-child { border-bottom: none; }
.item .t { font-size: 14px; font-weight: 500; }
.item .d { font-size: 12px; color: #909399; margin-top: 4px; }

/* 时间线 */
.timeline { margin-top: 10px; }
.tl-item { position: relative; padding: 0 0 14px 18px; border-left: 2px solid #dcdfe6; }
.tl-item:last-child { border-left-color: transparent; }
.tl-item::before { content: ''; position: absolute; left: -5px; top: 2px; width: 8px; height: 8px; border-radius: 50%; background: #2b6cb0; }
.tl-item .a { font-size: 13px; font-weight: 600; }
.tl-item .r { font-size: 12px; color: #606266; margin-top: 2px; }
.tl-item .at { font-size: 11px; color: #a8abb2; margin-top: 2px; }

/* 访客码 */
.code-box { text-align: center; padding: 10px 0; }
.code-box .code { font-size: 34px; font-weight: 700; letter-spacing: 8px; color: #2b6cb0; }
.code-box .tip { font-size: 12px; color: #909399; margin-top: 6px; }

/* 底部导航 */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: #fff; display: flex; border-top: 1px solid #ebeef5; z-index: 10; }
.tabbar .tab { flex: 1; text-align: center; padding: 10px 0 12px; font-size: 12px; color: #909399; cursor: pointer; }
.tabbar .tab .ico { display: block; font-size: 20px; margin-bottom: 2px; }
.tabbar .tab.active { color: #2b6cb0; font-weight: 600; }

/* 表单 */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; color: #606266; margin-bottom: 6px; }
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-row .r { padding: 6px 14px; border: 1px solid #dcdfe6; border-radius: 16px; font-size: 13px; cursor: pointer; }
.radio-row .r.on { border-color: #2b6cb0; color: #2b6cb0; background: #e8f1fb; }
textarea.form-input { height: auto; padding: 10px 12px; }

/* 空态 */
.empty { text-align: center; color: #a8abb2; font-size: 13px; padding: 30px 0; }
.toast { position: fixed; top: 18%; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.75); color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px; z-index: 99; max-width: 80%; }
