/* =====================================================================
 * 临时邮箱前台公共样式（顶栏 / 语言切换 / 主题 / 页脚 / 友情链接 /
 * 登录弹层 / toast / hero / 通用区块 / FAQ / 暗色 / RTL）。
 * 2026-10-15：顶栏文章搜索下线，相关 search-bar / search-pill 样式一并移除。
 * 首页、价格页、API 文档页共用；页面私有样式写在各自模板的 <style> 里。
 * ===================================================================== */
:root{
  --brand:#2563eb;
  --brand-600:#1d4ed8;
  --brand-50:#eff6ff;
  --ink:#0f172a;
  --muted:#64748b;
}
*{box-sizing:border-box;}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei",sans-serif;
  background:#f6f8fc;
  color:var(--ink);
}
a{text-decoration:none;}

/* ===== 顶部导航：全屏宽体（背景铺满视口宽度 + 磨砂蓝紫玻璃 + 底部细边线）。
   position:relative 非吸顶——下滚时随页面正常滚走；内容在 .inner 里居中限宽，不贴边。 ===== */
.topbar{
  position:relative;z-index:80;
  width:100%;
  max-width:none;
  margin:0;
  border-radius:0;
  background-color:rgba(37,99,235,.78);
  background-image:linear-gradient(120deg, rgba(96,165,250,.5) 0%, rgba(37,99,235,.78) 50%, rgba(124,58,237,.85) 100%);
  -webkit-backdrop-filter:blur(16px) saturate(160%);
  backdrop-filter:blur(16px) saturate(160%);
  border:none;
  border-bottom:1px solid rgba(255,255,255,.28);
  box-shadow:0 10px 30px -18px rgba(37,99,235,.55);
}
/* 暗色下沿用同款品牌蓝紫玻璃，与全站 CTA / 眉标 / 价格标签一致 */
html[data-bs-theme="dark"] .topbar{background-color:rgba(30,64,175,.78);background-image:linear-gradient(120deg, rgba(59,130,246,.5) 0%, rgba(37,99,235,.78) 50%, rgba(124,58,237,.85) 100%);border-bottom-color:rgba(255,255,255,.18);}
.topbar .inner{width:100%;max-width:1160px;margin:0 auto;padding:14px 22px;min-height:72px;height:auto;display:flex;flex-wrap:wrap;align-items:center;gap:14px;}
/* 文档类页面（article / article_list / sitemap / legal）与页脚用的是 tabler 的 .container-xl（最大 1320px），
   比顶栏 1080 设计宽宽出一截；这里把权重抬高覆盖，统一对齐顶栏宽度（勿改成单类选择器，会被 tabler.min.css 后加载盖回去） */
.page-body .container-xl,
.footer .container-xl{max-width:1080px;}
.topbar .logo{display:flex;align-items:center;gap:9px;font-weight:800;color:#fff;font-size:20px;white-space:nowrap;flex:0 0 auto;order:1;transition:.15s;text-shadow:0 1px 2px rgba(0,0,0,.12);}
.topbar .logo:hover{opacity:.9;}
.topbar .logo .dot{
  width:40px;height:40px;border-radius:11px;color:#fff;
  background:rgba(255,255,255,.22);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 12px -4px rgba(0,0,0,.3);
}
/* 导航胶囊：当前页高亮（active 由模板脚本按路径末段加）。
   整条落第二排（order:3 + flex:1 1 100%），宽度超出自动换行，多语言扩展不再撑破顶栏；
   品牌与账户区留在第一行，靠 .right 的 margin-left:auto 推到最右。 */
.topbar .nav-links{display:flex;flex-wrap:wrap;align-items:center;gap:6px;order:3;flex:1 1 100%;margin-left:0;margin-top:10px;padding-top:14px;border-top:1px solid rgba(255,255,255,.18);justify-content:flex-start;}
.topbar .nav-links a{
  color:rgba(255,255,255,.88);font-size:15.5px;font-weight:600;padding:10px 20px;border-radius:999px;
  transition:color .15s, background .15s;white-space:nowrap;position:relative;
}
.topbar .nav-links a:hover{color:#fff;background:rgba(255,255,255,.16);}
/* 当前页：白色实底胶囊 + 品牌蓝字，在渐变条上最醒目，构成视觉焦点 */
.topbar .nav-links a.active{color:#1d4ed8;background:#fff;font-weight:700;box-shadow:0 4px 12px -4px rgba(0,0,0,.25);}
/* 右侧账户区：靠 margin-left:auto 推到最右，与左侧 logo + 导航形成左右呼应 */
.topbar .right{display:flex;flex-wrap:nowrap;align-items:center;gap:7px;flex:0 0 auto;order:2;margin-left:auto;}

/* 语言切换（三列网格面板 + Tabler 下拉项样式；面板保持白底，与渐变条拉开层次） */
.lang-dd{position:relative;}
.lang-btn{display:flex;align-items:center;gap:6px;border:1px solid rgba(255,255,255,.4);background:rgba(255,255,255,.12);color:#fff;border-radius:8px;height:40px;padding:0 14px;cursor:pointer;font-size:14px;transition:.15s;}
.lang-btn:hover{background:rgba(255,255,255,.22);}
.lang-btn .flag{width:20px;height:14px;display:inline-block;background-size:cover;border-radius:2px;}
/* 面板相对语言按钮（.lang-dd 已 position:relative）正下方弹出，不再贴顶栏右边。
   用 visibility+opacity 而非 display 切换，才能有淡入下滑过渡（display:none 无法过渡）。 */
.lang-menu-box{position:absolute;right:0;top:calc(100% + 8px);background:#fff;border:1px solid #e2e8f0;border-radius:10px;
  box-shadow:0 12px 30px -12px rgba(15,23,42,.35);padding:8px;z-index:70;
  opacity:0;transform:translateY(-6px);visibility:hidden;pointer-events:none;
  transition:opacity .16s var(--ease, ease), transform .16s var(--ease, ease), visibility .16s;}
.lang-menu-box.show{opacity:1;transform:none;visibility:visible;pointer-events:auto;}
html[data-bs-theme="dark"] .lang-menu-box{background:#0f172a;border-color:#334155;}
.lang-menu-box .lang-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;
  width:26rem;max-width:calc(100vw - 1rem);max-height:calc(100vh - 6rem);overflow-y:auto;}
.lang-menu-box a{display:flex;align-items:center;gap:6px;padding:6px 8px;border-radius:6px;color:#334155;
  text-decoration:none;font-size:13px;min-width:0;}
html[data-bs-theme="dark"] .lang-menu-box a{color:#cbd5e1;}
.lang-menu-box a:hover{background:#f1f5f9;}
html[data-bs-theme="dark"] .lang-menu-box a:hover{background:#1e293b;}
.lang-menu-box a.active{background:var(--brand-50);color:var(--brand);font-weight:600;}
html[data-bs-theme="dark"] .lang-menu-box a.active{background:rgba(37,99,235,.15);}
.lang-menu-box .flag{width:auto;height:1rem;aspect-ratio:4/3;border-radius:2px;flex:none;}
.lang-menu-box a span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
@media(max-width:575.98px){
  .lang-menu-box .lang-grid{grid-template-columns:minmax(0,1fr);width:16rem;}
  /* 窄屏顶栏防溢出：语言按钮只留旗帜图标，账户胶囊与间距收紧，
     否则「登录/注册」会被截断、汉堡菜单挤出视口 */
  .lang-btn span{display:none;}
  .lang-btn{padding:0 8px;gap:4px;}
  .acc-chip{padding:0 11px;}
  .topbar .inner{gap:8px;}
}

/* 主题切换按钮 */
.theme-toggle{border:none;background:transparent;color:rgba(255,255,255,.85);width:42px;height:42px;border-radius:8px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:.15s;}
.theme-toggle:hover{color:#fff;background:rgba(255,255,255,.16);}
.theme-toggle svg{display:block;}

/* 账户胶囊（会员中心 / 退出 / 登录注册）：在渐变条上统一用半透明白，登录按钮反相为白底蓝字最跳 */
.acc-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.12);border-radius:999px;height:40px;padding:0 18px;color:#fff;text-decoration:none;font-size:14px;font-weight:500;white-space:nowrap;transition:.15s;}
.acc-chip:hover{border-color:rgba(255,255,255,.7);color:#fff;background:rgba(255,255,255,.22);}
.acc-chip.acc-primary{
  border:none;color:#1d4ed8;font-weight:700;background:#fff;
  box-shadow:0 6px 16px -6px rgba(0,0,0,.35);
}
.acc-chip.acc-primary:hover{filter:brightness(.96);color:#1d4ed8;transform:translateY(-1px);box-shadow:0 8px 20px -8px rgba(0,0,0,.4);}
.acc-chip.acc-user svg{color:#fff;}
.acc-chip.acc-ghost{border-color:transparent;background:transparent;color:rgba(255,255,255,.85);}
.acc-chip.acc-ghost:hover{color:#fff;background:rgba(255,255,255,.16);border-color:transparent;}

/* 移动端菜单按钮（≥901px 隐藏）与下拉面板 */
.menu-toggle{display:none;border:1px solid rgba(255,255,255,.4);background:rgba(255,255,255,.12);color:#fff;width:42px;height:42px;border-radius:9px;cursor:pointer;align-items:center;justify-content:center;flex:none;}
.menu-toggle:hover{background:rgba(255,255,255,.22);}
.mobile-menu{display:none;border-top:1px solid rgba(255,255,255,.18);padding:8px 14px 12px;background:#fff;}
.mobile-menu a{display:block;padding:11px 12px;border-radius:10px;color:#334155;font-size:14px;font-weight:500;text-decoration:none;}
.mobile-menu a:hover,.mobile-menu a.active{background:var(--brand-50);color:var(--brand);}
html[data-bs-theme="dark"] .mobile-menu{background:#111827;border-top-color:rgba(148,163,184,.12);}
html[data-bs-theme="dark"] .mobile-menu a{color:#cbd5e1;}
html[data-bs-theme="dark"] .mobile-menu a:hover,
html[data-bs-theme="dark"] .mobile-menu a.active{background:rgba(37,99,235,.16);color:#93c5fd;}
@media(max-width:900px){
  .topbar .nav-links{display:none;}
  .topbar .right{margin-left:auto;}
  .menu-toggle{display:inline-flex;}
  .mobile-menu.open{display:block;}
}

/* ===== Hero ===== */
.hero{
  background:radial-gradient(1200px 420px at 50% -60%,rgba(79,140,255,.20) 0%,rgba(79,140,255,0) 55%),
             linear-gradient(180deg,#eef3ff 0%,#f6f8fc 34%,#f6f8fc 100%);
  padding:56px 18px 28px;
}
.hero .wrap{max-width:1080px;margin:0 auto;text-align:center;}
.hero h1{
  font-size:38px;line-height:1.2;margin:0 0 14px;letter-spacing:-.5px;font-weight:800;
}
.hero h1 .hl{color:var(--brand);}
.hero p.sub{font-size:17px;color:var(--muted);margin:0 auto 28px;max-width:620px;}
html[data-bs-theme="dark"] .hero{background:radial-gradient(1200px 400px at 50% -10%,#1e293b 0%,rgba(30,41,59,0) 60%),linear-gradient(180deg,#0b1220,#0b1220);}

/* ===== 通用区块 ===== */
.section{max-width:1080px;margin:0 auto;padding:48px 18px;}
.section h2{font-size:26px;font-weight:800;text-align:center;margin:0 0 6px;}
.section .lead{text-align:center;color:var(--muted);margin:0 0 32px;font-size:15px;}

/* 功能亮点 */
.feature{
  background:#fff;border:1px solid #eef2f7;border-radius:16px;padding:24px;
  transition:.2s;height:100%;
}
.feature:hover{transform:translateY(-4px);box-shadow:0 18px 36px -22px rgba(15,23,42,.35);border-color:#dbeafe;}
.feature .ico{
  width:48px;height:48px;border-radius:12px;background:var(--brand-50);
  color:var(--brand);display:flex;align-items:center;justify-content:center;margin-bottom:14px;
}
.feature h3{font-size:17px;margin:0 0 8px;}
.feature p{margin:0;color:var(--muted);font-size:14px;line-height:1.6;}

/* 使用步骤 */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;counter-reset:step;}
.step{position:relative;padding:26px 22px 22px;background:#fff;border:1px solid #eef2f7;border-radius:16px;}
.step .num{
  width:40px;height:40px;border-radius:50%;background:var(--brand);color:#fff;
  font-weight:700;display:flex;align-items:center;justify-content:center;margin-bottom:14px;
  box-shadow:0 8px 18px -8px rgba(37,99,235,.6);
}
.step h3{font-size:16px;margin:0 0 6px;}
.step p{margin:0;color:var(--muted);font-size:14px;line-height:1.6;}

/* FAQ */
.faq{max-width:1080px;margin:0 auto;}
.faq details{
  background:#fff;border:1px solid #eef2f7;border-radius:12px;padding:0 18px;margin-bottom:12px;
}
.faq summary{
  list-style:none;cursor:pointer;padding:16px 0;font-weight:600;display:flex;justify-content:space-between;align-items:center;gap:12px;
}
.faq summary::-webkit-details-marker{display:none;}
.faq summary .chev{transition:.2s;color:var(--muted);}
.faq details[open] summary .chev{transform:rotate(180deg);}
.faq .ans{padding:0 0 16px;color:var(--muted);font-size:14px;line-height:1.7;}

/* 通用列表项（邮件列表 / 我的邮箱等） */
.msg{border:1px solid #eef2f7;border-radius:12px;padding:13px 15px;margin-bottom:10px;cursor:pointer;transition:.15s;}
.msg:hover{background:#f8fafc;border-color:#dbeafe;}
.msg .from{font-weight:600;font-size:14px;}
.msg .subj{color:#334155;margin-top:2px;font-size:14px;}
.msg .meta{color:#94a3b8;font-size:12px;margin-top:4px;display:flex;gap:10px;}
.msg.unread{border-left:3px solid var(--brand);}
.detail{margin-top:14px;border-top:1px dashed #e5e7eb;padding-top:14px;}
.detail .field{font-size:13px;color:var(--muted);margin-bottom:4px;}
.detail .body{background:#f9fafb;border-radius:8px;padding:12px;font-size:14px;white-space:pre-wrap;word-break:break-word;max-height:320px;overflow:auto;}
.att{display:inline-block;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:6px 10px;margin:6px 6px 0 0;font-size:13px;}
.empty{color:#94a3b8;text-align:center;padding:30px 0;}

/* ===== 页脚 ===== */
.site-foot{background:#0f172a;color:#94a3b8;padding:30px 18px;text-align:center;font-size:13px;}
.site-foot a{color:#cbd5e1;margin:0 8px;}
.site-foot a:hover{color:#fff;}
html[data-bs-theme="dark"] .site-foot{background:#060b14;}

/* 友情链接（照搬原站：白卡片 + 标签悬停切换 + 蓝色胶囊徽章） */
.friend-panel{max-width:1080px;margin:0 auto 32px;padding:0 14px;}
.friend-card{background:#fff;border:1px solid #eef2f7;border-radius:16px;
  box-shadow:0 18px 40px -24px rgba(37,99,235,.35);padding:20px 24px;}
.friend-title{margin:0 0 12px;font-size:17px;font-weight:800;color:var(--ink);}
.fl-tabs{display:flex;flex-wrap:wrap;gap:20px;margin-bottom:14px;}
.fl-tab{cursor:pointer;color:var(--muted);font-size:14px;font-weight:500;
  user-select:none;transition:.15s;line-height:1.6;}
.fl-tab:hover,.fl-tab.active{color:var(--brand);font-weight:700;}
.fl-pane{display:flex;flex-wrap:wrap;gap:10px;}
.fl-pill{display:inline-block;padding:6px 14px;border-radius:999px;background:#eff6ff;
  color:#2563eb;font-size:13px;line-height:1.5;text-decoration:none;transition:.15s;}
.fl-pill:hover{background:#dbeafe;color:#1d4ed8;}
html[data-bs-theme="dark"] .friend-card{background:#111827;border-color:#1f2937;box-shadow:0 18px 40px -24px rgba(0,0,0,.7);}
html[data-bs-theme="dark"] .fl-pill{background:rgba(37,99,235,.16);color:#93c5fd;}
html[data-bs-theme="dark"] .fl-pill:hover{background:rgba(37,99,235,.28);color:#bfdbfe;}
@media(max-width:760px){ .friend-card{padding:16px;} .fl-tabs{gap:16px;} }

/* toast */
.toast{position:fixed;left:50%;top:20px;transform:translateX(-50%);background:#111827;color:#fff;padding:10px 18px;border-radius:8px;font-size:14px;opacity:0;transition:.3s;pointer-events:none;z-index:99;}
.toast.show{opacity:.95;}

/* ===== 登录/注册 弹层 ===== */
.auth-modal{position:fixed;inset:0;z-index:200;display:none;}
.auth-modal.show{display:block;}
.auth-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.45);backdrop-filter:blur(2px);}
.auth-dialog{position:relative;z-index:1;max-width:400px;margin:8vh auto 0;background:#fff;border-radius:18px;
  box-shadow:0 24px 60px -20px rgba(15,23,42,.5);padding:28px 26px;animation:authPop .18s ease;}
@keyframes authPop{from{opacity:0;transform:translateY(8px) scale(.98);}to{opacity:1;transform:none;}}
.auth-close{position:absolute;top:12px;right:16px;border:none;background:transparent;font-size:24px;line-height:1;color:#94a3b8;cursor:pointer;}
.auth-close:hover{color:var(--ink);}
.auth-head{text-align:center;margin-bottom:18px;}
.auth-ico{width:56px;height:56px;border-radius:50%;background:var(--brand-50);color:var(--brand);display:flex;align-items:center;justify-content:center;margin:0 auto 12px;}
.auth-head h3{margin:0;font-size:20px;font-weight:800;}
.auth-head p{margin:4px 0 0;color:var(--muted);font-size:13px;}
.auth-tabs{display:flex;gap:6px;background:#f1f5f9;padding:4px;border-radius:10px;margin-bottom:18px;}
.auth-tabs button{flex:1;border:none;background:transparent;padding:9px 0;border-radius:8px;font-size:14px;font-weight:600;color:var(--muted);cursor:pointer;transition:.15s;}
.auth-tabs button.active{background:#fff;color:var(--brand);box-shadow:0 1px 3px rgba(0,0,0,.08);}
.auth-form label{display:block;font-size:13px;font-weight:600;color:#334155;margin:12px 0 6px;}
.auth-form label .auth-link{float:right;font-weight:400;color:var(--brand);font-size:12px;text-decoration:none;}
.auth-form .form-control{border-radius:10px;height:42px;font-size:14px;}
.pwd-wrap{position:relative;}
.pwd-eye{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:none;background:transparent;color:#94a3b8;cursor:pointer;padding:4px;display:flex;}
.pwd-eye:hover{color:var(--brand);}
.auth-form .btn{height:44px;border-radius:10px;font-weight:600;}
.auth-msg{font-size:13px;color:#dc2626;min-height:18px;margin-top:10px;text-align:center;}
.auth-foot{margin-top:16px;font-size:12px;color:#94a3b8;text-align:center;line-height:1.6;}
.auth-foot a{color:var(--brand);}
.auth-success{text-align:center;padding:6px 0 2px;}
.auth-success .ok{color:#16a34a;font-size:16px;font-weight:700;margin:6px 0;}
.auth-success .cred{font-size:13px;color:#334155;margin:4px 0;}
.auth-success .cred b{color:var(--brand);word-break:break-all;}

/* ===== 暗色模式 ===== */
html[data-bs-theme="dark"]{ --ink:#e5e7eb; --muted:#94a3b8; }
html[data-bs-theme="dark"] body{background:#0b1220;color:var(--ink);}
html[data-bs-theme="dark"] .feature,
html[data-bs-theme="dark"] .step{background:#111827;border-color:#1f2937;}
html[data-bs-theme="dark"] .feature:hover{border-color:#2563eb;box-shadow:0 18px 36px -22px rgba(0,0,0,.8);}
html[data-bs-theme="dark"] .step .num{box-shadow:0 8px 18px -8px rgba(37,99,235,.5);}
html[data-bs-theme="dark"] .faq details{background:#111827;border-color:#1f2937;}
html[data-bs-theme="dark"] .faq summary{color:#e5e7eb;}
html[data-bs-theme="dark"] .msg{background:#0f172a;border-color:#1f2937;}
html[data-bs-theme="dark"] .msg:hover{background:#111827;border-color:#2563eb;}
html[data-bs-theme="dark"] .detail .body{background:#0b1220;}
html[data-bs-theme="dark"] .att{background:rgba(37,99,235,.18);color:#93c5fd;}
html[data-bs-theme="dark"] .auth-dialog{background:#0f172a;color:var(--ink);}
html[data-bs-theme="dark"] .auth-tabs{background:#1e293b;}
html[data-bs-theme="dark"] .auth-tabs button{color:#94a3b8;}
html[data-bs-theme="dark"] .auth-tabs button.active{background:#0f172a;color:var(--brand);}
html[data-bs-theme="dark"] .auth-form label{color:#cbd5e1;}
html[data-bs-theme="dark"] .auth-ico{background:rgba(37,99,235,.18);}
html[data-bs-theme="dark"] .auth-foot{color:#64748b;}
html[data-bs-theme="dark"] .auth-close{color:#94a3b8;}
@media(max-width:760px){
  .hero h1{font-size:28px;}
  .steps{grid-template-columns:1fr;}
}
/* 顶栏导航链接收起与移动端菜单开关统一写在上面的 @media(max-width:900px) 块里 */
/* RTL 语种（ar/fa/he/ur）：文案翻译前先把版面方向摆对 */
[dir="rtl"] .topbar .logo,[dir="rtl"] .faq summary svg{direction:rtl;}
