/*
  Content-first responsive design for s-91llq.cloud.
  System fonts only. No external frameworks, icon libraries or font CDNs.
*/
:root {
    --brand: #6F5AE8;
    --brand-soft: #9A8CF2;
    --ink: #242433;
    --text: #30303A;
    --muted: #70707D;
    --bg: #F8F8FC;
    --panel: #F0EEFA;
    --accent: #F29A4A;
    --white: #FFFFFF;
    --border: #E4E1F1;
    --shadow: 0 18px 45px rgba(36, 36, 51, .08);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --wrap: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button, input { font: inherit; }
button { cursor: pointer; }
.wrap { width: var(--wrap); margin: 0 auto; }
.narrow { max-width: 820px; }
.skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 999;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--white);
}
.skip-link:focus { top: 16px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(228, 225, 241, .85);
    background: rgba(248, 248, 252, .94);
    backdrop-filter: blur(14px);
}
.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 26px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 760;
    letter-spacing: -.02em;
    white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: contain;
}
.primary-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.primary-nav a {
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    font-weight: 620;
}
.primary-nav a:hover,
.primary-nav a.active {
    background: var(--panel);
    color: var(--brand);
    text-decoration: none;
}
.search-open,
.footer-search,
.nav-toggle {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    color: var(--ink);
    padding: 9px 13px;
}
.search-open:hover,
.footer-search:hover,
.nav-toggle:hover {
    border-color: var(--brand-soft);
    color: var(--brand);
}
.nav-toggle { display: none; margin-left: auto; }

.breadcrumb { padding-top: 22px; }
.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}
.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: #ABA8B7;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb span { color: var(--text); }

.page-hero { padding: 54px 0 64px; }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
    gap: 54px;
    align-items: center;
}
.eyebrow {
    margin: 0 0 12px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
h1, h2, h3 {
    color: var(--ink);
    line-height: 1.28;
    margin-top: 0;
}
h1 {
    font-size: clamp(38px, 5vw, 66px);
    margin-bottom: 20px;
    letter-spacing: -.045em;
}
h2 {
    font-size: clamp(27px, 3vw, 39px);
    margin-bottom: 18px;
    letter-spacing: -.03em;
}
h3 {
    font-size: 20px;
    margin-bottom: 10px;
    letter-spacing: -.015em;
}
p { margin-top: 0; }
.hero-lead {
    max-width: 720px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.9;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 720;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button-accent {
    background: var(--accent);
    color: #2F251C;
    box-shadow: 0 9px 24px rgba(242, 154, 74, .22);
}
.button-ghost {
    background: var(--white);
    color: var(--brand);
    border-color: var(--border);
}
.hero-media {
    min-height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--panel);
    box-shadow: var(--shadow);
}
.hero-media img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
}

.content-section { padding: 68px 0; }
.content-section + .content-section {
    border-top: 1px solid rgba(228, 225, 241, .7);
}
.tone-soft {
    background: var(--panel);
    border-top: 0 !important;
}
.prose-layout { max-width: 860px; }
.section-copy p,
.prose-layout p {
    color: var(--muted);
    font-size: 17px;
}
.section-copy p:last-child,
.prose-layout p:last-child { margin-bottom: 0; }
.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, .78fr);
    gap: 54px;
    align-items: center;
}
.section-media {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--panel);
    box-shadow: var(--shadow);
}
.section-media img {
    width: 100%;
    aspect-ratio: 1.35 / 1;
    object-fit: cover;
}
.section-link { margin-top: 24px !important; }
.section-link a,
.text-link { font-weight: 720; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.info-card {
    min-height: 235px;
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid rgba(154, 140, 242, .22);
    border-radius: var(--radius-md);
    background: var(--white);
}
.info-card p {
    flex: 1;
    color: var(--muted);
}
.info-card .text-link { margin-top: 12px; }

.check-list {
    display: grid;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.check-list li {
    position: relative;
    padding: 18px 20px 18px 52px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
}
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 18px;
    top: 18px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--panel);
    color: var(--brand);
    font-weight: 800;
}

.feature-band {
    padding: 54px 0;
    background: var(--ink);
    color: var(--white);
}
.feature-band h2 { color: var(--white); }
.feature-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.12);
}
.feature-item {
    min-height: 185px;
    padding: 24px;
    background: var(--ink);
}
.feature-item h3 { color: var(--white); }
.feature-item p { color: #C8C7D4; margin-bottom: 0; }

.link-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.link-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
}
.link-list-item:hover {
    border-color: var(--brand-soft);
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(36,36,51,.06);
}
.link-list-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--ink);
}
.link-list-item small {
    display: block;
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px;
}
.link-list-item > span:last-child {
    color: var(--brand);
    font-size: 24px;
}

.editorial-section {
    padding: 74px 0;
    background: var(--white);
}
.editorial-section p:not(.eyebrow) {
    color: var(--muted);
    font-size: 18px;
}

.visual-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.visual-card {
    overflow: hidden;
    border: 1px solid rgba(154,140,242,.22);
    border-radius: var(--radius-md);
    background: var(--white);
}
.visual-card img {
    width: 100%;
    aspect-ratio: 1.55 / 1;
    object-fit: cover;
}
.visual-card > div { padding: 22px; }
.visual-card p { color: var(--muted); }

.steps {
    position: relative;
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
}
.steps::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 18px;
    bottom: 18px;
    width: 1px;
    background: var(--border);
}
.steps li {
    position: relative;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 18px;
    margin-bottom: 26px;
}
.steps li:last-child { margin-bottom: 0; }
.step-no {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: var(--white);
    font-weight: 800;
}
.steps p { color: var(--muted); margin-bottom: 0; }

.faq-list {
    display: grid;
    gap: 12px;
}
.faq-list details {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    padding: 0 20px;
}
.faq-list summary {
    cursor: pointer;
    padding: 18px 34px 18px 0;
    color: var(--ink);
    font-weight: 720;
}
.faq-list details p {
    padding: 0 0 18px;
    margin: 0;
    color: var(--muted);
}
.faq-full details { background: var(--bg); }
.center-link { margin: 28px 0 0; text-align: center; }

.notice-box {
    padding: 26px 28px;
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: #FFF7EF;
}
.notice-box h2 { font-size: 24px; margin-bottom: 8px; }
.notice-box p { margin-bottom: 0; color: #5F5145; }

.related-section {
    padding: 54px 0 72px;
    background: var(--panel);
}
.related-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.related-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 19px;
    border: 1px solid rgba(154,140,242,.25);
    border-radius: 12px;
    background: var(--white);
    color: var(--ink);
    font-weight: 680;
}
.related-links a:hover { color: var(--brand); text-decoration: none; }

.search-modal[hidden]{
    display:none !important;
}
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: start center;
    padding: 12vh 20px 20px;
}
.search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(36, 36, 51, .58);
}
.search-dialog {
    position: relative;
    width: min(680px, 100%);
    padding: 28px;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: 0 26px 80px rgba(0,0,0,.22);
}
.search-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}
.search-dialog-head h2 { margin: 0; font-size: 26px; }
.search-close {
    border: 0;
    background: transparent;
    color: var(--muted);
}
.search-form label,
.search-page-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--ink);
}
.search-row {
    display: flex;
    gap: 10px;
}
.search-row input {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    outline: none;
}
.search-row input:focus {
    border-color: var(--brand-soft);
    box-shadow: 0 0 0 4px rgba(111,90,232,.1);
}
.search-form p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.search-page,
.error-page { padding: 56px 0 86px; }
.search-page-form { margin: 30px 0 36px; }
.search-empty {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
}
.search-empty h2 { font-size: 25px; }
.search-results h2 { font-size: 25px; }
.result-list {
    display: grid;
    gap: 14px;
}
.result-list article {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
}
.result-list article h3 { margin-bottom: 8px; }
.result-list article p { color: var(--muted); }
.error-code {
    margin: 0;
    color: var(--brand);
    font-size: clamp(70px, 12vw, 140px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.06em;
}

.site-footer {
    padding: 58px 0 24px;
    background: var(--ink);
    color: #D8D7E2;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 42px;
}
.footer-grid h2 {
    margin-bottom: 14px;
    color: var(--white);
    font-size: 16px;
}
.footer-grid a,
.footer-search {
    display: block;
    margin: 9px 0;
    color: #C9C7D7;
    font-size: 14px;
}
.footer-grid a:hover { color: var(--white); }
.footer-brand p {
    max-width: 420px;
    margin-top: 16px;
    color: #AFAEBE;
}
.brand-footer { color: var(--white) !important; }
.footer-search {
    padding: 0;
    border: 0;
    background: transparent;
}
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: 13px;
    color: #9594A4;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #BFBEC9; }

.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 30;
    width: 46px;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--white);
    color: var(--brand);
    box-shadow: var(--shadow);
    font-weight: 800;
}
.back-top[hidden] { display: none; }

@media (max-width: 1200px) {
    :root { --wrap: min(1080px, calc(100% - 36px)); }
    .header-inner { gap: 16px; }
    .primary-nav a { padding: 8px 9px; font-size: 14px; }
}

@media (max-width: 1024px) {
    .nav-toggle { display: inline-flex; }
    .search-open { margin-left: 0; }
    .primary-nav {
        position: absolute;
        left: 18px;
        right: 18px;
        top: calc(100% + 8px);
        display: none;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: var(--white);
        box-shadow: var(--shadow);
    }
    .primary-nav.is-open { display: grid; }
    .primary-nav a { padding: 11px 12px; }
    .hero-grid,
    .split-layout { grid-template-columns: 1fr; }
    .hero-grid { gap: 34px; }
    .hero-media { min-height: 330px; }
    .hero-media img { min-height: 330px; }
    .feature-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    :root { --wrap: min(100% - 28px, 720px); }
    .header-inner { min-height: 68px; }
    .brand span { font-size: 15px; }
    .brand img { width: 38px; height: 38px; }
    .search-open { display: none; }
    .page-hero { padding: 38px 0 48px; }
    h1 { font-size: clamp(34px, 10vw, 48px); }
    h2 { font-size: 28px; }
    .hero-lead { font-size: 17px; }
    .content-section { padding: 52px 0; }
    .card-grid,
    .visual-grid,
    .link-list,
    .related-links { grid-template-columns: 1fr; }
    .info-card { min-height: 0; }
    .feature-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 600px) {
    :root { --wrap: calc(100% - 24px); }
    .header-inner { gap: 8px; }
    .nav-toggle { padding: 8px 10px; }
    .brand span {
        max-width: 130px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .hero-media,
    .hero-media img { min-height: 250px; }
    .hero-actions,
    .search-row { flex-direction: column; }
    .hero-actions .button,
    .search-row .button { width: 100%; }
    .split-layout { gap: 28px; }
    .content-section { padding: 44px 0; }
    .feature-band { padding: 44px 0; }
    .info-card,
    .visual-card > div,
    .notice-box,
    .search-dialog,
    .search-empty { padding: 20px; }
    .steps li {
        grid-template-columns: 42px 1fr;
        gap: 14px;
    }
    .step-no { width: 42px; height: 42px; }
    .steps::before { left: 20px; }
    .back-top { right: 16px; bottom: 16px; }
}

@media (max-width: 420px) {
    .brand span { display: none; }
    .page-hero { padding-top: 30px; }
    h1 { font-size: 34px; }
    .hero-media,
    .hero-media img { min-height: 210px; }
    .breadcrumb { padding-top: 16px; }
}
