




















html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    background: var(--bg);
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 16% 12%, rgba(191, 140, 61, 0.08), transparent 30%),
        radial-gradient(circle at 90% 36%, rgba(163, 22, 32, 0.06), transparent 29%),
        var(--bg);
    color: var(--fg);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.24;
    mix-blend-mode: multiply;
}

:root[data-theme='moon'] body::before {
    mix-blend-mode: screen;
    opacity: 0.08;
}

body.dialog-open {
    overflow: hidden;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

::-moz-selection {
    color: #fff8ea;
    background: var(--red);
}

::selection {
    color: #fff8ea;
    background: var(--red);
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    left: 20px;
    top: -80px;
    z-index: 10000;
    padding: 12px 18px;
    background: var(--fg);
    color: var(--bg-soft);
    border-radius: 0 0 10px 10px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

.scroll-progress {
    position: fixed;
    z-index: 1001;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    transform-origin: left;
    background: linear-gradient(90deg, var(--gold), var(--red-bright));
}

.topbar {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 78px;
    padding-inline: max(24px, calc((100vw - 1180px) / 2));
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
    background: var(--header);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px) saturate(1.2);
}

.brand {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand__mark {
    position: relative;
    width: 42px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--red);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 9px 22px rgba(112, 14, 21, 0.18);
}

.brand__mark::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
}

.brand__mark img {
    width: 34px;
    height: 34px;
    -o-object-fit: contain;
    object-fit: contain;
}

.brand__type {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand__type strong {
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    font-size: 19px;
    letter-spacing: 0.12em;
}

.brand__type small {
    color: var(--fg-faint);
    font-size: 8px;
    letter-spacing: 0.22em;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.desktop-nav a {
    position: relative;
    padding: 10px 13px;
    color: var(--fg-soft);
    font-size: 14px;
    transition: color 0.2s ease;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 4px;
    height: 1px;
    transform: scaleX(0);
    background: var(--red);
    transition: transform 0.25s ease;
}

.desktop-nav a:hover {
    color: var(--red);
}

.desktop-nav a:hover::after {
    transform: scaleX(1);
}

.topbar__actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--card);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.icon-button:hover {
    transform: translateY(-2px);
    border-color: var(--red);
    color: var(--red);
}

.mobile-menu-button {
    display: none;
}

.button {
    min-height: 44px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 650;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button--nav {
    color: #fff8ea;
    background: var(--red);
    box-shadow: 0 10px 24px rgba(122, 14, 22, 0.16);
    font-size: 13px;
}

.button--primary {
    color: #fff8ea;
    background: linear-gradient(145deg, var(--red-bright), var(--red-deep));
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 32px rgba(111, 14, 21, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.button--primary:hover {
    box-shadow: 0 20px 40px rgba(111, 14, 21, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.button--ghost {
    color: var(--fg);
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--line-strong);
    backdrop-filter: blur(8px);
}

.button--ghost:hover {
    border-color: var(--red);
    color: var(--red);
}

.button--large {
    min-height: 52px;
    padding-inline: 24px;
    font-size: 15px;
}

.section {
    position: relative;
    padding: 120px 0;
}

.section-heading {
    max-width: 660px;
}

.section-heading--center {
    margin-inline: auto;
    text-align: center;
}

.eyebrow {
    margin-bottom: 17px;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--red);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.22em;
}

.eyebrow span {
    width: 24px;
    height: 1px;
    background: currentColor;
}

.section-heading h2 {
    margin: 0;
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.16;
    letter-spacing: -0.02em;
}

.section-heading p {
    margin: 22px 0 0;
    color: var(--fg-soft);
    font-size: 16px;
    line-height: 1.9;
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.75s cubic-bezier(.2, .8, .2, 1), transform 0.75s cubic-bezier(.2, .8, .2, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal.stagger-2 {
    transition-delay: 0.08s;
}

.reveal.stagger-3 {
    transition-delay: 0.16s;
}

.hero {
    position: relative;
    min-height: 830px;
    padding: 142px 0 92px;
    overflow: hidden;
    background:
        linear-gradient(90deg, transparent 49.9%, rgba(130, 26, 26, 0.06) 50%, transparent 50.1%),
        radial-gradient(circle at 72% 46%, rgba(196, 41, 48, 0.12), transparent 29%),
        linear-gradient(165deg, var(--bg-soft), var(--bg) 60%, var(--bg-deep));
}

/* 桌面端首屏始终完整覆盖一个视口，避免下一板块提前露出。
   采用内容居中而非单纯堆高空白，在不同高度的显示器上保持视觉平衡。 */
@media (min-width: 821px) {
    .hero {
        min-height: 100vh;
        min-height: max(830px, 100svh);
        padding: 118px 0 70px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid var(--line-strong);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 26px;
    border: 1px solid var(--line);
    pointer-events: none;
}

.hero__texture {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(30deg, transparent 24%, rgba(128, 40, 31, 0.035) 25%, rgba(128, 40, 31, 0.035) 26%, transparent 27%, transparent 74%, rgba(128, 40, 31, 0.035) 75%, rgba(128, 40, 31, 0.035) 76%, transparent 77%),
        linear-gradient(150deg, transparent 24%, rgba(128, 40, 31, 0.035) 25%, rgba(128, 40, 31, 0.035) 26%, transparent 27%, transparent 74%, rgba(128, 40, 31, 0.035) 75%, rgba(128, 40, 31, 0.035) 76%, transparent 77%);
    background-size: 46px 80px;
}

.hero__content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 48px));
    min-height: 590px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 70px;
}

.announcement {
    width: -moz-fit-content;
    width: fit-content;
    margin-bottom: 34px;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--fg-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 30px rgba(74, 25, 16, 0.04);
    backdrop-filter: blur(10px);
    font-size: 12px;
}

.announcement__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red-bright);
    box-shadow: 0 0 0 5px rgba(204, 43, 49, 0.1);
    animation: pulse 2s ease infinite;
}

.hero__kicker,
.mini-kicker {
    color: var(--red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.28em;
}

.hero h1 {
    margin: 15px 0 0;
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    font-size: clamp(48px, 5.2vw, 68px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.hero__title-line {
    display: block;
    width: -moz-max-content;
    width: max-content;
    max-width: none;
    white-space: nowrap;
}

.hero__title-line--second {
    margin-top: 0.16em;
    margin-left: clamp(28px, 4.2vw, 58px);
}

.hero h1 em {
    position: relative;
    color: var(--red);
    font-style: normal;
}

.hero h1 em::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 6px;
    opacity: 0.55;
    background: linear-gradient(90deg, var(--red), transparent 94%);
    clip-path: polygon(0 50%, 12% 20%, 30% 52%, 45% 36%, 63% 58%, 78% 31%, 100% 47%, 100% 100%, 0 100%);
}

.hero__lead {
    max-width: 650px;
    margin: 31px 0 0;
    color: var(--fg-soft);
    font-size: 17px;
    line-height: 1.95;
}

.hero__actions {
    margin-top: 38px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero__proof {
    margin-top: 50px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.hero__proof div {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.hero__proof strong {
    font-family: Georgia, serif;
    font-size: 23px;
    color: var(--red);
}

.hero__proof span {
    color: var(--fg-faint);
    font-size: 11px;
}

.hero__proof>i {
    width: 1px;
    height: 25px;
    background: var(--line);
}

.hero__visual {
    position: relative;
    min-height: 570px;
    display: grid;
    place-items: center;
}

.paper-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
}

.paper-orbit::before,
.paper-orbit::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: var(--red);
}

.paper-orbit::before {
    width: 8px;
    height: 8px;
    top: 15%;
    left: 10%;
}

.paper-orbit::after {
    width: 5px;
    height: 5px;
    right: 10%;
    bottom: 20%;
}

.paper-orbit--outer {
    width: 500px;
    height: 500px;
    border-style: dashed;
    animation: spin 46s linear infinite;
}

.paper-orbit--middle {
    width: 425px;
    height: 425px;
    border-color: rgba(163, 22, 32, 0.18);
    animation: spin-reverse 34s linear infinite;
}

.paper-orbit--inner {
    width: 345px;
    height: 345px;
    box-shadow: inset 0 0 0 16px rgba(163, 22, 32, 0.035), 0 0 0 1px var(--line);
}

.hero-seal {
    position: relative;
    z-index: 2;
    width: 275px;
    height: 275px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.2), transparent 30%),
        linear-gradient(145deg, var(--red-bright), var(--red-deep));
    box-shadow:
        0 34px 70px rgba(112, 15, 22, 0.27),
        inset 0 0 0 2px rgba(255, 255, 255, 0.28),
        inset 0 0 0 12px rgba(255, 255, 255, 0.06);
}

.hero-seal::before {
    content: '';
    position: absolute;
    inset: -14px;
    border: 2px solid var(--red);
    border-radius: 50%;
    clip-path: polygon(0 0, 48% 0, 48% 8%, 52% 8%, 52% 0, 100% 0, 100% 48%, 92% 48%, 92% 52%, 100% 52%, 100% 100%, 52% 100%, 52% 92%, 48% 92%, 48% 100%, 0 100%, 0 52%, 8% 52%, 8% 48%, 0 48%);
}

.hero-seal img {
    width: 235px;
    height: 235px;
    -o-object-fit: contain;
    object-fit: contain;
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.1));
}

.orbit-card {
    position: absolute;
    z-index: 4;
    min-width: 170px;
    padding: 13px 15px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    animation: float 5s ease-in-out infinite;
}

.orbit-card>span {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    color: var(--red);
    border-radius: 12px;
    background: var(--red-soft);
}

.orbit-card div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.orbit-card small {
    color: var(--fg-faint);
    font-size: 9px;
}

.orbit-card strong {
    font-size: 12px;
}

.orbit-card--one {
    top: 65px;
    right: -12px;
}

.orbit-card--two {
    bottom: 88px;
    left: -18px;
    animation-delay: -1.4s;
}

.orbit-card--three {
    right: 5px;
    bottom: 35px;
    animation-delay: -2.7s;
}

.seal {
    display: grid;
    place-items: center;
    color: var(--red);
    border: 2px solid currentColor;
    font-family: "Songti SC", serif;
    font-weight: 800;
    line-height: 1;
    transform: rotate(-6deg);
}

.seal::before {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px solid currentColor;
    opacity: 0.5;
}

.seal--small {
    position: relative;
    width: 48px;
    height: 48px;
    font-size: 20px;
}

.hero__stamp {
    position: absolute;
    z-index: 5;
    left: 35px;
    top: 53px;
    width: 54px;
    height: 54px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.06);
}

.hero__cloud {
    position: absolute;
    z-index: 1;
    width: 320px;
    color: rgba(163, 22, 32, 0.18);
}

.hero__cloud--left {
    left: -70px;
    bottom: 95px;
}

.hero__cloud--right {
    right: -70px;
    top: 105px;
    transform: scaleX(-1);
}

.hero__lantern {
    position: absolute;
    z-index: 1;
    top: 78px;
    width: 34px;
    height: 68px;
    color: var(--red);
    border-left: 1px solid currentColor;
    opacity: 0.27;
}

.hero__lantern::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 21px;
    width: 34px;
    height: 30px;
    border: 1px solid currentColor;
    border-radius: 45%;
    background: rgba(163, 22, 32, 0.04);
}

.hero__lantern i,
.hero__lantern span {
    position: absolute;
    left: 27px;
    width: 1px;
    background: currentColor;
}

.hero__lantern i {
    top: 15px;
    height: 7px;
}

.hero__lantern span {
    top: 50px;
    height: 18px;
}

.hero__lantern--one {
    left: 8%;
}

.hero__lantern--two {
    right: 7%;
    top: 120px;
    transform: scale(0.78);
}

.hero__bottom-pattern {
    position: absolute;
    z-index: 3;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 22px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
}

.hero__bottom-pattern span {
    background: var(--red);
    clip-path: polygon(0 100%, 0 32%, 25% 32%, 25% 0, 75% 0, 75% 32%, 100% 32%, 100% 100%, 76% 100%, 76% 70%, 24% 70%, 24% 100%);
}

.marquee {
    height: 54px;
    overflow: hidden;
    color: #fff3df;
    background: var(--red-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.marquee__track {
    width: -moz-max-content;
    width: max-content;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 42px;
    animation: marquee 28s linear infinite;
}

.marquee__track span {
    display: inline-flex;
    align-items: center;
    gap: 42px;
    font-family: "Songti SC", serif;
    font-size: 14px;
    letter-spacing: 0.16em;
    white-space: nowrap;
}

.marquee__track i {
    color: var(--gold-soft);
    font-style: normal;
}

.tools-section {
    background:
        radial-gradient(circle at 95% 12%, rgba(163, 22, 32, 0.07), transparent 22%),
        var(--bg);
}

.tool-controls {
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.category-tabs {
    padding: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
}

.category-tabs button {
    min-width: 64px;
    padding: 9px 15px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--fg-soft);
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s ease;
}

.category-tabs button:hover,
.category-tabs button.is-active {
    color: #fff7e8;
    background: var(--red);
}

.tool-search-group {
    display: flex;
    align-items: center;
    gap: 9px;
}

.search-box {
    width: 260px;
    min-height: 46px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box:focus-within {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(163, 22, 32, 0.09);
}

.search-box svg {
    color: var(--fg-faint);
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--fg);
    background: transparent;
    font-size: 13px;
}

.search-box input::-moz-placeholder {
    color: var(--fg-faint);
}

.search-box input::placeholder {
    color: var(--fg-faint);
}

.search-clear {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--fg-faint);
    background: transparent;
    cursor: pointer;
    transition: 0.2s ease;
}

.search-clear:hover {
    color: #fff;
    background: var(--red);
}

.tool-result-count {
    color: var(--red);
    font-weight: 700;
}

.favorite-filter {
    min-height: 46px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--fg-soft);
    background: var(--card);
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s ease;
}

.favorite-filter svg {
    fill: transparent;
}

.favorite-filter.is-active {
    color: var(--red);
    border-color: var(--red);
    background: var(--red-soft);
}

.favorite-filter.is-active svg {
    fill: currentColor;
}

.favorite-filter b {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--red);
    font-size: 10px;
}


.tool-view
{
    display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 18px;
}
.tool-grid__item {
    height: 100%;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.tool-card {
    position: relative;
    height: 100%;
   
    padding: 28px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 21px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 40%),
        var(--card);
    box-shadow: 0 12px 35px rgba(72, 29, 21, 0.05);
    transition: transform 0.28s cubic-bezier(.2, .8, .2, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.tool-card:not(.no-hover):hover {
    transform: translateY(-8px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.tool-card--featured::before {
    content: '推荐';
    position: absolute;
    top: 16px;
    right: -33px;
    width: 110px;
    padding: 5px 0;
    color: #fff8ea;
    background: var(--red);
    transform: rotate(42deg);
    text-align: center;
    font-size: 9px;
    letter-spacing: 0.15em;
}

.tool-card__cut {
    position: absolute;
    right: -37px;
    bottom: -38px;
    width: 135px;
    height: 135px;
    border: 1px solid rgba(163, 22, 32, 0.13);
    border-radius: 50%;
    box-shadow: inset 0 0 0 15px rgba(163, 22, 32, 0.028), inset 0 0 0 30px rgba(163, 22, 32, 0.018);
}

.tool-card__cut::before,
.tool-card__cut::after {
    content: '';
    position: absolute;
    background: rgba(163, 22, 32, 0.11);
}

.tool-card__cut::before {
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
}

.tool-card__cut::after {
    top: 50%;
    left: 0;
    height: 1px;
    width: 100%;
}

.tool-card__top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tool-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: var(--red);
    border: 1px solid rgba(163, 22, 32, 0.15);
    border-radius: 15px;
    background: var(--red-soft);
}

.tool-card__meta {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tool-card__meta>span {
    color: var(--fg-faint);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.status {
    width: -moz-fit-content;
    width: fit-content;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
}

.status--可用 {
    color: #3f702f;
    background: rgba(77, 133, 52, 0.12);
}

.status--内测 {
    color: #9b681c;
    background: rgba(191, 140, 61, 0.14);
}

.status--规划中 {
    color: var(--fg-faint);
    background: rgba(111, 93, 84, 0.1);
}

.favorite-button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    color: var(--fg-faint);
    transition: 0.2s ease;
}

.favorite-button:hover,
.favorite-button.is-active {
    color: var(--red);
    background: var(--red-soft);
}

.favorite-button.is-active svg {
    fill: currentColor;
}

.tool-card h3 {
    margin: 26px 0 0;
    font-family: "Songti SC", serif;
    font-size: 24px;
    letter-spacing: 0.01em;
}

.tool-card>p {
    margin: 13px 0 0;
    color: var(--fg-soft);
    line-height: 1.75;
    font-size: 14px;
}

.tag-row {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-row span {
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--fg-faint);
    font-size: 9px;
}

.tool-card__action {
    position: relative;
    z-index: 2;
    width: -moz-fit-content;
    width: fit-content;
    margin-top: auto;
    padding: 23px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    color: var(--red);
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 750;
}

.tool-card__action svg {
    transition: transform 0.2s ease;
}

.tool-card__action:hover svg {
    transform: translateX(4px);
}

.empty-state {
    margin-top: 30px;
    padding: 70px 20px;
    text-align: center;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    background: var(--card);
}

.empty-state>span {
    width: 55px;
    height: 55px;
    margin-inline: auto;
    display: grid;
    place-items: center;
    color: var(--red);
    border-radius: 50%;
    background: var(--red-soft);
}

.empty-state h3 {
    margin: 18px 0 8px;
    font-family: "Songti SC", serif;
    font-size: 25px;
}

.empty-state p {
    color: var(--fg-soft);
}

.empty-state button {
    margin-top: 12px;
    padding: 9px 17px;
    border: 1px solid var(--red);
    border-radius: 999px;
    color: var(--red);
    background: transparent;
    cursor: pointer;
}

.showcase-section {
    background:
        linear-gradient(90deg, var(--red-deep) 0 33%, transparent 33%),
        var(--bg-deep);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    align-items: center;
    gap: 70px;
}

.showcase-copy {
    padding: 35px 0;
    color: #fff5e5;
}

.showcase-copy .section-heading p,
.showcase-copy .eyebrow {
    color: rgba(255, 245, 229, 0.7);
}

.feature-list {
    margin: 36px 0 0;
    padding: 0;
    display: grid;
    gap: 20px;
    list-style: none;
}

.feature-list li {
    display: flex;
    gap: 15px;
}

.feature-list li>span {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.08);
}

.feature-list strong {
    display: block;
    margin-top: 1px;
    font-size: 14px;
}

.feature-list p {
    margin: 5px 0 0;
    color: rgba(255, 245, 229, 0.63);
    line-height: 1.65;
    font-size: 12px;
}

.text-link {
    margin-top: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    color: #fff5e5;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.text-link svg {
    transition: transform 0.2s ease;
}

.text-link:hover svg {
    transform: translateX(4px);
}

.showcase-workbench {
    min-width: 0;
}

.workbench {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 23px;
    background: #171514;
    box-shadow: 0 34px 90px rgba(46, 16, 12, 0.26);
    color: #f7ead8;
}

.workbench__header {
    min-height: 78px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, #29221f, #211b19);
}

.workbench__header h3 {
    margin: 5px 0 0;
    font-family: "Songti SC", serif;
    font-size: 19px;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.window-dots i:first-child {
    background: #c94a4f;
}

.window-dots i:nth-child(2) {
    background: #c69a4a;
}

.window-dots i:last-child {
    background: #658e58;
}

.workbench__body {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
}

.generator-form {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: #201b19;
}

.generator-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.generator-form label>span {
    color: rgba(247, 234, 216, 0.62);
    font-size: 10px;
    letter-spacing: 0.08em;
}

.generator-form input,
.generator-form select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    outline: 0;
    color: #fff5e5;
    background: #161311;
    font-size: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.generator-form input:focus,
.generator-form select:focus {
    border-color: #cf3d43;
    box-shadow: 0 0 0 3px rgba(207, 61, 67, 0.13);
}

.field-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-note {
    margin-top: auto;
    padding: 11px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(247, 234, 216, 0.58);
    border: 1px solid rgba(207, 61, 67, 0.16);
    border-radius: 10px;
    background: rgba(207, 61, 67, 0.06);
    font-size: 10px;
}

.form-note svg {
    color: #df6a6e;
}

.code-panel {
    min-width: 0;
    background: #141211;
}

.code-panel__bar {
    height: 44px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(247, 234, 216, 0.57);
    font-size: 10px;
}

.code-panel__bar span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.code-panel__bar span i {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #cf3d43;
}

.code-panel__bar button {
    padding: 6px 9px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    color: rgba(247, 234, 216, 0.7);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    font-size: 9px;
}

.code-panel pre {
    height: 385px;
    margin: 0;
    padding: 22px;
    overflow: auto;
    color: #d8c7af;
    font: 11px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    -moz-tab-size: 2;
    -o-tab-size: 2;
    tab-size: 2;
}

.code-panel pre::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.code-panel pre::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

.workflow-section {
    overflow: hidden;
    background: var(--bg-soft);
}

.workflow-paper {
    position: absolute;
    top: 45%;
    left: 50%;
    width: 1150px;
    height: 500px;
    transform: translate(-50%, -50%) rotate(-2deg);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 15px 18px 0 rgba(121, 55, 36, 0.035);
}

.workflow-grid {
    position: relative;
    margin-top: 65px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.workflow-card {
    position: relative;
    min-height: 280px;
    padding: 38px 31px;
    border: 1px solid var(--line);
    background: var(--card);
    box-shadow: 0 18px 44px rgba(65, 26, 19, 0.06);
}

.workflow-card::before,
.workflow-card::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: var(--red);
    opacity: 0.45;
}

.workflow-card::before {
    top: 9px;
    left: 9px;
    border-top: 1px solid;
    border-left: 1px solid;
}

.workflow-card::after {
    right: 9px;
    bottom: 9px;
    border-right: 1px solid;
    border-bottom: 1px solid;
}

.workflow-card__number {
    position: absolute;
    top: 17px;
    right: 22px;
    color: rgba(163, 22, 32, 0.1);
    font-family: "Songti SC", serif;
    font-size: 64px;
    font-weight: 800;
}

.workflow-card__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: #fff6e7;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 12px 25px rgba(139, 17, 25, 0.19);
}

.workflow-card h3 {
    margin: 27px 0 0;
    font-family: "Songti SC", serif;
    font-size: 25px;
}

.workflow-card p {
    margin: 13px 0 0;
    color: var(--fg-soft);
    font-size: 13px;
    line-height: 1.8;
}

.workflow-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: -39px;
    width: 51px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--red);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--bg-soft);
    transform: translateY(-50%);
}

.architecture-section {
    background:
        radial-gradient(circle at 20% 20%, rgba(191, 140, 61, 0.07), transparent 28%),
        var(--bg);
}

.architecture-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 70px;
    align-items: center;
}

.architecture-card {
    padding: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
}

.architecture-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
}

.architecture-card h2 {
    margin: 10px 0 0;
    font-family: "Songti SC", serif;
    font-size: 39px;
}

.architecture-card>p {
    margin: 21px 0 0;
    color: var(--fg-soft);
    line-height: 1.85;
    font-size: 14px;
}

.architecture-stack {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.architecture-stack>div {
    min-height: 74px;
    padding: 13px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.architecture-stack b {
    color: var(--red);
    font: 12px Georgia, serif;
}

.architecture-stack span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.architecture-stack strong {
    font-size: 12px;
}

.architecture-stack small {
    color: var(--fg-faint);
    font-size: 9px;
}

.architecture-diagram {
    position: relative;
    padding: 48px 38px;
    border: 1px solid var(--line-strong);
    border-radius: 50% 50% 22px 22px;
    background:
        radial-gradient(circle at 50% 10%, rgba(163, 22, 32, 0.11), transparent 33%),
        var(--bg-soft);
}

.architecture-diagram::before {
    content: '';
    position: absolute;
    inset: 11px;
    border: 1px dashed var(--line);
    border-radius: inherit;
    pointer-events: none;
}

.arch-node {
    position: relative;
    z-index: 2;
    min-height: 72px;
    padding: 14px 17px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--card);
    box-shadow: 0 12px 25px rgba(65, 26, 19, 0.06);
}

.arch-node>span {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: #fff8ea;
    border-radius: 12px;
    background: var(--red);
}

.arch-node>div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.arch-node small {
    color: var(--red);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.arch-node strong {
    font-family: "Songti SC", serif;
    font-size: 15px;
}

.arch-node--client {
    width: 74%;
    margin-inline: auto;
}

.arch-line {
    position: relative;
    width: 1px;
    height: 70px;
    margin-inline: auto;
    background: var(--line-strong);
}

.arch-line::after {
    content: '';
    position: absolute;
    left: -126px;
    bottom: 0;
    width: 252px;
    height: 1px;
    background: var(--line-strong);
}

.arch-line i {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
}

.arch-line i:first-child {
    top: 20%;
    left: -3px;
}

.arch-line i:nth-child(2) {
    top: 50%;
    left: -3px;
}

.arch-line i:last-child {
    bottom: -3px;
    left: -3px;
}

.arch-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.architecture-caption {
    position: relative;
    z-index: 2;
    margin-top: 27px;
    padding: 13px 15px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--fg-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 10px;
    line-height: 1.6;
}

.architecture-caption svg {
    flex: 0 0 auto;
    color: var(--red);
}

.roadmap-section {
    overflow: hidden;
    color: #f8ecda;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%) 0 0 / 32px 32px,
        linear-gradient(315deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%) 0 0 / 32px 32px,
        #241817;
}

.roadmap-section::before {
    content: '月';
    position: absolute;
    right: -45px;
    top: 20px;
    color: rgba(255, 255, 255, 0.025);
    font-family: "Songti SC", serif;
    font-size: 390px;
    line-height: 1;
}

.roadmap-section .section-heading p {
    color: rgba(248, 236, 218, 0.62);
}

.roadmap-section .eyebrow {
    color: #d7676b;
}

.roadmap-list {
    position: relative;
    margin-top: 65px;
}

.roadmap-item {
    min-height: 145px;
    display: grid;
    grid-template-columns: 88px 70px 1fr;
    gap: 18px;
}

.roadmap-item__index {
    padding-top: 5px;
    color: #d65a60;
    font: italic 42px Georgia, serif;
}

.roadmap-item__line {
    position: relative;
    display: flex;
    justify-content: center;
}

.roadmap-item__line::before {
    content: '';
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.14);
}

.roadmap-item:last-child .roadmap-item__line::before {
    height: 35px;
}

.roadmap-item__line i {
    position: absolute;
    top: 11px;
    width: 15px;
    height: 15px;
    border: 3px solid #251918;
    border-radius: 50%;
    background: #d65a60;
    box-shadow: 0 0 0 1px #d65a60, 0 0 0 7px rgba(214, 90, 96, 0.08);
}

.roadmap-item__content {
    padding: 0 0 46px;
}

.roadmap-item__meta {
    display: flex;
    align-items: center;
    gap: 13px;
}

.roadmap-item__meta span {
    color: rgba(248, 236, 218, 0.52);
    font-size: 10px;
    letter-spacing: 0.1em;
}

.roadmap-item__meta b {
    padding: 4px 9px;
    border: 1px solid rgba(214, 90, 96, 0.25);
    border-radius: 999px;
    color: #df777b;
    background: rgba(214, 90, 96, 0.06);
    font-size: 9px;
}

.roadmap-item h3 {
    margin: 13px 0 0;
    font-family: "Songti SC", serif;
    font-size: 25px;
}

.roadmap-item p {
    margin: 10px 0 0;
    color: rgba(248, 236, 218, 0.55);
    font-size: 13px;
    line-height: 1.7;
}

.faq-section {
    background: var(--bg-soft);
}

.faq-grid {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 80px;
    align-items: start;
}

.faq-intro {
    position: sticky;
    top: 115px;
}

.faq-note {
    margin-top: 34px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 17px;
    border: 1px solid var(--line);
    background: var(--card);
}

.faq-note p {
    margin: 0;
    color: var(--fg-soft);
    font-size: 12px;
    line-height: 1.65;
}

.accordion {
    border-top: 1px solid var(--line);
}

.accordion-item {
    border-bottom: 1px solid var(--line);
}

.accordion-item>button {
    width: 100%;
    min-height: 88px;
    padding: 0;
    display: grid;
    grid-template-columns: 48px 1fr 42px;
    align-items: center;
    gap: 15px;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.accordion-item>button>span {
    color: var(--red);
    font: 15px Georgia, serif;
}

.accordion-item>button strong {
    font-family: "Songti SC", serif;
    font-size: 18px;
}

.accordion-item>button i {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.accordion-item.is-open>button i {
    transform: rotate(90deg);
    color: #fff8e8;
    background: var(--red);
}

.accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.accordion-item.is-open .accordion-content {
    grid-template-rows: 1fr;
}

.accordion-content p {
    min-height: 0;
    margin: 0;
    padding: 0 58px 0 63px;
    overflow: hidden;
    color: var(--fg-soft);
    line-height: 1.8;
    font-size: 13px;
    transition: padding 0.35s ease;
}

.accordion-item.is-open .accordion-content p {
    padding-bottom: 28px;
}

.cta-section {
    position: relative;
    min-height: 520px;
    padding: 105px 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff4e2;
    background:
        radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.14), transparent 45%),
        linear-gradient(150deg, var(--red-bright), var(--red-deep));
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 17px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-moon {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.cta-moon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 50%;
}

.cta-moon img {
    width: 74px;
    height: 74px;
    -o-object-fit: contain;
    object-fit: contain;
}

.cta-section .mini-kicker {
    color: rgba(255, 244, 226, 0.62);
}

.cta-section h2 {
    margin: 14px 0 0;
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    font-size: clamp(37px, 5vw, 60px);
    font-weight: 500;
}

.cta-section p:not(.mini-kicker) {
    max-width: 660px;
    margin: 18px auto 0;
    color: rgba(255, 244, 226, 0.72);
    line-height: 1.8;
}

.cta-section .privacy-note {
    display: block;
    margin-top: 18px;
    color: rgba(255, 244, 226, 0.48);
    font-size: 10px;
    letter-spacing: 0.04em;
}

.cta-cut {
    position: absolute;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    box-shadow: inset 0 0 0 22px rgba(255, 255, 255, 0.018), inset 0 0 0 44px rgba(255, 255, 255, 0.012);
}

.cta-cut::before,
.cta-cut::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
}

.cta-cut::before {
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
}

.cta-cut::after {
    top: 50%;
    left: 0;
    height: 1px;
    width: 100%;
}

.cta-cut--left {
    left: -100px;
    top: 50%;
    transform: translateY(-50%);
}

.cta-cut--right {
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 760px) {
    .cta-section {
        min-height: 440px;
        padding: 84px 0;
    }

    .cta-section::before {
        inset: 10px;
    }

    .cta-cut {
        width: 210px;
        height: 210px;
        opacity: 0.7;
    }

    .cta-cut--left {
        left: -145px;
    }

    .cta-cut--right {
        right: -145px;
    }

    .cta-section h2 {
        font-size: clamp(32px, 11vw, 46px);
    }

    .cta-section p:not(.mini-kicker) {
        padding-inline: 18px;
    }
}

.footer {
    padding: 70px 0 25px;
    color: #dfd0c0;
    background: #17110f;
}

.footer__main {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 90px;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.footer__studio-logo {
    width: min(390px, 100%);
    max-height: 102px;
    -o-object-fit: contain;
    object-fit: contain;
    -o-object-position: left center;
    object-position: left center;
    filter: invert(1) sepia(0.12) brightness(1.35);
    opacity: 0.88;
}

.footer__brand p {
    margin: 0;
    color: rgba(223, 208, 192, 0.55);
    font-size: 11px;
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer__links>div {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer__links strong {
    margin-bottom: 5px;
    color: #fff3e2;
    font-size: 12px;
}

.footer__links a {
    width: -moz-fit-content;
    width: fit-content;
    color: rgba(223, 208, 192, 0.55);
    font-size: 10px;
    transition: color 0.2s ease;
}

.footer__links a:hover {
    color: #df6f73;
}

.footer__bottom {
    margin-top: 55px;
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: rgba(223, 208, 192, 0.34);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 9px;
}

.dialog-backdrop {
    position: fixed;
    z-index: 2000;
    inset: 0;
    padding: 24px;
    display: grid;
    place-items: center;
    background: rgba(20, 11, 9, 0.72);
    backdrop-filter: blur(13px);
    animation: fade-in 0.25s ease;
}

.tool-dialog {
    position: relative;
    width: min(930px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 25px;
    box-shadow: 0 45px 100px rgba(0, 0, 0, 0.42);
    animation: dialog-in 0.32s cubic-bezier(.2, .8, .2, 1);
}

.tool-dialog .workbench {
    border: 0;
    border-radius: 25px;
    box-shadow: none;
}

.dialog-close {
    position: absolute;
    z-index: 5;
    right: 18px;
    top: 18px;
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.planning-panel {
    min-height: 480px;
    padding: 80px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(circle at 50% 35%, rgba(163, 22, 32, 0.12), transparent 28%),
        var(--bg-soft);
}

.planning-panel .seal {
    margin-bottom: 20px;
}

.planning-panel h3 {
    margin: 13px 0 0;
    font-family: "Songti SC", serif;
    font-size: 35px;
}

.planning-panel>p:not(.mini-kicker) {
    max-width: 520px;
    margin: 16px 0 28px;
    color: var(--fg-soft);
    line-height: 1.8;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 5px rgba(204, 43, 49, 0.1);
    }

    50% {
        transform: scale(1.14);
        box-shadow: 0 0 0 8px rgba(204, 43, 49, 0.04);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    to {
        transform: rotate(-360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
}

@keyframes dialog-in {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(15px);
    }
}

@media (max-width: 1080px) {
    .topbar {
        grid-template-columns: 1fr auto;
    }

    .desktop-nav {
        position: fixed;
        top: 78px;
        left: 18px;
        right: 18px;
        padding: 13px;
        display: grid;
        gap: 3px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: var(--bg-soft);
        box-shadow: var(--shadow);
        transform: translateY(-15px) scale(0.98);
        opacity: 0;
        pointer-events: none;
        transition: 0.23s ease;
    }

    .desktop-nav.is-open {
        transform: translateY(0) scale(1);
        opacity: 1;
        pointer-events: auto;
    }

    .desktop-nav a {
        padding: 13px 15px;
        border-radius: 11px;
    }

    .desktop-nav a:hover {
        background: var(--red-soft);
    }

    .mobile-menu-button {
        display: grid;
    }

    .hero__content {
        grid-template-columns: 1fr 0.8fr;
        gap: 25px;
    }

    .hero__visual {
        transform: scale(0.85);
    }

    .tool-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .showcase-section {
        background: linear-gradient(180deg, var(--red-deep) 0 42%, var(--bg-deep) 42%);
    }

    .showcase-grid,
    .architecture-grid {
        grid-template-columns: 1fr;
    }

    .showcase-copy {
        max-width: 720px;
    }

    .architecture-diagram {
        max-width: 620px;
        width: 100%;
        margin-inline: auto;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .faq-intro {
        position: static;
    }
}

@media (max-width: 820px) {

    .container,
    .hero__content {
        width: min(100% - 32px, 680px);
    }

    .section {
        padding: 90px 0;
    }

    .topbar {
        height: 70px;
        padding-inline: 16px;
    }

    .desktop-nav {
        top: 70px;
    }

    .button--nav {
        display: none;
    }

    .hero {
        padding: 120px 0 70px;
    }

    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__copy {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero__lead {
        max-width: 600px;
    }

    .hero__proof {
        justify-content: center;
    }

    .hero__visual {
        min-height: 515px;
        transform: scale(0.9);
    }

    .tool-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .category-tabs {
        width: -moz-fit-content;
        width: fit-content;
    }

    .tool-search-group {
        width: 100%;
    }

    .search-box {
        width: auto;
        flex: 1;
    }

    .workflow-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-inline: auto;
    }

    .workflow-arrow {
        top: auto;
        bottom: -31px;
        right: 50%;
        transform: translateX(50%) rotate(90deg);
    }

    .architecture-card {
        padding: 30px;
    }

    .footer__main {
        grid-template-columns: 1fr;
        gap: 45px;
    }
}

@media (max-width: 620px) {

    .container,
    .hero__content {
        width: min(100% - 24px, 520px);
    }

    .brand__type small {
        display: none;
    }

    .brand__type strong {
        font-size: 16px;
    }

    .hero::before {
        inset: 8px;
    }

    .hero::after {
        inset: 13px;
    }

    .hero h1 {
        font-size: clamp(32px, 10vw, 48px);
    }

    .hero__title-line--second {
        margin-left: clamp(18px, 7vw, 34px);
    }

    .hero__lead {
        font-size: 15px;
    }

    .hero__actions {
        width: 100%;
        flex-direction: column;
    }

    .hero__actions .button {
        width: 100%;
    }

    .hero__proof {
        gap: 12px;
    }

    .hero__proof div {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .hero__visual {
        min-height: 440px;
        margin-top: -20px;
        transform: scale(0.72);
    }

    .section-heading h2 {
        font-size: 36px;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }

    .tool-search-group {
        flex-direction: column;
        align-items: stretch;
    }

    .favorite-filter {
        justify-content: center;
    }

    .category-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
    }

    .category-tabs button {
        min-width: 0;
        padding-inline: 6px;
    }

    .showcase-section {
        background: linear-gradient(180deg, var(--red-deep) 0 36%, var(--bg-deep) 36%);
    }

    .workbench__body {
        grid-template-columns: 1fr;
    }

    .generator-form {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .code-panel pre {
        height: 320px;
    }

    .architecture-stack {
        grid-template-columns: 1fr;
    }

    .architecture-diagram {
        padding: 40px 22px;
    }

    .arch-node--client {
        width: 100%;
    }

    .arch-row {
        grid-template-columns: 1fr;
    }

    .arch-line::after {
        width: 0;
    }

    .roadmap-item {
        grid-template-columns: 48px 24px 1fr;
        gap: 10px;
    }

    .roadmap-item__index {
        font-size: 23px;
    }

    .accordion-item>button {
        grid-template-columns: 36px 1fr 35px;
        gap: 10px;
    }

    .accordion-item>button strong {
        font-size: 15px;
    }

    .accordion-content p {
        padding-inline: 46px 20px;
    }

    .footer__links {
        grid-template-columns: 1fr 1fr;
    }

    .footer__bottom {
        flex-direction: column;
    }

    .dialog-backdrop {
        padding: 10px;
    }

    .tool-dialog {
        max-height: calc(100vh - 20px);
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 760px) {
    .topbar__actions .button--nav {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ============================================================
   工具页统一外壳 · 快捷导航
   ============================================================ */
.ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.ic svg { display: block; }

.tool-nav {
    position: relative;
    justify-self: center;
}
.tool-nav__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: var(--fg-soft);
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.tool-nav__trigger:hover { border-color: var(--red); color: var(--red); }
.tool-nav__trigger .ic { color: var(--red); }
.tool-nav__chevron { transition: transform 0.2s; color: var(--fg-faint); }
.tool-nav.open .tool-nav__chevron { transform: rotate(180deg); }

.tool-nav__menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 250px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 1100;
}
.tool-nav.open .tool-nav__menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.tool-nav__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--fg-soft);
    font-size: 14px;
    transition: background 0.15s, color 0.15s;
}
.tool-nav__item .ic { color: var(--red); }
.tool-nav__item:hover { background: var(--red-soft); color: var(--red); }
.tool-nav__item.is-active { background: var(--red-soft); color: var(--red); font-weight: 650; }

@media (max-width: 1080px) {
    .topbar--tool {
        grid-template-columns: 1fr auto auto;
        gap: 14px;
    }
}
@media (max-width: 560px) {
    .tool-nav__label { display: none; }
}