/* 福船出海企业会员管理系统 全局样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; background: #f0f2f5; color: #333; font-size: 14px; }
a { color: #1677ff; text-decoration: none; }
a:hover { color: #4096ff; }

/* ---------- 账户页（登录/注册/找回密码） ---------- */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0a2540 0%, #1a4b8c 55%, #0e6eb8 100%); position: relative; overflow: hidden; }
.auth-page::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: rgba(255,255,255,.04); top: -200px; right: -150px; }
.auth-page::after { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,.04); bottom: -150px; left: -100px; }
.auth-card { position: relative; z-index: 1; width: 420px; background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.25); padding: 40px 36px 30px; }
.auth-brand { text-align: center; margin-bottom: 26px; }
.auth-brand .logo { width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg, #0e6eb8, #16a3c7); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; font-weight: 700; }
.auth-brand h1 { font-size: 20px; margin-top: 12px; color: #0a2540; }
.auth-brand p { color: #8c8c8c; font-size: 13px; margin-top: 4px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; color: #555; font-size: 13px; }
.form-control { width: 100%; height: 40px; padding: 0 12px; border: 1px solid #d9d9d9; border-radius: 6px; font-size: 14px; outline: none; transition: border .2s, box-shadow .2s; background: #fff; }
.form-control:focus { border-color: #1677ff; box-shadow: 0 0 0 2px rgba(22,119,255,.15); }
textarea.form-control { height: auto; padding: 8px 12px; resize: vertical; }
select.form-control { appearance: auto; }
.code-row { display: flex; gap: 8px; }
.code-row .form-control { flex: 1; }
.code-btn { width: 118px; height: 40px; border: 1px solid #1677ff; background: #fff; color: #1677ff; border-radius: 6px; cursor: pointer; font-size: 13px; flex-shrink: 0; }
.code-btn:disabled { color: #bbb; border-color: #ddd; cursor: not-allowed; }
.captcha-row { display: flex; gap: 8px; align-items: center; }
.captcha-row img { height: 40px; border-radius: 6px; cursor: pointer; border: 1px solid #d9d9d9; }
.btn { display: inline-block; height: 40px; padding: 0 20px; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; transition: all .2s; }
.btn-primary { width: 100%; background: linear-gradient(135deg, #1677ff, #0e6eb8); color: #fff; font-weight: 600; }
.btn-primary:hover { opacity: .9; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-danger { background: #ff4d4f; color: #fff; }
.btn-danger:hover { background: #f9363f; }
.btn-plain { background: #fff; color: #555; border: 1px solid #d9d9d9; }
.btn-plain:hover { border-color: #1677ff; color: #1677ff; }
.btn-green { background: #52c41a; color: #fff; }
.btn-green:hover { background: #49b716; }
.btn-orange { background: #fa8c16; color: #fff; }
.auth-links { display: flex; justify-content: space-between; margin: 14px 0 4px; font-size: 13px; }
.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 13px; }
.alert-error { background: #fff2f0; border: 1px solid #ffccc7; color: #cf1322; }
.alert-success { background: #f6ffed; border: 1px solid #b7eb8f; color: #389e0d; }
.alert-info { background: #e6f4ff; border: 1px solid #91caff; color: #0958d9; }
.checkbox-row { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #666; }
.pwd-strength { display: flex; gap: 4px; margin-top: 6px; }
.pwd-strength span { flex: 1; height: 4px; border-radius: 2px; background: #eee; }
.pwd-strength.s1 span:nth-child(-n+1), .pwd-strength.s2 span:nth-child(-n+2), .pwd-strength.s3 span:nth-child(-n+3), .pwd-strength.s4 span:nth-child(-n+4) { background: #52c41a; }
.pwd-strength.s0 span:nth-child(1) { background: #ff4d4f; }
.auth-footer { text-align: center; margin-top: 18px; color: #bbb; font-size: 12px; }
.auth-footer a { color: #8cb6e0; }

/* ---------- 后台布局 ---------- */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 220px; background: #0a2540; color: #c8d6e5; display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 100; }
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar .brand .logo { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #0e6eb8, #16a3c7); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 18px; }
.sidebar .brand b { color: #fff; font-size: 15px; }
.sidebar .brand small { display: block; color: #7d9bb5; font-size: 11px; font-weight: 400; }
.nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.nav .nav-title { padding: 10px 20px 6px; font-size: 11px; color: #5f7d99; text-transform: uppercase; letter-spacing: 1px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 11px 20px; color: #c8d6e5; font-size: 14px; border-left: 3px solid transparent; transition: all .15s; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.active { background: rgba(22,119,255,.15); color: #fff; border-left-color: #1677ff; }
.nav a .badge { margin-left: auto; background: #ff4d4f; color: #fff; font-size: 11px; border-radius: 10px; padding: 1px 7px; }
.main { flex: 1; margin-left: 220px; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 56px; background: #fff; border-bottom: 1px solid #e8e8e8; display: flex; align-items: center; padding: 0 24px; position: sticky; top: 0; z-index: 90; }
.topbar .page-title { font-size: 16px; font-weight: 600; color: #0a2540; }
.topbar .spacer { flex: 1; }
.topbar .bell { position: relative; margin-right: 18px; color: #666; font-size: 18px; }
.topbar .bell .dot { position: absolute; top: -4px; right: -6px; width: 8px; height: 8px; background: #ff4d4f; border-radius: 50%; }
.topbar .user { display: flex; align-items: center; gap: 8px; color: #333; cursor: pointer; }
.topbar .user .avatar { width: 32px; height: 32px; border-radius: 50%; background: #1677ff; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; overflow: hidden; }
.topbar .user .avatar img { width: 100%; height: 100%; object-fit: cover; }
.content { padding: 24px; flex: 1; }
.breadcrumb { font-size: 13px; color: #999; margin-bottom: 16px; }

/* ---------- 卡片与统计 ---------- */
.card { background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.06); margin-bottom: 20px; }
.card .card-head { padding: 16px 20px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; justify-content: space-between; }
.card .card-head h3 { font-size: 15px; color: #0a2540; }
.card .card-body { padding: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.stat-card .label { color: #8c8c8c; font-size: 13px; }
.stat-card .value { font-size: 28px; font-weight: 700; color: #0a2540; margin-top: 8px; }
.stat-card .value small { font-size: 13px; color: #999; font-weight: 400; }
.stat-card .trend { font-size: 12px; margin-top: 6px; }
.stat-card .trend.up { color: #52c41a; }
.stat-card .trend.down { color: #ff4d4f; }
.stat-card.c-blue { border-top: 3px solid #1677ff; }
.stat-card.c-green { border-top: 3px solid #52c41a; }
.stat-card.c-orange { border-top: 3px solid #fa8c16; }
.stat-card.c-red { border-top: 3px solid #ff4d4f; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { background: #fafafa; padding: 11px 14px; text-align: left; color: #666; font-weight: 600; border-bottom: 1px solid #f0f0f0; white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid #f5f5f5; color: #444; }
.table tr:hover td { background: #fafcff; }
.table .actions { white-space: nowrap; }
.table .actions a, .table .actions button { margin-right: 6px; }
.empty { text-align: center; color: #bbb; padding: 48px 0; font-size: 14px; }

/* ---------- 状态标签 ---------- */
.tag { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; line-height: 20px; }
.tag-gray { background: #f0f0f0; color: #666; }
.tag-blue { background: #e6f4ff; color: #0958d9; }
.tag-green { background: #f6ffed; color: #389e0d; }
.tag-red { background: #fff1f0; color: #cf1322; }
.tag-orange { background: #fff7e6; color: #d46b08; }
.tag-yellow { background: #feffe6; color: #d4b106; }
.tag-purple { background: #f9f0ff; color: #722ed1; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.upload-box { border: 1px dashed #d9d9d9; border-radius: 8px; padding: 20px; text-align: center; color: #999; cursor: pointer; transition: all .2s; position: relative; overflow: hidden; background: #fafafa; }
.upload-box:hover { border-color: #1677ff; color: #1677ff; }
.upload-box img { max-width: 100%; max-height: 160px; display: block; margin: 0 auto 8px; border-radius: 4px; }
.upload-box.has-file { border-style: solid; border-color: #52c41a; background: #f6ffed; }
.upload-box input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-box .file-name { font-size: 12px; color: #52c41a; word-break: break-all; }

/* ---------- 审核状态卡片 ---------- */
.audit-status { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 10px; margin-bottom: 20px; }
.audit-status .icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; }
.audit-status h3 { font-size: 16px; }
.audit-status p { font-size: 13px; opacity: .85; margin-top: 4px; }
.audit-status.s-yellow { background: #fffbe6; border: 1px solid #ffe58f; }
.audit-status.s-yellow .icon { background: #faad14; }
.audit-status.s-blue { background: #e6f4ff; border: 1px solid #91caff; }
.audit-status.s-blue .icon { background: #1677ff; }
.audit-status.s-green { background: #f6ffed; border: 1px solid #b7eb8f; }
.audit-status.s-green .icon { background: #52c41a; }
.audit-status.s-red { background: #fff1f0; border: 1px solid #ffa39e; }
.audit-status.s-red .icon { background: #ff4d4f; }
.audit-status.s-gray { background: #fafafa; border: 1px solid #d9d9d9; }
.audit-status.s-gray .icon { background: #999; }

/* ---------- 告警卡片 ---------- */
.warn-card { background: linear-gradient(135deg, #ff4d4f, #f5222d); color: #fff; border-radius: 10px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.warn-card .icon { font-size: 30px; }
.warn-card b { font-size: 16px; }
.warn-card p { font-size: 13px; opacity: .9; margin-top: 2px; }

/* ---------- 方案卡片 ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan-card { border: 1px solid #e8e8e8; border-radius: 10px; padding: 20px; background: #fff; transition: all .2s; display: flex; flex-direction: column; }
.plan-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); transform: translateY(-2px); }
.plan-card .plan-name { font-size: 16px; font-weight: 700; color: #0a2540; }
.plan-card .plan-sub { color: #999; font-size: 12px; margin: 6px 0 14px; }
.plan-card .plan-price { color: #f5222d; font-size: 26px; font-weight: 700; }
.plan-card .plan-price small { font-size: 13px; color: #999; font-weight: 400; }
.plan-card .plan-price .origin { font-size: 13px; color: #bbb; text-decoration: line-through; font-weight: 400; margin-left: 6px; }
.plan-card ul { list-style: none; margin: 14px 0; flex: 1; }
.plan-card ul li { padding: 5px 0; color: #666; font-size: 13px; }
.plan-card ul li::before { content: "✓"; color: #52c41a; margin-right: 6px; }
.plan-card .buy-btn { width: 100%; }
.plan-tags { display: flex; gap: 6px; margin-bottom: 4px; }

/* ---------- 消息列表 ---------- */
.msg-item { padding: 16px 20px; border-bottom: 1px solid #f5f5f5; display: flex; gap: 12px; cursor: pointer; }
.msg-item.unread { background: #f6faff; }
.msg-item.unread .msg-title { font-weight: 700; }
.msg-item .msg-dot { width: 8px; height: 8px; background: #1677ff; border-radius: 50%; margin-top: 7px; flex-shrink: 0; }
.msg-item.read .msg-dot { background: transparent; }
.msg-item .msg-title { color: #333; }
.msg-item .msg-content { color: #999; font-size: 13px; margin-top: 4px; }
.msg-item .msg-time { color: #bbb; font-size: 12px; margin-left: auto; flex-shrink: 0; }

/* ---------- 企业后台通用补充 ---------- */
.btn-block { width: 100%; }
.btn:disabled { background: #f0f0f0; color: #bbb; cursor: not-allowed; }
.input { height: 36px; border: 1px solid #d9d9d9; border-radius: 6px; padding: 0 10px; font-size: 13px; outline: none; background: #fff; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.tab-row { display: flex; gap: 4px; flex-wrap: wrap; }
.tab { padding: 6px 14px; border-radius: 6px; color: #666; font-size: 13px; }
.tab:hover { background: #f5f5f5; }
.tab.active { background: #e6f4ff; color: #0958d9; font-weight: 600; }
.pagination { display: flex; gap: 6px; align-items: center; padding: 14px 20px; flex-wrap: wrap; }
.pagination .page { padding: 5px 11px; border: 1px solid #d9d9d9; border-radius: 6px; color: #555; font-size: 13px; }
.pagination .page.active { background: #1677ff; border-color: #1677ff; color: #fff; }
.muted { color: #999; font-size: 13px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; padding: 20px; gap: 14px 24px; }
.detail-item { display: flex; flex-direction: column; gap: 4px; }
.detail-item span { color: #999; font-size: 12px; }
.detail-item b { color: #333; font-weight: 600; }
.detail-item.full { grid-column: 1 / -1; }
.steps { display: flex; align-items: center; padding: 0 20px 8px; gap: 20px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; color: #999; font-size: 13px; }
.step b { width: 26px; height: 26px; border-radius: 50%; background: #eee; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.step.done { color: #389e0d; }
.step.done b { background: #52c41a; color: #fff; }
.pay-box { padding: 20px; }
.balance-line { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #f0f0f0; margin-bottom: 14px; }
.pay-methods { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.pay-method { display: flex; align-items: center; gap: 8px; border: 1px solid #e8e8e8; border-radius: 8px; padding: 12px 14px; cursor: pointer; transition: all .15s; }
.pay-method:hover { border-color: #1677ff; }
.pay-method:has(input:checked) { border-color: #1677ff; background: #f6faff; }
.pay-method.disabled { opacity: .5; cursor: not-allowed; }
.card-foot { padding: 14px 20px; border-top: 1px solid #f0f0f0; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-top b { font-size: 16px; color: #0a2540; }
.plan-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 6px 0 14px; font-size: 13px; color: #666; }
.plan-meta span { color: #999; margin-right: 6px; }
.plan-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.plan-price-row .price { color: #f5222d; font-size: 26px; font-weight: 700; }
.plan-price-row .original { color: #bbb; font-size: 13px; text-decoration: line-through; }
.recharge-box { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.recharge-box .input { width: 180px; }

/* ---------- 工具类 ---------- */
.mt10 { margin-top: 10px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; }
.mb10 { margin-bottom: 10px; } .mb16 { margin-bottom: 16px; } .mb20 { margin-bottom: 20px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-red { color: #f5222d; } .text-green { color: #52c41a; } .text-orange { color: #fa8c16; } .text-gray { color: #999; }
.flex { display: flex; } .flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap8 { gap: 8px; }

/* ---------- 总后台补充 ---------- */
.card-head-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.dg-item { display: flex; flex-direction: column; gap: 4px; }
.dg-label { color: #999; font-size: 12px; }
.bar-chart { display: flex; gap: 12px; align-items: flex-end; height: 180px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-val { font-size: 11px; color: #999; }
.bar-wrap { width: 100%; max-width: 52px; flex: 1; display: flex; align-items: flex-end; background: #f5f7fa; border-radius: 6px 6px 0 0; }
.bar-fill { width: 100%; background: linear-gradient(180deg, #1677ff, #0e6eb8); border-radius: 6px 6px 0 0; min-height: 2px; }
.bar-label { font-size: 12px; color: #666; }
.w100 { width: 100%; }
.mono { font-family: Consolas, monospace; }
.pager { display: flex; gap: 8px; justify-content: center; padding: 16px 0; }
.pager a, .pager span { padding: 6px 12px; border: 1px solid #d9d9d9; border-radius: 6px; color: #555; font-size: 13px; }
.pager span.current { background: #1677ff; border-color: #1677ff; color: #fff; }
.filter-bar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.filter-bar select, .filter-bar input { height: 36px; border: 1px solid #d9d9d9; border-radius: 6px; padding: 0 10px; font-size: 13px; outline: none; }
@media (max-width: 1200px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
