:root {
    --bg: #F7F4FF;
    --bg-2: #FFFFFF;
    --tint: #EEF2FF;
    --card: #FFFFFF;
    --title: #1B1340;
    --text: #2F2A4A;
    --muted: #5B5678;
    --soft: #8B86A3;
    --violet: #7C3AED;
    --lilac: #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);
    --radius: 22px;
    --wrap: 1200px;
    --bar: 1080px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    line-height: 1.75;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--indigo);
    text-decoration: none;
}

a:hover {
    color: var(--violet);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(124, 58, 237, 0.45);
    outline-offset: 3px;
}

button {
    font: inherit;
}

h1, h2, h3 {
    color: var(--title);
    line-height: 1.28;
    margin: 0 0 16px;
}

h1 {
    font-size: clamp(28px, 4vw, 46px);
}

h2 {
    font-size: clamp(22px, 3vw, 30px);
}

p {
    margin: 0 0 16px;
}

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

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

.site-top {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 12px 16px 0;
}

.mobile-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    padding: 0 8px;
    background: rgba(247, 244, 255, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.brand-bar {
    display: grid;
    grid-template-columns: 44px 1fr auto 1fr 44px;
    align-items: center;
    gap: 10px;
    width: min(var(--bar), 100%);
    margin: 0 auto;
    height: 64px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.bar-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.bar-left-group { justify-content: flex-end; }
.bar-right-group { justify-content: flex-start; }

.bar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.mark-sm { width: 34px; height: 34px; }
.mark-footer { width: 48px; height: 48px; }

.brand-word {
    font-weight: 800;
    color: var(--violet);
    letter-spacing: 0.04em;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--text);
    background: transparent;
    border: 1px solid transparent;
    font-size: 14px;
    white-space: nowrap;
}

.chip:hover,
.chip.is-current {
    border-color: var(--violet);
    color: var(--violet);
    background: #F3E8FF;
}

.chip-strong {
    color: #fff;
    background: linear-gradient(135deg, #A78BFA 0%, #7C3AED 50%, #14B8A6 100%);
    border: none;
}

.chip-strong:hover {
    color: #fff;
    filter: brightness(1.05);
}

.icon-btn,
.app-chip {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--title);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.app-chip {
    width: auto;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #A78BFA 0%, #7C3AED 50%, #14B8A6 100%);
    border: none;
}

.site-main {
    padding: 28px 0 132px;
}

.hero-dock,
.panel,
.mosaic article,
.folder-item,
.faq-item,
.card,
.step,
.node,
.talk-block,
.job-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-dock {
    width: min(var(--wrap), calc(100% - 32px));
    margin: 0 auto 28px;
    padding: 32px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
}

.kicker {
    color: var(--violet);
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 13px;
    margin-bottom: 8px;
}

.lead {
    font-size: 16px;
    color: var(--muted);
    max-width: 56ch;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #A78BFA 0%, #7C3AED 50%, #14B8A6 100%);
}

.btn-primary:hover { color: #fff; }

.btn-ghost {
    color: var(--indigo);
    background: var(--tint);
    border: 1px solid var(--line);
}

.media-slot {
    border-radius: 24px;
    overflow: hidden;
    background: var(--tint);
    min-height: 220px;
}

.media-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag-rail {
    width: min(var(--wrap), calc(100% - 32px));
    margin: 0 auto 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.tag-item {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--line);
    padding: 16px 16px 14px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.dot-v { background: var(--violet); }
.dot-t { background: var(--teal); }
.dot-c { background: var(--coral); }
.dot-r { background: var(--rose); }

.tag-item h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.tag-item p {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 8px;
}

.split {
    width: min(var(--wrap), calc(100% - 32px));
    margin: 0 auto 28px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 20px;
}

.num-list a {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
}

.num {
    font-weight: 800;
    color: var(--violet);
}

.mosaic {
    width: min(var(--wrap), calc(100% - 32px));
    margin: 0 auto 28px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
}

.mosaic article {
    padding: 0;
    overflow: hidden;
}

.mosaic article:first-child {
    grid-row: 1 / span 2;
}

.mosaic .copy {
    padding: 20px;
}

.pair {
    width: min(var(--wrap), calc(100% - 32px));
    margin: 0 auto 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pair article,
.panel {
    padding: 22px;
}

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

.board-grid a {
    display: block;
    padding: 18px;
    border-radius: 20px;
    background: var(--tint);
    color: var(--text);
    min-height: 120px;
}

.board-grid a:nth-child(2),
.board-grid a:nth-child(5) {
    min-height: 160px;
}

.folder-list {
    display: grid;
    gap: 10px;
}

.folder-item {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
}

.folder-ico {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #A78BFA, #14B8A6);
}

.score-list {
    display: grid;
    gap: 12px;
}

.score-row {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--line);
    padding: 16px 18px;
}

.big-num {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.n1 { color: var(--violet); }
.n2 { color: var(--teal); }
.n3 { color: var(--coral); }
.n4 { color: var(--rose); }
.n5 { color: var(--amber); }

.timeline {
    position: relative;
    padding-left: 24px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--line);
}

.node {
    position: relative;
    margin: 0 0 14px;
    padding: 16px 18px;
}

.node::before {
    content: "";
    position: absolute;
    left: -21px;
    top: 22px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--violet);
}

.app-service {
    width: min(var(--wrap), calc(100% - 32px));
    margin: 0 auto 28px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

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

.prose {
    width: min(820px, calc(100% - 32px));
    margin: 0 auto 28px;
}

.prose p,
.article-body p {
    font-size: 16px;
    color: var(--text);
}

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

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.card {
    padding: 18px;
}

.pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--tint);
    color: var(--violet);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.index-list a,
.daily a,
.feed-item {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
}

.type-index {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 24px;
}

.type-index a {
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
}

.ep-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.ep-bar a {
    min-width: 44px;
    min-height: 44px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.reel-dir {
    display: grid;
    gap: 12px;
}

.jobs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.job-card,
.talk-block,
.step {
    padding: 20px;
}

.faq-item {
    padding: 18px 20px;
    margin-bottom: 12px;
}

.faq-item h2 {
    font-size: 18px;
}

.clause h2 {
    font-size: 20px;
    margin-top: 28px;
}

.site-footer {
    background: #1B1340;
    color: #F4F0FF;
    padding: 48px 0 120px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.footer-name {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    color: #F4F0FF;
}

.footer-en {
    margin: 0;
    color: #C4B5FD;
}

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

.site-footer h2 {
    color: #F4F0FF;
    font-size: 15px;
    margin-bottom: 10px;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer a {
    color: #DDD6FE;
    display: inline-block;
    min-height: 36px;
    padding: 4px 0;
}

.site-footer a:hover {
    color: #fff;
}

.footer-note,
.footer-copy {
    color: #C4B5FD;
    font-size: 14px;
    margin-top: 22px;
}

.dock {
    display: none;
    position: fixed;
    left: 50%;
    bottom: calc(12px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(420px, calc(100% - 32px));
    height: 52px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow);
    z-index: 45;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
}

.dock-item {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    position: relative;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dock-item.is-current {
    color: var(--violet);
    font-weight: 700;
}

.dock-item.is-current::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--violet);
    position: absolute;
    top: 6px;
}

.mask {
    position: fixed;
    inset: 0;
    background: rgba(27, 19, 64, 0.42);
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.mask.is-on {
    opacity: 1;
    pointer-events: auto;
}

.drawer {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 110%);
    width: min(720px, 100%);
    max-height: 78vh;
    background: #fff;
    border-radius: 28px 28px 0 0;
    z-index: 70;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s ease, visibility 0.28s;
    display: flex;
    flex-direction: column;
}

.drawer.is-open {
    transform: translate(-50%, 0);
    visibility: visible;
    pointer-events: auto;
}

.drawer-head {
    display: grid;
    grid-template-columns: 40px 1fr 44px;
    gap: 10px;
    align-items: center;
    padding: 16px 16px 10px;
    border-bottom: 1px solid var(--line);
}

.drawer-head span {
    display: block;
    color: var(--soft);
    font-size: 13px;
}

.drawer-body {
    overflow: auto;
    padding: 8px 16px 24px;
}

.drawer-body section {
    margin: 16px 0;
}

.drawer-body h2 {
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--soft);
}

.drawer-body a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
}

.drawer-body b {
    display: block;
    color: var(--title);
}

.drawer-body span {
    color: var(--muted);
    font-size: 13px;
}

.search-layer {
    position: fixed;
    inset: 0;
    z-index: 80;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 92px 16px 16px;
}

.search-layer.is-open {
    visibility: visible;
    pointer-events: auto;
}

.search-card {
    width: min(720px, 100%);
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    padding: 18px;
}

.search-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.search-box input {
    width: 100%;
    min-height: 48px;
    border-radius: 999px;
    border: 1px solid var(--line);
    padding: 0 18px;
    background: var(--tint);
    color: var(--title);
}

.search-hint {
    color: var(--soft);
    font-size: 13px;
    margin: 10px 0;
}

.search-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-presets a {
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--tint);
    color: var(--indigo);
    display: inline-flex;
    align-items: center;
}

body.is-locked {
    overflow: hidden;
}

.wide-figure {
    border-radius: 24px;
    overflow: hidden;
    margin: 0 0 20px;
    background: var(--tint);
    min-height: 180px;
}

.note-flag {
    display: inline-block;
    background: #F3E8FF;
    color: var(--violet);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 980px) {
    .hero-dock,
    .split,
    .pair,
    .app-service,
    .mosaic {
        grid-template-columns: 1fr;
    }
    .mosaic article:first-child {
        grid-row: auto;
    }
    .tag-rail,
    .cards,
    .board-grid,
    .footer-grid,
    .jobs {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .brand-bar .bar-group,
    .brand-bar .bar-left,
    .brand-bar .bar-right {
        display: none;
    }
    .brand-bar {
        display: none;
    }
    .mobile-bar {
        display: flex;
    }
    .site-top {
        padding-top: 10px;
    }
    .dock {
        display: grid;
    }
    .search-layer {
        padding: 0;
        background: #F7F4FF;
        align-items: stretch;
    }
    .search-card {
        width: 100%;
        min-height: 100%;
        border-radius: 0;
        border: 0;
    }
}

@media (max-width: 640px) {
    .tag-rail,
    .cards,
    .board-grid,
    .footer-grid,
    .jobs {
        grid-template-columns: 1fr;
    }
    .hero-dock,
    .panel,
    .pair article {
        padding: 20px 16px;
    }
}
