:root {
    --primary: #2563eb;
    --primary-2: #06b6d4;
    --accent: #22d3ee;
    --bg: #f6f8fc;
    --surface: #ffffff;
    --surface-2: #eef3fb;
    --text: #0f172a;
    --muted: #5b6b82;
    --border: #dbe4f0;
    --header-bg: rgba(255, 255, 255, 0.88);
    --footer-bg: #0b1728;
    --footer-text: #c9d6e8;
    --code-bg: #0b1728;
    --code-text: #d7e5ff;
    --danger: #dc2626;
    --success: #16a34a;
    --warning: #d97706;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.75;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
    margin: 0 0 0.55em;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.18rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin-top: 0; }
code, pre { font-family: var(--mono); }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; }

.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.narrow-container { width: min(760px, calc(100% - 40px)); margin: 0 auto; }
.muted { color: var(--muted); }
.center { text-align: center; }
.text-green { color: var(--success); }
.text-red { color: var(--danger); }
.hidden { display: none !important; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 42px; height: 42px; flex: 0 0 auto;
    display: grid; place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 28%, transparent);
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.08rem; letter-spacing: .02em; }
.brand-text small { color: var(--muted); font-size: .72rem; margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
    color: var(--muted);
    font-size: .94rem;
    padding: 8px 12px;
    border-radius: 999px;
    text-decoration: none;
    transition: color .18s ease, background .18s ease;
}
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a.is-active { color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); font-weight: 650; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-link { color: var(--muted); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.icon-link:hover { color: var(--text); background: var(--surface-2); }
.menu-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 10px; background: transparent; padding: 9px; }
.menu-toggle span { display: block; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 40px; padding: 9px 18px;
    border: 1px solid transparent; border-radius: 999px;
    font-weight: 650; font-size: .94rem; line-height: 1.2;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 10px 26px color-mix(in srgb, var(--primary) 24%, transparent); }
.btn-primary:hover { box-shadow: 0 14px 32px color-mix(in srgb, var(--primary) 32%, transparent); }
.btn-outline { color: var(--text); background: transparent; border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, transparent); }
.btn-ghost { color: var(--text); background: var(--surface-2); border-color: transparent; }
.btn-ghost:hover { color: var(--primary); }
.btn-sm { min-height: 32px; padding: 6px 14px; font-size: .85rem; }
.btn-lg { min-height: 50px; padding: 13px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

.flash-wrap { padding-top: 18px; }
.flash { border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 12px; font-size: .94rem; border: 1px solid transparent; }
.flash-success { color: color-mix(in srgb, var(--success) 80%, var(--text)); background: color-mix(in srgb, var(--success) 10%, var(--surface)); border-color: color-mix(in srgb, var(--success) 26%, transparent); }
.flash-error { color: color-mix(in srgb, var(--danger) 82%, var(--text)); background: color-mix(in srgb, var(--danger) 9%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 26%, transparent); }

.hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 0;
    background:
        radial-gradient(900px 440px at 12% 0%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 60%),
        radial-gradient(700px 380px at 88% 18%, color-mix(in srgb, var(--primary-2) 14%, transparent), transparent 62%);
}
.hero::after {
    content: "";
    position: absolute; inset: 0;
    background-image: linear-gradient(color-mix(in srgb, var(--border) 50%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--border) 50%, transparent) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 72%);
    pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 54px; align-items: center; padding-bottom: 48px; }
.hero-grid > * { min-width: 0; }
.hero h1 { overflow-wrap: break-word; }
.eyebrow { display: inline-block; color: var(--primary); font-size: .8rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.hero h1 { margin-bottom: 18px; }
.lead { color: var(--muted); font-size: 1.12rem; line-height: 1.8; max-width: 46em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 22px; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.hero-points li::before { content: "✓"; color: var(--success); font-weight: 800; margin-right: 6px; }
.hero-panel {
    background: var(--code-bg);
    color: var(--code-text);
    border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(2, 8, 23, .35);
    overflow: hidden;
    transform: rotate(-.6deg);
}
.panel-top { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.08); }
.panel-top span { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; }
.panel-top span:nth-child(2) { background: #f59e0b; }
.panel-top span:nth-child(3) { background: #22c55e; }
.panel-top em { margin-left: auto; font-style: normal; font-size: .74rem; color: #94a3b8; font-family: var(--mono); }
.hero-panel pre { margin: 0; padding: 22px 20px; font-size: .82rem; line-height: 1.75; overflow: auto; }
.hero-panel code { color: inherit; }
.panel-status { display: flex; align-items: center; gap: 8px; padding: 11px 16px; font-size: .78rem; color: #a7f3d0; background: rgba(34,197,94,.07); border-top: 1px solid rgba(255,255,255,.06); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.16); }
.hero-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.hero-stats > div { background: var(--surface); padding: 20px 24px; }
.hero-stats strong { display: block; font-size: 1.35rem; }
.hero-stats span { color: var(--muted); font-size: .86rem; }

.section { padding: 78px 0; }
.section-alt { background: var(--surface-2); }
.section-heading { max-width: 760px; margin-bottom: 30px; }
.section-heading p { color: var(--muted); margin-bottom: 0; }
.section-heading-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-heading-row > div { max-width: 760px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .2s ease, border-color .2s ease; }
.feature-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); font-weight: 800; font-family: var(--mono); margin-bottom: 16px; }
.feature-card p { color: var(--muted); font-size: .93rem; }

.card-grid { display: grid; gap: 20px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-cover img { transform: scale(1.035); }
.card-body { padding: 20px; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: .78rem; margin-bottom: 8px; }
.card-body h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card-body h3 a { color: var(--text); }
.card-body p { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--border); font-size: .82rem; }
.text-link { color: var(--primary); font-weight: 600; font-size: .88rem; }
.text-link:hover { text-decoration: none; }
.case-result { color: var(--primary) !important; font-size: .82rem !important; }
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 650; line-height: 1.5; }
.badge-free { color: #047857; background: #d1fae5; }
.badge-member { color: #1d4ed8; background: #dbeafe; }
.badge-paid { color: #b45309; background: #fef3c7; }
.badge-outline { color: var(--muted); background: color-mix(in srgb, var(--surface-2) 70%, transparent); border: 1px solid var(--border); }
.badge-ai { color: #7c3aed; background: #ede9fe; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .76rem; }
.card-cover .badge { position: absolute; top: 12px; left: 12px; backdrop-filter: blur(8px); }

.page-hero { padding: 56px 0 40px; background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 7%, var(--bg)), var(--bg)); border-bottom: 1px solid var(--border); }
.page-hero h1 { margin: 12px 0 10px; }
.page-hero p { color: var(--muted); max-width: 62em; margin-bottom: 0; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .82rem; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs strong { color: var(--text); font-weight: 600; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; padding: 42px 0 78px; align-items: start; }
.content-main { min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 96px; }
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.sidebar-card h3 { font-size: 1rem; margin-bottom: 12px; }
.sidebar-card p:last-child { margin-bottom: 0; }
.sidebar-links { display: flex; flex-direction: column; gap: 8px; }
.sidebar-links a { color: var(--muted); font-size: .9rem; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.sidebar-links a:last-child { border-bottom: 0; }
.sidebar-links a:hover { color: var(--primary); }
.plain-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: .88rem; }
.plain-list li { margin-bottom: 6px; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.category-tabs a { padding: 7px 14px; border-radius: 999px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); font-size: .86rem; }
.category-tabs a:hover { text-decoration: none; color: var(--primary); border-color: var(--primary); }
.category-tabs a.is-active { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-color: transparent; }
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.filter-bar .category-tabs { margin-bottom: 0; }
.search-inline { display: flex; gap: 8px; }
.search-inline input { width: 220px; }
.empty-state { text-align: center; padding: 64px 20px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }
.empty-state h2 { font-size: 1.25rem; }
.empty-state p { color: var(--muted); margin-bottom: 0; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 32px; }
.page-link { min-width: 36px; height: 36px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .86rem; }
.page-link:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); }
.page-link.is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-ellipsis { color: var(--muted); padding: 0 4px; }

.article-detail { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.article-header h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin: 16px 0 14px; }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; color: var(--muted); font-size: .82rem; }
.article-content { color: var(--text); font-size: 1.02rem; line-height: 1.95; margin-top: 26px; }
.article-content h2 { margin-top: 1.8em; font-size: 1.42rem; }
.article-content h3 { margin-top: 1.5em; font-size: 1.15rem; }
.article-content p { margin-bottom: 1.15em; }
.article-content ul, .article-content ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.article-content li { margin-bottom: .5em; }
.article-content blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 4px solid var(--primary); background: var(--surface-2); color: var(--muted); border-radius: 0 10px 10px 0; }
.article-content img { border-radius: var(--radius-sm); margin: 1.2em auto; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.3em 0; font-size: .9rem; }
.article-content th, .article-content td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
.article-content th { background: var(--surface-2); }
.article-content pre { background: var(--code-bg); color: var(--code-text); padding: 16px; border-radius: var(--radius-sm); overflow: auto; font-size: .85rem; }
.article-content code { background: var(--surface-2); padding: 2px 6px; border-radius: 5px; font-size: .88em; }
.article-content pre code { background: transparent; padding: 0; }
.source-note { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--muted); font-size: .82rem; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); }
.article-nav a { display: flex; flex-direction: column; gap: 4px; color: var(--text); font-weight: 600; font-size: .9rem; }
.article-nav a span { color: var(--muted); font-size: .74rem; font-weight: 500; }
.article-nav .next { text-align: right; align-items: flex-end; }
.related-block { margin-top: 40px; }
.result-box { margin-top: 28px; padding: 20px; background: color-mix(in srgb, var(--primary) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border)); border-radius: var(--radius-sm); }
.result-box h2 { font-size: 1.15rem; }

.software-title { display: flex; gap: 24px; align-items: center; margin: 18px 0 8px; }
.software-cover { flex: 0 0 220px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.software-cover img { width: 100%; height: 124px; object-fit: cover; }
.software-header h1 { margin: 6px 0 10px; }
.software-header .lead { font-size: 1rem; }
.screenshot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.screenshot-grid img { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.version-list { display: flex; flex-direction: column; gap: 12px; }
.version-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.version-row > div { min-width: 0; }
.version-row .muted { margin-left: 10px; font-size: .8rem; }
.sha-line { margin-top: 8px; font-size: .74rem; color: var(--muted); overflow-wrap: anywhere; }
.sha-line code { display: inline-block; max-width: 100%; overflow-wrap: anywhere; background: var(--surface-2); padding: 3px 7px; border-radius: 5px; }
.hash-warning { margin: 0 0 16px; padding: 14px 16px; background: color-mix(in srgb, var(--warning) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warning) 32%, var(--border)); border-radius: var(--radius-sm); color: color-mix(in srgb, var(--warning) 55%, var(--text)); font-size: .86rem; line-height: 1.7; }
.hash-warning strong { display: block; margin-bottom: 4px; font-size: .94rem; }
.hash-warning p { margin: 0 0 6px; }
.hash-warning p:last-child { margin-bottom: 0; }
.copy-btn { margin-left: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 6px; padding: 2px 8px; cursor: pointer; font-size: .72rem; }
.copy-btn:hover { color: var(--primary); border-color: var(--primary); }
.version-changelog { margin: 8px 0 0; color: var(--muted); font-size: .84rem; }
.download-card h3 { font-size: 1.8rem; margin: 4px 0 10px; }
.download-notes { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); color: var(--muted); font-size: .78rem; }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.form-grid { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: flex; flex-direction: column; gap: 7px; font-size: .88rem; color: var(--muted); font-weight: 600; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], select, textarea {
    width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--surface); color: var(--text); font-size: .94rem; font-weight: 400;
    transition: border-color .16s ease, box-shadow .16s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
textarea { resize: vertical; min-height: 110px; }
input:disabled { opacity: .7; background: var(--surface-2); }
.required { color: var(--danger); }
.hint { color: var(--muted); font-size: .76rem; font-weight: 400; }
.checkbox-label { flex-direction: row; align-items: flex-start; gap: 9px; font-weight: 400; line-height: 1.5; }
.checkbox-label input { width: auto; margin-top: 4px; }
.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-row input { flex: 1; }
.captcha-question { flex: 0 0 auto; padding: 9px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-family: var(--mono); font-weight: 700; white-space: nowrap; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.step-list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step-list li { position: relative; padding: 0 0 18px 34px; counter-increment: step; }
.step-list li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); font-size: .75rem; font-weight: 700; }
.step-list li::after { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; background: var(--border); }
.step-list li:last-child::after { display: none; }
.step-list strong { display: block; color: var(--text); font-size: .92rem; }
.step-list span { color: var(--muted); font-size: .82rem; }
.faq-list details { border-bottom: 1px dashed var(--border); padding: 10px 0; }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary { cursor: pointer; color: var(--text); font-weight: 600; font-size: .9rem; }
.faq-list p { margin: 8px 0 0; color: var(--muted); font-size: .85rem; }
.success-card, .error-page, .auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm); margin: 56px 0; text-align: center; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: #dcfce7; color: #16a34a; font-size: 2rem; font-weight: 800; }
.ticket-box { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 18px 0; padding: 14px 20px; background: var(--surface-2); border: 1px dashed var(--border); border-radius: var(--radius-sm); }
.ticket-box strong { font-family: var(--mono); font-size: 1.15rem; letter-spacing: .04em; }
.success-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 22px 0; }
.notice { text-align: left; padding: 16px 18px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--muted); font-size: .88rem; }
.notice ol { margin: 8px 0 0; padding-left: 20px; }
.error-page { padding: 70px 32px; }
.error-code { font-size: 5rem; font-weight: 850; line-height: 1; background: linear-gradient(135deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page h1 { font-size: 1.6rem; margin-top: 16px; }
.error-page p { color: var(--muted); }

.auth-card { text-align: left; max-width: 560px; margin: 56px auto; }
.auth-head { margin-bottom: 24px; }
.auth-head h1 { font-size: 1.9rem; margin-bottom: 8px; }
.auth-head p { color: var(--muted); margin-bottom: 0; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 20px; font-size: .86rem; }
.search-page-form { display: flex; gap: 10px; max-width: 620px; margin: 18px 0 10px; }
.search-page-form input { flex: 1; }
.search-section { margin-bottom: 34px; }
.search-list { display: flex; flex-direction: column; gap: 10px; }
.search-item { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); }
.search-item:hover { text-decoration: none; border-color: var(--primary); }
.search-item span { color: var(--muted); font-size: .85rem; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 28px 0; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; }
.contact-card h3 { font-size: .92rem; color: var(--muted); margin-bottom: 6px; }
.contact-card p { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.account-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; padding: 42px 0 78px; align-items: start; }
.account-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; position: sticky; top: 96px; box-shadow: var(--shadow-sm); }
.account-summary { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.account-summary > div { display: flex; flex-direction: column; min-width: 0; }
.account-summary strong { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; }
.account-summary .muted { font-size: .78rem; }
.avatar { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-weight: 800; }
.account-nav nav { display: flex; flex-direction: column; gap: 3px; margin-bottom: 14px; }
.account-nav nav a { padding: 8px 11px; border-radius: 9px; color: var(--muted); font-size: .9rem; }
.account-nav nav a:hover { text-decoration: none; background: var(--surface-2); color: var(--text); }
.account-nav nav a.is-active { background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); font-weight: 650; }
.account-main { min-width: 0; }
.account-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.account-head h1 { font-size: 1.8rem; margin: 4px 0 6px; }
.account-head p { color: var(--muted); margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 30px; }
.stat-grid-2 { grid-template-columns: repeat(2, 1fr); }
.stat-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); }
.stat-card:hover { text-decoration: none; border-color: var(--primary); }
.stat-card span { color: var(--muted); font-size: .82rem; }
.stat-card strong { font-size: 1.55rem; line-height: 1.2; }
.stat-card p { margin: 0; }
.account-section { margin-bottom: 32px; }
.account-section .section-heading { margin-bottom: 16px; }
.account-section .section-heading h2 { font-size: 1.25rem; }
.notice-list { display: flex; flex-direction: column; gap: 10px; }
.notice-item { display: flex; justify-content: space-between; gap: 18px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.notice-item p { margin: 4px 0 0; color: var(--muted); font-size: .86rem; }
.notice-item time { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table th { background: var(--surface-2); color: var(--muted); font-weight: 650; font-size: .8rem; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: color-mix(in srgb, var(--primary) 4%, transparent); }
.form-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; margin: 8px 0; }
.form-divider::before, .form-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.warning-card { margin-top: 18px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.detail-grid > div { display: flex; flex-direction: column; gap: 3px; padding: 13px 15px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.detail-grid .muted { font-size: .76rem; }
.quote-block { margin-top: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.quote-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.quote-head strong { font-size: 1.25rem; color: var(--primary); }
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { position: relative; display: flex; gap: 14px; padding: 0 0 18px 2px; }
.timeline-item::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px; background: var(--border); }
.timeline-item:last-child::before { display: none; }
.timeline-dot { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 5px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent); }
.timeline-item strong { margin-right: 10px; }
.timeline-item .muted { font-size: .76rem; }
.timeline-item p { margin: 5px 0 0; color: var(--muted); font-size: .85rem; }
.message-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.message-item { max-width: 82%; padding: 12px 15px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.message-item.is-admin { align-self: flex-start; }
.message-item.is-user { align-self: flex-end; background: color-mix(in srgb, var(--primary) 8%, var(--surface)); border-color: color-mix(in srgb, var(--primary) 20%, var(--border)); }
.message-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; font-size: .78rem; }
.message-item p { margin: 0; font-size: .9rem; }
.attachments { display: flex; flex-direction: column; gap: 8px; }
.attachment-item { display: flex; justify-content: space-between; gap: 14px; padding: 11px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .85rem; }
.cta-section { padding-top: 0; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 42px; border-radius: 24px; color: #fff; background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 88%, #000), var(--primary-2)); box-shadow: 0 24px 70px color-mix(in srgb, var(--primary) 28%, transparent); }
.cta-card .eyebrow { color: rgba(255,255,255,.82); }
.cta-card h2 { color: #fff; }
.cta-card p { color: rgba(255,255,255,.86); margin-bottom: 0; max-width: 52em; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: 0 0 auto; }
.cta-card .btn-primary { background: #fff; color: var(--primary); box-shadow: none; }
.cta-card .btn-outline { color: #fff; border-color: rgba(255,255,255,.55); }
.cta-card .btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }

.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 0; padding: 54px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 36px; }
.footer-brand p { color: color-mix(in srgb, var(--footer-text) 82%, transparent); font-size: .88rem; margin: 14px 0 8px; }
.footer-logo { color: #fff; }
.footer-logo .brand-text small { color: color-mix(in srgb, var(--footer-text) 70%, transparent); }
.footer-meta { font-size: .76rem !important; color: color-mix(in srgb, var(--footer-text) 62%, transparent) !important; }
.footer-col { display: flex; flex-direction: column; gap: 7px; font-size: .86rem; }
.footer-col h3 { color: #fff; font-size: .9rem; margin-bottom: 6px; }
.footer-col a, .footer-col span { color: color-mix(in srgb, var(--footer-text) 84%, transparent); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); color: color-mix(in srgb, var(--footer-text) 68%, transparent); font-size: .78rem; }
.footer-bottom a { color: inherit; }

@media (max-width: 1080px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
    .footer-col:last-child { grid-column: 2 / 4; }
}
@media (max-width: 900px) {
    .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 18px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
    .main-nav.is-open { display: flex; }
    .menu-toggle { display: block; }
    .hero-grid { grid-template-columns: 1fr; gap: 34px; }
    .hero-panel { transform: none; }
    .page-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .account-layout { grid-template-columns: 1fr; }
    .account-nav { position: static; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .container, .narrow-container { width: min(var(--container), calc(100% - 28px)); }
    .header-actions .btn-ghost { display: none; }
    .header-actions .btn-primary { display: none; }
    .header-actions { gap: 6px; }
    .header-inner { gap: 12px; }
    .brand-text small { display: none; }
    .brand-text strong { font-size: 1rem; }
    .hero { padding-top: 48px; }
    .hero-stats { grid-template-columns: 1fr; }
    .section { padding: 54px 0; }
    .card-grid-2, .card-grid-3, .feature-grid { grid-template-columns: 1fr; }
    .section-heading-row { flex-direction: column; align-items: flex-start; }
    .article-detail { padding: 22px; }
    .form-card { padding: 22px; }
    .form-row { grid-template-columns: 1fr; }
    .software-title { flex-direction: column; align-items: flex-start; }
    .software-cover { width: 100%; flex-basis: auto; }
    .software-cover img { width: 100%; height: auto; aspect-ratio: 16/9; }
    .screenshot-grid, .contact-grid { grid-template-columns: 1fr; }
    .cta-card { flex-direction: column; align-items: flex-start; padding: 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-col:last-child { grid-column: auto; }
    .success-card, .error-page, .auth-card { padding: 26px 20px; }
    .message-item { max-width: 94%; }
    .filter-bar { align-items: stretch; }
    .search-inline { width: 100%; }
    .search-inline input { flex: 1; width: auto; }
    .detail-grid { grid-template-columns: 1fr; }
    .stat-grid, .stat-grid-2 { grid-template-columns: 1fr 1fr; }
    .article-nav { grid-template-columns: 1fr; }
    .article-nav .next { text-align: left; align-items: flex-start; }
    .version-row { flex-direction: column; }
    .hero-points { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
