* { margin: 0; padding: 0; box-sizing: border-box; }
[v-cloak] { display: none; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #f5f6fa;
  color: #333;
  -webkit-font-smoothing: antialiased;
}

/* ===== 登录页 ===== */
.login-page { min-height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; }
.login-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #0f6bff 0%, #1e90ff 55%, #7ad0ff 100%);
}
.login-box { position: relative; width: 88%; max-width: 420px; background: #fff; border-radius: 16px; padding: 36px 28px; box-shadow: 0 12px 40px rgba(0,60,180,.25); }
.login-logo { text-align: center; margin-bottom: 26px; }
.logo-img {
  width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 14px;
  background: #fff; object-fit: contain; padding: 4px;
  box-shadow: 0 6px 16px rgba(15,107,255,.25); display: block;
}
.logo-icon {
  width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 14px;
  background: linear-gradient(135deg, #0f6bff, #38b6ff); color: #fff;
  font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(15,107,255,.35);
}
.login-logo h1 { font-size: 22px; font-weight: 700; color: #0f2b5c; }
.login-logo p { font-size: 13px; color: #8a94a6; margin-top: 4px; }
.input-group { margin-bottom: 16px; }
.input-group label { display: block; font-size: 13px; color: #5a6472; margin-bottom: 6px; }
.input-group input {
  width: 100%; height: 46px; padding: 0 14px; font-size: 15px;
  border: 1px solid #dde3ec; border-radius: 10px; outline: none; transition: border .2s;
  background: #f8fafc;
}
.input-group input:focus { border-color: #0f6bff; background: #fff; }
.dev-tip { font-size: 12px; color: #a0a8b5; text-align: center; margin-top: 14px; line-height: 1.6; }

/* ===== 按钮 ===== */
.btn-primary {
  background: linear-gradient(135deg, #0f6bff, #2f9bff); color: #fff; border: none;
  border-radius: 10px; height: 46px; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: opacity .2s;
}
.btn-primary:disabled { opacity: .6; }
.btn-block { width: 100%; display: block; }
.btn-sm { height: 38px; font-size: 13px; padding: 0 18px; border-radius: 8px; }
.btn-danger {
  width: 100%; height: 46px; border: 1px solid #ff5b5b; background: #fff; color: #ff5b5b;
  border-radius: 10px; font-size: 15px; cursor: pointer; margin: 18px 0 28px;
}

/* ===== 主界面 ===== */
.main-page { min-height: 100vh; padding-bottom: 64px; }
.header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #0f6bff, #2f9bff);
  color: #fff; padding: 18px 16px 14px;
  box-shadow: 0 2px 10px rgba(15,107,255,.25);
}
.header-title h2 { font-size: 18px; font-weight: 600; margin: 0; }
.header-logo { width: 36px; height: 36px; object-fit: contain; background: #fff; border-radius: 8px; padding: 2px; flex-shrink: 0; }
.header-sub { font-size: 12px; opacity: .85; margin-top: 3px; }
.page-body { padding: 12px 12px 24px; }

/* ===== 卡片 ===== */
.card { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; color: #23304a; }
.empty { text-align: center; color: #a0a8b5; font-size: 13px; padding: 24px 0; }

/* 概览 */
.overview-card { background: linear-gradient(135deg, #0f6bff, #1e90ff); color: #fff; }
.overview-main { display: flex; flex-direction: column; padding: 4px 0 12px; }
.ov-label { font-size: 13px; opacity: .85; }
.ov-value { font-size: 30px; font-weight: 700; margin-top: 4px; }
.overview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; border-top: 1px solid rgba(255,255,255,.25); padding-top: 12px; }
.ov-item { display: flex; flex-direction: column; align-items: center; }
.ov-item-value { font-size: 17px; font-weight: 700; }
.ov-item-label { font-size: 11px; opacity: .8; margin-top: 2px; }
.green { color: #10b981; }
.orange { color: #f59e0b; }

/* 订单列表 */
.order-list {}
.order-item { padding: 12px 0; border-bottom: 1px solid #f0f2f6; }
.order-item:last-child { border-bottom: none; }
.order-top { display: flex; justify-content: space-between; align-items: center; }
.order-no { font-size: 13px; font-weight: 600; color: #23304a; word-break: break-all; }
.order-meta { display: flex; justify-content: space-between; font-size: 12px; color: #8a94a6; margin-top: 6px; }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 20px; font-weight: 500; }
.tag-green { background: #e7f9f0; color: #10b981; }
.tag-orange { background: #fdf3e0; color: #f59e0b; }
.tag-gray { background: #eef1f6; color: #8a94a6; }

/* 筛选 */
.filter-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.filter-bar input { flex: 1; height: 38px; padding: 0 8px; border: 1px solid #dde3ec; border-radius: 8px; font-size: 13px; outline: none; }
.filter-sep { color: #8a94a6; font-size: 12px; }
.summary-row { display: flex; justify-content: space-between; font-size: 12px; color: #5a6472; }
.summary-row b { font-size: 14px; }

/* 分润明细 */
.profit-item { padding: 12px 0; border-bottom: 1px solid #f0f2f6; }
.profit-item:last-child { border-bottom: none; }
.profit-top { display: flex; justify-content: space-between; align-items: center; }
.profit-mid { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }
.profit-amount { font-size: 18px; font-weight: 700; color: #0f6bff; }
.profit-rate { font-size: 12px; color: #8a94a6; }
.profit-meta { display: flex; gap: 8px; align-items: center; font-size: 11px; color: #a0a8b5; margin-top: 6px; }
.child-tag { background: #f0f4ff; color: #0f6bff; padding: 1px 8px; border-radius: 20px; font-weight: 500; }
.self-tag { background: #f0f6f4; color: #5a6472; padding: 1px 8px; border-radius: 20px; font-weight: 500; }

/* 渠道树 */
.tree-node { padding: 10px 0 2px; }
.root-node > .tree-row { background: #f0f4ff; border-radius: 8px; }
.tree-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border: 1px solid #eef1f6; border-radius: 8px; }
.tree-name { font-size: 13px; font-weight: 600; }
.tree-name em { font-style: normal; font-weight: 400; color: #8a94a6; font-size: 11px; margin-left: 4px; }
.tree-level { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.lv1 { background: #0f6bff; color: #fff; }
.lv2 { background: #2f9bff; color: #fff; }
.lv3 { background: #7ad0ff; color: #0f2b5c; }
.tree-sub { font-size: 12px; color: #f59e0b; padding: 6px 10px 0; }
.tree-children { margin-left: 14px; border-left: 2px dashed #dde3ec; padding-left: 10px; }

/* 我的 */
.profile-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid #f0f2f6; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #0f6bff, #38b6ff); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700;
}
.profile-name { font-size: 17px; font-weight: 700; }
.profile-role { font-size: 12px; color: #8a94a6; margin-top: 3px; }
.profile-items { padding-top: 6px; }
.profile-item { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f0f2f6; font-size: 14px; }
.profile-item:last-child { border-bottom: none; }
.profile-item span { color: #5a6472; }
.profile-item b { color: #23304a; }

/* 结算记录 */
.settle-item { padding: 12px 0; border-bottom: 1px solid #f0f2f6; }
.settle-item:last-child { border-bottom: none; }
.settle-top { display: flex; justify-content: space-between; align-items: center; }
.settle-mid { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: #5a6472; }
.settle-meta { font-size: 11px; color: #a0a8b5; margin-top: 6px; }

/* 底部导航 */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  background: #fff; display: flex; border-top: 1px solid #eef1f6;
  padding-bottom: env(safe-area-inset-bottom);
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 0 6px; color: #8a94a6; font-size: 11px; cursor: pointer; }
.tab-icon { font-size: 20px; line-height: 1; margin-bottom: 3px; }
.tab.active { color: #0f6bff; font-weight: 600; }
/* 验证码登录与认证页新增样式 */
.code-group { padding-right: 0; }
.code-row { display: flex; align-items: center; gap: 8px; width: 100%; }
.code-row input { flex: 1; min-width: 0; }
.btn-send {
  flex-shrink: 0; padding: 8px 12px; border: 1px solid #0f6bff; color: #0f6bff;
  background: #fff; border-radius: 6px; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.btn-send:disabled { color: #a0a8b5; border-color: #d5dbe5; }
.auth-empty { padding: 24px 0; }
.auth-empty p { margin-bottom: 16px; color: #5a6472; }
.auth-type-switch { display: flex; gap: 8px; margin-bottom: 14px; }
.auth-type-btn {
  flex: 1; padding: 10px 0; border: 1px solid #d5dbe5; border-radius: 8px;
  background: #fff; color: #5a6472; font-size: 14px; cursor: pointer;
}
.auth-type-btn.active { border-color: #0f6bff; color: #0f6bff; background: #f0f6ff; font-weight: 600; }
.auth-form .input-group { margin-bottom: 10px; }
.auth-form input[type="text"], .auth-form input[type="tel"], .auth-form input[type="email"], .auth-form input:not([type]) {
  width: 100%; padding: 9px 12px; border: 1px solid #d5dbe5; border-radius: 6px; font-size: 14px;
}
.auth-form input[type="file"] { width: 100%; font-size: 12px; color: #5a6472; }
.green { color: #22a06b; }
.orange { color: #e8890c; }

