:root {
    --ink: #182433;
    --muted: #667487;
    --line: #dfe6ef;
    --paper: #f4f7fb;
    --card: #ffffff;
    --brand: #145a86;
    --brand-dark: #0c3c5d;
    --accent: #eaf3f8;
    --danger: #b42318;
    --shadow-sm: 0 4px 14px rgba(25, 48, 74, .06);
    --icon-doc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 3.75h6.2c.4 0 .8.16 1.08.44l3.53 3.53c.28.28.44.67.44 1.06V20.25H7A2.25 2.25 0 0 1 4.75 18V6A2.25 2.25 0 0 1 7 3.75Z' stroke='%23145a86' stroke-width='1.8'/%3E%3Cpath d='M13.25 4v4.25c0 .69.56 1.25 1.25 1.25h4.25' stroke='%23145a86' stroke-width='1.8'/%3E%3Cpath d='M8.75 12h6.5M8.75 15.25h4.9' stroke='%23145a86' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    --icon-tag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5.5 11.25V6.5A2.25 2.25 0 0 1 7.75 4.25h4.75l6.5 6.5-4.75 4.75-6.5-6.5H5.5Z' stroke='%23145a86' stroke-width='1.8' stroke-linejoin='round'/%3E%3Ccircle cx='9.4' cy='8.9' r='1.15' fill='%23145a86'/%3E%3Cpath d='M11.75 14.75 14.5 17.5' stroke='%23145a86' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    --icon-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4.75 11.5 12 5.5l7.25 6v7.75H4.75V11.5Z' stroke='%23145a86' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M9.5 19.25v-5.1c0-.69.56-1.25 1.25-1.25h2.5c.69 0 1.25.56 1.25 1.25v5.1' stroke='%23145a86' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    --icon-list: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7.5 7.25h11M7.5 12h11M7.5 16.75h11' stroke='%23145a86' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='5' cy='7.25' r='1' fill='%23145a86'/%3E%3Ccircle cx='5' cy='12' r='1' fill='%23145a86'/%3E%3Ccircle cx='5' cy='16.75' r='1' fill='%23145a86'/%3E%3C/svg%3E");
    --icon-wallet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5.25 7.5A2.25 2.25 0 0 1 7.5 5.25h11.25v4.5H7.5A2.25 2.25 0 0 1 5.25 7.5Z' stroke='%23145a86' stroke-width='1.8'/%3E%3Cpath d='M5.25 7.5v9A2.25 2.25 0 0 0 7.5 18.75h11.25v-4.5H17.5' stroke='%23145a86' stroke-width='1.8'/%3E%3Ccircle cx='17.5' cy='13.5' r='1' fill='%23145a86'/%3E%3C/svg%3E");
    --icon-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='9' cy='8.25' r='2.5' stroke='%23145a86' stroke-width='1.8'/%3E%3Cpath d='M4.75 18.25c.76-2.72 2.86-4.25 4.25-4.25s3.49 1.53 4.25 4.25' stroke='%23145a86' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='16.75' cy='9.5' r='2' stroke='%23145a86' stroke-width='1.8'/%3E%3Cpath d='M14.25 18.25c.5-1.7 1.8-2.75 2.5-2.75s2 .46 2.5 2.75' stroke='%23145a86' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    --icon-chart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 18.5h14M7 15.75v-3.5M12 15.75V8.5M17 15.75v-6' stroke='%23145a86' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    --icon-spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 4.5 13.85 9l4.75 1.85-4.75 1.85L12 17.5l-1.85-4.8L5.4 10.85 10.15 9 12 4.5Z' stroke='%23145a86' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M17.75 4.75l.6 1.5 1.5.6-1.5.6-.6 1.5-.6-1.5-1.5-.6 1.5-.6.6-1.5Z' fill='%23145a86'/%3E%3C/svg%3E");
    --icon-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='6.5' y='10.25' width='11' height='8.5' rx='2' stroke='%23145a86' stroke-width='1.8'/%3E%3Cpath d='M8.75 10.25V8.5a3.25 3.25 0 0 1 6.5 0v1.75' stroke='%23145a86' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background:
        radial-gradient(circle at 8% 0%, rgba(20, 90, 134, .06), transparent 28rem),
        var(--paper);
    color: var(--ink);
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.7;
}
a { color: var(--brand); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
.site-header {
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .8);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
}
.site-header-inner {
    align-items: center;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 20px;
    min-height: 72px;
    padding: 14px max(24px, calc((100% - 1240px) / 2));
}
.page-quota {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px auto -6px;
    max-width: 1120px;
    padding: 0 24px;
}
.quota-badge {
    background: #eef6fb;
    border: 1px solid #d5e6ef;
    border-radius: 999px;
    color: var(--brand-dark);
    display: inline-flex;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 12px;
}
.quota-badge-soft {
    background: #f6f9fc;
}
.page-quota .muted {
    font-size: 13px;
}
.site-brand {
    align-items: center;
    color: var(--ink);
    display: inline-flex;
    gap: 14px;
    min-width: 0;
}
.site-brand:hover { color: var(--ink); text-decoration: none; }
.brand-mark {
    align-items: center;
    background: linear-gradient(180deg, #155a87, #0c3c5d);
    border-radius: 12px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    height: 34px;
    justify-content: center;
    letter-spacing: .08em;
    position: relative;
    width: 34px;
}
.brand-mark::after {
    background: rgba(255, 255, 255, .18);
    border-radius: 999px;
    content: "";
    height: 6px;
    position: absolute;
    right: 5px;
    top: 5px;
    width: 6px;
}
.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}
.brand-copy strong {
    font-size: 24px;
    letter-spacing: -.03em;
}
.brand-copy small {
    color: var(--muted);
    font-size: 10px;
    margin-top: 2px;
}
.site-nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    justify-content: flex-end;
    min-width: 0;
    width: 100%;
}
.site-nav-group {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.site-nav-aux {
    margin-left: 4px;
}
.nav-form {
    margin: 0;
}
.nav-chip {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--muted);
    display: inline-flex;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 9px;
    white-space: nowrap;
    transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.feature-card h3::before {
    background-color: currentColor;
    content: "";
    display: inline-block;
    flex: 0 0 auto;
    height: 14px;
    margin-right: 7px;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    width: 14px;
}
.nav-chip:hover {
    background: #eef6fb;
    border-color: #d5e6ef;
    color: var(--brand-dark);
    text-decoration: none;
}
.nav-chip.is-active {
    background: #e8f3fb;
    border-color: #c7dff0;
    color: var(--brand-dark);
    box-shadow: 0 2px 6px rgba(20, 90, 134, .08);
}
.nav-chip-ghost {
    background: transparent;
    border-color: transparent;
    cursor: pointer;
    font: inherit;
    box-shadow: none;
}
.nav-chip-ghost:hover {
    background: transparent;
    border-color: transparent;
    color: var(--brand-dark);
    text-decoration: underline;
}
.site-header .nav-chip {
    box-shadow: none;
}
.site-header .nav-form button.nav-chip,
.site-header .nav-form button.nav-chip-ghost {
    background: transparent;
    border: 0;
    color: var(--muted);
    padding: 0;
    box-shadow: none;
}
.site-header .nav-form button.nav-chip:hover,
.site-header .nav-form button.nav-chip-ghost:hover {
    background: transparent;
    border: 0;
    color: var(--brand-dark);
    text-decoration: underline;
    transform: none;
}
.site-main { margin: 0 auto; max-width: 1120px; min-height: calc(100vh - 132px); padding: 56px 24px 80px; }
.site-main > h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 14px; }
.site-main > h2 { margin-top: 36px; }
.site-main article, .site-main form, .site-main > ul, .site-main > p { max-width: 760px; }
.site-main article {
    background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm);
    display: inline-block; margin: 12px 12px 12px 0; padding: 24px; vertical-align: top; width: min(100%, 330px);
}
.site-main article h2 { margin-top: 0; }
form { background: rgba(255, 255, 255, .96); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); padding: 28px; }
form p { display: grid; gap: 6px; margin: 0 0 16px; }
label { color: #536377; font-size: 14px; font-weight: 600; }
input, select, textarea {
    background: #fff; border: 1px solid #c9d4e1; border-radius: 7px; color: var(--ink);
    font: inherit; outline: none; padding: 10px 12px; transition: border-color .18s ease, box-shadow .18s ease; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(20, 90, 134, .12); }
button, .button {
    background: var(--brand); border: 0; border-radius: 7px; box-shadow: 0 3px 8px rgba(20, 90, 134, .18);
    color: #fff; cursor: pointer; display: inline-block; font: inherit; font-weight: 600; padding: 10px 18px;
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
button:hover, .button:hover { background: var(--brand-dark); box-shadow: 0 5px 12px rgba(12, 60, 93, .2); color: #fff; text-decoration: none; transform: translateY(-1px); }
.site-main ul { padding-left: 22px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 20px 24px; text-align: center; }
.page-heading { align-items: flex-start; display: flex; gap: 24px; justify-content: space-between; margin-bottom: 24px; }
.page-heading h1 { margin: 0; }
.eyebrow { color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .1em; margin: 0 0 6px; text-transform: uppercase; }
.muted { color: var(--muted); font-size: 14px; }
.button.secondary { background: #e8f3fb; color: var(--brand-dark); }
.metric-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin: 28px 0; }
.metric-card, .panel, .table-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); padding: 20px; }
.metric-card span { color: var(--muted); display: block; font-size: 14px; }
.metric-card strong { color: var(--brand-dark); display: block; font-size: 30px; margin-top: 4px; }
.hero-shell {
    align-items: center;
    display: grid;
    gap: 28px;
    grid-template-columns: 1.25fr .95fr;
    margin-bottom: 30px;
}
.hero-copy {
    background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.82));
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    padding: 32px;
}
.hero-copy .eyebrow {
    position: relative;
}
.hero-copy .eyebrow::after {
    background: linear-gradient(90deg, rgba(20, 90, 134, .2), rgba(20, 90, 134, 0));
    content: "";
    display: block;
    height: 1px;
    margin-top: 10px;
    width: 64px;
}
.hero-copy h1 {
    margin: 0 0 14px;
}
.hero-copy p {
    color: var(--muted);
    margin: 0 0 16px;
    max-width: 56ch;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}
.hero-actions .button,
.hero-actions .button.secondary {
    align-items: center;
    display: inline-flex;
    gap: 2px;
}
.hero-side {
    background:
        linear-gradient(180deg, rgba(255,255,255,.92), rgba(247,250,253,.96)),
        url("/static/images/site-hero-illustration.svg") right -18px bottom -18px / 260px auto no-repeat;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 16px;
    overflow: hidden;
    padding: 18px;
    position: relative;
}
.hero-side > * {
    position: relative;
    z-index: 1;
}
.feature-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.feature-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    padding: 18px;
}
.feature-card h3 {
    align-items: center;
    display: flex;
    gap: 7px;
    margin: 0 0 8px;
}
.feature-card p {
    color: var(--muted);
    margin: 0;
}
.promo-band {
    background: linear-gradient(90deg, #eef6fb, #f8fbfd);
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--brand-dark);
    padding: 16px 18px;
}
.filter-bar { align-items: center; display: flex; gap: 10px; margin: 20px 0; max-width: none; }
.filter-bar input { flex: 1; }
.filter-bar select { max-width: 190px; }
.table-card { max-width: none; overflow-x: auto; padding: 0; }
table { border-collapse: collapse; min-width: 760px; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: 13px 16px; text-align: left; vertical-align: top; }
th { background: #f8fafc; color: var(--muted); font-size: 13px; font-weight: 600; }
tbody tr:hover { background: #fbfdff; }
tr:last-child td { border-bottom: 0; }
.empty-state { color: var(--muted); padding: 24px; text-align: center; }
.detail-grid { display: grid; gap: 20px; grid-template-columns: 1fr 1.25fr; margin: 24px 0; }
.panel { margin: 24px 0; max-width: none; }
.panel h2 { font-size: 20px; margin: 0 0 16px; }
.info-list { display: grid; gap: 8px 16px; grid-template-columns: 110px 1fr; margin: 0; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; }
.timeline-item { border-left: 3px solid var(--accent); margin: 0 0 18px; padding-left: 14px; }
.timeline-item p { margin: 6px 0; }
.status-pill { background: var(--accent); border: 1px solid #d5e6ef; border-radius: 999px; color: var(--brand-dark); display: inline-block; font-size: 13px; padding: 4px 11px; white-space: nowrap; }
.inline-form { background: transparent; border: 0; display: inline-block; margin: 0 6px 6px 0; padding: 0; }
.button.danger { background: #fff0ee; color: var(--danger); }
.button.danger:hover { background: #fbd8d2; }
@media (max-width: 700px) {
    .page-heading, .filter-bar, .hero-shell { align-items: stretch; flex-direction: column; grid-template-columns: 1fr; }
    .metric-grid, .detail-grid, .feature-grid { grid-template-columns: 1fr; }
    .filter-bar select { max-width: none; }
    form { padding: 22px; }
    .site-header-inner { align-items: flex-start; grid-template-columns: 1fr; gap: 12px; }
    .site-nav { justify-content: flex-start; }
    .site-main { padding-top: 32px; }
}

.site-header .nav-chip[href*="core:tools"]::before { -webkit-mask-image: var(--icon-home); mask-image: var(--icon-home); }
.site-header .nav-chip[href*="core:pricing"]::before { -webkit-mask-image: var(--icon-tag); mask-image: var(--icon-tag); }
.site-header .nav-chip[href*="core:dashboard"]::before { -webkit-mask-image: var(--icon-home); mask-image: var(--icon-home); }
.site-header .nav-chip[href*="tasks:list"]::before { -webkit-mask-image: var(--icon-list); mask-image: var(--icon-list); }
.site-header .nav-chip[href*="billing:purchase_new"]::before { -webkit-mask-image: var(--icon-wallet); mask-image: var(--icon-wallet); }
.site-header .nav-chip[href*="crm:dashboard"]::before { -webkit-mask-image: var(--icon-chart); mask-image: var(--icon-chart); }
.site-header .nav-chip[href*="crm:customer_list"]::before { -webkit-mask-image: var(--icon-users); mask-image: var(--icon-users); }
.site-header .nav-chip[href*="accounts:login"]::before { -webkit-mask-image: var(--icon-lock); mask-image: var(--icon-lock); }
.site-header .nav-chip[href*="accounts:register"]::before { -webkit-mask-image: var(--icon-spark); mask-image: var(--icon-spark); }
.site-header .nav-chip[href*="core:tools"]::before,
.site-header .nav-chip[href*="core:pricing"]::before,
.site-header .nav-chip[href*="core:dashboard"]::before,
.site-header .nav-chip[href*="tasks:list"]::before,
.site-header .nav-chip[href*="billing:purchase_new"]::before,
.site-header .nav-chip[href*="crm:dashboard"]::before,
.site-header .nav-chip[href*="crm:customer_list"]::before,
.site-header .nav-chip[href*="accounts:login"]::before,
.site-header .nav-chip[href*="accounts:register"]::before,
.hero-actions a[href*="drawing_review_new"]::before,
.hero-actions a[href*="pricing"]::before,
.hero-actions a[href*="register"]::before {
    content: "";
    display: inline-block;
    flex: 0 0 auto;
    height: 14px;
    margin-right: 7px;
    width: 14px;
}
.site-header .nav-chip[href*="core:tools"],
.site-header .nav-chip[href*="core:pricing"],
.site-header .nav-chip[href*="core:dashboard"],
.site-header .nav-chip[href*="tasks:list"],
.site-header .nav-chip[href*="billing:purchase_new"],
.site-header .nav-chip[href*="crm:dashboard"],
.site-header .nav-chip[href*="crm:customer_list"],
.site-header .nav-chip[href*="accounts:login"],
.site-header .nav-chip[href*="accounts:register"] {
    display: inline-flex;
    align-items: center;
}
.site-header .nav-chip[href*="core:tools"]::before,
.site-header .nav-chip[href*="core:pricing"]::before,
.site-header .nav-chip[href*="core:dashboard"]::before,
.site-header .nav-chip[href*="tasks:list"]::before,
.site-header .nav-chip[href*="billing:purchase_new"]::before,
.site-header .nav-chip[href*="crm:dashboard"]::before,
.site-header .nav-chip[href*="crm:customer_list"]::before,
.site-header .nav-chip[href*="accounts:login"]::before,
.site-header .nav-chip[href*="accounts:register"]::before,
.hero-actions a[href*="drawing_review_new"]::before,
.hero-actions a[href*="pricing"]::before,
.hero-actions a[href*="register"]::before {
    background-color: currentColor;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}
.hero-actions a[href*="drawing_review_new"]::before { -webkit-mask-image: var(--icon-doc); mask-image: var(--icon-doc); }
.hero-actions a[href*="pricing"]::before { -webkit-mask-image: var(--icon-tag); mask-image: var(--icon-tag); }
.hero-actions a[href*="register"]::before { -webkit-mask-image: var(--icon-spark); mask-image: var(--icon-spark); }
.hero-actions a[href*="drawing_review_new"],
.hero-actions a[href*="pricing"],
.hero-actions a[href*="register"] {
    display: inline-flex;
    align-items: center;
}
.feature-grid .feature-card:nth-child(1) h3::before { -webkit-mask-image: var(--icon-doc); mask-image: var(--icon-doc); }
.feature-grid .feature-card:nth-child(2) h3::before { -webkit-mask-image: var(--icon-wallet); mask-image: var(--icon-wallet); }
.feature-grid .feature-card:nth-child(3) h3::before { -webkit-mask-image: var(--icon-users); mask-image: var(--icon-users); }
.feature-grid .feature-card:nth-child(4) h3::before { -webkit-mask-image: var(--icon-spark); mask-image: var(--icon-spark); }
.feature-card h3::before {
    height: 18px;
    width: 18px;
}
