:root {
    --bg: #F7F4FF;
    --bg-2: #FFFFFF;
    --soft: #EEF2FF;
    --card: #FFFFFF;
    --title: #1B1340;
    --text: #2F2A4A;
    --muted: #5B5678;
    --assist: #8B86A3;
    --purple: #7C3AED;
    --lavender: #A78BFA;
    --teal: #14B8A6;
    --coral: #F97316;
    --rose: #E11D48;
    --amber: #F59E0B;
    --indigo: #312E81;
    --line: rgba(124, 58, 237, 0.14);
    --shadow: 0 16px 40px rgba(49, 46, 129, 0.10);
    --footer: #1B1340;
    --footer-text: #F4F0FF;
    --radius: 22px;
    --wrap: 1200px;
    --bar-h: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--purple); }
button { font-family: inherit; cursor: pointer; }

.skip-link {
    position: absolute;
    left: 12px;
    top: -40px;
    background: var(--purple);
    color: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    z-index: 80;
}
.skip-link:focus { top: 12px; }

.wrap {
    width: min(var(--wrap), calc(100% - 32px));
    margin: 0 auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Brand bar */
.brand-bar {
    position: fixed;
    top: 12px;
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    justify-content: center;
    pointer-events: none;
}
.brand-bar-inner {
    pointer-events: auto;
    width: min(1080px, calc(100% - 24px));
    height: var(--bar-h);
    display: grid;
    grid-template-columns: 48px 1fr auto 1fr 48px;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}
.bar-cluster {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}
.bar-left { justify-content: flex-end; }
.bar-right { justify-content: flex-start; }
.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--title);
    font-weight: 700;
    letter-spacing: 0.04em;
}
.mark-img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
}
.brand-word { white-space: nowrap; }
.bar-mobile-actions { display: none; }

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--text);
    font-size: 14px;
    border: 1px solid transparent;
    white-space: nowrap;
}
.chip:hover, .chip:focus-visible {
    background: var(--soft);
    color: var(--purple);
    outline: 2px solid var(--lavender);
    outline-offset: 2px;
}
.chip.is-current {
    border-color: var(--purple);
    color: var(--purple);
    background: #F3E8FF;
}
.chip-app {
    background: linear-gradient(135deg, #A78BFA 0%, #7C3AED 50%, #14B8A6 100%);
    color: #fff;
}
.chip-app:hover, .chip-app:focus-visible { color: #fff; }

.icon-btn, .icon-link {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--title);
}
.icon-btn:hover, .icon-btn:focus-visible, .icon-link:hover, .icon-link:focus-visible {
    outline: 2px solid var(--lavender);
    outline-offset: 2px;
    background: #E0E7FF;
}
.icon-lines, .icon-lines:before, .icon-lines:after {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--indigo);
    border-radius: 2px;
    position: relative;
}
.icon-lines:before, .icon-lines:after {
    content: "";
    position: absolute;
    left: 0;
}
.icon-lines:before { top: -5px; }
.icon-lines:after { top: 5px; }
.icon-search {
    width: 14px;
    height: 14px;
    border: 2px solid var(--indigo);
    border-radius: 50%;
    position: relative;
}
.icon-search:after {
    content: "";
    position: absolute;
    width: 7px;
    height: 2px;
    background: var(--indigo);
    right: -6px;
    bottom: -2px;
    transform: rotate(45deg);
}
.icon-close {
    width: 16px;
    height: 16px;
    position: relative;
}
.icon-close:before, .icon-close:after {
    content: "";
    position: absolute;
    left: 7px;
    top: 1px;
    width: 2px;
    height: 14px;
    background: var(--indigo);
    border-radius: 2px;
}
.icon-close:before { transform: rotate(45deg); }
.icon-close:after { transform: rotate(-45deg); }
.dot-app {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A78BFA, #14B8A6);
}

main {
    padding-top: 96px;
    padding-bottom: 40px;
    min-height: 70vh;
}

.page-hero, .section {
    width: min(var(--wrap), calc(100% - 32px));
    margin: 0 auto 28px;
}
.kicker {
    color: var(--purple);
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 13px;
    margin: 0 0 8px;
}
h1 {
    color: var(--title);
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.25;
    margin: 0 0 16px;
}
h2 {
    color: var(--title);
    font-size: clamp(22px, 3vw, 32px);
    margin: 0 0 12px;
}
h3 { color: var(--title); margin: 0 0 8px; font-size: 18px; }
p { margin: 0 0 14px; }
.lead { font-size: 18px; color: var(--text); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
}
.btn:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; }
.btn-primary {
    background: linear-gradient(135deg, #A78BFA 0%, #7C3AED 50%, #14B8A6 100%);
    color: #fff;
}
.btn-primary:hover { color: #fff; filter: brightness(1.05); }
.btn-ghost {
    background: #fff;
    border-color: var(--line);
    color: var(--title);
}
.btn-ghost:hover { color: var(--purple); }

.card, .media-slot, .panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.media-slot {
    overflow: hidden;
    background: var(--soft);
    min-height: 180px;
}
.media-slot img { width: 100%; height: 100%; object-fit: cover; }
.pad { padding: 24px; }

.dock {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
}
.tag-rail {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.tag-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    box-shadow: var(--shadow);
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}
.dot-p { background: var(--purple); }
.dot-t { background: var(--teal); }
.dot-c { background: var(--coral); }
.dot-r { background: var(--rose); }

.split-dir {
    display: grid;
    grid-template-columns: 0.4fr 1fr;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.dir-list { padding: 16px; background: var(--soft); }
.dir-list a {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    color: var(--text);
    min-height: 44px;
    align-items: center;
}
.dir-list a:hover, .dir-list a:focus-visible { background: #fff; color: var(--purple); }
.num {
    font-weight: 800;
    color: var(--purple);
    min-width: 32px;
}
.split-dir .copy { padding: 28px; }

.mosaic {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
}
.mosaic article:first-child { grid-row: 1 / span 2; }
.duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.board-wall {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.board-wall article:nth-child(1),
.board-wall article:nth-child(4) { grid-row: span 1; }
.folder-list article {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    margin-bottom: 12px;
}
.folder-mark {
    width: 56px;
    height: 44px;
    border-radius: 10px 10px 6px 6px;
    background: linear-gradient(180deg, #A78BFA, #7C3AED);
}
.score-list { display: grid; gap: 12px; }
.score-item {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 16px 20px;
    align-items: center;
}
.big-num {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}
.c1 { color: var(--purple); }
.c2 { color: var(--teal); }
.c3 { color: var(--coral); }
.c4 { color: var(--rose); }
.c5 { color: var(--amber); }

.timeline { border-left: 3px solid var(--lavender); margin-left: 12px; padding-left: 22px; }
.timeline article { position: relative; margin-bottom: 22px; }
.timeline article:before {
    content: "";
    position: absolute;
    left: -30px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--purple);
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px var(--lavender);
}
.status {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    background: var(--soft);
    color: var(--indigo);
}

.faq details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px 18px;
    margin-bottom: 10px;
}
.faq summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--title);
    min-height: 44px;
    display: flex;
    align-items: center;
}
.prose { max-width: 760px; }
.prose p, .article-body p { text-align: justify; }

.index-late {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* footer */
.site-footer {
    background: var(--footer);
    color: var(--footer-text);
    padding: 48px 0 110px;
}
.footer-top { display: grid; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-mark { width: 56px; height: 56px; border-radius: 16px; }
.footer-name { font-size: 22px; font-weight: 800; margin: 0; color: #fff; }
.footer-en { margin: 0; color: #C4B5FD; letter-spacing: 0.08em; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.site-footer h2 { color: #fff; font-size: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #DDD6FE; display: inline-flex; min-height: 36px; align-items: center; }
.site-footer a:hover, .site-footer a:focus-visible { color: #fff; }
.footer-note { margin-top: 28px; color: #C4B5FD; font-size: 14px; }

/* overlay / drawer / search */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(27, 19, 64, 0.42);
    z-index: 50;
    pointer-events: none;
}
.overlay.is-on { pointer-events: auto; }

.drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    justify-content: center;
    visibility: hidden;
    pointer-events: none;
}
.drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}
.drawer-panel {
    width: min(720px, 100%);
    max-height: 78vh;
    background: #fff;
    border-radius: 28px 28px 0 0;
    transform: translateY(110%);
    transition: transform 0.28s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.drawer.is-open .drawer-panel { transform: translateY(0); }
.drawer-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}
.drawer-title { margin: 0; font-weight: 800; color: var(--title); flex: 1; }
.drawer-mark { width: 40px; height: 40px; border-radius: 12px; }
.drawer-body { overflow: auto; padding: 8px 16px 28px; }
.drawer-group { margin: 16px 0; }
.drawer-group h2 { font-size: 13px; letter-spacing: 0.08em; color: var(--muted); }
.drawer-group a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    min-height: 44px;
}
.drawer-group a strong { display: block; color: var(--title); }
.drawer-group a span { display: block; color: var(--muted); font-size: 13px; }
.drawer-group a:hover, .drawer-group a:focus-visible { color: var(--purple); }

.search-layer {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 92px;
    visibility: hidden;
    pointer-events: none;
}
.search-layer.is-open {
    visibility: visible;
    pointer-events: auto;
}
.search-card {
    width: min(640px, calc(100% - 24px));
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 20px;
    border: 1px solid var(--line);
}
.search-head { display: flex; align-items: center; justify-content: space-between; }
.search-head p { margin: 0; font-weight: 800; color: var(--title); }
.search-field input {
    width: 100%;
    min-height: 48px;
    border-radius: 999px;
    border: 1px solid var(--line);
    padding: 0 18px;
    font-size: 16px;
    background: var(--soft);
    color: var(--title);
}
.search-field input:focus { outline: 2px solid var(--lavender); }
.search-hint { color: var(--muted); font-size: 14px; }
.search-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.search-presets a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--title);
    border: 1px solid var(--line);
}
.search-presets a:hover, .search-presets a:focus-visible { border-color: var(--purple); color: var(--purple); }

.island-nav {
    display: none;
}

.page-cover, article.block {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}
.type-index, .guide-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 20px;
}
.type-index a, .guide-bar a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text);
}
.type-index a:hover, .guide-bar a:hover,
.type-index a:focus-visible, .guide-bar a:focus-visible {
    border-color: var(--purple);
    color: var(--purple);
}
.step-list { counter-reset: step; }
.step-list article { position: relative; padding-left: 56px; margin-bottom: 18px; }
.step-list article:before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #A78BFA, #14B8A6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.job-grid, .discover-grid, .clause {
    display: grid;
    gap: 14px;
}
.job-grid { grid-template-columns: repeat(2, 1fr); }
.discover-grid { grid-template-columns: repeat(3, 1fr); }
.phone-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 24px;
    align-items: center;
}

@media (max-width: 980px) {
    .brand-bar-inner {
        grid-template-columns: 48px 1fr 48px;
        width: min(1080px, calc(100% - 16px));
    }
    .bar-cluster, .search-trigger { display: none; }
    .bar-mobile-actions { display: flex; justify-content: flex-end; }
    .brand-logo { grid-column: 2; }
    .dock, .split-dir, .mosaic, .duo, .board-wall, .index-late, .phone-layout,
    .job-grid, .discover-grid, .footer-grid, .tag-rail {
        grid-template-columns: 1fr;
    }
    .mosaic article:first-child { grid-row: auto; }
    .search-layer {
        padding-top: 0;
        align-items: stretch;
    }
    .search-layer.is-open { background: #F7F4FF; }
    .search-card {
        width: 100%;
        height: 100%;
        border-radius: 0;
        padding: 20px 16px 80px;
    }
    .island-nav {
        display: flex;
        position: fixed;
        left: 50%;
        bottom: calc(12px + env(safe-area-inset-bottom));
        transform: translateX(-50%);
        width: min(520px, calc(100% - 28px));
        height: 52px;
        background: rgba(255,255,255,0.96);
        border: 1px solid var(--line);
        border-radius: 999px;
        box-shadow: var(--shadow);
        z-index: 35;
        justify-content: space-around;
        align-items: center;
        padding: 0 8px;
    }
    .island-nav a {
        color: var(--muted);
        font-size: 12px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    .island-nav a.is-current { color: var(--purple); font-weight: 700; }
    .island-nav a.is-current:after {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--purple);
        position: absolute;
        top: 6px;
    }
    .site-footer { padding-bottom: 120px; }
    main { padding-bottom: 24px; }
}

@media (max-width: 640px) {
    h1 { font-size: 28px; }
    .folder-list article { grid-template-columns: 56px 1fr; }
    .score-item { grid-template-columns: 64px 1fr; }
    .big-num { font-size: 36px; }
}
