:root {
  --ink: #20233a;
  --muted: #5d6078;
  --paper: #ffffff;
  --mist: #f6f6fb;
  --line: #dedff0;
  --lilac: #6854aa;
  --lilac-dark: #4e3a8b;
  --lilac-soft: #eeeafb;
  --aqua: #77d9dc;
  --aqua-soft: #e6f8f8;
  --rail: min(1180px, calc(100% - 48px));
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--mist);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--mist); line-height: 1.72; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.page-rail, .header-rail, .hero-rail { width: var(--rail); margin: 0 auto; }

.header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-rail { min-height: 70px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.identity { justify-self: start; display: inline-flex; align-items: center; gap: 10px; font-size: 1.16rem; font-weight: 850; }
.identity img { width: 42px; height: 42px; border-radius: 50%; }
.navigation { display: flex; align-items: center; gap: 8px; padding: 5px; background: var(--mist); border: 1px solid var(--line); border-radius: 999px; }
.navigation a { padding: 7px 15px; color: var(--muted); border-radius: 999px; font-size: .87rem; font-weight: 700; }
.navigation a:hover, .navigation .current { color: #fff; background: var(--lilac); }
.header-actions { justify-self: end; display: flex; gap: 8px; }
.header-actions a { padding: 8px 14px; border-radius: 999px; font-size: .84rem; font-weight: 760; }
.header-actions .ios { color: var(--lilac-dark); border: 1px solid #bdb5de; }
.header-actions .android { color: #fff; background: var(--lilac-dark); }
.menu { display: none; }

.hero { overflow: hidden; background: radial-gradient(circle at 76% 18%, rgba(119,217,220,.35), transparent 29%), linear-gradient(130deg, #fff 0%, #f5f2fc 64%, #eefafa 100%); border-bottom: 1px solid var(--line); }
.hero-rail { min-height: 610px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr); grid-template-areas: "text visual"; align-items: center; gap: 70px; padding: 38px 0 44px; }
.hero-text { grid-area: text; }
.micro-title, .section-label > span, .guide-intro span, .faq-intro span, .download-panel span, .guide-end span, .faq-guide-link span { color: var(--lilac); font-size: .72rem; font-weight: 850; letter-spacing: .14em; }
.hero h1 { max-width: 650px; margin: 14px 0 19px; font-size: clamp(2.7rem, 5vw, 4.65rem); line-height: 1.06; letter-spacing: -.05em; }
.hero-text > p { max-width: 620px; margin: 0; color: var(--muted); font-size: 1.05rem; }
.hero-buttons, .guide-actions, .faq-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 27px; }
.primary-button, .secondary-button, .download-white, .download-outline { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 22px; border-radius: 999px; font-weight: 780; line-height: 1.2; transition: transform .2s ease; }
.primary-button:hover, .secondary-button:hover, .download-white:hover, .download-outline:hover { transform: translateY(-2px); }
.primary-button { color: #fff; background: var(--lilac-dark); box-shadow: 0 10px 24px rgba(78,58,139,.18); }
.secondary-button { color: var(--lilac-dark); background: #fff; border: 1px solid #c4bce2; }
.style-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.style-pills span { padding: 6px 11px; color: #4d5268; background: rgba(255,255,255,.8); border: 1px solid var(--line); border-radius: 999px; font-size: .79rem; }
.hero-visual { grid-area: visual; position: relative; min-height: 520px; display: flex; align-items: center; justify-content: center; }
.hero-visual > img { width: 230px; max-width: 400px; height: auto; border: 10px solid #fff; border-radius: 30px; box-shadow: 0 24px 56px rgba(45,43,78,.2); }
.visual-orbit { position: absolute; top: 54px; left: 10px; display: flex; flex-direction: column; width: 105px; padding: 14px; color: var(--lilac-dark); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 30px rgba(45,43,78,.1); }
.visual-orbit span { color: var(--aqua); font-weight: 900; }
.visual-orbit b { font-size: .67rem; letter-spacing: .09em; }
.visual-legend { position: absolute; right: 5px; bottom: 66px; display: grid; gap: 4px; width: 165px; padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 30px rgba(45,43,78,.1); }
.visual-legend b { color: var(--lilac-dark); }
.visual-legend span { color: var(--muted); font-size: .77rem; }

.style-lab, .interface-strip, .making-path, .faq-peek, .related-pages { padding: 86px 0; }
.style-lab { background: #fff; }
.section-label { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.section-label > span { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--lilac); border-radius: 50%; }
.section-label h2, .related-grid h2, .download-panel h2, .guide-end h2, .faq-guide-link h2 { margin: 0; font-size: clamp(1.9rem, 3vw, 2.75rem); line-height: 1.2; letter-spacing: -.03em; }
.style-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.style-tabs button, .faq-categories button { padding: 8px 16px; color: var(--muted); background: var(--mist); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.style-tabs .active, .faq-categories .active { color: #fff; background: var(--lilac); border-color: var(--lilac); }
.style-panels { min-height: 330px; }
.style-panels article { display: none; min-height: 330px; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 60px; padding: 44px; background: linear-gradient(125deg, var(--lilac-soft), var(--aqua-soft)); border: 1px solid var(--line); border-radius: 28px; }
.style-panels article.active { display: grid; }
.style-panels article > span { color: var(--lilac); font-size: .7rem; font-weight: 850; letter-spacing: .13em; }
.style-panels h3 { grid-column: 1; margin: 8px 0 12px; font-size: 2rem; line-height: 1.25; }
.style-panels p { grid-column: 1; margin: 0; color: var(--muted); }
.style-panels ul { grid-column: 2; grid-row: 1 / 4; margin: 0; padding: 0; list-style: none; }
.style-panels li { padding: 15px 0; border-bottom: 1px solid rgba(104,84,170,.2); font-weight: 750; }

.interface-strip { color: #fff; background: #252743; }
.section-label-light > span { color: var(--ink); background: var(--aqua); }
.section-label-light h2 { color: #fff; }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 24px; }
.strip-card { margin: 0; }
.image-window { height: 430px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13); border-radius: 24px; }
.image-window img { width: auto; max-width: 400px; height: 390px; object-fit: cover; object-position: top; border-radius: 22px 22px 0 0; }
.strip-editor .image-window { height: 500px; }
.strip-editor .image-window img { height: 460px; }
.strip-style .image-window { height: 390px; }
.strip-style .image-window img { height: 350px; }
.strip-card figcaption { display: flex; flex-direction: column; align-items: center; margin-top: 15px; }
.strip-card figcaption span { color: #bfc2d5; font-size: .8rem; }

.making-path { background: #fff; }
.path-grid { display: grid; grid-template-columns: 300px 1fr; gap: 70px; }
.path-grid ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.path-grid li { display: grid; grid-template-columns: 46px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.path-grid li > span { width: 36px; height: 36px; display: grid; place-items: center; color: var(--lilac-dark); background: var(--lilac-soft); border-radius: 50%; font-weight: 850; }
.path-grid h3, .path-grid p { margin: 0; }
.path-grid p { margin-top: 4px; color: var(--muted); }

.faq-peek { background: var(--mist); }
.faq-peek-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.faq-peek details, .note-list details { padding: 19px 21px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
summary { cursor: pointer; font-weight: 780; }
.faq-peek p, .note-list p { margin: 12px 0 0; color: var(--muted); }
.arrow-link { display: inline-flex; margin-top: 24px; color: var(--lilac-dark); font-weight: 850; }

.related-pages { background: #fff; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.related-grid a { min-height: 270px; display: flex; flex-direction: column; justify-content: space-between; padding: 34px; background: var(--lilac-soft); border: 1px solid var(--line); border-radius: 28px; }
.related-grid a + a { background: var(--aqua-soft); }
.related-grid span { color: var(--lilac); font-size: .7rem; font-weight: 850; letter-spacing: .13em; }
.related-grid div { color: var(--muted); }
.related-grid b { color: var(--lilac-dark); }

.download-panel { padding: 62px 0; color: #fff; background: var(--lilac-dark); }
.download-rail, .guide-end > .page-rail, .faq-guide-link > .page-rail { display: flex; align-items: center; justify-content: space-between; gap: 46px; }
.download-panel span { color: #c8f0f1; }
.download-panel h2, .guide-end h2, .faq-guide-link h2 { margin-top: 7px; }
.download-panel .download-rail > div:first-child > div { color: #ddd8ee; }
.download-panel .download-rail > div:last-child { display: flex; gap: 10px; }
.download-white { color: var(--lilac-dark); background: #fff; }
.download-outline { color: #fff; border: 1px solid rgba(255,255,255,.6); }
.footer { padding: 28px 0; color: #686b82; background: #fff; border-top: 1px solid var(--line); text-align: center; font-size: .82rem; }
.footer p { margin: 3px 0; }

.guide-intro, .faq-intro { background: linear-gradient(125deg, var(--lilac-soft), var(--aqua-soft)); border-bottom: 1px solid var(--line); }
.guide-intro-rail, .faq-intro > .page-rail { min-height: 330px; display: flex; align-items: center; justify-content: space-between; gap: 60px; padding: 52px 0; }
.guide-intro h1, .faq-intro h1 { max-width: 800px; margin: 12px 0 16px; font-size: clamp(2.3rem, 4.5vw, 4rem); line-height: 1.1; letter-spacing: -.04em; }
.guide-intro p, .faq-intro p { max-width: 760px; margin: 0; color: var(--muted); }
.guide-actions { flex: 0 0 auto; margin-top: 0; }
.guide-layout { display: grid; grid-template-columns: 220px minmax(0, 850px); justify-content: space-between; gap: 70px; padding: 70px 0 90px; }
.guide-map { position: sticky; top: 100px; align-self: start; display: grid; gap: 8px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.guide-map strong { margin-bottom: 7px; }
.guide-map a { color: var(--muted); font-size: .87rem; }
.guide-map a:hover { color: var(--lilac); }
.guide-article > section { scroll-margin-top: 100px; padding: 0 0 58px; margin-bottom: 58px; border-bottom: 1px solid var(--line); }
.guide-number { color: var(--lilac); font-size: .75rem; font-weight: 850; letter-spacing: .12em; }
.guide-article h2 { margin: 9px 0 18px; font-size: 2rem; }
.guide-article p { color: #4d5068; }
.guide-article a { color: var(--lilac-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.guide-note { display: flex; flex-direction: column; gap: 4px; margin-top: 22px; padding: 20px; background: var(--aqua-soft); border-left: 4px solid var(--aqua); }
.guide-figure { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 24px; margin: 26px 0 0; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.guide-figure img { width: 180px; max-width: 400px; height: auto; border-radius: 18px; }
.guide-figure figcaption { color: var(--muted); }
.guide-end { padding: 56px 0; background: #fff; border-top: 1px solid var(--line); }
.guide-end .page-rail > div:last-child { display: flex; gap: 10px; }

.faq-intro > .page-rail { align-items: flex-start; flex-direction: column; justify-content: center; }
.faq-actions { margin-top: 22px; }
.faq-notes { padding: 66px 0 88px; }
.faq-categories { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-status { margin: 18px 0 22px; color: var(--muted); font-size: .84rem; }
.note-list { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.note-list details { background: #fff; }
.note-list summary { display: flex; gap: 12px; }
.note-list summary span { color: var(--lilac); }
.faq-guide-link { padding: 54px 0; background: var(--aqua-soft); }
.faq-guide-link a { color: var(--lilac-dark); font-weight: 850; }

@media (max-width: 980px) {
  .header-rail { grid-template-columns: 1fr auto auto; }
  .hero-rail { grid-template-columns: 1fr 400px; gap: 35px; }
  .strip-grid { gap: 14px; }
  .image-window { height: 370px; }
  .image-window img { height: 340px; }
  .strip-editor .image-window { height: 430px; }
  .strip-editor .image-window img { height: 400px; }
}

@media (max-width: 800px) {
  :root { --rail: min(100% - 32px, 680px); }
  .header-rail { min-height: 64px; grid-template-columns: 1fr auto; }
  .identity img { width: 40px; height: 40px; }
  .menu { display: inline-flex; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; }
  .navigation { position: absolute; top: 63px; left: 16px; right: 16px; display: none; flex-direction: column; align-items: stretch; padding: 12px; background: #fff; border-radius: 18px; box-shadow: 0 16px 36px rgba(32,35,58,.16); }
  .navigation.open { display: flex; }
  .navigation a { text-align: center; }
  .header-actions { display: none; }
  .hero-rail { min-height: auto; grid-template-columns: 1fr; grid-template-areas: "text" "visual"; gap: 18px; padding: 32px 0 30px; }
  .hero-text { order: 1; }
  .hero-visual { order: 2; min-height: 300px; max-width: 450px; margin: 0 auto; }
  .hero h1 { font-size: clamp(2.3rem, 10vw, 3.4rem); }
  .hero-visual > img { width: 142px; border-width: 7px; border-radius: 22px; }
  .visual-orbit { top: 20px; left: 4px; width: 92px; }
  .visual-legend { right: 0; bottom: 25px; width: 145px; }
  .style-lab, .interface-strip, .making-path, .faq-peek, .related-pages { padding: 64px 0; }
  .style-panels article, .path-grid, .faq-peek-grid, .related-grid, .note-list { grid-template-columns: 1fr; }
  .style-panels article { gap: 22px; padding: 28px; }
  .style-panels ul { grid-column: 1; grid-row: auto; }
  .strip-grid { grid-template-columns: 1fr; gap: 38px; }
  .image-window, .strip-editor .image-window, .strip-style .image-window { height: 360px; }
  .image-window img, .strip-editor .image-window img, .strip-style .image-window img { height: 330px; }
  .path-grid { gap: 25px; }
  .download-rail, .guide-intro-rail, .guide-end > .page-rail, .faq-guide-link > .page-rail { align-items: flex-start; flex-direction: column; }
  .guide-actions { margin-top: 18px; }
  .guide-layout { grid-template-columns: 1fr; gap: 30px; }
  .guide-map { position: static; grid-template-columns: 1fr 1fr; }
  .guide-map strong { grid-column: span 2; }
}

@media (max-width: 500px) {
  :root { --rail: calc(100% - 28px); }
  .hero h1, .guide-intro h1, .faq-intro h1 { font-size: 2.25rem; }
  .hero-visual { min-height: 285px; width: 100%; }
  .hero-visual > img { width: 132px; }
  .visual-orbit { top: 25px; width: 80px; padding: 11px; }
  .visual-legend { bottom: 22px; width: 132px; padding: 12px; }
  .style-panels h3 { font-size: 1.55rem; }
  .guide-map { grid-template-columns: 1fr; }
  .guide-map strong { grid-column: auto; }
  .guide-figure { grid-template-columns: 1fr; }
  .guide-figure img { margin: 0 auto; }
  .download-panel .download-rail > div:last-child, .guide-end .page-rail > div:last-child { flex-wrap: wrap; }
}
