:root {
    --bg: #f5f7f8;
    --surface: #ffffff;
    --surface-soft: #f2f5f5;
    --text: #132126;
    --muted: #5f7077;
    --line: #dbe4e7;
    --primary: #0f766e;
    --primary-dark: #0a4d49;
    --accent: #caa76a;
    --ink: #18333a;
    --shadow: 0 18px 60px rgba(16, 34, 38, 0.08);
    --radius: 24px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 28%),
        linear-gradient(180deg, #fbfcfc 0%, var(--bg) 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

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

.hidden {
    display: none !important;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: rgba(15, 118, 110, 0.4);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(251, 252, 252, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(219, 228, 231, 0.7);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--ink), var(--primary));
    color: #fff;
    font-family: "Noto Serif SC", serif;
    font-size: 22px;
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.16);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-text strong {
    font-size: 15px;
}

.brand-text small {
    font-size: 12px;
    color: var(--muted);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus {
    color: var(--text);
}

/* 语言切换：绝对定位面板，不挤占导航布局；风格偏简洁 SaaS / Apple */
.lang-switcher {
    position: relative;
    flex-shrink: 0;
}

.lang-switcher__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 8px 15px;
    margin: 0;
    box-sizing: border-box;
    border-radius: 980px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.01em;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.lang-switcher__toggle:hover,
.lang-switcher__toggle:focus {
    color: var(--text);
    border-color: #d1d5db;
    outline: none;
}

.lang-switcher__toggle:focus-visible {
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}

/* 展开时：导航栏布局与占位不变，仅箭头旋转；按钮保持白底浅灰边 */
.lang-switcher.is-open .lang-switcher__toggle {
    color: var(--text);
    border-color: #e5e7eb;
    background: #fff;
    box-shadow: none;
}

.lang-switcher__current {
    max-width: 11em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lang-switcher__chevron {
    flex-shrink: 0;
    opacity: 0.55;
    transition: transform 0.2s ease;
}

.lang-switcher.is-open .lang-switcher__chevron {
    transform: rotate(180deg);
}

.lang-switcher__panel {
    position: absolute;
    z-index: 70;
    top: calc(100% + 6px);
    inset-inline-end: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    /* 比触发按钮略宽，不拉乱导航其它元素宽度 */
    min-width: calc(100% + 28px);
    max-width: min(320px, calc(100vw - 32px));
    max-height: min(72vh, 420px);
    overflow-y: auto;
    padding: 3px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.lang-switcher__panel[hidden] {
    display: none !important;
}

.lang-switcher__option {
    display: block;
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    color: #1f2937;
    text-decoration: none;
    transition: background 0.12s ease;
}

.lang-switcher__option:hover,
.lang-switcher__option:focus {
    background: rgba(0, 0, 0, 0.04);
    outline: none;
}

/* 当前语言：浅绿底，低调不抢眼 */
.lang-switcher__option.is-current {
    background: #e8f5f1;
    color: #0f766e;
    font-weight: 600;
}

.lang-switcher__option.is-current:hover,
.lang-switcher__option.is-current:focus {
    background: #d8efe8;
}

.nav-cta {
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--text);
    color: #fff !important;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

.hero {
    padding: 72px 0 36px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 470px);
    gap: 36px;
    align-items: start;
}

.hero-copy h1,
.section-head h2,
.trust-grid h2,
.culture-grid h2 {
    margin: 16px 0;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    font-size: clamp(42px, 7vw, 68px);
    max-width: 700px;
}

.hero-lead,
.section-head p,
.hero-copy p,
.value-section p,
.comparison-card p,
.step-card p,
.trust-item p,
.culture-grid p,
.site-footer p {
    color: var(--muted);
    line-height: 1.75;
    font-size: 16px;
}

.hero-points,
.hero-actions,
.hero-proof,
.value-cards,
.comparison-grid,
.step-grid,
.trust-list,
.blog-grid,
.analysis-grid,
.alternative-grid {
    display: grid;
}

.hero-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0;
}

.hero-points span,
.mini-card,
.step-card,
.trust-item,
.blog-card,
.sidebar-card,
.analysis-card,
.alternative-card,
.sample-card {
    border: 1px solid rgba(219, 228, 231, 0.9);
    background: rgba(255, 255, 255, 0.88);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-points span {
    padding: 16px 18px;
    font-size: 14px;
    color: var(--ink);
}

.hero-actions {
    grid-template-columns: repeat(2, max-content);
    gap: 14px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.25s ease;
    font-weight: 700;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--text), var(--primary));
    color: #fff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text);
    border-color: var(--line);
}

.btn-block {
    width: 100%;
}

.hero-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.hero-proof div {
    padding-top: 18px;
    border-top: 1px solid rgba(19, 33, 38, 0.12);
}

.hero-proof strong {
    display: block;
    font-size: 28px;
    margin-bottom: 8px;
}

.hero-proof span {
    color: var(--muted);
    font-size: 14px;
}

.generator-card,
.result-primary,
.modal-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(219, 228, 231, 0.9);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.generator-card {
    padding: 26px;
    position: sticky;
    top: 98px;
}

.card-heading h2 {
    margin: 10px 0 12px;
    font-size: 30px;
    line-height: 1.15;
}

.name-form {
    margin-top: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-full {
    grid-column: 1 / -1;
}

.field span {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}

.field em {
    color: var(--muted);
    font-style: normal;
    font-weight: 500;
}

.field input,
.field select {
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid var(--line);
    padding: 0 16px;
    background: var(--surface-soft);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus {
    border-color: rgba(15, 118, 110, 0.55);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.09);
}

.field small {
    font-size: 12px;
    color: var(--muted);
}

.checkbox-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.checkbox-field input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: var(--primary);
}

.field-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.45;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 12px;
}

.tag-row button,
.tag,
.style-chip {
    border: 1px solid rgba(15, 118, 110, 0.16);
    background: rgba(15, 118, 110, 0.07);
    color: var(--primary-dark);
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
}

.inline-note {
    min-height: 22px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #bf5a35;
}

section {
    padding: 44px 0;
}

.value-grid,
.culture-grid,
.trust-grid,
.result-layout {
    display: grid;
    gap: 24px;
}

.value-grid,
.culture-grid,
.trust-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
}

.value-cards,
.trust-list,
.analysis-grid,
.alternative-grid,
.sample-grid,
.blog-grid {
    gap: 18px;
}

.value-section,
.process-section,
.trust-section,
.culture-section,
.sample-section,
.comparison-section,
.faq-section,
.blog-section {
    position: relative;
}

.value-section::before,
.process-section::before,
.trust-section::before,
.culture-section::before,
.sample-section::before,
.comparison-section::before,
.faq-section::before,
.blog-section::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: min(var(--container), calc(100% - 32px));
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(19, 33, 38, 0.08), transparent);
}

.value-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-card,
.step-card,
.trust-item,
.blog-card,
.sidebar-card,
.analysis-card,
.alternative-card,
.sample-card {
    padding: 22px;
}

.mini-card strong,
.step-card strong,
.trust-item h3,
.sample-card h3,
.analysis-card h3,
.alternative-card h3 {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
}

.section-head {
    text-align: center;
    margin-bottom: 28px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.left-align {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.sample-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sample-card h3,
.name-cn {
    font-family: "Noto Serif SC", serif;
}

.sample-card .sample-pinyin,
.name-pinyin {
    font-weight: 700;
    color: var(--primary);
}

.comparison-grid,
.step-grid,
.blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.comparison-grid {
    align-items: stretch;
}

.comparison-card {
    position: relative;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(219, 228, 231, 0.9);
    box-shadow: var(--shadow);
}

.comparison-card h3 {
    margin: 14px 0 12px;
    font-size: 26px;
}

.comparison-card-featured {
    background: linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(255, 255, 255, 0.95));
}

.comparison-badge,
.badge-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(202, 167, 106, 0.14);
    color: #855c18;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.comparison-card ul,
.premium-list,
.sidebar-card ul {
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.9;
}

.culture-panel {
    display: grid;
    gap: 18px;
}

.step-card,
.sample-card,
.comparison-card,
.trust-item,
.culture-panel > div,
.blog-card {
    height: 100%;
}

.step-card {
    position: relative;
    padding-top: 68px;
}

.step-card strong {
    font-size: 20px;
}

.step-card::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 22px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(202, 167, 106, 0.24));
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.08);
}

.culture-panel > div {
    background: rgba(255, 255, 255, 0.86);
    border-radius: 24px;
    border: 1px solid rgba(219, 228, 231, 0.88);
    padding: 22px;
}

.sample-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.sample-card h3 {
    margin: 0;
    font-size: 34px;
}

.sample-card p {
    margin: 0;
}

.comparison-card ul {
    margin: 0 0 22px;
}

.trust-grid > article,
.culture-grid > div:first-child,
.value-grid > article {
    position: sticky;
    top: 108px;
}

.trust-item h3,
.culture-panel strong {
    color: var(--ink);
}

.faq-list {
    max-width: 880px;
    margin: 0 auto;
}

.culture-panel strong {
    display: block;
    margin-bottom: 8px;
    font-size: 17px;
}

.result-section {
    background: linear-gradient(180deg, rgba(15, 118, 110, 0.04), rgba(255, 255, 255, 0));
}

.result-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
}

.result-primary {
    padding: 28px;
}

.result-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.result-actions {
    display: flex;
    gap: 10px;
}

.icon-button {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}

.icon-button.active {
    background: rgba(15, 118, 110, 0.12);
    border-color: rgba(15, 118, 110, 0.3);
    color: var(--primary-dark);
}

.name-hero {
    padding: 24px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(255, 255, 255, 0.86)),
        #fff;
    border: 1px solid rgba(15, 118, 110, 0.12);
}

.name-cn {
    font-size: clamp(42px, 6vw, 58px);
    margin: 0 0 6px;
}

.pronunciation {
    margin: 10px 0 0;
    font-size: 15px;
    color: var(--muted);
}

.name-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.info-panel {
    padding: 20px;
    border-radius: 20px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.info-panel h3,
.sidebar-card h3,
.modal-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.info-panel p,
.info-panel li,
.sidebar-card p,
.analysis-card p,
.alternative-card p,
.sample-card p,
.blog-card span,
.faq-answer {
    color: var(--muted);
    line-height: 1.75;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 0;
}

.sidebar-card {
    margin-bottom: 18px;
}

.premium-highlight {
    background: linear-gradient(180deg, rgba(202, 167, 106, 0.14), rgba(255, 255, 255, 0.94));
}

.analysis-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 22px;
}

.alternative-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.name-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-item {
    border-radius: 22px;
    border: 1px solid rgba(219, 228, 231, 0.9);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 22px;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--text);
    font-weight: 700;
}

.faq-answer {
    padding: 0 22px 22px;
}

.blog-card strong {
    display: block;
    min-height: 74px;
    line-height: 1.5;
}

.site-footer {
    padding: 28px 0 60px;
    border-top: 1px solid rgba(219, 228, 231, 0.9);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: start;
}

.footer-links {
    display: grid;
    gap: 12px;
    min-width: 160px;
}

.footer-links a {
    color: var(--muted);
}

.loading-overlay,
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
}

.loading-backdrop,
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 20, 22, 0.74);
    backdrop-filter: blur(8px);
}

.loading-panel,
.modal-card {
    position: relative;
    z-index: 1;
    width: min(520px, calc(100% - 32px));
    margin: 0 auto;
}

.loading-panel {
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    padding: 34px 28px;
    background: linear-gradient(180deg, rgba(24, 51, 58, 0.96), rgba(10, 25, 27, 0.98));
    color: #ecf5f3;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.loading-panel-bazi {
    width: min(760px, calc(100% - 24px));
    padding: 24px 20px 20px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top, rgba(210, 171, 93, 0.2), transparent 28%),
        linear-gradient(180deg, rgba(49, 21, 18, 0.97), rgba(15, 8, 7, 0.98));
    border: 1px solid rgba(234, 204, 147, 0.14);
}

.loading-copy {
    max-width: 540px;
    margin: 0 auto;
}

.compass-loader {
    position: relative;
    width: 176px;
    height: 176px;
    margin: 0 auto 18px;
}

.compass-ring,
.compass-pointer,
.compass-core {
    position: absolute;
    inset: 0;
    margin: auto;
}

.compass-ring {
    width: 176px;
    height: 176px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(circle at center, rgba(202, 167, 106, 0.12), transparent 56%),
        conic-gradient(from 0deg, rgba(255, 255, 255, 0.04), rgba(202, 167, 106, 0.35), rgba(255, 255, 255, 0.04));
    animation: rotate 4s linear infinite;
}

.compass-ring::before,
.compass-ring::after {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.compass-ring::after {
    inset: 36px;
}

.compass-pointer {
    width: 18px;
    height: 130px;
    transform-origin: center center;
    animation: rotate-reverse 4s linear infinite;
}

.compass-pointer::before,
.compass-pointer::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
}

.compass-pointer::before {
    top: 0;
    border-bottom: 64px solid rgba(202, 167, 106, 0.96);
}

.compass-pointer::after {
    bottom: 0;
    border-top: 64px solid rgba(15, 118, 110, 0.92);
}

.compass-core {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.09);
}

.loading-kicker {
    color: rgba(255, 255, 255, 0.68);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
}

.loading-panel h3 {
    margin: 12px 0;
    font-size: 30px;
}

.loading-sub {
    color: rgba(236, 245, 243, 0.7);
    font-size: 14px;
    line-height: 1.7;
}

.loading-progress {
    height: 8px;
    border-radius: 999px;
    margin-top: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.09);
}

.loading-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(202, 167, 106, 0.55), rgba(93, 201, 189, 0.95));
    transition: width 0.5s ease;
}

.lunpan-shell {
    position: relative;
    margin: 22px auto 18px;
    width: 220px;
    height: 220px;
}

.lunpan-stage {
    width: 170px;
    height: 170px;
    margin: 0 auto;
    position: relative;
    top: 25px;
}

.lunpan-disc,
.lunpan-pointer,
.lunpan-core {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: center center;
}

.lunpan-disc {
    width: 170px;
    height: 170px;
    margin-left: -85px;
    margin-top: -85px;
    border-radius: 50%;
    border: 2px solid rgba(228, 183, 94, 0.88);
    background:
        radial-gradient(circle at center, rgba(58, 19, 16, 0.82) 0%, rgba(23, 8, 7, 0.96) 58%, rgba(6, 3, 3, 1) 100%),
        conic-gradient(from 0deg, rgba(228, 183, 94, 0.55), rgba(128, 42, 21, 0.38), rgba(228, 183, 94, 0.55));
    box-shadow:
        0 0 0 8px rgba(255, 255, 255, 0.04),
        inset 0 0 30px rgba(228, 183, 94, 0.18),
        0 14px 36px rgba(0, 0, 0, 0.4);
    animation: rotate 4s linear infinite;
}

.lunpan-disc::before,
.lunpan-disc::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 1px solid rgba(228, 183, 94, 0.2);
}

.lunpan-disc::after {
    inset: 30px;
}

.lunpan-pointer {
    width: 20px;
    height: 140px;
    margin-left: -10px;
    margin-top: -70px;
    animation: rotate-reverse 4s linear infinite;
}

.lunpan-pointer::before,
.lunpan-pointer::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.lunpan-pointer::before {
    top: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 72px solid rgba(228, 183, 94, 0.96);
}

.lunpan-pointer::after {
    bottom: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 68px solid rgba(129, 31, 17, 0.92);
}

.lunpan-core {
    width: 16px;
    height: 16px;
    margin-left: -8px;
    margin-top: -8px;
    border-radius: 50%;
    background: #f8ead1;
    box-shadow: 0 0 0 6px rgba(248, 234, 209, 0.12);
}

.bazi-loading-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 10px;
    text-align: left;
}

.bazi-loading-card {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 250, 243, 0.06);
    border: 1px solid rgba(239, 208, 147, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.bazi-loading-label {
    display: block;
    margin-bottom: 10px;
    color: rgba(247, 225, 184, 0.76);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bazi-loading-birth {
    font-size: 22px;
    font-weight: 700;
    color: #fff6e6;
}

.bazi-loading-mini {
    margin-top: 8px;
    color: rgba(255, 239, 214, 0.72);
    font-size: 14px;
    line-height: 1.7;
}

.bazi-pillars {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.bazi-pillars span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(116, 33, 20, 0.9), rgba(45, 13, 10, 0.96));
    border: 1px solid rgba(231, 189, 102, 0.2);
    color: #fff2d2;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.wuxing-bars {
    display: grid;
    gap: 10px;
}

.wuxing-row {
    display: grid;
    grid-template-columns: 32px 1fr 26px;
    gap: 10px;
    align-items: center;
}

.wuxing-row strong,
.wuxing-row em {
    color: #fff2d2;
    font-style: normal;
    font-size: 14px;
}

.wuxing-track {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.wuxing-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(231, 189, 102, 0.88), rgba(167, 44, 25, 0.98));
}

.modal-card {
    top: 50%;
    transform: translateY(-50%);
    padding: 28px;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    cursor: pointer;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(18px);
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(19, 33, 38, 0.92);
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
    z-index: 120;
    font-size: 14px;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.simple-page {
    min-height: 100vh;
}

.simple-hero {
    padding: 84px 0;
}

.simple-hero .section-head {
    text-align: left;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@media (max-width: 1100px) {
    .hero-grid,
    .value-grid,
    .culture-grid,
    .trust-grid,
    .result-layout,
    .footer-grid,
    .bazi-loading-grid {
        grid-template-columns: 1fr;
    }

    .generator-card {
        position: static;
    }

    .trust-grid > article,
    .culture-grid > div:first-child,
    .value-grid > article {
        position: static;
    }

    .analysis-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 16px;
        left: 16px;
        padding: 18px;
        border-radius: 24px;
        border: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
        display: none;
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav.is-open {
        display: flex;
    }

    .lang-switcher {
        width: 100%;
        align-self: stretch;
    }

    .lang-switcher__toggle {
        width: 100%;
        justify-content: space-between;
    }

    .lang-switcher__panel {
        inset-inline-start: 0;
        inset-inline-end: 0;
        min-width: unset;
        max-width: none;
        width: auto;
    }

    .hero-points,
    .sample-grid,
    .comparison-grid,
    .step-grid,
    .blog-grid,
    .alternative-grid,
    .value-cards {
        grid-template-columns: 1fr;
    }

    .name-body,
    .form-grid,
    .hero-proof,
    .analysis-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        grid-template-columns: 1fr;
    }

    .step-card {
        padding-top: 58px;
    }
}

@media (max-width: 560px) {
    .hero {
        padding-top: 36px;
    }

    .generator-card,
    .result-primary,
    .mini-card,
    .step-card,
    .trust-item,
    .blog-card,
    .sidebar-card,
    .analysis-card,
    .alternative-card,
    .sample-card,
    .comparison-card,
    .culture-panel > div {
        border-radius: 22px;
    }

    .name-cn {
        font-size: 40px;
    }

    .loading-panel h3 {
        font-size: 24px;
    }

    .loading-panel-bazi {
        padding: 22px 14px 16px;
    }

    .lunpan-shell {
        width: 190px;
        height: 190px;
        margin: 18px auto 14px;
    }

    .lunpan-stage {
        transform: scale(0.88);
        transform-origin: top center;
        top: 14px;
    }

    .bazi-loading-birth {
        font-size: 18px;
    }

    .bazi-pillars span {
        min-height: 46px;
        font-size: 18px;
    }
}
