/* 官网样式 —— 不依赖任何前端框架，改起来直观 */
:root {
    --ink: #1c1f26;
    --muted: #6b7280;
    --line: #e6e8ec;
    --bg: #f6f7f9;
    --card: #ffffff;
    --brand: #2f6bff;
    --brand-dark: #1e50d6;
    --ok: #12805c;
    --warn: #b26a00;
    --radius: 12px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 15px;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: ui-monospace, Consolas, monospace; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

/* 顶栏 */
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); font-size: 17px; }
.brand-mark {
    width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff;
    display: grid; place-items: center; font-size: 15px;
}
.topnav { display: flex; align-items: center; gap: 18px; font-size: 14px; }

/* 通用 */
.main { padding: 28px 20px 60px; min-height: 60vh; }
.section-title { font-size: 19px; margin: 36px 0 16px; }
.lead { color: var(--muted); font-size: 16px; }

.btn {
    display: inline-block; padding: 9px 18px; border-radius: 8px; border: 1px solid var(--line);
    background: #fff; color: var(--ink); cursor: pointer; font-size: 14px; font-family: inherit;
    text-align: center; transition: .15s;
}
.btn:hover { border-color: #c9ccd4; text-decoration: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

.flash { margin-top: 16px; padding: 12px 16px; border-radius: 8px; font-size: 14px; }
.flash-info { background: #eef4ff; color: #1a4bd0; }
.flash-error { background: #fdeceb; color: #b3261e; }
.flash-success { background: #e8f6f0; color: var(--ok); }

/* 首页 */
.hero { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; margin-top: 8px; }
.hero h1 { margin: 0 0 12px; font-size: 27px; line-height: 1.35; }
.hero p { margin: 0 0 20px; color: var(--muted); font-size: 16px; }
.hero-points { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }
.hero-points span::before { content: "✓"; color: var(--ok); margin-right: 6px; font-weight: 700; }

.bundle-banner {
    margin-top: 22px; padding: 24px 28px; border-radius: var(--radius);
    background: linear-gradient(120deg, #1c2b53, #2f6bff); color: #fff;
    display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.bundle-banner h2 { margin: 0 0 6px; font-size: 19px; }
.bundle-banner p { margin: 0; opacity: .88; font-size: 14px; }
.bundle-price { text-align: right; }
.bundle-price .price-now { font-size: 26px; }
.price-old { text-decoration: line-through; opacity: .6; font-size: 13px; margin-bottom: 10px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 18px; }
.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; color: inherit; display: block; transition: .15s;
}
.card:hover { border-color: #c2c9d6; transform: translateY(-2px); text-decoration: none; }
.card-cover { height: 96px; display: grid; place-items: center; font-size: 13px; color: #fff; letter-spacing: 1px; }
.theme-beauty { background: linear-gradient(135deg, #ff8fa3, #ff5c8a); }
.theme-auto   { background: linear-gradient(135deg, #4a6fa5, #1f3a63); }
.theme-edu    { background: linear-gradient(135deg, #52b788, #2d6a4f); }
.theme-default{ background: linear-gradient(135deg, #8a8f9c, #565b6b); }
.card-body { padding: 16px 18px 18px; }
.card-body h3 { margin: 0 0 6px; font-size: 16px; }
.card-body p { margin: 0 0 14px; font-size: 13px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; }
.price-now { font-size: 18px; font-weight: 600; color: #e5484d; }
.tag { font-size: 12px; background: #eef4ff; color: #1a4bd0; padding: 2px 8px; border-radius: 20px; }

/* 产品详情 */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.product-head { display: flex; gap: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; flex-wrap: wrap; }
.product-cover { width: 220px; height: 140px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.product-head h1 { margin: 0 0 8px; font-size: 24px; }
.plain-list { list-style: none; padding: 0; margin: 14px 0 0; font-size: 14px; }
.plain-list li { margin-bottom: 5px; color: var(--muted); }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.plan-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.plan-featured { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47,107,255,.08); }
.plan-head h3 { margin: 0 0 6px; font-size: 17px; }
.plan-head { padding-bottom: 14px; border-bottom: 1px dashed var(--line); margin-bottom: 16px; }
.plan-item { margin-bottom: 18px; }
.plan-price { margin-bottom: 4px; }
.plan-item form { margin-top: 12px; }

.tip-box { margin-top: 20px; padding: 16px 20px; background: #fff8e6; border: 1px solid #ffe1a6; border-radius: 10px; font-size: 14px; }
.step-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 44px; margin: 0; }
.step-list li { margin-bottom: 10px; }

/* 登录 */
.auth-wrap { display: grid; place-items: center; padding: 40px 0; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; width: 100%; max-width: 400px; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tabs a { padding-bottom: 10px; color: var(--muted); font-size: 15px; }
.tabs a.active { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--brand); margin-bottom: -1px; }
.form label { display: block; margin-bottom: 16px; font-size: 14px; color: var(--muted); }
.form input {
    display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
    border: 1px solid var(--line); border-radius: 8px; font-size: 15px; font-family: inherit; color: var(--ink);
}
.form input:focus { outline: none; border-color: var(--brand); }

/* 收银台 */
.pay-wrap { display: grid; place-items: center; padding: 20px 0; }
.pay-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; width: 100%; max-width: 520px; }
.pay-card h1 { margin: 0 0 22px; font-size: 22px; }
.pay-summary { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin-bottom: 22px; }
.pay-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.pay-row span:first-child { color: var(--muted); }
.pay-total { font-size: 16px; font-weight: 600; border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 12px; }
.pay-total span:last-child { color: #e5484d; font-size: 20px; }
.pay-notes { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.pay-notes ul { padding-left: 18px; margin: 8px 0 0; }

/* 选择支付方式 */
.pay-channels { display: flex; flex-direction: column; gap: 12px; }
.btn-wechat { background: #07C160; border-color: #07C160; color: #fff; }
.btn-wechat:hover { background: #06ad56; border-color: #06ad56; }
.btn-alipay { background: #1677FF; border-color: #1677FF; color: #fff; }
.btn-alipay:hover { background: #0e63db; border-color: #0e63db; }

/* 扫码支付 */
.qr-box {
    display: inline-block; padding: 14px; background: #fff;
    border: 1px solid var(--line); border-radius: 12px; margin: 8px 0;
}
.qr-box img { display: block; }

/* 支付成功 */
.result-wrap { max-width: 640px; margin: 20px auto; text-align: center; }
.result-icon {
    width: 56px; height: 56px; border-radius: 50%; background: #e8f6f0; color: var(--ok);
    display: grid; place-items: center; font-size: 28px; margin: 0 auto 16px;
}
.result-wrap h1 { font-size: 22px; margin: 0 0 8px; }
.license-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 24px 0; }
.license-label { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.license-key { font-family: ui-monospace, Consolas, monospace; font-size: 21px; letter-spacing: 1px; margin-bottom: 14px; word-break: break-all; }
.action-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 20px 0; }
.install-steps { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 20px; }
.install-steps h3 { margin: 0 0 12px; font-size: 16px; }
.install-steps ol { padding-left: 20px; margin: 0; font-size: 14px; }
.install-steps li { margin-bottom: 8px; }
.install-steps code { background: #f2f4f7; padding: 1px 6px; border-radius: 4px; font-size: 13px; }

/* 控制台 */
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: #fafbfc; color: var(--muted); font-weight: 500; font-size: 13px; }
tbody tr:last-child td { border-bottom: none; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; }
.badge-ok { background: #e8f6f0; color: var(--ok); }
.badge-bad { background: #fdeceb; color: #b3261e; }
.badge-warn { background: #fff4e0; color: var(--warn); }
.empty-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 48px; text-align: center; }

/* 页脚 */
.footer { border-top: 1px solid var(--line); background: #fff; padding: 24px 0; font-size: 13px; color: var(--muted); }
.footer p { margin: 4px 0; }
