@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

::selection { background: rgba(58,99,232,.16); color: var(--text); }
footer ::selection { background: rgba(58,99,232,.55); color: #fff; }

:root {
    --primary: #3a63e8;
    --primary-dark: #2647ce;
    --accent: #ff6b35;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(58,99,232,.08);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 8px 28px rgba(58,99,232,.12), 0 2px 8px rgba(0,0,0,.06);
    --shadow-lg: 0 16px 48px rgba(58,99,232,.15), 0 4px 16px rgba(0,0,0,.08);
    --transition: 150ms cubic-bezier(.4,0,.2,1);
}

body {
    font-family: 'Inter', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== NAV ===== */
nav {
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    box-shadow: 0 1px 12px rgba(0,0,0,.06);
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
}
.logo-icon {
    width: 34px; height: 34px;
    background: var(--primary);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1rem;
}
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
    text-decoration: none; color: var(--muted); font-size: .9rem;
    font-weight: 500; padding: 6px 12px; border-radius: 8px;
    transition: background var(--transition), color var(--transition);
}
.nav-links a:hover { background: #eef1ff; color: var(--primary); text-decoration: none; }
.nav-links a.active { color: var(--primary); font-weight: 500; background: #eef1ff; }
@keyframes fire-flicker {
    0%,100% { transform: scale(1)    rotate(-4deg); filter: drop-shadow(0 0 3px rgba(255,90,0,.55)); }
    20%      { transform: scale(1.18) rotate( 4deg); filter: drop-shadow(0 0 7px rgba(255,160,0,.9)); }
    40%      { transform: scale(1.08) rotate(-2deg); filter: drop-shadow(0 0 4px rgba(255,60,0,.65)); }
    60%      { transform: scale(1.22) rotate( 5deg); filter: drop-shadow(0 0 9px rgba(255,130,0,.95)); }
    80%      { transform: scale(1.05) rotate(-3deg); filter: drop-shadow(0 0 5px rgba(255,100,0,.7)); }
}
.fire-icon {
    display: inline-block;
    vertical-align: 0.2em;
    transform-origin: 50% 100%;
    animation: fire-flicker 1s ease-in-out infinite;
    will-change: transform, filter;
}
.btn-nav {
    background: var(--primary); color: #fff;
    border: none; border-radius: 8px;
    padding: 7px 18px; font-size: .88rem; font-weight: 500;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    text-decoration: none; letter-spacing: 0;
    box-shadow: 0 1px 6px rgba(58,99,232,.18);
}
.btn-nav:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 3px 12px rgba(58,99,232,.25); }

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(180deg, #f0f4ff 0%, #f8fafc 100%);
    padding: 64px 5% 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(79,110,247,.07) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
.page-header > * { position: relative; z-index: 1; }
.page-header .hero-badge {
    display: inline-block;
    background: rgba(58,99,232,.08); color: var(--primary);
    border: 1px solid rgba(58,99,232,.18);
    border-radius: 20px; padding: 4px 16px;
    font-size: .8rem; font-weight: 500;
    margin-bottom: 16px; letter-spacing: .04em;
}
.page-header h1 { font-size: 2.2rem; font-weight: 500; margin-bottom: 12px; color: var(--text); }
.page-header h1 span { color: var(--primary); }
.page-header p { color: var(--muted); font-size: 1rem; max-width: 500px; margin: 0 auto; }

/* ===== SECTION ===== */
.section { padding: 72px 5%; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 {
    font-size: 1.8rem; font-weight: 500; margin-bottom: 10px;
    letter-spacing: -.3px; color: var(--text);
    position: relative; display: inline-block; padding-bottom: 14px;
}
.section-title h2::after {
    content: ''; position: absolute;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 28px; height: 2px;
    background: var(--primary);
    border-radius: 99px;
}
.section-title p { color: var(--muted); font-size: .95rem; margin-top: 4px; }

/* ===== STATS ===== */
.stats {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 56px 5%;
    display: flex;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
    text-align: center;
    color: #fff;
}
.stat-item strong { display: block; font-size: 2.2rem; font-weight: 500; }
.stat-item span { font-size: .9rem; opacity: .8; }

/* ===== FOOTER ===== */
footer {
    background: #111827;
    color: #9ca3af;
    padding: 56px 5% 0;
}
.footer-body {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid #1f2937;
}
.footer-brand .logo { color: #fff; margin-bottom: 14px; display: inline-flex; }
.footer-brand p { font-size: .88rem; line-height: 1.7; max-width: 240px; }
.footer-col h4 {
    color: #fff; font-size: .9rem; font-weight: 600;
    margin-bottom: 16px; letter-spacing: .3px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.footer-links a { color: #9ca3af; text-decoration: none; font-size: .87rem; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-links a.active { color: #fff; font-weight: 600; }
/* 微信图标 QR 悬浮 */
.wechat-qr-tip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 8px 28px rgba(0,0,0,.18);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 9999;
    min-width: 130px;
    pointer-events: none;
}
.wechat-qr-tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: #fff;
}
.wechat-qr-tip .qr-img { width: 108px; height: 108px; }
.wechat-qr-tip .qr-label { font-size: .74rem; color: #374151; font-weight: 600; white-space: nowrap; }
.contact-icon.wechat { position: relative; cursor: pointer; }
.contact-icon.wechat:hover .wechat-qr-tip { display: flex; }
.footer-contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-item {
    display: flex; align-items: center; gap: 12px;
    font-size: .87rem; color: #9ca3af;
}
.contact-icon {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.contact-icon.qq{ background: #ffffff;border-radius:50%; }
.contact-icon.wechat  { background: #ffffff;border-radius:50%; }
.contact-icon.email   { background: #ffffff; }
.contact-label { display: flex; flex-direction: column; }
.contact-label strong { color: #e5e7eb; font-size: .85rem; line-height: 1.2; }
.contact-label span   { font-size: .78rem; color: #6b7280; margin-top: 2px; }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 0; flex-wrap: wrap; gap: 10px;
    font-size: .82rem; color: #4b5563;
}
.footer-bottom a { color: #6b7280; text-decoration: none; transition: color .2s; }
.footer-bottom a:hover { color: #9ca3af; }
.footer-beian { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.footer-beian a { display: flex; align-items: center; gap: 5px; }
@media (max-width: 860px) {
    .footer-body { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .footer-body { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ===== TOAST ===== */
#toast {
    position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(80px);
    background: rgba(26,26,46,.95);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 12px 28px; border-radius: 40px;
    font-size: .92rem; opacity: 0;
    transition: all .3s; z-index: 999;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== FORMAT ITEMS ===== */
.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
}
.format-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.format-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #c8d3ff; }
.format-item .fmt-icon {
    width: 52px; height: 52px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.4rem; font-weight: 600; color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.fmt-pdf  { background: #e74c3c; }
.fmt-word { background: #2980b9; }
.fmt-excel{ background: #27ae60; }
.fmt-ppt  { background: #e67e22; }
.fmt-img  { background: #8e44ad; }
.fmt-txt  { background: #7f8c8d; }
.fmt-md   { background: #2c3e50; }
.fmt-html { background: #e84393; }
.format-item strong { display: block; font-size: .95rem; margin-bottom: 4px; }
.format-item span { font-size: .82rem; color: var(--muted); }

/* ===== FEATURE CARDS ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.feature-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px 24px;
    border: 1px solid var(--border);
    transition: box-shadow .2s, transform .2s, border-color .2s;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--primary);
    opacity: 0; transition: opacity .2s;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #c4d3ff; }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 48px; height: 48px;
    background: #e8edff;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 14px;
}
.feature-card h4 { font-size: 1rem; font-weight: 500; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .88rem; line-height: 1.65; }

/* ===== STEP CARDS ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    max-width: 880px;
    margin: 0 auto;
}
.step-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform .2s, box-shadow .2s;
}
.step-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(58,99,232,.10); }
.step-num {
    width: 40px; height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 500; font-size: 1rem;
    margin: 0 auto 14px;
}
.step-card h4 { font-size: .97rem; font-weight: 500; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: .86rem; line-height: 1.6; }

/* ===== FAQ ===== */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.faq-q {
    padding: 16px 22px;
    font-weight: 500; font-size: .94rem;
    cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    user-select: none;
}
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--primary); transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
    max-height: 0; overflow: hidden;
    transition: max-height .3s, padding .3s;
    color: var(--muted); font-size: .9rem; line-height: 1.6;
    padding: 0 22px;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 22px 18px; }

@media (max-width: 860px) {
    .nav-links { display: none; }
}
@media (max-width: 600px) {
    .page-header h1 { font-size: 1.8rem; }
    .stats { gap: 32px; }
    nav { padding: 0 4%; }
}

/* ===== BACK TO TOP ===== */
#backToTop {
    position: fixed;
    bottom: 84px; right: 20px;
    width: 40px; height: 40px;
    background: var(--primary);
    color: #fff; border: none; border-radius: 50%;
    font-size: 1.1rem; line-height: 1; font-weight: 400;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(58,99,232,.22);
    opacity: 0; pointer-events: none;
    transform: translateY(12px);
    transition: opacity .28s, transform .28s, background .2s;
    z-index: 9990;
    display: flex; align-items: center; justify-content: center;
}
#backToTop.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
#backToTop:hover { background: var(--primary-dark); transform: translateY(-3px) !important; }

/* ===== CUSTOMER SERVICE FLOAT ===== */
/* 整体容器 */
#csFloat {
    position: fixed;
    right: 20px; bottom: 148px;
    z-index: 9999;
    display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}

/* 触发按钮 */
#csTrigger {
    width: 48px; height: 48px;
    background: var(--primary);
    color: #fff; border: none; border-radius: 50%;
    cursor: pointer; font-family: inherit;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(58,99,232,.30);
    transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
    position: relative;
    flex-shrink: 0;
}
#csTrigger svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#csTrigger:hover { transform: scale(1.10); box-shadow: 0 6px 22px rgba(58,99,232,.40); }
#csTrigger.is-open { background: #334155; }

/* 脉冲�?*/
.cs-pulse {
    position: absolute; inset: -5px;
    border-radius: 50%;
    border: 2px solid rgba(58,99,232,.4);
    animation: csPulse 2.2s ease-out infinite;
    pointer-events: none;
}
@keyframes csPulse {
    0%   { transform: scale(1);   opacity: .8; }
    70%  { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1.4); opacity: 0; }
}
#csTrigger.is-open .cs-pulse { display: none; }

/* 面板 */
#csPanel {
    position: absolute;
    bottom: 64px; right: 0;
    width: 300px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,.18), 0 4px 16px rgba(0,0,0,.08);
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transform: scale(.92) translateY(14px);
    transform-origin: bottom right;
    transition: opacity .26s cubic-bezier(.4,0,.2,1), transform .26s cubic-bezier(.34,1.2,.64,1);
}
#csPanel.open { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }

/* 面板头部 */
.cs-head {
    background: linear-gradient(135deg, #2647ce 0%, #3a63e8 100%);
    padding: 18px 18px 16px;
    position: relative;
}
.cs-head-row { display: flex; align-items: center; gap: 12px; }
.cs-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: #ffffff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; flex-shrink: 0;
    border: 2px solid rgba(255,255,255,.4);
}
.cs-head-info { flex: 1; }
.cs-head-info strong { display: block; color: #fff; font-size: .98rem; font-weight: 600; letter-spacing: .2px; }
.cs-status { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; }
.cs-dot-sm {
    width: 7px; height: 7px; border-radius: 50%; background: #4ade80; flex-shrink: 0;
    animation: csDotBlink 2.2s ease-in-out infinite;
    box-shadow: 0 0 6px #4ade80;
}
.cs-status-text { font-size: .76rem; color: rgba(255,255,255,.85); }
.cs-close {
    position: absolute; top: 12px; right: 12px;
    background: rgba(255,255,255,.18); border: none;
    width: 28px; height: 28px; border-radius: 50%;
    color: #fff; cursor: pointer; font-size: .85rem;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.cs-close:hover { background: rgba(255,255,255,.32); }

/* 面板内容�?*/
.cs-body { padding: 16px; }

/* 标签切换 */
.cs-tabs {
    display: flex; gap: 6px;
    background: #f3f4f8; border-radius: 10px; padding: 4px;
    margin-bottom: 16px;
}
.cs-tab {
    flex: 1; border: none; border-radius: 7px; padding: 7px 0;
    font-size: .82rem; font-weight: 600; cursor: pointer;
    background: none; color: #6b7280; font-family: inherit;
    transition: background .18s, color .18s;
}
.cs-tab.active { background: #fff; color: var(--primary); box-shadow: 0 1px 4px rgba(0,0,0,.1); }

/* 内容�?*/
.cs-page { display: none; }
.cs-page.active { display: block; }

/* 微信 QR �?*/
.cs-wechat-wrap { text-align: center; padding: 4px 0 6px; }
.cs-qr-frame {
    width: 148px; height: 148px;
    margin: 0 auto 10px;
    padding: 10px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(7,193,96,.15), 0 0 0 1.5px rgba(7,193,96,.25);
    box-sizing: border-box;
}
.cs-qr-label { font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.cs-wid-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: #f0fdf4; border: 1px solid #bbf7d0;
    border-radius: 8px; padding: 5px 14px;
    font-size: .83rem; font-weight: 600; color: #16a34a;
}
.cs-wid-badge svg { width: 15px; height: 15px; flex-shrink: 0; }

/* 联系列表 */
.cs-contact-list { display: flex; flex-direction: column; gap: 10px; }
.cs-card {
    display: flex; align-items: center; gap: 12px;
    background: #f8f9fc; border-radius: 12px;
    padding: 11px 13px;
    transition: background .18s;
}
.cs-card:hover { background: #eef1ff; }
.cs-card-icon {
    width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.cs-card-icon.ic-qq      { background: #e8f1ff; }
.cs-card-icon.ic-email   { background: #eef0ff; }
.cs-card-body { flex: 1; min-width: 0; }
.cs-card-body b { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 2px; }
.cs-card-body span { font-size: .77rem; color: var(--muted); }
.cs-btn {
    font-size: .77rem; font-weight: 600;
    border-radius: 8px; padding: 5px 12px;
    cursor: pointer; text-decoration: none; border: none;
    font-family: inherit; transition: opacity .18s, transform .12s; white-space: nowrap;
}
.cs-btn:hover { opacity: .85; transform: translateY(-1px); }
.cs-btn-blue  { background: #1677ff; color: #fff; }
.cs-btn-ghost { background: none; border: 1.5px solid var(--border); color: var(--muted); }

/* 底部 */
.cs-footer {
    border-top: 1px solid #f3f4f6;
    margin-top: 14px; padding-top: 12px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: .74rem; color: #9ca3af;
}
.cs-dot-online {
    width: 6px; height: 6px; border-radius: 50%; background: #4ade80; flex-shrink: 0;
    animation: csDotBlink 2.2s ease-in-out infinite;
}
@keyframes csDotBlink { 0%,100%{opacity:1} 50%{opacity:.25} }

@media (max-width: 480px) {
    #csFloat { right: 12px; bottom: 140px; }
    #csPanel { width: 272px; }
}

/* ===================================================================
   USER BACKEND LAYOUT  (dashboard.html + billing.html 共用)
=================================================================== */
.user-layout {
    display: flex; max-width: 1400px;
    margin: 0 auto; gap: 28px;
    padding: 40px 5%; align-items: flex-start;
    min-height: 70vh;
}
.user-sidebar { width: 260px; flex-shrink: 0; }
.user-profile {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px 20px;
    text-align: center; margin-bottom: 16px;
}
.user-profile .avatar {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, #2647ce, #3a63e8);
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 1.8rem; color: #fff;
    font-weight: 500; margin: 0 auto 12px;
}
.user-profile h3 { font-size: 1rem; margin-bottom: 4px; }
.user-profile p  { color: var(--muted); font-size: .84rem; }
.plan-badge {
    display: inline-block; margin-top: 10px;
    background: #e2eaff; color: #2647ce;
    border: 1px solid #c4d3ff;
    border-radius: 20px; padding: 3px 12px;
    font-size: .75rem; font-weight: 500;
}
.user-menu {
    list-style: none; background: var(--card);
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.user-menu li a {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 18px; font-size: .92rem; color: var(--muted);
    text-decoration: none; border-bottom: 1px solid var(--border);
    transition: background .15s, color .15s;
}
.user-menu li:last-child a { border-bottom: none; }
.user-menu li a:hover  { background: #f0f4ff; color: var(--primary); }
.user-menu li a.active { background: #e2eaff; color: var(--primary); font-weight: 500; }
.menu-icon { font-size: 1.1rem; width: 20px; text-align: center; }
.user-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.content-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px 26px;
}
.content-card h3 {
    font-size: 1.05rem; font-weight: 600;
    margin-bottom: 18px; padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 8px;
}
/* 进度�?*/
.progress-label { display: flex; justify-content: space-between; font-size: .84rem; color: var(--muted); margin-bottom: 6px; }
.progress-bar   { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; }
.progress-fill  { height: 100%; background: linear-gradient(90deg, var(--primary), #7c8ff7); border-radius: 99px; transition: width .8s; }
.usage-item { background: var(--bg); border-radius: 10px; padding: 16px; text-align: center; }
.usage-item strong { display: block; font-size: 1.5rem; font-weight: 600; color: var(--primary); }
.usage-item span   { font-size: .82rem; color: var(--muted); }
/* 账单列表 */
.billing-list { display: flex; flex-direction: column; }
.billing-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 4px; border-bottom: 1px solid var(--border);
}
.billing-item:last-child { border-bottom: none; }
.billing-icon {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem; flex-shrink: 0;
}
.billing-desc { flex: 1; min-width: 0; }
.billing-desc .b-name { font-size: .9rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.billing-desc .b-time { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.billing-amount       { font-size: .92rem; font-weight: 600; white-space: nowrap; }
.billing-amount.plus,  .billing-amount.credit { color: #27ae60; }
.billing-amount.minus, .billing-amount.debit  { color: #e74c3c; }
.billing-balance-col  { font-size: .78rem; color: var(--muted); white-space: nowrap; text-align: right; min-width: 80px; }
/* 计费�?*/
.price-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.price-table th, .price-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.price-table th { background: var(--bg); font-weight: 600; color: var(--muted); font-size: .82rem; }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: #f7f8ff; }
.price-val   { color: var(--primary); font-weight: 600; }
.price-badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: .78rem; font-weight: 600; }
.price-badge.free { background: #e6f9f0; color: #27ae60; }
.price-badge.paid { background: #fff5e6; color: #e67e22; }
/* 套餐卡片 */
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-top: 16px; }
.plan-card {
    border: 2px solid var(--border); border-radius: 14px;
    padding: 20px 14px; text-align: center; cursor: pointer;
    transition: border-color .2s, box-shadow .2s, transform .15s;
    position: relative; background: var(--card); overflow: visible;
}
.plan-card:hover   { border-color: var(--primary); box-shadow: 0 4px 16px rgba(58,99,232,.10); transform: translateY(-2px); }
.plan-card.selected{ border-color: var(--primary); box-shadow: 0 2px 12px rgba(58,99,232,.12); background: #f7f9ff; }
.plan-tag {
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b3d, #f7a236); color: #fff;
    font-size: .7rem; font-weight: 600; padding: 2px 12px; border-radius: 20px; white-space: nowrap;
}
.plan-tag.recommend { background: linear-gradient(135deg, var(--primary), #7c8ff7); }
.plan-points { font-size: 1.8rem; font-weight: 600; color: var(--primary); line-height: 1.2; }
.plan-price  { font-size: 1.15rem; font-weight: 600; color: var(--text); }
/* 分页 */
.pagination { display: flex; align-items: center; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.page-btn {
    border: 1.5px solid var(--border); background: var(--card); color: var(--muted);
    border-radius: 8px; padding: 6px 12px; font-size: .85rem; cursor: pointer;
    transition: all .2s; min-width: 34px; text-align: center; line-height: 1.4;
}
.page-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.page-btn.active   { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }
.page-btn:disabled { opacity: .4; cursor: default; }
/* 筛选栏 */
.records-filter { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.filter-select {
    border: 1.5px solid var(--border); border-radius: 8px; padding: 8px 12px;
    font-size: .88rem; outline: none; cursor: pointer;
    background: var(--bg); color: var(--text); transition: border-color .2s;
}
.filter-select:focus { border-color: var(--primary); }
.filter-clear {
    border: 1.5px solid var(--border); background: var(--card); color: var(--muted);
    border-radius: 8px; padding: 8px 14px; font-size: .85rem; cursor: pointer;
    white-space: nowrap; transition: all .2s;
}
.filter-clear:hover { border-color: #e74c3c; color: #e74c3c; }
/* 空状�?*/
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state .es-icon { font-size: 2.5rem; margin-bottom: 10px; opacity: .5; }
.empty-state p { font-size: .9rem; }
/* 余额高亮�?*/
.balance-highlight { background: var(--primary) !important; }
.balance-highlight strong { color: #fff !important; }
.balance-highlight span   { color: rgba(255,255,255,.85) !important; }
/* 充值按�?*/
.btn-recharge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--primary);
    color: #fff; border: none; border-radius: 8px;
    padding: 9px 22px; font-size: .9rem; font-weight: 500;
    cursor: pointer; transition: background .2s;
}
.btn-recharge:hover { background: var(--primary-dark); }
@keyframes spin { to { transform: rotate(360deg); } }
.plan-unit  { font-size: .8rem; color: var(--muted); margin: 2px 0 4px; }
.plan-save  { font-size: .75rem; color: #27ae60; font-weight: 600; min-height: 16px; }
.plan-orig  { font-size: .85rem; color: var(--muted); text-decoration: line-through; margin-left: 4px; }
.pay-methods { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.pay-method-btn {
    display: flex; align-items: center; gap: 8px;
    border: 2px solid var(--border); background: var(--card);
    border-radius: 10px; padding: 10px 18px;
    cursor: pointer; font-size: .9rem; transition: all .2s;
}
.pay-method-btn.selected { border-color: var(--primary); color: var(--primary); background: #eef1ff; }
.billing-icon.credit { background: #e6f9f0; }
.billing-icon.debit  { background: #ffeaea; }
@media (max-width: 680px) {
    .user-sidebar { display: none; }
    .user-layout  { padding: 24px 4%; }
    .plan-grid    { grid-template-columns: repeat(2, 1fr); }
    .price-table th:nth-child(2), .price-table td:nth-child(2) { display: none; }
}
@media (max-width: 440px) {
    .plan-grid { grid-template-columns: 1fr; }
}

/* ===================================================================
   BACKEND SHARED COMPONENTS（后台各页公用，勿在页面内重复定义）
=================================================================== */
/* 转换记录表格 */
.record-table-wrap { overflow-x: auto; margin: 0 -2px; }
.record-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.record-table thead tr { background: var(--bg); border-bottom: 2px solid var(--border); }
.record-table thead th { padding: 10px 14px; text-align: left; font-size: .8rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.record-table tbody tr { border-bottom: 1px solid var(--border); transition: background .12s; }
.record-table tbody tr:last-child { border-bottom: none; }
.record-table tbody tr:hover { background: #f9fafb; }
.record-table td { padding: 11px 14px; vertical-align: middle; }
.td-name { max-width: 260px; }
.td-name span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; color: var(--text); }
.fmt-tag { background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 2px 7px; font-size: .76rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.record-status { display: inline-block; font-size: .78rem; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.status-done { background: #e6f9f0; color: #27ae60; }
.status-fail { background: #ffeaea; color: #e74c3c; }
.btn-dl { background: var(--primary); color: #fff; border: none; border-radius: 6px; padding: 5px 13px; font-size: .81rem; cursor: pointer; white-space: nowrap; transition: background .2s; }
.btn-dl:hover { background: var(--primary-dark); }
.btn-dl:disabled { background: var(--bg); color: var(--muted); border: 1px solid var(--border); cursor: default; }
/* 卡片区块标题 */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.section-header h3 { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0; }
.link-more { font-size: .85rem; color: var(--primary); text-decoration: none; font-weight: 500; }
.link-more:hover { text-decoration: underline; }
/* 筛选输入框 */
.filter-input { flex: 1; min-width: 160px; border: 1.5px solid var(--border); border-radius: 8px; padding: 8px 12px; font-size: .88rem; outline: none; transition: border-color .2s; background: var(--bg); color: var(--text); }
.filter-input:focus { border-color: var(--primary); }
/* 分页扩展 */
.page-ellipsis { color: var(--muted); padding: 0 2px; font-size: .9rem; }
.page-info { margin-left: auto; font-size: .83rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.page-size-select { border: 1.5px solid var(--border); border-radius: 8px; padding: 5px 8px; font-size: .83rem; outline: none; cursor: pointer; background: var(--card); color: var(--text); transition: border-color .2s; }
.page-size-select:focus { border-color: var(--primary); }
/* 小按钮（API Key 页等�?*/
.btn-sm { border: 1px solid var(--border); background: var(--card); color: var(--muted); border-radius: 8px; padding: 8px 16px; font-size: .85rem; cursor: pointer; transition: all .2s; white-space: nowrap; }
.btn-sm:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm.danger:hover { border-color: #e74c3c; color: #e74c3c; }
/* 确认弹窗（通用�?*/
.confirm-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 9999; align-items: center; justify-content: center; }
.confirm-modal.show { display: flex; }
.confirm-box { background: #fff; border-radius: 16px; padding: 28px 28px 22px; max-width: 360px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,.2); text-align: center; }
.confirm-box .icon { font-size: 2rem; margin-bottom: 10px; }
.confirm-box h4 { font-size: 1rem; font-weight: 600; color: #1e1e2e; margin: 0 0 8px; }
.confirm-box p { font-size: .86rem; color: #6b7280; margin: 0 0 22px; line-height: 1.6; }
.confirm-btns { display: flex; gap: 10px; }
.confirm-btns button { flex: 1; padding: 10px; border-radius: 10px; font-size: .9rem; font-weight: 500; cursor: pointer; border: none; transition: opacity .15s; }
.confirm-btns .btn-cancel { background: #f3f4f6; color: #374151; }
.confirm-btns .btn-cancel:hover { background: #e5e7eb; }
.confirm-btns .btn-ok { background: #e74c3c; color: #fff; }
.confirm-btns .btn-ok:hover { opacity: .88; }

/* ===================================================================
   LEGAL DOCS  (privacy.html + terms.html 共用)
=================================================================== */
.legal-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 56px 5% 88px;
}
.legal-meta {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    margin-bottom: 40px; padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    font-size: .84rem; color: var(--muted);
}
.legal-meta-item { display: flex; align-items: center; gap: 6px; }
.legal-meta-item svg { flex-shrink: 0; }
.legal-version {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(58,99,232,.07); color: var(--primary);
    border: 1px solid rgba(58,99,232,.16);
    border-radius: 20px; padding: 4px 14px;
    font-size: .78rem; font-weight: 500; margin-bottom: 8px;
}
.legal-tip {
    background: #f0f4ff;
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    padding: 12px 16px; margin: 14px 0;
    font-size: .88rem; color: var(--text); line-height: 1.7;
}
.legal-tip.warn {
    background: linear-gradient(135deg, #fff8ec, #fff3e0);
    border-left-color: #f59e0b;
}
.legal-tip.danger {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-left-color: #ef4444;
}
.legal-section {
    margin-bottom: 44px;
    scroll-margin-top: 80px;
}
.legal-section-title {
    display: flex; align-items: center; gap: 12px;
    font-size: 1.1rem; font-weight: 600; color: var(--text);
    margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}
.legal-num {
    min-width: 28px; height: 28px; border-radius: 8px;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 600; flex-shrink: 0;
}
.legal-body p {
    font-size: .92rem; color: var(--muted); line-height: 1.85; margin-bottom: 12px;
}
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body ul, .legal-body ol {
    margin: 8px 0 14px; padding: 0;
    list-style: none; display: flex; flex-direction: column; gap: 6px;
}
.legal-body ul li, .legal-body ol li {
    font-size: .9rem; color: var(--muted); line-height: 1.7;
    display: flex; align-items: flex-start; gap: 8px;
    padding: 5px 8px; border-radius: 7px; transition: background .15s;
}
.legal-body ul li:hover, .legal-body ol li:hover { background: var(--bg); }
.legal-body ul li::before {
    content: '�?; color: var(--primary); font-weight: 600;
    flex-shrink: 0; margin-top: 1px;
}
.legal-body ol { counter-reset: legal-ol; }
.legal-body ol li { counter-increment: legal-ol; }
.legal-body ol li::before {
    content: counter(legal-ol) ".";
    color: var(--primary); font-weight: 600;
    flex-shrink: 0; min-width: 18px; margin-top: 1px;
}
/* privacy.html 专用：目录、联系卡�?*/
.legal-toc {
    background: #f8fafc;
    border: 1px solid rgba(58,99,232,.14);
    border-radius: 12px; padding: 20px 24px;
    margin-bottom: 48px;
}
.legal-toc-title {
    font-size: .82rem; font-weight: 600; color: var(--muted);
    text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px;
}
.legal-toc ol {
    list-style: none; display: flex; flex-direction: column; gap: 6px;
    columns: 2; column-gap: 24px;
}
.legal-toc li { break-inside: avoid; }
.legal-toc a {
    font-size: .88rem; color: var(--primary); text-decoration: none;
    display: flex; align-items: center; gap: 6px;
    padding: 3px 0; transition: opacity .15s;
}
.legal-toc a:hover { opacity: .75; text-decoration: underline; }
.legal-toc .toc-num {
    font-size: .74rem; font-weight: 500; color: var(--primary);
    background: rgba(58,99,232,.10); border-radius: 4px;
    padding: 1px 6px; flex-shrink: 0;
}
.legal-contact-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 12px; padding: 20px 24px;
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.legal-contact-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: #e2eaff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}
.legal-contact-info strong { display: block; font-size: .95rem; margin-bottom: 3px; }
.legal-contact-info span   { font-size: .86rem; color: var(--muted); }
.legal-contact-info a { color: var(--primary); text-decoration: none; }
.legal-contact-info a:hover { text-decoration: underline; }
@media (max-width: 600px) {
    .legal-toc ol       { columns: 1; }
    .legal-section-title{ font-size: 1rem; }
    .legal-contact-card { flex-direction: column; }
}


/* ===================================================================
   PANEL IFRAME PAGES（panel-*.html 子页面通用样式�?
=================================================================== */
.panel-iframe-body {
    margin: 0;
    padding: 28px 30px;
    background: var(--bg);
    font-family: inherit;
    box-sizing: border-box;
    min-height: auto; /* 覆盖全局 body{min-height:100vh}，防�?iframe 内高度虚�?*/
}
/* 内容卡片 */
.content-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px 26px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.content-card h3 {
    font-size: .72rem; font-weight: 600; margin: 0 0 18px;
    text-transform: uppercase; letter-spacing: .07em; color: var(--muted);
    padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
/* 统计卡片网格 */
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px 16px; display: flex; align-items: center; gap: 14px; }
.stat-icon { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.stat-icon.blue   { background: #e2eaff; color: #2647ce; }
.stat-icon.green  { background: #ecfdf5; color: #10b981; }
.stat-icon.orange { background: #fff7ed; color: #f59e0b; }
.stat-icon.purple { background: #faf5ff; color: #8b5cf6; }
.stat-label { font-size: .78rem; color: var(--muted); margin-bottom: 3px; }
.stat-value { font-size: 1.3rem; font-weight: 600; color: var(--text); line-height: 1; }
.stat-sub   { font-size: .75rem; color: var(--muted); margin-top: 3px; }
/* 进度�?*/
.progress-row { margin-top: 12px; }
.progress-label { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.progress-bar { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 999px; transition: width .6s; }
/* 用量 item */
.usage-item { background: var(--bg); border-radius: 10px; padding: 16px 18px; text-align: center; }
.usage-item strong { display: block; font-size: 1.6rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.usage-item span { font-size: .8rem; color: var(--muted); }
.balance-highlight strong { color: var(--primary); }
/* 筛选栏 */
.records-filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filter-select { border: 1.5px solid var(--border); border-radius: 8px; padding: 8px 12px; font-size: .88rem; outline: none; background: var(--card); color: var(--text); cursor: pointer; transition: border-color .2s; }
.filter-select:focus { border-color: var(--primary); }
.filter-clear { border: 1.5px solid var(--border); background: var(--card); color: var(--muted); border-radius: 8px; padding: 8px 14px; font-size: .85rem; cursor: pointer; transition: all .2s; white-space: nowrap; }
.filter-clear:hover { border-color: var(--primary); color: var(--primary); }
/* 分页 */
.pagination { display: flex; align-items: center; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.page-btn { border: 1.5px solid var(--border); background: var(--card); color: var(--text); border-radius: 8px; padding: 7px 12px; font-size: .85rem; cursor: pointer; transition: all .18s; }
.page-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }
.page-btn:disabled { opacity: .4; cursor: default; }
/* 充值相�?*/
.balance-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 20px; }
.btn-recharge { background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 10px 24px; font-size: .9rem; font-weight: 500; cursor: pointer; transition: background .2s; display: inline-flex; align-items: center; gap: 6px; }
.btn-recharge:hover { background: var(--primary-dark); }
.plan-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 16px; }
.plan-card { border: 2px solid var(--border); border-radius: 12px; padding: 18px 14px; text-align: center; cursor: pointer; transition: all .2s; position: relative; }
.plan-card:hover { border-color: var(--primary); }
.plan-card.selected { border-color: var(--primary); background: #eef2ff; }
.plan-tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; border-radius: 20px; padding: 2px 10px; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.plan-points { font-size: 1.8rem; font-weight: 600; color: var(--text); }
.plan-unit { font-size: .78rem; color: var(--muted); margin-bottom: 6px; }
.plan-price { font-size: 1rem; font-weight: 600; color: var(--primary); }
.plan-orig { font-size: .78rem; color: var(--muted); text-decoration: line-through; font-weight: 400; }
.plan-save { font-size: .75rem; color: #27ae60; margin-top: 3px; min-height: 1.2em; }
.pay-methods { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.pay-method-btn { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--border); background: var(--card); border-radius: 8px; padding: 9px 18px; font-size: .87rem; font-weight: 500; cursor: pointer; transition: all .2s; color: var(--text); }
.pay-method-btn.selected { border-color: var(--primary); background: #eef2ff; color: var(--primary); }
.billing-list { display: flex; flex-direction: column; gap: 10px; }
.billing-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--bg); border-radius: 10px; }
.billing-icon { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; background: #ecfdf5; flex-shrink: 0; }
.billing-desc { flex: 1; min-width: 0; }
.b-name { font-size: .9rem; font-weight: 500; }
.b-time { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.billing-amount { font-size: .9rem; font-weight: 600; color: #27ae60; white-space: nowrap; }
.billing-balance-col { font-size: .83rem; color: var(--muted); white-space: nowrap; min-width: 60px; text-align: right; }
/* 价格�?*/
.price-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.price-table th { background: var(--bg); padding: 10px 14px; text-align: left; font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid var(--border); }
.price-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.price-table tr:last-child td { border-bottom: none; }
.price-val { font-weight: 600; color: var(--primary); }
.price-badge { display: inline-block; border-radius: 20px; padding: 2px 10px; font-size: .76rem; font-weight: 600; }
.price-badge.free { background: #e6f9f0; color: #27ae60; }
.price-badge.paid { background: #fff7ed; color: #e67e22; }
/* API Key */
.apikey-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.apikey-input { flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 9px 14px; font-size: .88rem; font-family: monospace; background: var(--bg); color: var(--text); outline: none; }
.key-usage-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 20px; }
.info-box { background: #f0f4ff; border: 1px solid #c4d3ff; border-radius: 10px; padding: 14px 18px; font-size: .86rem; color: #374151; line-height: 1.7; }
.info-box strong { color: var(--primary); }
.code-block { background: #1e1e2e; color: #a6e3a1; border-radius: 10px; padding: 16px 18px; font-family: monospace; font-size: .84rem; line-height: 1.8; overflow-x: auto; margin-bottom: 14px; }
.code-block .cmt { color: #6c7086; }
.tab-row { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 18px; }
.tab-btn { padding: 9px 20px; border: none; background: none; font-size: .88rem; cursor: pointer; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .2s; }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
/* 设置表单 */
.settings-form .form-group { margin-bottom: 18px; }
.settings-form label { display: block; font-size: .86rem; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.settings-form .form-hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.settings-form input, .settings-form select { width: 100%; border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 14px; font-size: .92rem; outline: none; transition: border-color .2s; background: var(--card); color: var(--text); box-sizing: border-box; }
.settings-form input:focus, .settings-form select:focus { border-color: var(--primary); }
.settings-form input:disabled { opacity: .55; cursor: not-allowed; background: var(--bg); }
.btn-save { background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 10px 26px; font-size: .9rem; cursor: pointer; font-weight: 500; transition: background .2s; }
.btn-save:hover { background: var(--primary-dark); }
.btn-danger-zone { background: none; border: 1.5px solid #e74c3c; color: #e74c3c; border-radius: 8px; padding: 9px 22px; font-size: .88rem; cursor: pointer; font-weight: 500; transition: all .2s; }
.btn-danger-zone:hover { background: #fff5f5; }
.avatar-section { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.avatar-preview { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg,#2647ce,#3a63e8); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #fff; font-weight: 500; flex-shrink: 0; }
.divider-line { height: 1px; background: var(--border); margin: 24px 0; }
.danger-zone { border: 1.5px solid #fed7d7; border-radius: 12px; padding: 20px 22px; background: #fff5f5; }
.danger-zone h4 { font-size: .95rem; font-weight: 600; color: #c53030; margin-bottom: 6px; }
.danger-zone p { font-size: .84rem; color: #9b2c2c; margin-bottom: 14px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pwd-strength { height: 4px; border-radius: 4px; background: var(--border); margin-top: 6px; overflow: hidden; }
.pwd-strength-fill { height: 100%; border-radius: 4px; transition: width .3s, background .3s; width: 0; }
/* 响应�?*/
@media (max-width: 900px) {
    .panel-iframe-body { padding: 20px 18px; }
    .stat-grid { grid-template-columns: repeat(2,1fr); }
    .plan-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
    .panel-iframe-body { padding: 14px 12px; }
    .balance-grid { grid-template-columns: repeat(2,1fr); }
    .two-col { grid-template-columns: 1fr; }
    .key-usage-grid { grid-template-columns: repeat(2,1fr); }
}
