/*
 * 云诺安全 SSL 检测 - Cloudflare inspired security UI
 * 方向：白色为主，橙色安全产品强调，边界/网络/防护感。不是 SaaS 营销站。
 */

:root {
    --bg: #f8f7f4;
    --surface: #ffffff;
    --surface-warm: #fffaf2;
    --surface-soft: #fbfaf7;
    --ink: #17120f;
    --text: #3c3530;
    --muted: #756e66;
    --muted-2: #a19a91;
    --line: #e8e1d7;
    --line-strong: #d8cec0;
    --brand: #f38020;
    --brand-strong: #d86105;
    --brand-dark: #7a3100;
    --brand-soft: #fff1df;
    --brand-softer: #fff7ed;
    --ok: #138a55;
    --ok-soft: #edf9f2;
    --warn: #b56a12;
    --warn-soft: #fff4df;
    --danger: #b8323a;
    --danger-soft: #fff0f1;
    --code: #1c1713;
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --container: 1160px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background:
        linear-gradient(90deg, rgba(122,49,0,0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(122,49,0,0.035) 1px, transparent 1px),
        radial-gradient(circle at 76% 0%, rgba(243,128,32,0.11), transparent 34%),
        var(--bg);
    background-size: 36px 36px, 36px 36px, auto, auto;
    font-family: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.62;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
}

::selection { background: #ffe2bd; color: var(--brand-dark); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

/* ===== 顶部导航 ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(232,225,215,0.86);
}

.nav-inner {
    width: min(var(--container), calc(100% - 40px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.98rem;
    font-weight: 760;
    letter-spacing: 0;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border: 1px solid #ffd7ad;
    border-radius: 10px;
}

.brand-mark svg { display: block; }

.nav-links {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.nav-links a {
    padding: 8px 14px;
    color: var(--muted);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 680;
    transition: color 160ms var(--ease), background 160ms var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--brand-dark);
    background: var(--brand-soft);
}

/* ===== 通用布局 ===== */
.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(34px, 5vw, 64px) 0 52px;
    flex: 1;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-dark);
    font-size: 0.75rem;
    font-weight: 780;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(243,128,32,0.14);
}

/* ===== 首页 Hero ===== */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 440px);
    gap: clamp(30px, 5vw, 72px);
    align-items: center;
    padding: clamp(12px, 2vw, 22px) 0 clamp(46px, 6vw, 78px);
}

.hero-copy { min-width: 0; }

.hero-title {
    margin-top: 18px;
    max-width: 16ch;
    font-size: clamp(2.2rem, 4.6vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.018em;
    font-weight: 760;
}

.hero-title .accent-word { color: var(--brand-strong); }

.hero-desc {
    margin-top: 18px;
    max-width: 60ch;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.78;
}

.search-panel {
    margin-top: 30px;
    max-width: 730px;
}

.search-label {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 650;
}

.search-label span:last-child { color: var(--brand-dark); font-variant-numeric: tabular-nums; }

.search-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-height: 68px;
    padding: 7px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    box-shadow: 0 20px 52px rgba(80,45,12,0.08);
    transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.search-bar:focus-within {
    border-color: #f3a15c;
    box-shadow: 0 22px 56px rgba(243,128,32,0.13);
}

.search-prefix {
    display: inline-flex;
    align-items: center;
    height: 50px;
    padding: 0 15px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-radius: 11px;
    font-size: 0.9rem;
    font-weight: 720;
    user-select: none;
    white-space: nowrap;
}

.search-bar input {
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 0 16px;
    color: var(--ink);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 1.06rem;
    font-weight: 580;
    letter-spacing: 0;
}

.search-bar input::placeholder { color: var(--muted-2); }

.btn-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 126px;
    height: 50px;
    padding: 0 20px;
    color: #fff;
    background: var(--brand);
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    font-size: 0.94rem;
    font-weight: 760;
    transition: background 160ms var(--ease), transform 160ms var(--ease);
}

.btn-check:hover { background: var(--brand-strong); transform: translateY(-1px); }
.btn-check:active { transform: scale(0.985); }
.btn-check:disabled { opacity: 0.72; cursor: wait; transform: none; }
.btn-loading { align-items: center; gap: 8px; }

.hero-note {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.9rem;
}

/* 首页右侧安全边界面板 */
.scan-board {
    position: relative;
    padding: 20px;
    background: linear-gradient(180deg, #fff, #fff9f1);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 56px rgba(80,45,12,0.08);
    overflow: hidden;
}

.scan-board::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(243,128,32,0.11) 1px, transparent 1px),
        linear-gradient(180deg, rgba(243,128,32,0.11) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(circle at 70% 20%, #000 0, transparent 68%);
    pointer-events: none;
}

.board-top,
.board-card,
.board-mini,
.board-lines { position: relative; z-index: 1; }

.board-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.board-title {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 780;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.board-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border: 1px solid #ffd7ad;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 740;
}

.board-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--brand);
}

.board-card { padding-top: 22px; }

.board-grade {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--ink);
    font-size: 3.55rem;
    line-height: 0.95;
    font-weight: 780;
    letter-spacing: -0.02em;
}

.board-grade small { color: var(--brand); font-size: 1.18rem; letter-spacing: 0; }

.board-domain {
    margin-top: 14px;
    color: var(--muted);
    font-family: "SF Mono", "Cascadia Mono", "Menlo", monospace;
    font-size: 0.9rem;
}

.board-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
}

.board-metric {
    padding: 14px;
    background: rgba(255,255,255,0.74);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.board-metric b {
    display: block;
    color: var(--ink);
    font-size: 1.04rem;
    letter-spacing: 0;
}

.board-metric span { color: var(--muted); font-size: 0.82rem; font-weight: 620; }

.board-mini {
    margin-top: 12px;
    padding: 15px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border: 1px solid #ffd7ad;
    border-radius: var(--radius-sm);
}

.board-mini strong { display: block; font-size: 0.98rem; }
.board-mini span { display: block; margin-top: 2px; color: #8a4a10; font-size: 0.84rem; }

.board-lines {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}
.board-line {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(243,128,32,0.26), rgba(243,128,32,0.04));
}
.board-line:nth-child(2) { width: 78%; }
.board-line:nth-child(3) { width: 48%; }

/* ===== 首页内容区 ===== */
.home-section { margin-top: clamp(28px, 5vw, 58px); }

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    line-height: 1.15;
    letter-spacing: -0.018em;
    font-weight: 740;
}

.section-subtitle { max-width: 42ch; color: var(--muted); font-size: 0.94rem; }

.recent-wrap,
.feat-card,
.info-card,
.score-summary,
.insight-panel,
.score-breakdown,
.error-page {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.recent-wrap { padding: 22px; }
.recent-list { display: flex; flex-wrap: wrap; gap: 9px; }

.recent-item {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    color: var(--text);
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: "SF Mono", "Cascadia Mono", "Menlo", monospace;
    font-size: 0.86rem;
    font-weight: 620;
    transition: border-color 160ms var(--ease), background 160ms var(--ease), transform 160ms var(--ease);
}
.recent-item:hover { background: var(--brand-soft); border-color: #ffd0a0; transform: translateY(-1px); }
.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.recent-empty { color: var(--muted); font-size: 0.94rem; }

.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.feat-card {
    min-height: 178px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feat-card:first-child { grid-column: span 2; }

.feat-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border: 1px solid #ffd7ad;
    border-radius: 12px;
}
.feat-icon svg { display: block; }

.feat-card h3 {
    margin-top: 24px;
    font-size: 1.06rem;
    line-height: 1.2;
    letter-spacing: 0;
    font-weight: 740;
}

.feat-card p { margin-top: 8px; color: var(--muted); font-size: 0.92rem; line-height: 1.65; }

/* ===== 结果页 ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 640;
}
.breadcrumb a { color: var(--brand-dark); }
.breadcrumb .sep { color: var(--muted-2); }

.report-shell { display: grid; gap: 16px; }

.score-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(260px, 340px);
    gap: 24px;
    align-items: center;
    padding: clamp(22px, 4vw, 34px);
    background:
        linear-gradient(90deg, rgba(243,128,32,0.08), transparent 36%),
        #fff;
}

.grade-letter {
    width: 116px;
    height: 116px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    font-size: 3.35rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.02em;
    border: 1px solid currentColor;
}

.grade-a-plus,
.grade-a { color: #12623d; background: #eaf8ef; }
.grade-b { color: #8a5209; background: #fff1d8; }
.grade-c { color: #a1460d; background: #fff0e4; }
.grade-t { color: #9b2631; background: #ffedf0; }

.grade-body .domain {
    word-break: break-all;
    font-size: clamp(1.55rem, 3vw, 2.45rem);
    line-height: 1.14;
    letter-spacing: -0.018em;
    font-weight: 760;
}

.grade-body .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.grade-body .meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 11px;
    color: var(--muted);
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.84rem;
}
.grade-body .meta em { font-style: normal; }
.grade-body .meta strong { color: var(--text); font-weight: 700; }

.grade-score { justify-self: end; display: flex; align-items: end; gap: 7px; }
.score-num {
    color: var(--ink) !important;
    font-size: clamp(3.1rem, 6.4vw, 4.9rem);
    line-height: 0.9;
    font-weight: 780;
    letter-spacing: -0.018em;
    font-variant-numeric: tabular-nums;
}
.score-label { padding-bottom: 8px; color: var(--muted); font-weight: 700; }

.report-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.report-flow { display: grid; gap: 14px; }
.report-aside { display: grid; gap: 14px; position: sticky; top: 88px; }

.insight-panel,
.score-breakdown { padding: 20px; }
.insight-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.insight-head h3 { font-size: 1.05rem; font-weight: 740; letter-spacing: 0; }
.insight-head p { margin-top: 2px; color: var(--muted); font-size: 0.9rem; }
.insight-count { color: var(--brand-dark); font-size: 0.82rem; font-weight: 760; }

.advice-list { display: grid; gap: 8px; list-style: none; }
.advice-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.92rem;
}
.advice-index {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 780;
    font-variant-numeric: tabular-nums;
}
.issue-list .advice-index { color: var(--danger); background: var(--danger-soft); }

.breakdown-list { display: grid; gap: 13px; margin-top: 14px; }
.breakdown-row { display: grid; gap: 6px; }
.breakdown-meta { display: flex; justify-content: space-between; color: var(--text); font-size: 0.88rem; font-weight: 680; }
.breakdown-track { height: 7px; background: #f0e8de; border-radius: 999px; overflow: hidden; }
.breakdown-fill { height: 100%; background: var(--brand); border-radius: inherit; }

.info-card { overflow: hidden; }
.info-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, var(--brand-softer), #fff 42%);
    font-size: 0.98rem;
    font-weight: 740;
    letter-spacing: 0;
}
.info-card-title { display: inline-flex; align-items: center; gap: 9px; }
.info-card-title svg,
.info-card-header > svg { color: var(--brand-strong); flex-shrink: 0; }
.info-card-kicker { color: var(--muted); font-size: 0.76rem; font-weight: 760; letter-spacing: 0.08em; text-transform: uppercase; }
.info-card-body { padding: 18px; }

.kv-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.kv-table tr { border-bottom: 1px solid #f0ebe4; }
.kv-table tr:last-child { border-bottom: 0; }
.kv-table td { padding: 12px 0; vertical-align: top; word-break: break-word; }
.kv-table td:first-child { width: 120px; padding-right: 18px; color: var(--muted); font-size: 0.88rem; font-weight: 660; white-space: nowrap; }
.kv-table td:last-child { color: var(--text); font-size: 0.94rem; }

.mono,
.kv-table .mono { font-family: "SF Mono", "Cascadia Mono", "Menlo", "Courier New", monospace; font-size: 0.84rem; letter-spacing: 0; font-variant-ligatures: none; }

.tag-list,
.cipher-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag,
.cipher-tag {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    color: var(--text);
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: "SF Mono", "Cascadia Mono", "Menlo", monospace;
    font-size: 0.78rem;
    font-weight: 620;
}
.cipher-tag.weak { color: var(--danger); background: var(--danger-soft); border-color: #ffd1d5; }
.cipher-more { display: inline-flex; align-items: center; color: var(--muted); font-size: 0.84rem; font-weight: 650; }

.tls-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.tls-row {
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 13px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface-soft);
}
.tls-row span:first-child { font-family: "SF Mono", "Cascadia Mono", "Menlo", monospace; font-size: 0.84rem; font-weight: 700; }
.tls-status { width: max-content; padding: 5px 8px; border-radius: 999px; font-size: 0.76rem; font-weight: 740; }
.tls-row.ok { color: var(--ok); background: var(--ok-soft); border-color: #ccebd8; }
.tls-row.ok .tls-status { background: rgba(19,138,85,0.1); }
.tls-row.no { color: #8d857c; background: #f7f4ef; }
.tls-row.no .tls-status { background: #ebe4dc; }

.badge-section .info-card-body { display: grid; gap: 14px; }
.hint-text { color: var(--muted); font-size: 0.91rem; }
.badge-preview { width: max-content; max-width: 100%; padding: 12px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.badge-preview img { display: block; max-width: 100%; height: auto; border-radius: 8px; }

.code-block { position: relative; background: var(--code); border-radius: var(--radius-sm); overflow: hidden; }
.code-block pre {
    max-height: 230px;
    padding: 18px 86px 18px 18px;
    overflow: auto;
    color: #f8e8d8;
    font-family: "SF Mono", "Cascadia Mono", "Menlo", "Courier New", monospace;
    font-size: 0.79rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-all;
}
.btn-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    height: 32px;
    padding: 0 12px;
    color: #fff;
    background: #5a3920;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 740;
    transition: background 160ms var(--ease), transform 160ms var(--ease);
}
.btn-copy:hover { background: var(--brand); transform: translateY(-1px); }
.btn-copy:active { transform: scale(0.98); }

.action-row { display: flex; justify-content: center; padding: 10px 0 2px; }
.btn-secondary,
.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    color: var(--brand-dark);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 740;
    transition: background 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
}
.btn-secondary:hover,
.btn-back:hover { background: var(--brand-soft); border-color: #ffd0a0; transform: translateY(-1px); }

/* 错误页 */
.error-page {
    max-width: 580px;
    margin: 28px auto;
    padding: 40px;
    text-align: center;
}
.error-page svg { color: var(--danger); }
.error-page h2 { margin-top: 16px; font-size: clamp(1.55rem, 2.6vw, 2.2rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 760; }
.error-page p { margin: 12px auto 22px; max-width: 46ch; color: var(--muted); }

/* 底部 */
.footer {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto 22px;
    padding: 20px 0 0;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 0.84rem;
}
.footer p { display: flex; justify-content: space-between; gap: 16px; }
.footer p::after { content: "SSL/TLS Security Boundary"; color: var(--muted-2); }

/* ===== 动效 ===== */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.8s linear infinite; }
@keyframes shake { 0%,100%{transform:translateX(0)} 22%{transform:translateX(-6px)} 44%{transform:translateX(5px)} 66%{transform:translateX(-3px)} 88%{transform:translateX(2px)} }
.shake { animation: shake 0.34s var(--ease); }
.loading-state { text-align: center; padding: 76px 20px; }
.loading-state p { margin-top: 12px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.001ms !important; }
}

/* ===== 响应式 ===== */
@media (max-width: 980px) {
    .hero,
    .score-summary,
    .report-main { grid-template-columns: 1fr; }
    .grade-score { justify-self: start; }
    .report-aside { position: static; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .feat-card:first-child { grid-column: auto; }
    .tls-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
    .nav-inner { width: min(100% - 28px, var(--container)); height: 62px; }
    .nav-links { display: none; }
    .container { width: min(100% - 28px, var(--container)); padding-top: 34px; }
    .hero { padding-top: 0; }
    .hero-title { font-size: clamp(2rem, 12vw, 3rem); }
    .search-label { display: none; }
    .search-bar { grid-template-columns: 1fr; gap: 8px; padding: 8px; border-radius: 16px; }
    .search-prefix { display: none; }
    .search-bar input { height: 50px; padding: 0 12px; background: var(--surface-soft); border-radius: 12px; }
    .btn-check { width: 100%; }
    .scan-board { padding: 16px; }
    .section-head { display: block; }
    .section-subtitle { margin-top: 8px; }
    .features-grid { grid-template-columns: 1fr; }
    .score-summary { gap: 16px; padding: 20px; }
    .grade-letter { width: 96px; height: 96px; font-size: 2.85rem; border-radius: 18px; }
    .grade-body .meta { display: grid; }
    .kv-table td { display: block; padding: 9px 0 2px; }
    .kv-table td:first-child { width: auto; padding-right: 0; padding-bottom: 0; }
    .kv-table td:last-child { padding-top: 2px; padding-bottom: 11px; }
    .tls-grid { grid-template-columns: 1fr; }
    .code-block pre { padding-right: 18px; padding-top: 56px; }
    .footer p { display: block; }
    .footer p::after { display: block; margin-top: 5px; }
}
