* { box-sizing: border-box; }
body { margin:0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background:#f5f7fb; color:#333; }
a { color:#3b6ef6; text-decoration:none; }
header { background:#fff; border-bottom:1px solid #eaecef; }
header .wrap { display:flex; justify-content:space-between; align-items:center; height:56px; }
.wrap { max-width:960px; margin:0 auto; padding:0 16px; }
.brand { font-weight:700; font-size:18px; color:#222; }
nav a, nav span { margin-left:16px; font-size:14px; }
main { padding:24px 16px 60px; }
.card { background:#fff; border-radius:10px; padding:24px; box-shadow:0 1px 3px rgba(0,0,0,.05); margin-bottom:16px; }
.btn { display:inline-block; background:#3b6ef6; color:#fff; padding:8px 18px; border-radius:6px; border:0; cursor:pointer; font-size:14px; }
.btn:hover { background:#2f5ce0; }
.btn.ghost { background:#fff; color:#3b6ef6; border:1px solid #3b6ef6; }
input[type=text], input[type=password] { width:100%; padding:10px 12px; border:1px solid #dcdfe6; border-radius:6px; font-size:14px; margin:6px 0 14px; }
label { font-size:13px; color:#666; }
.flash { position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); z-index:9999; background:#fff3f3; color:#d9534f; border:1px solid #f3c2c0; padding:14px 24px; border-radius:12px; font-size:14px; text-align:center; max-width:80%; box-shadow:0 10px 35px rgba(15,23,42,.22); animation:flashIn .18s ease; }
.flash.ok { background:#eefaf0; color:#2ea44f; border-color:#bbebc6; }
.flash.fade { opacity:0; transition:opacity .3s; }
@keyframes flashIn { from{opacity:0; transform:translate(-50%,-46%);} to{opacity:1; transform:translate(-50%,-50%);} }
table { width:100%; border-collapse:collapse; }
th, td { padding:10px 8px; border-bottom:1px solid #eee; text-align:left; font-size:14px; }
th { color:#888; font-weight:500; background:#fafbfc; }
.app-icon { width:40px; height:40px; border-radius:8px; background:#eef2ff; display:inline-block; vertical-align:middle; margin-right:10px; }
.muted { color:#999; font-size:12px; }
.tag { display:inline-block; padding:2px 8px; border-radius:4px; font-size:12px; background:#eef2ff; color:#3b6ef6; }
.tag.red { background:#fff0f0; color:#d9534f; }
.tag.green { background:#eefaf0; color:#2ea44f; }
h1 { font-size:22px; }
.center { max-width:380px; margin:40px auto; }

.pkg-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:16px; }
.pkg-card { border:1px solid #eaecef; border-radius:10px; padding:20px; background:#fafbfc; }
.pkg-card h3 { margin:0 0 10px; }
.pkg-card .price { font-size:24px; font-weight:700; color:#3b6ef6; margin:6px 0; }
.pkg-card p { color:#666; font-size:13px; }

/* 独立登录/注册页：企业风 蓝主题 白底 */
body.auth { min-height:100vh; display:flex; align-items:center; justify-content:center;
  background:#f7f8fa; padding:24px 16px; }
.auth-card { width:100%; max-width:380px; background:#fff; border:1px solid #eaecef; border-radius:12px;
  padding:36px 32px; box-shadow:0 4px 16px rgba(15,35,80,.08); }
.auth-logo { width:48px; height:48px; margin:0 auto 14px; border-radius:12px;
  background:#2f6bf0; display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:22px; font-weight:700; }
.auth-title { text-align:center; font-size:19px; font-weight:700; color:#1f2d3d; margin:0 0 4px; }
.auth-sub { text-align:center; color:#8a94a6; font-size:13px; margin:0 0 24px; }
.auth-card label { display:block; margin-bottom:4px; color:#4a5568; }
.auth-card input[type=text], .auth-card input[type=password] { padding:10px 12px; border-radius:8px; margin:0 0 16px; border:1px solid #d9dee8; background:#fff; }
.auth-card input:focus { outline:none; border-color:#2f6bf0; box-shadow:0 0 0 3px rgba(47,107,240,.12); }
.auth-btn { width:100%; padding:11px; border-radius:8px; font-size:15px; margin-top:4px; background:#2f6bf0; }
.auth-btn:hover { background:#2459d6; }
.auth-foot { text-align:center; margin-top:18px; font-size:13px; color:#8a94a6; }
.auth-flash { background:#fff3f3; color:#d9534f; padding:10px 14px; border-radius:8px; margin-bottom:16px; font-size:13px; }

/* 前台左侧导航布局：企业蓝白 */
.fside { position:fixed; left:0; top:0; bottom:0; width:220px; background:#fff; border-right:1px solid #eaecef; overflow-y:auto; }
.fside-brand { height:56px; display:flex; align-items:center; justify-content:center; gap:10px; padding:0 18px; font-weight:700; color:#1f2d3d; border-bottom:1px solid #eaecef; }
.fside-logo { width:30px; height:30px; border-radius:8px; background:#2f6bf0; color:#fff; display:flex; align-items:center; justify-content:center; font-size:15px; }
.fside nav { padding:10px 0; }
.fside a { display:block; padding:10px 18px; color:#4a5568; font-size:14px; }
.fside a.fsub { padding-left:18px; }
.fside a:hover { background:#f2f6ff; color:#2f6bf0; }
.fside a.active { background:#2f6bf0; color:#fff; }
.fside .fgroup { padding:14px 18px 4px; font-size:12px; color:#8a94a6; }
.fmain { margin-left:220px; min-height:100vh; display:flex; flex-direction:column; }
.ftopbar { height:56px; background:#fff; border-bottom:1px solid #eaecef; display:flex; justify-content:space-between; align-items:center; padding:0 24px; }
.ftopbar-title { font-weight:700; font-size:16px; color:#1f2d3d; }
.fcontent { padding:24px; background:#f7f8fa; flex:1; }
.ffoot { text-align:center; color:#8a94a6; font-size:12px; padding:18px 24px; background:#f7f8fa; }
.fguest { background:#fff; border-bottom:1px solid #eaecef; }
.fguest .wrap { display:flex; justify-content:space-between; align-items:center; height:56px; }
.fguest nav a { margin-left:16px; font-size:14px; }

/* 统计卡片 */
.stat-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:16px; margin-bottom:16px; }
.stat { background:#fff; border:1px solid #eaecef; border-radius:12px; padding:20px; }
.stat-label { color:#8a94a6; font-size:13px; }
.stat-num { font-size:26px; font-weight:700; color:#1f2d3d; margin-top:6px; }

/* 应用列表 */
.app-cell { display:flex; align-items:center; gap:12px; }
.app-icon-img { width:44px; height:44px; border-radius:10px; object-fit:cover; background:#eef2ff; }
.addr-cell code { font-size:12px; color:#4a5568; }
.op-row { display:flex; flex-wrap:nowrap; gap:6px; white-space:nowrap; }
.op-row .btn { padding:6px 10px; font-size:13px; }
.btn.danger { color:#d9534f; border-color:#f0c2c0; }
.btn.danger:hover { background:#fff0f0; }

/* 套餐详情 */
.pkg-detail summary { cursor:pointer; color:#2f6bf0; font-size:13px; }
.pkg-detail-body { margin-top:8px; }
.pkg-detail-body ul { margin:0; padding-left:18px; }
.pkg-detail-body li { font-size:13px; padding:3px 0; }
table.app-table td { vertical-align:middle; }

/* 顶部工具条 */
.page-bar { display:flex; gap:10px; margin-bottom:16px; }

/* 弹窗 */
.modal-mask { position:fixed; inset:0; background:rgba(15,35,80,.35); display:none; align-items:center; justify-content:center; z-index:100; }
.modal-mask.show { display:flex; }
.modal { width:100%; max-width:520px; background:#fff; border-radius:14px; box-shadow:0 12px 40px rgba(15,35,80,.18); overflow:hidden; }
.modal-head { display:flex; justify-content:space-between; align-items:center; padding:18px 22px; border-bottom:1px solid #eaecef; }
.modal-head strong { font-size:16px; color:#1f2d3d; }
.modal-close { border:0; background:none; font-size:22px; color:#8a94a6; cursor:pointer; line-height:1; }
.modal-body { padding:22px; }
.modal-body label { display:block; margin-bottom:6px; color:#4a5568; font-size:13px; }
.modal-select { width:100%; padding:10px 12px; border:1px solid #dcdfe6; border-radius:6px; font-size:14px; background:#fff; }
.modal-textarea { width:100%; padding:10px 12px; border:1px solid #dcdfe6; border-radius:6px; font-size:14px; background:#fff; resize:vertical; min-height:96px; font-family:inherit; }
.modal-foot { display:flex; justify-content:flex-end; gap:10px; padding:16px 22px; border-top:1px solid #eaecef; }

/* 拖拽上传框 */
.dz { border:1.5px dashed #b9cffb; background:#f7faff; border-radius:12px; padding:34px 20px; text-align:center; cursor:pointer; transition:border-color .15s, background .15s; }
.dz.drag { border-color:#2f6bf0; background:#eef4ff; }
.dz-plus { width:34px; height:34px; margin:0 auto 10px; border-radius:50%; background:#2f6bf0; color:#fff; font-size:22px; line-height:34px; }
.dz-title { font-weight:700; color:#1f2d3d; font-size:15px; margin-bottom:6px; }
.dz-hint { color:#8a94a6; font-size:13px; margin:3px 0; }
.file-chip { display:inline-block; margin-top:10px; padding:6px 12px; background:#eef4ff; color:#2f6bf0; border-radius:6px; font-size:13px; }

/* 登录/注册：左右分屏 */
body.auth { min-height:100vh; display:flex; align-items:stretch; justify-content:stretch; background:#f7f8fa; padding:0; }
.split-left { width:50%; min-height:100vh; background:linear-gradient(150deg,#123a8f 0%,#1f5fd6 55%,#2f7bf0 100%); color:#fff; display:flex; flex-direction:column; justify-content:center; padding:60px; position:relative; overflow:hidden; }
.split-left::before { content:''; position:absolute; inset:0; background-image:linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px); background-size:44px 44px; }
.split-left > * { position:relative; }
.split-brand { display:flex; align-items:center; gap:12px; margin-bottom:48px; }
.split-brand-logo { width:44px; height:44px; border-radius:10px; object-fit:cover; flex:0 0 auto; }
.split-brand-name { font-size:17px; font-weight:700; }
.split-brand-en { font-size:11px; letter-spacing:2px; opacity:.7; margin-top:2px; }
.split-headline { font-size:34px; font-weight:700; line-height:1.35; margin:0 0 18px; }
.split-desc { font-size:14px; line-height:1.8; opacity:.82; max-width:420px; margin:0 0 36px; }
.split-feats { display:flex; flex-direction:column; gap:22px; }
.split-feat { display:flex; gap:14px; }
.split-feat-no { width:30px; height:30px; border-radius:8px; background:rgba(255,255,255,.14); display:flex; align-items:center; justify-content:center; font-size:12px; flex:none; }
.split-feat-t { font-size:14px; font-weight:700; }
.split-feat-d { font-size:12.5px; opacity:.78; margin-top:3px; }
.split-right { width:50%; min-height:100vh; display:flex; flex-direction:column; justify-content:center; padding:60px; background:#fff; }
.split-form { max-width:380px; width:100%; margin:0 auto; }
.split-eyebrow { color:#2f6bf0; letter-spacing:3px; font-size:12px; font-weight:600; margin-bottom:10px; }
.split-title { font-size:26px; font-weight:700; color:#1f2d3d; margin:0 0 8px; }
.split-sub { color:#8a94a6; font-size:14px; margin:0 0 28px; }
.split-form label { display:block; font-size:13px; color:#4a5568; margin:0 0 6px; }
.split-form input[type=text], .split-form input[type=password] { width:100%; padding:12px 14px; border:1px solid #d9dee8; border-radius:10px; font-size:14px; margin:0 0 18px; background:#fff; }
.split-form input:focus { outline:none; border-color:#2f6bf0; box-shadow:0 0 0 3px rgba(47,107,240,.12); }
.split-btn { width:100%; padding:13px; border-radius:10px; border:0; background:linear-gradient(90deg,#2f6bf0,#4f93f7); color:#fff; font-size:15px; font-weight:600; cursor:pointer; }
.split-btn:hover { filter:brightness(.96); }
.split-foot-row { display:flex; justify-content:space-between; align-items:center; margin-top:26px; padding-top:18px; border-top:1px solid #f0f2f5; color:#8a94a6; font-size:12px; }
.split-status { display:flex; align-items:center; gap:6px; }
.split-dot { width:7px; height:7px; border-radius:50%; background:#2ea44f; }
.split-foot-link { text-align:center; margin-top:20px; font-size:13px; color:#8a94a6; }
.split-flash { background:#fff3f3; color:#d9534f; padding:10px 14px; border-radius:8px; margin-bottom:16px; font-size:13px; }
@media (max-width: 900px) { .split-left { display:none; } .split-right { width:100%; } }

.nav-dot { display:inline-block; width:8px; height:8px; border-radius:50%; background:#f56c6c; margin-left:6px; }
.ticket-card { border:1px solid #eaecef; border-radius:10px; padding:16px 18px; margin-bottom:12px; background:#fff; }
.ticket-head { display:flex; justify-content:space-between; align-items:center; cursor:pointer; gap:12px; }
.ticket-head-right { display:flex; align-items:center; gap:10px; }
.ticket-dot { width:9px; height:9px; border-radius:50%; background:#f56c6c; display:inline-block; }
.ticket-body { margin-top:14px; }
.bubble { border-radius:10px; padding:12px 14px; margin-bottom:10px; font-size:14px; line-height:1.7; }
.bubble-user { background:#f2f6ff; }
.bubble-admin { background:#eefaf0; }
.ticket-reply { margin-top:14px; padding-top:14px; border-top:1px dashed #eaecef; }
.dz-sm { padding:22px 16px; }

/* ===== 会员中心 UI 统一打磨 ===== */
body { background:#f5f7fb; color:#1f2d3d; }
h1 { font-size:22px; font-weight:700; color:#1f2d3d; margin:0 0 18px; }
.card { background:#fff; border:1px solid #eef1f6; }
.card h3 { margin:0 0 16px; font-size:16px; color:#1f2d3d; }
.card p { line-height:1.8; color:#4a5568; }
label { display:block; font-size:13px; color:#4a5568; margin-bottom:6px; }
input[type=text], input[type=password], select, textarea {
  width:100%; padding:10px 12px; border:1px solid #dcdfe6; border-radius:8px;
  font-size:14px; background:#fff; color:#1f2d3d; font-family:inherit; margin:0 0 14px;
}
textarea { resize:vertical; min-height:96px; }
input:focus, select:focus, textarea:focus { outline:none; border-color:#2f6bf0; box-shadow:0 0 0 3px rgba(47,107,240,.12); }
table th { background:#f7f9ff; color:#5a6b85; font-weight:600; }
table tr:hover td { background:#f7faff; }
.stat { border:1px solid #eef1f6; }
.stat:hover { box-shadow:0 4px 14px rgba(15,35,80,.08); }
.fside-logo { object-fit:cover; }

[hidden] { display:none !important; }

.fside-brand-inner { display:flex; align-items:center; gap:10px; }

/* ===== 顶栏用户下拉菜单 ===== */
.user-menu { position:relative; }
.user-chip { display:flex; align-items:center; gap:8px; background:#fff; border:1px solid #eaecef; border-radius:999px; padding:6px 12px; cursor:pointer; font-family:inherit; }
.user-chip:hover { border-color:#2f6bf0; }
.user-avatar { width:28px; height:28px; border-radius:50%; background:linear-gradient(135deg,#2f6bf0,#5b8def); color:#fff; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; }
.user-name { font-size:14px; color:#1f2d3d; }
.user-caret { color:#8a94a6; font-size:12px; }
.user-drop { position:absolute; right:0; top:calc(100% + 8px); min-width:150px; background:#fff; border:1px solid #eaecef; border-radius:10px; box-shadow:0 8px 24px rgba(15,35,80,.12); padding:6px; display:none; z-index:50; }
.user-drop.show { display:block; }
.user-drop a { display:flex; align-items:center; gap:8px; padding:9px 12px; border-radius:8px; font-size:14px; color:#33415c; }
.user-drop a:hover { background:#f2f6ff; color:#2f6bf0; }
.user-drop a.danger:hover { background:#fef0f0; color:#e5484d; }
.user-drop .mi { width:16px; text-align:center; }

/* ===== 公告通知模块 ===== */
.notice-head-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.notice-head-row h3 { margin:0; }
.notice-item { padding:14px 0; border-bottom:1px solid #f0f2f7; cursor:pointer; }
.notice-item:last-child { border-bottom:none; }
.notice-item:hover .notice-item-title { color:#2f6bf0; }
.notice-item-title { font-size:15px; color:#1f2d3d; font-weight:600; }
.notice-item-meta { margin-top:5px; font-size:12px; color:#8a94a6; }
.notice-item-excerpt { margin-top:6px; font-size:13px; color:#6b7688; line-height:1.7; }
.notice-modal { max-width:760px; }
.notice-body { display:flex; gap:0; padding:0; height:460px; }
.notice-groups { width:170px; border-right:1px solid #eaecef; padding:12px 0; flex-shrink:0; overflow-y:auto; }
.notice-group { display:block; width:100%; text-align:left; padding:11px 18px; font-size:14px; color:#4a5568; background:none; border:none; cursor:pointer; font-family:inherit; border-left:3px solid transparent; }
.notice-group.active { color:#2f6bf0; background:#f2f6ff; border-left-color:#2f6bf0; font-weight:600; }
.notice-content { flex:1; padding:18px; overflow-y:auto; }
.notice-article h4 { font-size:16px; color:#1f2d3d; margin:0 0 6px; }
.notice-article .meta { font-size:12px; color:#8a94a6; margin-bottom:14px; }
.notice-article p { line-height:1.9; color:#33415c; font-size:14px; }
.notice-back { margin-bottom:12px; }

/* ===== 首页统计卡自适应与背景 ===== */
.stat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:16px; }
.stat { position:relative; overflow:hidden; background:linear-gradient(135deg,#ffffff 0%,#eef4ff 100%); border:1px solid #e6eefc; border-radius:14px; padding:22px; }
.stat::after { content:''; position:absolute; right:-30px; top:-30px; width:110px; height:110px; border-radius:50%; background:radial-gradient(circle,rgba(47,107,240,.12),transparent 70%); }
.stat-label { color:#5a6b85; font-size:13px; }
.stat-en { display:block; font-size:11px; letter-spacing:.12em; color:#a9bcd9; margin-top:3px; font-weight:500; }
.stat-num { font-size:28px; font-weight:700; color:#1f2d3d; margin-top:8px; }

.split-copy { position:absolute; left:60px; bottom:26px; opacity:.65; font-size:12px; z-index:1; }
.agent-entry { color:#2f6bf0; font-size:13px; text-decoration:none; }
.agent-entry:hover { text-decoration:underline; }


/* ===== 工单对话 ===== */
.ticket-head-info { min-width: 0; }
.ticket-chevron { color:#8a94a6; transition:transform .15s; }
.ticket-card.open .ticket-chevron { transform:rotate(180deg); }
.thread { display:flex; flex-direction:column; gap:14px; margin-top:14px; }
.msg-row { display:flex; gap:10px; }
.msg-row.user { flex-direction:row-reverse; }
.msg-avatar { width:34px; height:34px; border-radius:50%; flex:0 0 34px; display:flex; align-items:center; justify-content:center; font-size:13px; color:#fff; }
.msg-row.user .msg-avatar { background:#2f6bf0; }
.msg-row.admin .msg-avatar { background:#2ea44f; }
.msg-main { max-width:72%; }
.msg-row.user .msg-main { text-align:right; }
.msg-meta { font-size:12px; color:#8a94a6; margin-bottom:4px; }
.msg-bubble { padding:12px 14px; border-radius:12px; font-size:14px; line-height:1.7; text-align:left; }
.msg-row.user .msg-bubble { background:#f2f6ff; }
.msg-row.admin .msg-bubble { background:#eefaf0; }
.msg-att { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; justify-content:flex-start; }
.msg-row.user .msg-att { justify-content:flex-end; }
.att-chip { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; background:#fff; border:1px solid #e6eefc; border-radius:8px; font-size:12px; color:#2f6bf0; }
.thread-empty { text-align:center; color:#8a94a6; font-size:13px; padding:8px 0; }


/* ===== 工单列表与聊天头部 ===== */
.t-row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:16px 18px; border:1px solid #eaecef; border-radius:12px; margin-bottom:12px; background:#fff; color:inherit; }
.t-row:last-child { margin-bottom:0; }
.t-row:hover { border-color:#2f6bf0; background:#f7faff; }
.t-main { min-width:0; }
.t-title { font-weight:700; color:#1f2d3d; margin-bottom:4px; }
.t-side { display:flex; align-items:center; gap:10px; flex:0 0 auto; }
.ticket-chevron { color:#8a94a6; }
.chat-head { display:flex; align-items:center; gap:14px; padding-bottom:16px; border-bottom:1px solid #eaecef; margin-bottom:16px; }
.chat-head-info { flex:1; min-width:0; }
.chat-head-info strong { font-size:16px; color:#1f2d3d; }
