:root {
    --bg: #f6f0e5;
    --bg-soft: #fbf8f2;
    --card: #ffffff;
    --gold: #b88235;
    --gold-dark: #8a5a1f;
    --black-gold: #171310;
    --text: #251d15;
    --muted: #74685c;
    --border: #e4d4bc;
    --border-strong: rgba(184, 130, 53, 0.28);
    --shadow-soft: 0 10px 28px rgba(40, 28, 15, 0.06);
    --shadow-strong: 0 22px 44px rgba(40, 28, 15, 0.12);
    --font-sans: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
    --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.75), transparent 26%),
        radial-gradient(circle at 86% 12%, rgba(205, 164, 106, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(246, 240, 229, 0.92) 180px, rgba(246, 240, 229, 0.98)),
        linear-gradient(90deg, rgba(230, 216, 195, 0.16) 1px, transparent 1px),
        linear-gradient(180deg, rgba(230, 216, 195, 0.16) 1px, transparent 1px),
        var(--bg);
    background-size: auto, auto, auto, 48px 48px, 48px 48px, auto;
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.5;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.55), transparent 32%),
        radial-gradient(circle at 20% 78%, rgba(184, 130, 53, 0.06), transparent 26%);
    content: "";
}

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 260px;
    align-items: center;
    min-height: 74px;
    padding: 0 32px;
    border-bottom: 1px solid rgba(230, 216, 195, 0.82);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(252, 249, 243, 0.9));
    box-shadow: 0 8px 28px rgba(43, 33, 24, 0.08);
    backdrop-filter: blur(16px);
}

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

.brand-lockup {
    display: block;
    width: 164px;
    max-width: 100%;
    height: 52px;
    object-fit: contain;
    object-position: left center;
}

.brand-lockup-home {
    width: 192px;
    height: 56px;
}

.brand-mark-image {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex: 0 0 auto;
}

.brand-mark-image-home {
    width: 52px;
    height: 52px;
    filter: drop-shadow(0 6px 14px rgba(31, 35, 43, 0.12));
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 2px solid #c99a55;
    border-radius: 50%;
    background:
        radial-gradient(circle, #fff8e8 0 24%, #c99a55 25% 29%, transparent 30%),
        conic-gradient(from 0deg, #463322, #d5a967, #463322, #d5a967, #463322);
    color: #f0c174;
    font-size: 23px;
    line-height: 1;
}

.brand strong {
    display: block;
    font-size: 24px;
    line-height: 1.05;
    letter-spacing: 0;
    font-family: var(--font-display);
}

.brand em {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    letter-spacing: 0;
}

.brand-home .brand-mark {
    width: 52px;
    height: 52px;
}

.brand-home {
    gap: 12px;
}

.brand-home-copy {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.brand-mark-home {
    position: relative;
    border: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.96) 0 50%, rgba(218, 218, 218, 0.9) 52%, rgba(255, 255, 255, 0.95) 62%, transparent 63%),
        linear-gradient(145deg, #fefefe, #d7d7d7);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -8px 14px rgba(31, 35, 43, 0.12),
        0 10px 24px rgba(31, 35, 43, 0.18);
}

.brand-mark-home::before {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 28%, #f6d090 0 10%, transparent 11%),
        radial-gradient(circle at 50% 72%, #1f232b 0 10%, transparent 11%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.14), transparent 60%),
        linear-gradient(145deg, #171b22, #20252d 42%, #bb8f4e 58%, #e0b76f 100%);
    box-shadow:
        inset 0 2px 10px rgba(255, 255, 255, 0.2),
        inset 0 -8px 14px rgba(0, 0, 0, 0.22);
    content: "";
}

.brand-mark-home::after {
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(176, 138, 74, 0.45);
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    content: "";
}

.brand-home strong {
    color: #1F232B;
    font-size: 28px;
    letter-spacing: 0.02em;
    font-family: var(--font-display);
}

.brand-home em {
    color: #B08A4A;
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: none;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    min-width: 0;
    color: #3f362d;
    font-size: 16px;
    font-weight: 600;
}

.top-nav a {
    position: relative;
    white-space: nowrap;
    transition: color 0.18s ease, transform 0.18s ease;
}

.top-nav a:hover {
    color: var(--gold-dark);
    transform: translateY(-1px);
}

.top-nav a.active {
    color: var(--gold);
}

.top-nav a.active::after {
    position: absolute;
    right: -8px;
    bottom: -16px;
    left: -8px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(184, 130, 53, 0.1), var(--gold), rgba(184, 130, 53, 0.1));
    content: "";
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.mobile-menu-toggle,
.mobile-nav-panel {
    display: none;
}

.icon-button {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: var(--gold-dark);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.18s ease, color 0.18s ease;
}

.icon-button:hover {
    transform: translateY(-1px);
    color: var(--text);
}

.login-link {
    color: #4d433a;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.18s ease, transform 0.18s ease;
}

.login-link:hover {
    color: var(--gold-dark);
    transform: translateY(-1px);
}

.member-button,
.primary-action,
.promo-card a,
.hero-home-primary,
.hero-home-secondary,
.hero-home-resume,
.content-back,
.promo-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #d9aa5b 0%, #b88235 54%, #9c6929 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 18px rgba(184, 130, 53, 0.28), inset 0 1px rgba(255, 236, 190, 0.5);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.member-button {
    height: 38px;
    padding: 0 18px;
}

.auth-user-badge {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(184, 130, 53, 0.22);
    border-radius: 999px;
    background: rgba(255, 248, 236, 0.92);
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.mobile-menu-toggle {
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(184, 130, 53, 0.26);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 242, 229, 0.96));
    box-shadow: 0 8px 18px rgba(43, 33, 24, 0.08);
    cursor: pointer;
}

.mobile-menu-toggle span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    border-radius: 999px;
    background: var(--gold-dark);
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 13px;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 20px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 27px;
}

.mobile-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 12px;
    left: 12px;
    z-index: 60;
    padding: 14px;
    border: 1px solid rgba(184, 130, 53, 0.22);
    border-radius: 12px;
    background: #F7F3EA;
    box-shadow: 0 18px 38px rgba(43, 33, 24, 0.14);
}

.mobile-nav-panel.is-open {
    display: grid;
    gap: 14px;
}

.mobile-nav {
    display: grid;
    gap: 6px;
}

.mobile-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

.mobile-nav a.active {
    background: rgba(184, 130, 53, 0.1);
    color: var(--gold-dark);
}

.mobile-menu-footer {
    display: grid;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(230, 216, 195, 0.9);
}

.mobile-menu-footer .login-link,
.mobile-menu-footer .member-button,
.mobile-menu-footer .auth-user-badge {
    justify-content: center;
    width: 100%;
    min-height: 40px;
}

.mobile-menu-footer .login-link {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(184, 130, 53, 0.2);
    border-radius: 8px;
    background: #fff;
}

.page-shell {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px 42px;
}

.qimen-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
}

.hero-banner {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 104px;
    margin-bottom: 28px;
    padding: 22px 42px 18px 172px;
    overflow: hidden;
    border: 1px solid rgba(197, 146, 76, 0.45);
    border-radius: 10px;
    background:
        radial-gradient(circle at 19% 55%, rgba(244, 203, 126, 0.26), transparent 12%),
        radial-gradient(circle at 72% 50%, rgba(184, 130, 53, 0.25), transparent 18%),
        repeating-radial-gradient(ellipse at 45% 34%, rgba(219, 170, 95, 0.18) 0 1px, transparent 1px 8px),
        repeating-linear-gradient(154deg, rgba(184, 130, 53, 0.12) 0 1px, transparent 1px 13px),
        linear-gradient(105deg, #100d0a 0%, var(--black-gold) 45%, #15100c 100%);
    color: #efd2a0;
    box-shadow:
        inset 0 1px rgba(255, 221, 158, 0.14),
        inset 0 -18px 60px rgba(0, 0, 0, 0.4),
        0 12px 26px rgba(43, 33, 24, 0.12);
}

.hero-banner::before {
    position: absolute;
    top: -46px;
    left: 26px;
    width: 118px;
    height: 118px;
    border: 1px solid rgba(238, 198, 126, 0.3);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(241, 199, 121, 0.22) 0 18%, transparent 19%),
        conic-gradient(from 18deg, transparent 0 8%, rgba(241, 199, 121, 0.16) 8% 10%, transparent 10% 18%);
    box-shadow: 0 0 42px rgba(184, 130, 53, 0.2);
    content: "";
}

.hero-banner::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(100deg, transparent 0 32%, rgba(255, 226, 172, 0.09) 43%, transparent 58%),
        radial-gradient(ellipse at 94% 20%, rgba(237, 188, 107, 0.13), transparent 28%);
    content: "";
}

.hero-banner-home {
    align-items: center;
    min-height: 228px;
    padding: 28px 34px;
    border: 1px solid rgba(176, 138, 74, 0.22);
    background:
        radial-gradient(circle at 12% 18%, rgba(176, 138, 74, 0.08), transparent 16%),
        radial-gradient(circle at 86% 20%, rgba(31, 35, 43, 0.06), transparent 18%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 245, 242, 0.98));
    color: #1F232B;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 18px 40px rgba(31, 35, 43, 0.08);
}

.hero-banner-home::before,
.hero-banner-home::after {
    content: none;
}

.hero-home-copy {
    max-width: 560px;
}

.hero-home-eyebrow {
    margin: 0 0 10px;
    color: #B08A4A;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.hero-banner.hero-banner-home h1 {
    margin: 0;
    position: relative;
    z-index: 1;
    color: #1F232B;
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.12;
    text-shadow: none;
}

.hero-home-subtitle {
    max-width: 500px;
    margin: 14px 0 0;
    color: rgba(31, 35, 43, 0.78);
    font-size: 16px;
    line-height: 1.7;
}

.hero-home-actions {
    display: flex;
    gap: 14px;
    margin-top: 22px;
    flex-wrap: wrap;
}

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

.hero-home-proof-item {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid rgba(176, 138, 74, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 20px rgba(31, 35, 43, 0.05);
}

.hero-home-proof-item strong {
    color: #1f232b;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero-home-proof-item span {
    color: rgba(31, 35, 43, 0.72);
    font-size: 12px;
    line-height: 1.55;
}

.hero-home-primary,
.hero-home-secondary,
.hero-home-resume {
    min-width: 122px;
    min-height: 44px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 800;
}

.hero-home-primary {
    background: linear-gradient(135deg, #bb9756, #9f7638);
    color: #F7F5F2;
    box-shadow: 0 14px 24px rgba(176, 138, 74, 0.24);
}

.hero-home-secondary {
    border: 1px solid rgba(31, 35, 43, 0.12);
    background: rgba(255, 255, 255, 0.88);
    color: #1F232B;
    box-shadow: 0 10px 22px rgba(31, 35, 43, 0.08);
}

.hero-home-resume {
    border: 1px solid rgba(176, 138, 74, 0.24);
    background: rgba(255, 248, 235, 0.92);
    color: #9f7638;
    box-shadow: 0 10px 22px rgba(176, 138, 74, 0.1);
}

.hero-home-primary:hover,
.hero-home-secondary:hover,
.hero-home-resume:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(31, 35, 43, 0.12);
}

.hero-home-mark {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex: 0 0 292px;
    max-width: 292px;
}

.hero-home-seal {
    position: relative;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.98) 0 52%, rgba(217, 217, 217, 0.92) 54%, rgba(255, 255, 255, 0.98) 64%, transparent 65%),
        linear-gradient(145deg, #ffffff, #d7d7d7);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.96),
        inset 0 -10px 18px rgba(31, 35, 43, 0.14),
        0 22px 34px rgba(31, 35, 43, 0.14);
}

.hero-home-seal-core {
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 28%, #f5d28f 0 10%, transparent 11%),
        radial-gradient(circle at 50% 72%, #1f232b 0 10%, transparent 11%),
        linear-gradient(150deg, #1a1e25 0 44%, #bb904f 56%, #e2ba74 100%);
    box-shadow:
        inset 0 2px 12px rgba(255, 255, 255, 0.16),
        inset 0 -10px 16px rgba(0, 0, 0, 0.22);
}

.hero-home-seal-ring {
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(176, 138, 74, 0.45);
    border-radius: 50%;
}

.hero-home-branding strong {
    display: block;
    color: #1F232B;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: 0.04em;
    font-family: var(--font-display);
}

.hero-home-branding span {
    display: inline-block;
    margin-top: 6px;
    color: #B08A4A;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

.home-feature-card {
    border: 1px solid rgba(176, 138, 74, 0.18);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 245, 242, 0.98));
    box-shadow: var(--shadow-soft);
}

.home-feature-card {
    padding: 16px 18px 14px;
    min-height: 132px;
}

.home-feature-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(176, 138, 74, 0.12);
    color: #B08A4A;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.home-feature-card h2 {
    margin: 12px 0 8px;
    color: #1F232B;
    font-size: 18px;
    line-height: 1.25;
    font-family: var(--font-display);
}

.home-feature-card p {
    margin: 0;
    color: rgba(31, 35, 43, 0.76);
    font-size: 14px;
    line-height: 1.7;
}

.hero-banner h1 {
    margin: 0;
    position: relative;
    z-index: 1;
    color: #ffe2ac;
    font-family: Georgia, "Microsoft YaHei", serif;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 0;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.28), 0 0 20px rgba(231, 181, 99, 0.38);
}

.hero-banner > div:first-child {
    flex: 1 1 auto;
    min-width: 260px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    row-gap: 10px;
    flex: 0 1 720px;
    max-width: 720px;
    margin-left: auto;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.hero-points {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    font-size: 15px;
    font-weight: 700;
}

.hero-dream-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(184, 130, 53, 0.28);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 242, 231, 0.94));
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 800;
    font-family: inherit;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(43, 33, 24, 0.08);
}

button.hero-dream-link {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(184, 130, 53, 0.28);
    cursor: default;
}

.hero-dream-link-placeholder {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 238, 225, 0.88));
}

.hero-points span::before {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: 0 auto 5px;
    border: 1px solid rgba(239, 210, 160, 0.8);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(246, 216, 158, 0.16) 0 48%, transparent 49%),
        linear-gradient(180deg, rgba(255, 231, 181, 0.14), rgba(184, 130, 53, 0.04));
    color: #f4d394;
    font-size: 21px;
    line-height: 1;
    box-shadow: inset 0 0 12px rgba(239, 210, 160, 0.16), 0 0 18px rgba(184, 130, 53, 0.2);
    content: "□";
}

.hero-points span:nth-child(2)::before {
    content: "✓";
}

.hero-points span:nth-child(3)::before {
    content: "冊";
}

.hero-points span:nth-child(4)::before {
    content: "◇";
}

.workspace-grid,
.qimen-main-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 300px;
    grid-template-areas: "left center right";
    gap: 20px;
    align-items: start;
    justify-content: stretch;
}

.left-column,
.right-column,
.center-column,
.info-stack {
    display: grid;
    gap: 16px;
}

.workspace-grid > .left-column,
.qimen-main-grid > .qimen-left-column {
    grid-area: left;
    grid-column: 1;
    min-width: 0;
    width: 280px;
}

.workspace-grid > .center-column,
.qimen-main-grid > .qimen-center-column {
    grid-area: center;
    grid-column: 2;
    min-width: 0;
    width: 100%;
}

.workspace-grid > .right-column,
.qimen-main-grid > .qimen-right-column {
    grid-area: right;
    grid-column: 3;
    min-width: 0;
    width: 300px;
}

.tool-card,
.result-card,
.tabs-card,
.side-card,
.info-panel {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card);
    box-shadow: var(--shadow-soft);
}

.card-title {
    padding: 13px 18px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fffefd, #f8f0e3);
    color: var(--gold-dark);
    font-size: 17px;
    font-weight: 800;
    font-family: var(--font-display);
}

.pan-form {
    display: grid;
    gap: 13px;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(251, 247, 239, 0.6));
}

.pan-form label {
    display: grid;
    gap: 6px;
    margin: 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.pan-form label span,
.switch-row span:first-child {
    color: var(--text);
}

.field-label {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.field-note {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
}

.pan-form input,
.pan-form select {
    width: 100%;
    height: 40px;
    border: 1px solid #dcc8ac;
    border-radius: 12px;
    background:
        linear-gradient(180deg, #fff, #fffaf3);
    color: var(--text);
    padding: 0 12px;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(43, 33, 24, 0.04);
}

.pan-form input:focus,
.pan-form select:focus {
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(184, 130, 53, 0.13), inset 0 1px 2px rgba(43, 33, 24, 0.04);
}

.switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 32px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.switch {
    position: relative;
    width: 42px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, #d5a152, var(--gold-dark));
    box-shadow: inset 0 1px 2px rgba(55, 35, 14, 0.24), 0 2px 6px rgba(184, 130, 53, 0.2);
}

.switch::after {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(180deg, #fff, #f6ead7);
    box-shadow: 0 1px 3px rgba(43, 33, 24, 0.25);
    content: "";
}

.check-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    font-size: 13px;
}

.check-grid label {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 4px 6px;
    border: 1px solid #eadbc5;
    border-radius: 5px;
    background: rgba(255, 252, 247, 0.78);
    font-weight: 600;
}

.check-grid input {
    width: auto;
    height: auto;
    accent-color: var(--gold);
}

.primary-action {
    width: 100%;
    height: 50px;
    font-size: 17px;
    letter-spacing: 0.02em;
    box-shadow: 0 14px 26px rgba(184, 130, 53, 0.32), inset 0 1px rgba(255, 236, 190, 0.54);
}

.primary-action:hover,
.member-button:hover,
.promo-card a:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 13px 24px rgba(184, 130, 53, 0.32), inset 0 1px rgba(255, 236, 190, 0.55);
}

.promo-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #e5b15f, #c9882f);
    color: #fff7ea;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 26px rgba(184, 130, 53, 0.32), inset 0 1px rgba(255, 236, 190, 0.54);
}

.form-tip {
    margin: 0;
    color: #b26a5e;
    font-size: 12px;
    line-height: 1.6;
}

.compact-card {
    padding-bottom: 8px;
}

.quick-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
}

.quick-tools a,
.quick-tools button,
.hot-tools a {
    display: flex;
    align-items: center;
    min-height: 38px;
    color: var(--text);
    font-weight: 700;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.quick-tools a::before,
.quick-tools button::before,
.hot-tools a::before {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-right: 8px;
    border-radius: 8px;
    background: #f4eadb;
    color: var(--gold);
    content: "□";
}

.result-card {
    overflow: hidden;
}

.result-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

.result-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.result-head h2 {
    margin: 0 0 8px;
    color: var(--gold-dark);
    font-size: 18px;
    line-height: 1.2;
    font-family: var(--font-display);
}

.result-head p {
    margin: 4px 0 0;
    color: #4b4036;
    font-size: 14px;
}

.result-meta-mobile {
    display: none;
}

.result-head span,
.result-head strong {
    margin-left: 12px;
}

.result-meta-card {
    border: 1px solid rgba(226, 205, 169, 0.92);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 244, 233, 0.98));
    box-shadow: 0 10px 22px rgba(143, 105, 44, 0.06);
    padding: 12px 14px;
}

.result-meta-card h3 {
    margin: 0 0 10px;
    color: var(--gold-dark);
    font-size: 14px;
    line-height: 1.2;
}

.result-meta-card dl {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px 10px;
    margin: 0;
    color: #4a4036;
    font-size: 13px;
}

.result-meta-card dt {
    color: var(--muted);
    font-weight: 700;
}

.result-meta-card dd {
    min-width: 0;
    margin: 0;
    font-weight: 700;
    word-break: break-word;
}

.share-button {
    flex: 0 0 auto;
    height: 34px;
    padding: 0 14px;
    border: 1px solid #cdb89b;
    border-radius: 4px;
    background: #fff;
    color: var(--gold-dark);
    font-weight: 700;
    cursor: pointer;
}

.result-back-link {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border: 1px solid #e2cda9;
    border-radius: 4px;
    background: linear-gradient(180deg, #fff, #f8f1e6);
    color: var(--gold-dark);
    font-weight: 700;
    white-space: nowrap;
}

.result-empty-state {
    margin: 0 16px 16px;
    padding: 22px 18px;
    border: 1px dashed rgba(184, 130, 53, 0.34);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(249, 241, 228, 0.96));
}

.result-empty-state h3 {
    margin: 0 0 8px;
    color: var(--gold-dark);
    font-size: 18px;
}

.result-empty-state p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.pattern-alert {
    margin: 0 16px 16px;
    padding: 14px 16px 15px;
    border: 1px solid #c56b5c;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(249, 231, 228, 0.98), rgba(242, 213, 209, 0.98)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0));
    box-shadow:
        0 14px 26px rgba(140, 73, 66, 0.14),
        inset 0 1px rgba(255, 255, 255, 0.62);
    color: #5d2f2c;
}

.pattern-alert.is-partial {
    background:
        linear-gradient(135deg, rgba(246, 232, 206, 0.98), rgba(238, 220, 186, 0.98)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0));
}

.pattern-alert.is-full {
    border-color: #bd5348;
    background:
        linear-gradient(135deg, rgba(248, 224, 220, 0.98), rgba(235, 197, 192, 0.98)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0));
    box-shadow:
        0 16px 30px rgba(162, 72, 64, 0.16),
        inset 0 1px rgba(255, 255, 255, 0.58);
}

.pattern-alert-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}

.pattern-alert-eyebrow {
    color: #9f4a45;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.pattern-alert strong {
    color: #8f2f29;
    font-size: 18px;
    font-weight: 800;
}

.pattern-alert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.pattern-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border: 1px solid rgba(174, 100, 91, 0.34);
    border-radius: 999px;
    color: #714642;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 244, 242, 0.78);
}

.pattern-badge.is-active {
    border-color: rgba(186, 78, 68, 0.92);
    background: linear-gradient(135deg, #efb6b1, #d96e63);
    color: #4a1f1c;
    box-shadow: 0 8px 16px rgba(186, 78, 68, 0.2);
}

.pattern-alert p {
    margin: 10px 0 0;
    color: #603734;
    font-size: 14px;
    line-height: 1.75;
}

.result-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 16px;
    padding: 16px;
    min-width: 0;
}

.result-body-empty {
    align-items: stretch;
    grid-template-columns: 1fr;
    padding: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 246, 236, 0.98));
}

.result-body-empty .info-stack-empty {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qimen-pan {
    min-width: 0;
}

.pan-outer {
    width: 100%;
}

.qimen-pan,
.result-card,
.tabs-card,
.tool-card,
.side-card,
.info-panel {
    min-width: 0;
}

.pan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0;
    width: 100%;
    max-width: 504px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
    background: #fff;
}

.pan-grid.is-empty {
    position: relative;
    max-width: none;
    border-radius: 12px;
    border-top-color: rgba(198, 166, 117, 0.52);
    border-left-color: rgba(198, 166, 117, 0.52);
    background:
        radial-gradient(circle at 50% 50%, rgba(214, 173, 108, 0.07), transparent 46%),
        linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(249, 243, 232, 0.98));
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.88),
        0 18px 34px rgba(43, 33, 24, 0.07);
}

.pan-grid.is-empty .gong {
    cursor: default;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(251, 246, 236, 0.95));
    opacity: 0.82;
}

.pan-grid.is-empty .gong.is-placeholder {
    border-right-style: dashed;
    border-bottom-style: dashed;
    border-color: rgba(205, 183, 149, 0.45);
}

.pan-grid.is-empty .gong::before,
.pan-grid.is-empty .gong::after {
    display: none;
}

.pan-grid.is-empty .gong:hover,
.pan-grid.is-empty .gong:focus-visible,
.pan-grid.is-empty .gong:active {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
}

.pan-grid.is-empty .gong:nth-child(5) {
    background:
        radial-gradient(circle at 50% 50%, rgba(184, 130, 53, 0.05), transparent 45%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 241, 230, 0.94));
    opacity: 0.9;
}

.pan-empty-hint {
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: 1;
    display: grid;
    place-items: center;
    gap: 5px;
    min-width: 204px;
    padding: 15px 20px;
    border: 1px solid rgba(184, 130, 53, 0.24);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 253, 249, 0.94), rgba(248, 241, 229, 0.94));
    box-shadow: 0 14px 28px rgba(43, 33, 24, 0.09), inset 0 1px rgba(255, 255, 255, 0.7);
    transform: translate(-50%, -50%);
    pointer-events: none;
    text-align: center;
}

.pan-empty-hint strong {
    color: var(--gold-dark);
    font-size: 18px;
    line-height: 1.1;
}

.pan-empty-hint span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.gong {
    position: relative;
    min-width: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    isolation: isolate;
    transition:
        background 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease,
        border-color 160ms ease;
}

.gong::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 225, 164, 0.9), transparent 34%),
        linear-gradient(135deg, #fffaf0 0%, #fff 46%, #f6e5c8 100%);
    transition: opacity 160ms ease;
    content: "";
}

.gong::after {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: grid;
    place-items: center;
    z-index: 2;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(184, 130, 53, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.68);
    color: var(--gold-dark);
    font-size: 14px;
    font-weight: 800;
    opacity: 0;
    transform: translateY(4px) scale(0.9);
    transition: opacity 160ms ease, transform 160ms ease;
    content: "›";
}

.gong:hover,
.gong:focus-visible {
    z-index: 2;
    border-color: #d2a660;
    background: #fffaf1;
    box-shadow:
        0 14px 24px rgba(111, 75, 31, 0.16),
        inset 0 0 0 2px rgba(184, 130, 53, 0.26),
        inset 0 1px rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    outline: none;
}

.gong:hover::before,
.gong:focus-visible::before {
    opacity: 1;
}

.gong:hover::after,
.gong:focus-visible::after {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gong:active {
    box-shadow:
        0 6px 12px rgba(111, 75, 31, 0.13),
        inset 0 2px 8px rgba(111, 75, 31, 0.16),
        inset 0 0 0 2px rgba(184, 130, 53, 0.32);
    transform: translateY(0) scale(0.985);
}

.gong.zhifu .gong-jiuxing,
.gong.zhishi .gong-bamen {
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-underline-offset: 3px;
}

.gong-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    grid-template-rows: repeat(4, 1fr);
    grid-template-areas:
        "gong-dizhi gong-bashen gong-tianganfang"
        "gong-dizhi2 gong-jiuxing gong-tianganfang2"
        "gong-gongname2 gong-bamen gong-tiangan"
        "gong-gongname gong-number gong-dipan";
    width: 100%;
    height: 100%;
    padding: 6px;
}

.gong-dizhi,
.gong-dizhi2,
.gong-tianganfang,
.gong-tianganfang2,
.gong-bashen,
.gong-bamen,
.gong-jiuxing,
.gong-tiangan,
.gong-gongname,
.gong-gongname2,
.gong-number,
.gong-dipan {
    display: flex;
    align-items: center;
    min-width: 0;
    font-size: 17px;
    line-height: 1.1;
}

.gong-dizhi { grid-area: gong-dizhi; justify-content: flex-start; color: #9b9084; }
.gong-dizhi2 { grid-area: gong-dizhi2; visibility: hidden; }
.gong-bashen { grid-area: gong-bashen; justify-content: center; font-weight: 800; }
.gong-tianganfang { grid-area: gong-tianganfang; justify-content: flex-end; gap: 2px; }
.gong-tianganfang2 { grid-area: gong-tianganfang2; visibility: hidden; }
.gong-bamen { grid-area: gong-bamen; justify-content: center; font-weight: 900; font-size: 18px; }
.gong-jiuxing { grid-area: gong-jiuxing; justify-content: center; font-weight: 900; font-size: 18px; white-space: nowrap; }
.gong-tiangan { grid-area: gong-tiangan; justify-content: flex-end; font-weight: 800; }
.gong-gongname { grid-area: gong-gongname; align-items: flex-end; justify-content: flex-start; color: var(--gold-dark); font-weight: 800; }
.gong-gongname2 { grid-area: gong-gongname2; visibility: hidden; }
.gong-number { grid-area: gong-number; align-items: flex-end; justify-content: center; color: #8e7d6b; font-size: 14px; }
.gong-dipan { grid-area: gong-dipan; align-items: flex-end; justify-content: flex-end; font-weight: 800; color: var(--gold-dark); }

.gong-dialog {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.gong-dialog.is-open {
    display: flex;
}

.gong-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(27, 23, 18, 0.46);
    backdrop-filter: blur(5px);
}

.gong-dialog-card {
    position: relative;
    width: min(92vw, 460px);
    max-height: min(86vh, 720px);
    overflow: auto;
    border: 1px solid rgba(230, 216, 195, 0.95);
    border-radius: 12px;
    background:
        radial-gradient(circle at 88% 8%, rgba(255, 220, 154, 0.26), transparent 28%),
        linear-gradient(180deg, #fffdfa, #fff8ef);
    box-shadow:
        0 26px 70px rgba(27, 23, 18, 0.28),
        inset 0 1px rgba(255, 255, 255, 0.9);
    padding: 22px;
    transform: translateY(10px) scale(0.98);
    animation: gongDialogIn 180ms ease forwards;
}

.gong-dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 1px solid #e3cfb1;
    border-radius: 50%;
    background: #fff;
    color: var(--gold-dark);
    font-size: 22px;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(111, 75, 31, 0.08);
}

.gong-dialog-eyebrow {
    margin: 0 0 6px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.gong-dialog-card h2 {
    margin: 0 38px 16px 0;
    color: var(--text);
    font-size: 24px;
    line-height: 1.2;
}

.gong-dialog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gong-dialog-grid div,
.gong-dialog-explain {
    border: 1px solid #ead8bd;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.9);
}

.gong-dialog-grid div {
    min-height: 66px;
    padding: 10px;
}

.gong-dialog-combo-note {
    grid-column: 1 / -1;
}

.gong-dialog-grid span,
.gong-dialog-explain span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.gong-dialog-grid strong {
    display: block;
    margin-top: 5px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.35;
    word-break: break-word;
}

.gong-dialog-explain {
    margin-top: 12px;
    padding: 12px;
}

.gong-dialog-explain p {
    margin: 6px 0 0;
    color: #44382d;
    font-size: 14px;
    line-height: 1.7;
}

@keyframes gongDialogIn {
    to {
        transform: translateY(0) scale(1);
    }
}

.circle-mark {
    display: inline-grid;
    place-items: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    color: #241a12;
    font-size: 12px;
    font-weight: 800;
}

.yellow-circle { background: #f3cf6d; }
.grey-circle { background: #ddd6ca; }
.green-circle { background: #4b9a5f; color: #fff; }

.gong-tiangan.tianpan-boxed {
    border: 2px solid currentColor;
    border-radius: 3px;
    padding: 1px 4px;
}

.pan-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.info-stack {
    gap: 14px;
}

.info-panel {
    padding: 14px;
}

.info-panel-empty {
    background: linear-gradient(180deg, #fffdfb, #fbf7ef);
    box-shadow: none;
}

.info-panel-empty dt,
.info-panel-empty dd {
    color: var(--muted);
    opacity: 0.92;
}

.info-panel h3 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 16px;
}

.info-panel dl {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 6px 8px;
    margin: 0;
    color: #4a4036;
    font-size: 14px;
}

.info-panel dt {
    color: var(--muted);
    font-weight: 700;
}

.info-panel dd {
    min-width: 0;
    margin: 0;
    word-break: break-word;
}

.tabs-card {
    position: relative;
    overflow: hidden;
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.tabs button {
    flex: 0 0 auto;
    min-width: 112px;
    height: 42px;
    border: 0;
    border-right: 1px solid var(--border);
    background: #fff;
    color: #4a4036;
    font-weight: 800;
    cursor: pointer;
}

.tabs button.active {
    background: linear-gradient(180deg, #f8efe1, #f2e4d0);
    color: var(--gold-dark);
    box-shadow: inset 0 -2px 0 var(--gold);
}

.tab-content {
    padding: 18px 20px;
    color: #3f362d;
    font-size: 15px;
}

.tab-panel {
    padding: 14px 18px 18px;
    color: #3f362d;
    font-size: 15px;
}

.tab-panel[hidden] {
    display: none !important;
}

.tab-content h3 {
    margin: 0 0 10px;
    color: var(--gold-dark);
    font-size: 17px;
}

.tab-panel h3 {
    margin: 0 0 10px;
    color: var(--gold-dark);
    font-size: 17px;
}

.tab-panel > p {
    margin: 0 0 10px;
    line-height: 1.7;
}

.tab-panel > p:last-of-type {
    margin-bottom: 0;
}

.tab-content ul {
    margin: 10px 0 0;
    padding-left: 20px;
}

.tab-panel ul {
    margin: 10px 0 0;
    padding-left: 20px;
}

.ai-warning {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #c95b4c;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(248, 226, 222, 0.98), rgba(241, 210, 204, 0.98));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.7);
}

.ai-warning.is-blocked {
    background: linear-gradient(135deg, rgba(255, 236, 232, 0.98), rgba(246, 214, 206, 0.98));
    border-color: #c25b4f;
}

.ai-warning span {
    display: inline-block;
    margin-bottom: 6px;
    color: #8f2f29;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.ai-warning p {
    margin: 0;
    color: #5b2a25;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
}

.ai-warning .ai-warning-note {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #6b3a33;
}

.ai-warning-preview {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.95fr);
    gap: 0;
    margin-top: 12px;
    padding: 0;
    border: 1px solid rgba(222, 205, 182, 0.95);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(249, 244, 236, 0.98));
    box-shadow: 0 14px 32px rgba(85, 58, 24, 0.08);
    overflow: hidden;
}

.ai-warning-preview-main {
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 24px 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(253, 250, 245, 0.98));
}

.ai-warning-preview-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-warning-preview-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0 !important;
    border-radius: 50%;
    border: 1px solid rgba(206, 75, 56, 0.18);
    background: linear-gradient(180deg, rgba(255, 246, 243, 0.98), rgba(253, 236, 229, 0.98));
    color: #b23628 !important;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 10px 18px rgba(199, 83, 66, 0.08);
}

.ai-warning-preview-heading span:last-child {
    margin-bottom: 0;
    color: #a52d1f;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.ai-warning-preview-main p {
    color: #2f221a;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.65;
}

.ai-warning-preview-main .ai-warning-note {
    padding-top: 2px;
    color: #6c5a4c;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.75;
}

.ai-warning-preview.bazi-ai-warning-compact {
    grid-template-columns: 1fr;
    margin-top: 8px;
}

.ai-warning-preview.bazi-ai-warning-compact .ai-warning-preview-main {
    gap: 10px;
    padding: 18px 20px 16px;
}

.ai-warning-preview.bazi-ai-warning-compact .ai-warning-preview-heading {
    gap: 10px;
}

.ai-warning-preview.bazi-ai-warning-compact .ai-warning-preview-main p {
    font-size: 16px;
    line-height: 1.7;
}

.ai-warning-preview.bazi-ai-warning-compact .ai-warning-preview-main .ai-warning-note {
    padding-top: 0;
    font-size: 14px;
    line-height: 1.7;
}

.ai-warning-preview-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px !important;
    padding-top: 14px;
    border-top: 1px solid rgba(214, 197, 177, 0.85);
    color: #b23628 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.ai-warning-preview-hint span {
    margin: 0 !important;
    color: inherit !important;
    font-size: 13px;
    letter-spacing: 0.08em;
}

.ai-warning-preview-side {
    display: grid;
    gap: 14px;
    align-content: center;
    justify-items: center;
    padding: 28px 22px;
    background:
        radial-gradient(circle at top, rgba(255, 245, 240, 0.98), rgba(249, 241, 231, 0.96) 58%, rgba(246, 237, 226, 0.96)),
        #fbf5ee;
    border-left: 1px solid rgba(227, 214, 196, 0.95);
    text-align: center;
}

.ai-warning-preview-lock {
    display: inline-flex;
    width: 70px;
    height: 70px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 249, 247, 0.98), rgba(248, 228, 220, 0.96));
    color: #b72f22;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 24px rgba(190, 86, 67, 0.12);
}

.ai-warning-preview-side strong {
    color: #29211c;
    font-size: 18px;
    line-height: 1.45;
}

.ai-warning-preview-side p {
    color: #6f5b4c;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

.ai-warning-preview-side em {
    color: #796556;
    font-size: 13px;
    font-style: normal;
    line-height: 1.4;
}

.ai-warning-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, #d9a24a, #b88235);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(184, 130, 53, 0.22);
}

.ai-warning-action:hover {
    color: #fff;
    text-decoration: none;
    filter: brightness(1.03);
}

.ai-warning-action-button {
    border: 0;
    cursor: pointer;
    min-width: 210px;
    margin-top: 0;
    padding: 14px 18px;
    background: linear-gradient(180deg, #cf3a30, #b42820);
    box-shadow: 0 14px 24px rgba(181, 46, 34, 0.24);
    font-size: 15px;
    font-weight: 800;
}

.auth-page {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(247, 243, 234, 0.96) 200px),
        var(--bg);
}

.auth-shell {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 42px 32px 56px;
}

.auth-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 24px;
    align-items: stretch;
}

.auth-copy {
    padding: 40px 36px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background:
        radial-gradient(circle at 12% 18%, rgba(184, 130, 53, 0.16), transparent 18%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 240, 228, 0.96));
    box-shadow: 0 18px 34px rgba(43, 33, 24, 0.08);
}

.auth-copy h1 {
    margin: 10px 0 14px;
    color: var(--text);
    font-size: 32px;
}

.auth-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.auth-eyebrow {
    margin: 0;
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.auth-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 34px rgba(43, 33, 24, 0.08);
}

.auth-switch {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.auth-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-weight: 700;
    background: #fff;
}

.auth-switch a.active {
    border-color: rgba(184, 130, 53, 0.55);
    background: linear-gradient(180deg, #f9e9c9, #eed09a);
    color: #7b4b11;
}

.auth-message {
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(194, 91, 79, 0.28);
    border-radius: 8px;
    background: rgba(248, 232, 229, 0.95);
    color: #9f3d34;
    font-size: 13px;
    font-weight: 700;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-form label {
    display: grid;
    gap: 8px;
}

.auth-form span {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.auth-form input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
}

.auth-form input:focus {
    outline: none;
    border-color: rgba(184, 130, 53, 0.65);
    box-shadow: 0 0 0 3px rgba(184, 130, 53, 0.1);
}

.auth-form .primary-action {
    width: 100%;
    height: 44px;
    margin-top: 4px;
}

.content-shell {
    padding-top: 24px;
}

.content-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 24px 28px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 240, 228, 0.96));
}

.content-hero p {
    margin: 0 0 8px;
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.content-hero h1 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 32px;
}

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

.content-back {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, #d9aa5b, #b88235);
    color: #fff;
    font-weight: 800;
    line-height: 40px;
    text-decoration: none;
    box-shadow: 0 10px 18px rgba(184, 130, 53, 0.22);
}

.content-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
}

.content-breadcrumb a {
    color: var(--gold-dark);
    font-weight: 700;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 18px;
}

.about-shell {
    padding-top: 24px;
}

.about-hero {
    margin-bottom: 18px;
}

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

.about-card {
    min-height: 196px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
    font-size: 16px;
}

.about-card-note {
    background:
        linear-gradient(135deg, rgba(255, 252, 246, 0.98), rgba(249, 241, 225, 0.96)),
        var(--card);
}

.site-footer-link {
    color: var(--gold-dark);
    text-decoration: none;
    margin-right: 14px;
}

.site-footer-link:hover {
    color: var(--text);
}

.dream-shell {
    padding-bottom: 8px;
}

.dream-grid {
    display: grid;
    gap: 18px;
}

.dream-card {
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(43, 33, 24, 0.055);
}

.dream-card h2 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 24px;
}

.dream-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.85;
}

.dream-note {
    margin-top: 12px;
}

.dream-hero {
    align-items: flex-start;
    min-height: 0;
    padding: 18px 20px;
    margin-bottom: 12px;
}

.dream-hero-copy {
    display: grid;
    gap: 6px;
}

.qimen-dream-note {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

.dream-hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.dream-hero-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(184, 130, 53, 0.22);
    background: linear-gradient(180deg, #fff, #f7efdf);
    color: var(--gold-dark);
    font-weight: 800;
}

.dream-search-card {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 240, 228, 0.96));
    box-shadow: 0 10px 26px rgba(43, 33, 24, 0.055);
}

.dream-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.dream-section-head p {
    margin: 0;
    color: var(--muted);
}

.dream-eyebrow {
    margin: 0 0 6px;
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dream-section-head h2 {
    margin: 0;
    color: var(--text);
    font-size: 22px;
}

.dream-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.dream-search-form input {
    min-width: 0;
    height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(184, 130, 53, 0.24);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font-size: 15px;
}

.dream-search-form input::placeholder {
    color: var(--muted);
}

.dream-search-form button {
    min-width: 120px;
    height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #d9aa5b, #b88235);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(184, 130, 53, 0.22);
}

.dream-category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dream-category-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(184, 130, 53, 0.18);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 245, 235, 0.98));
    color: var(--text);
    font-weight: 700;
}

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

.dream-hot-item {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid rgba(184, 130, 53, 0.16);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 246, 237, 0.98));
}

.dream-hot-item strong {
    color: var(--text);
    font-size: 15px;
}

.dream-hot-item span {
    color: var(--muted);
    font-size: 13px;
}

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

.dream-guide-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 14px 16px;
    border: 1px solid rgba(184, 130, 53, 0.16);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 246, 237, 0.98));
}

.dream-guide-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    border-radius: 999px;
    background: rgba(184, 130, 53, 0.12);
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 800;
}

.dream-guide-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.dream-topic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.dream-topic-item {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid rgba(184, 130, 53, 0.16);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 246, 237, 0.98));
}

.dream-topic-item span {
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.dream-topic-item strong {
    color: var(--text);
    font-size: 15px;
}

.dream-disclaimer ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.9;
}

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

.dream-faq-list details {
    padding: 14px 16px;
    border: 1px solid rgba(184, 130, 53, 0.16);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 246, 237, 0.98));
}

.dream-faq-list summary {
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
}

.dream-faq-list summary::-webkit-details-marker {
    display: none;
}

.dream-faq-list details p {
    margin-top: 10px;
}

.content-featured,
.content-list-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(43, 33, 24, 0.055);
}

.content-featured {
    position: relative;
    padding: 22px;
}

.content-chip {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(184, 130, 53, 0.12);
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 800;
}

.content-featured h2 {
    margin: 14px 0 10px;
    color: var(--text);
    font-size: 24px;
}

.content-featured p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.8;
}

.content-featured strong {
    display: inline-block;
    color: var(--gold-dark);
    font-size: 14px;
    font-weight: 800;
}

.content-featured a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    margin-top: 16px;
    padding: 0 16px;
    border-radius: 6px;
    background: linear-gradient(180deg, #d9aa5b, #b88235);
    color: #fff;
    font-weight: 800;
}

.content-list-card .card-title {
    border-bottom: 1px solid var(--border);
}

.content-list {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.content-list-item {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
}

.content-list-item strong {
    color: var(--text);
    font-size: 15px;
}

.content-list-item span {
    color: var(--muted);
    font-size: 13px;
}

.saved-shell {
    padding-top: 24px;
}

.saved-hero {
    align-items: center;
}

.saved-toolbar {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.saved-back {
    text-decoration: none;
}

.saved-count {
    color: var(--gold-dark);
    font-size: 14px;
    font-weight: 800;
}

.saved-clear {
    border: 0;
    cursor: pointer;
}

.saved-list-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(43, 33, 24, 0.055);
    overflow: hidden;
}

.saved-list {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.saved-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.saved-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 16px;
}

.saved-item p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.saved-item time {
    color: #b59d82;
    font-size: 12px;
    white-space: nowrap;
}

.saved-item a {
    color: var(--gold-dark);
    font-weight: 800;
}

.saved-empty {
    margin: 0;
    padding: 0 16px 18px;
    color: var(--muted);
}

.saved-empty p {
    margin: 0;
    line-height: 1.8;
}

.saved-empty-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.detail-shell {
    padding-top: 24px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
}

.detail-main,
.detail-side {
    min-width: 0;
}

.detail-side {
    display: grid;
    gap: 16px;
}

.detail-main {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(43, 33, 24, 0.055);
    padding: 20px 22px;
}

.detail-head h2 {
    margin: 12px 0 8px;
    color: var(--text);
    font-size: 26px;
}

.detail-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.detail-summary {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(184, 130, 53, 0.2);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(249, 241, 228, 0.98), rgba(255, 255, 255, 0.96));
}

.detail-summary p {
    margin: 0;
    color: var(--text);
    line-height: 1.8;
    font-weight: 600;
}

.detail-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.detail-fact {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.detail-fact span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.detail-fact strong {
    color: var(--text);
    font-size: 15px;
}

.detail-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.detail-section h3 {
    margin: 0 0 10px;
    color: var(--gold-dark);
    font-size: 18px;
}

.detail-section ul {
    margin: 0;
    padding-left: 20px;
}

.detail-section li {
    margin: 8px 0;
}

.detail-note {
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px solid rgba(184, 130, 53, 0.22);
    border-radius: 8px;
    background: rgba(249, 241, 228, 0.9);
}

.detail-note p {
    margin: 0;
    color: var(--text);
}

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

.detail-pager-item {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 241, 228, 0.92));
    box-shadow: 0 10px 22px rgba(43, 33, 24, 0.045);
}

.detail-pager-item span {
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.detail-pager-item strong {
    color: var(--text);
    font-size: 16px;
}

.detail-pager-item p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.detail-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(43, 33, 24, 0.055);
    overflow: hidden;
}

.detail-card .card-title {
    border-bottom: 1px solid var(--border);
}

.detail-card .row-title {
    gap: 8px;
    padding-right: 16px;
}

.detail-card .row-title span:last-child {
    color: #b59d82;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

.detail-related {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.detail-related-item {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
}

.detail-related-item strong {
    color: var(--text);
    font-size: 15px;
}

.detail-related-item span {
    color: var(--muted);
    font-size: 13px;
}

.tab-content li {
    margin: 6px 0;
}

.tab-panel li {
    margin: 6px 0;
}

.promo-card {
    position: relative;
    min-height: 132px;
    overflow: hidden;
    padding: 22px;
    border: 1px solid rgba(201, 164, 106, 0.34);
    border-radius: 12px;
    background:
        radial-gradient(circle at 82% 35%, rgba(255, 216, 135, 0.3), transparent 18%),
        radial-gradient(circle at 95% 15%, rgba(255, 238, 187, 0.16), transparent 22%),
        repeating-linear-gradient(145deg, rgba(217, 170, 91, 0.1) 0 1px, transparent 1px 12px),
        linear-gradient(118deg, #17120e 0%, #252019 58%, #17120e 100%);
    color: #f5d8a5;
    box-shadow: 0 16px 30px rgba(43, 33, 24, 0.14), inset 0 1px rgba(255, 226, 170, 0.14);
}

.promo-card::after {
    position: absolute;
    right: -18px;
    bottom: -34px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 211, 126, 0.28), rgba(255, 211, 126, 0.04) 42%, transparent 68%);
    content: "";
}

.crown-card::before {
    position: absolute;
    right: 26px;
    top: 24px;
    z-index: 1;
    width: 70px;
    height: 52px;
    color: #ffd982;
    font-size: 54px;
    line-height: 1;
    text-align: center;
    text-shadow: 0 0 18px rgba(255, 211, 126, 0.55), 0 6px 12px rgba(0, 0, 0, 0.28);
    content: "♛";
}

.course-card {
    min-height: 116px;
    border-color: rgba(194, 154, 96, 0.26);
    background:
        radial-gradient(circle at 80% 28%, rgba(224, 187, 119, 0.18), transparent 18%),
        linear-gradient(180deg, rgba(57, 43, 31, 0.94), rgba(39, 29, 21, 0.94)),
        linear-gradient(180deg, rgba(255, 246, 228, 0.16), rgba(255, 246, 228, 0.03));
    color: #ecd2a6;
    box-shadow: 0 12px 24px rgba(43, 33, 24, 0.12), inset 0 1px rgba(255, 235, 202, 0.08);
}

.course-card::after {
    width: 124px;
    height: 124px;
    right: -16px;
    bottom: -28px;
    background: radial-gradient(circle, rgba(235, 197, 128, 0.18), rgba(235, 197, 128, 0.03) 44%, transparent 70%);
}

.promo-card h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 6px;
    color: #ffd98a;
    font-size: 25px;
    text-shadow: 0 0 18px rgba(255, 211, 126, 0.22);
}

.promo-card p {
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    color: #dec095;
    font-weight: 700;
}

.promo-card a {
    position: relative;
    z-index: 1;
    height: 34px;
    padding: 0 18px;
    background: linear-gradient(180deg, #ffe0a0, #d7a252 62%, #b77a32);
    color: #352414;
    box-shadow: 0 10px 20px rgba(213, 162, 82, 0.32), inset 0 1px rgba(255, 255, 255, 0.45);
}

.promo-list {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
    margin-top: 16px;
    color: #ead4b0;
    font-size: 13px;
    font-weight: 700;
}

.promo-list span {
    padding: 6px 10px;
    border: 1px solid rgba(239, 210, 160, 0.18);
    border-radius: 999px;
    background: rgba(255, 236, 190, 0.08);
}

.side-card {
    overflow: hidden;
    padding-bottom: 10px;
    border-color: rgba(218, 201, 173, 0.9);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 247, 238, 0.98));
    box-shadow: 0 14px 28px rgba(43, 33, 24, 0.06);
}

.qimen-right-column .promo-card,
.qimen-right-column .side-card {
    width: 100%;
}

.qimen-right-column .promo-card + .promo-card,
.qimen-right-column .promo-card + .side-card,
.qimen-right-column .side-card + .side-card {
    margin-top: 0;
}

.qimen-right-column .card-title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(225, 208, 180, 0.86);
    background:
        linear-gradient(180deg, #fffdf9, #f7efe1);
    color: #8a5a1f;
}

.qimen-right-column .card-title::before {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(180deg, #f8e6bf, #e0bd7d);
    color: #8a5a1f;
    font-size: 14px;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.6), 0 4px 10px rgba(184, 130, 53, 0.16);
    content: "◈";
}

.hot-tools {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 10px;
    padding: 18px 16px 16px;
    text-align: center;
}

.hot-tools a {
    display: grid;
    justify-items: center;
    min-height: auto;
    color: #5a4e43;
    font-size: 13px;
    font-weight: 700;
}

.hot-tools a::before {
    width: 42px;
    height: 42px;
    margin: 0 0 8px;
    border-radius: 50%;
    background: linear-gradient(180deg, #f7e7c6, #e8c789);
    color: #8a5a1f;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.65), 0 6px 12px rgba(184, 130, 53, 0.12);
    content: "◈";
}

.consult-entry-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(222, 225, 235, 0.92);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #f8f8fb);
    color: #222c3c;
    box-shadow: 0 10px 22px rgba(39, 57, 86, 0.08);
}

.consult-entry-avatar,
.consult-profile-avatar {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #47546c, #1a2230 72%);
    color: #fff;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.18), 0 10px 18px rgba(20, 28, 39, 0.18);
}

.consult-entry-avatar {
    width: 56px;
    height: 56px;
    font-size: 22px;
    font-weight: 800;
}

.consult-entry-body {
    min-width: 0;
}

.consult-entry-body strong,
.consult-review-item strong {
    display: block;
    color: #141d2b;
    font-size: 14px;
    font-weight: 800;
}

.consult-entry-meta,
.consult-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    color: #56739c;
    font-size: 12px;
    font-weight: 700;
}

.consult-entry-body p,
.consult-entry-stat,
.consult-home-link,
.consult-review-item p,
.consult-review-item em {
    color: #6f7b8e;
    font-size: 12px;
}

.consult-entry-body p {
    margin: 6px 0 4px;
}

.consult-entry-link {
    color: #1568ff;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.tab-summary-head {
    position: relative;
    min-height: 0;
    margin-bottom: 8px;
}

.tab-summary-head h3 {
    margin: 0;
}

.consult-entry-card-inline {
    position: absolute;
    top: 0;
    right: 0;
    width: 258px;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 12px;
    box-shadow: 0 7px 16px rgba(39, 57, 86, 0.06);
}

.consult-entry-card-inline .consult-entry-avatar {
    width: 40px;
    height: 40px;
    font-size: 17px;
}

.consult-entry-card-inline .consult-entry-body strong {
    font-size: 12.5px;
    line-height: 1.2;
    white-space: nowrap;
}

.consult-entry-card-inline .consult-entry-meta,
.consult-entry-card-inline .consult-entry-body p,
.consult-entry-card-inline .consult-entry-stat,
.consult-entry-card-inline .consult-entry-link {
    font-size: 10.5px;
    line-height: 1.15;
}

.consult-entry-card-inline .consult-entry-stat {
    display: none;
}

.consult-entry-card-inline .consult-entry-body p {
    margin: 1px 0 1px;
}

.consult-entry-card-inline .consult-entry-meta {
    gap: 3px;
    margin-top: 2px;
}

.global-consult-entry {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 292px;
    max-width: 360px;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid rgba(198, 149, 73, 0.4);
    background: linear-gradient(135deg, rgba(28, 21, 14, 0.96), rgba(74, 49, 18, 0.93));
    box-shadow: 0 20px 44px rgba(25, 18, 10, 0.28);
    text-decoration: none;
    color: #fff7e8;
    animation: globalConsultPulse 3s ease-in-out infinite;
}

.global-consult-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 48px rgba(25, 18, 10, 0.38);
}

.global-consult-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #3c73c8, #1b3f7f 70%);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.global-consult-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}

.global-consult-copy strong {
    color: #fff1d4;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.global-consult-copy span {
    color: rgba(255, 243, 219, 0.82);
    font-size: 12px;
    line-height: 1.4;
}

.global-consult-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f3cf8c, #c48b2a);
    color: #2b1b08;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

@keyframes globalConsultPulse {
    0%, 100% {
        box-shadow: 0 20px 44px rgba(25, 18, 10, 0.32);
    }
    50% {
        box-shadow: 0 22px 48px rgba(25, 18, 10, 0.42), 0 0 0 6px rgba(198, 149, 73, 0.1);
    }
}

.consult-shell {
    display: grid;
    gap: 18px;
}

.consult-hero,
.consult-profile-card,
.consult-tabs-card,
.consult-reviews-card,
.consult-bottom-card {
    border: 1px solid rgba(218, 227, 232, 0.95);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(31, 47, 71, 0.06);
}

.consult-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    background:
        radial-gradient(circle at 10% 10%, rgba(187, 228, 239, 0.85), transparent 28%),
        linear-gradient(180deg, #f3fcff, #ffffff 55%);
}

.consult-profile-card {
    padding: 18px;
}

.consult-profile-main {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.consult-profile-avatar {
    width: 88px;
    height: 88px;
    font-size: 32px;
    font-weight: 800;
}

.consult-profile-copy h2 {
    margin: 0;
    color: #121b2a;
    font-size: 18px;
    font-weight: 900;
}

.consult-home-link {
    display: inline-block;
    margin-top: 6px;
}

.consult-stats-line,
.consult-bio {
    margin: 10px 0 0;
    color: #5d6a7c;
    line-height: 1.8;
}

.consult-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 18px;
    border-top: 1px solid rgba(227, 233, 238, 0.94);
    background: linear-gradient(180deg, #fff, #fafbfd);
}

.consult-metric {
    padding: 16px 10px 10px;
}

.consult-metric span,
.consult-metric em {
    display: block;
    color: #7d8795;
    font-size: 12px;
    font-style: normal;
}

.consult-metric strong {
    display: block;
    margin: 8px 0 6px;
    color: #162032;
    font-size: 18px;
    font-weight: 900;
}

.consult-metric em {
    color: #ff9f1a;
    font-weight: 700;
}

.consult-tabs-card,
.consult-reviews-card {
    overflow: hidden;
}

.consult-tabs {
    display: flex;
    gap: 22px;
    padding: 0 18px;
    border-bottom: 1px solid rgba(227, 233, 238, 0.94);
}

.consult-tabs button {
    padding: 16px 0 13px;
    border: 0;
    background: transparent;
    color: #8b93a2;
    font-size: 14px;
    font-weight: 800;
}

.consult-tabs button.is-active {
    color: #141d2b;
    box-shadow: inset 0 -3px #1b68ff;
}

.consult-service-card {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 18px;
}

.consult-service-card h3 {
    margin: 0;
    color: #131d2b;
    font-size: 16px;
    font-weight: 900;
}

.consult-service-card h3 span {
    margin-left: 8px;
    color: #1b68ff;
    font-size: 12px;
}

.consult-service-card p {
    margin: 10px 0 14px;
    color: #5d6a7c;
}

.consult-service-card strong {
    color: #ff6b00;
    font-size: 30px;
    font-weight: 900;
}

.consult-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #2b80ff, #1766ff);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.consult-row-title {
    padding: 18px 18px 10px;
}

.consult-review-list {
    display: grid;
    gap: 0;
    padding: 0 18px 10px;
}

.consult-review-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid rgba(227, 233, 238, 0.94);
}

.consult-review-item:first-child {
    border-top: 0;
}

.consult-review-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(180deg, #66c9ff, #2d8dff);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.consult-review-item p {
    margin: 6px 0;
    font-size: 14px;
}

.consult-review-item span {
    display: block;
    color: #ff9800;
    font-size: 14px;
    font-weight: 800;
}

.consult-review-item em {
    display: block;
    margin-top: 10px;
    font-style: normal;
}

.consult-bottom-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    color: #334156;
}

.consult-hero-pro {
    align-items: center;
}

.consult-hero-eyebrow {
    margin: 0 0 10px;
    color: #956320;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.consult-hero-summary {
    max-width: 720px;
    margin: 10px 0 0;
    color: #526176;
    line-height: 1.9;
}

.consult-hero-actions {
    margin-top: 18px;
}

.consult-hero-badge-wall {
    display: grid;
    gap: 12px;
    min-width: 250px;
}

.consult-hero-badge-wall span {
    display: inline-flex;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(192, 156, 89, 0.28);
    background: rgba(255, 250, 241, 0.9);
    color: #6e4b16;
    font-size: 13px;
    font-weight: 800;
}

.consult-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.95fr);
    gap: 18px;
}

.consult-identity-card,
.consult-contact-card,
.consult-section-card,
.consult-note-card {
    border: 1px solid rgba(218, 227, 232, 0.95);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(31, 47, 71, 0.06);
}

.consult-identity-main {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}

.consult-portrait-panel {
    display: grid;
    gap: 12px;
}

.consult-portrait-photo {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 15%, rgba(255, 223, 154, 0.55), transparent 26%),
        linear-gradient(180deg, #2e3d55 0%, #18202d 72%, #121823 100%);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
}

.consult-portrait-glow {
    position: absolute;
    left: 50%;
    bottom: 24px;
    width: 160px;
    height: 160px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 213, 124, 0.28), rgba(255, 213, 124, 0));
    filter: blur(4px);
}

.consult-portrait-bust {
    position: absolute;
    left: 50%;
    bottom: 28px;
    width: 172px;
    height: 220px;
    transform: translateX(-50%);
    border-radius: 88px 88px 32px 32px;
    background:
        radial-gradient(circle at 50% 24%, #f0d1b0 0 24%, transparent 24.5%),
        radial-gradient(circle at 35% 19%, #10161f 0 10%, transparent 10.5%),
        radial-gradient(circle at 65% 19%, #10161f 0 10%, transparent 10.5%),
        linear-gradient(180deg, #10161f 0 19%, transparent 19.5%),
        linear-gradient(180deg, transparent 0 31%, #f0d1b0 31% 51%, #273447 51% 100%);
    box-shadow: 0 24px 40px rgba(7, 10, 18, 0.34);
}

.consult-portrait-mark {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 248, 232, 0.92);
    color: #77501d;
    font-size: 18px;
    font-weight: 900;
}

.consult-portrait-caption {
    margin: 0;
    color: #667285;
    font-size: 12px;
    text-align: center;
}

.consult-tag-list {
    margin-top: 12px;
}

.consult-tag-list span,
.consult-highlight-strip span {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: #f5f8fc;
    color: #52637a;
    font-size: 12px;
    font-weight: 700;
}

.consult-highlight-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.consult-section-head {
    display: grid;
    gap: 8px;
    padding: 22px 22px 0;
}

.consult-section-head h2 {
    margin: 0;
    color: #132033;
    font-size: 20px;
    font-weight: 900;
}

.consult-section-head p {
    margin: 0;
    color: #667285;
    line-height: 1.8;
}

.consult-section-head-bordered {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(227, 233, 238, 0.94);
}

.consult-contact-card {
    display: grid;
    align-content: start;
}

.consult-contact-list {
    display: grid;
    gap: 12px;
    padding: 22px;
}

.consult-contact-item {
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfdff, #f4f8fc);
    border: 1px solid rgba(226, 233, 241, 0.92);
}

.consult-contact-item span,
.consult-contact-item em {
    display: block;
}

.consult-contact-item span {
    color: #7e8795;
    font-size: 12px;
    font-weight: 700;
}

.consult-contact-item strong {
    display: block;
    margin: 8px 0 6px;
    color: #182236;
    font-size: 18px;
    font-weight: 900;
    word-break: break-word;
}

.consult-contact-item em {
    color: #637086;
    font-size: 12px;
    font-style: normal;
    line-height: 1.7;
}

.consult-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 22px 22px;
}

.consult-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 22px;
}

.consult-service-item,
.consult-process-item {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(228, 234, 240, 0.94);
    background: linear-gradient(180deg, #ffffff, #f7fafc);
}

.consult-service-item h3,
.consult-process-item strong {
    color: #141f31;
    font-weight: 900;
}

.consult-service-item h3 {
    margin: 0;
    font-size: 18px;
}

.consult-service-item p,
.consult-process-item p,
.consult-note-card p {
    margin: 10px 0 0;
    color: #607086;
    line-height: 1.8;
}

.consult-service-item strong {
    display: block;
    margin-top: 16px;
    color: #d46c11;
    font-size: 24px;
}

.consult-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 22px;
}

.consult-process-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(180deg, #f5d79b, #ce962f);
    color: #3a2407;
    font-size: 13px;
    font-weight: 900;
}

.consult-process-item strong {
    display: block;
    margin-top: 16px;
    font-size: 16px;
}

.consult-note-card {
    gap: 16px;
}

.consult-note-card strong {
    color: #152133;
    font-size: 18px;
    font-weight: 900;
}

.consult-note-card p {
    max-width: 820px;
}

.row-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.row-title a {
    color: #b28b50;
    font-size: 13px;
    font-weight: 700;
}

.article-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 18px 16px 2px;
    list-style: none;
}

.article-list li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(232, 220, 201, 0.72);
    color: #4b4036;
    font-size: 14px;
}

.article-list li:last-child {
    border-bottom: 0;
}

.article-list li::before {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(180deg, #f8e6bf, #e0bd7d);
    color: #8a5a1f;
    font-size: 12px;
    font-weight: 800;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.6), 0 4px 10px rgba(184, 130, 53, 0.12);
    content: "◈";
}

.article-list a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.article-list span {
    color: #b1a496;
    font-size: 12px;
    font-weight: 600;
}

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

.bazi-hero-copy {
    max-width: 840px;
}

.bazi-hero-subtitle {
    max-width: 760px;
    margin: 12px 0 0;
    color: rgba(255, 239, 212, 0.88);
    line-height: 1.8;
}

.bazi-hero-actions {
    justify-content: flex-start;
    flex: none;
    width: 100%;
    max-width: none;
}

.bazi-result-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.bazi-top-jump {
    display: flex;
    justify-content: flex-start;
}

.bazi-top-jump-link,
.bazi-insight-anchor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff5df, #f1d7a8);
    color: #8b5719;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.bazi-top-jump-link:hover,
.bazi-insight-anchor:hover {
    background: linear-gradient(135deg, #fff0cf, #e9c98d);
}

.bazi-insight-anchor {
    position: absolute;
    top: -2px;
    right: 0;
}

.bazi-empty-state {
    padding: 24px;
}

.bazi-empty-card {
    padding: 32px 28px;
    border-radius: 24px;
    border: 1px dashed rgba(212, 181, 130, 0.82);
    background: linear-gradient(180deg, #fffefb, #fff7eb);
    text-align: center;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.8);
}

.bazi-empty-card strong {
    display: block;
    color: #8f5f21;
    font-size: 28px;
    font-weight: 900;
}

.bazi-empty-card p {
    max-width: 720px;
    margin: 14px auto 0;
    color: #6a5e51;
    line-height: 1.9;
}

.bazi-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.bazi-summary-card,
.bazi-pillar-card,
.bazi-dayun-card {
    border: 1px solid rgba(227, 218, 202, 0.88);
    border-radius: 18px;
    background: linear-gradient(180deg, #fffdf9, #fff7ef);
    box-shadow: 0 12px 28px rgba(91, 64, 26, 0.06);
}

.bazi-summary-card {
    display: flex;
    flex-direction: column;
    align-self: start;
    padding: 14px 16px;
}

.bazi-summary-card span,
.bazi-pillar-label,
.bazi-dayun-card span {
    display: block;
    color: #8b7b69;
    font-size: 12px;
    font-weight: 700;
}

.bazi-summary-card strong {
    display: block;
    margin-top: 6px;
    color: #1a2230;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;
    word-break: break-word;
}

.bazi-summary-card em {
    display: block;
    margin-top: 4px;
    color: #6e6459;
    font-size: 12px;
    font-style: normal;
    line-height: 1.55;
}

.bazi-panel {
    grid-column: 1 / -1;
    padding: 16px;
    border: 1px solid rgba(232, 225, 210, 0.78);
    border-radius: 20px;
    background: linear-gradient(180deg, #fff, #fffaf3);
}

.bazi-panel-insight {
    order: -2;
    scroll-margin-top: 110px;
    border-color: rgba(207, 163, 87, 0.42);
    box-shadow: 0 16px 34px rgba(91, 64, 26, 0.09);
}

.bazi-risk-hero {
    margin-top: 12px;
    padding: 18px 20px;
    border: 1px solid rgba(205, 164, 94, 0.36);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(255, 243, 219, 0.96), transparent 34%),
        linear-gradient(135deg, #fff8ec, #fff1db 58%, #f9e3c0);
    box-shadow: 0 14px 30px rgba(143, 100, 39, 0.1);
}

.bazi-risk-kicker {
    color: #9a5a14;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.bazi-risk-lead {
    margin: 10px 0 0;
    color: #23180e;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.6;
}

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

.bazi-pillar-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
}

.bazi-pillar-main {
    display: block;
    margin-top: 6px;
    color: #8d5416;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.bazi-pillar-card p {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px;
    margin: 6px 0 0;
    color: #61584e;
    line-height: 1.55;
    font-size: 12px;
}

.bazi-pillar-card p span {
    color: #8d7a63;
    font-weight: 700;
}

.bazi-pillar-card p strong {
    color: #213146;
    font-weight: 700;
}

.bazi-pillar-head {
    display: grid;
    align-content: start;
    gap: 2px;
}

.bazi-pillar-body {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 2px;
}

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

.bazi-wuxing-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 34px;
    gap: 12px;
    align-items: center;
}

.bazi-wuxing-row span,
.bazi-wuxing-row strong {
    color: #3e3427;
    font-weight: 800;
}

.bazi-wuxing-track {
    position: relative;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #efe6d9;
}

.bazi-wuxing-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.bazi-wuxing-fill-mu { background: linear-gradient(90deg, #4cbb74, #2c8f55); }
.bazi-wuxing-fill-huo { background: linear-gradient(90deg, #ff8a6a, #de4732); }
.bazi-wuxing-fill-tu { background: linear-gradient(90deg, #dfb46f, #b78136); }
.bazi-wuxing-fill-jin { background: linear-gradient(90deg, #ead7aa, #c4a25e); }
.bazi-wuxing-fill-shui { background: linear-gradient(90deg, #5fb2ff, #226fe6); }

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

.bazi-dayun-card {
    padding: 18px 16px;
}

.bazi-dayun-card strong {
    display: block;
    color: #182435;
    font-size: 22px;
    font-weight: 900;
}

.bazi-dayun-card p {
    margin: 10px 0 8px;
    color: #63584a;
    font-weight: 700;
}

.bazi-seo-section {
    margin-top: 26px;
}

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

.bazi-seo-card,
.bazi-process-step {
    padding: 18px 18px 16px;
    border: 1px solid rgba(186, 142, 69, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
}

.bazi-seo-card h3,
.bazi-process-step strong {
    display: block;
    margin: 0 0 10px;
    color: #1f2c3d;
    font-size: 16px;
    font-weight: 800;
}

.bazi-seo-card p,
.bazi-process-step p {
    margin: 0;
    color: #586577;
    font-size: 14px;
    line-height: 1.85;
}

.bazi-process-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.hehun-hero {
    align-items: flex-start;
}

.hehun-form {
    gap: 18px;
}

.hehun-person-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(186, 142, 69, 0.16);
    border-radius: 14px;
    background: rgba(255, 250, 242, 0.92);
}

.hehun-person-head {
    display: grid;
    gap: 4px;
}

.hehun-person-head strong {
    font-size: 17px;
    color: #1f2c3d;
}

.hehun-person-head span,
.hehun-profile-meta span {
    color: #6f7d8e;
    font-size: 13px;
}

.hehun-score-grid,
.hehun-insight-grid,
.hehun-locked-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hehun-dual-chart {
    display: grid;
    gap: 16px;
}

.hehun-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 16px;
}

.hehun-list {
    margin: 0;
    padding-left: 18px;
    color: #3f4c5c;
    line-height: 1.8;
}

.hehun-list li + li {
    margin-top: 10px;
}

.hehun-locked-panel {
    display: grid;
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(186, 142, 69, 0.22);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(249, 239, 220, 0.92));
}

.hehun-locked-card {
    min-height: 128px;
    padding: 18px;
    border: 1px dashed rgba(186, 142, 69, 0.32);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.hehun-locked-card strong {
    display: block;
    margin-bottom: 10px;
    color: #8b5d14;
    font-size: 16px;
}

.hehun-locked-card p {
    margin: 0;
    color: #5b6675;
    line-height: 1.8;
}

.payment-demo-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
}

.payment-demo-modal.is-open {
    display: block;
}

body.modal-open {
    overflow: hidden;
}

.payment-demo-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 20, 28, 0.55);
    backdrop-filter: blur(4px);
}

.payment-demo-card {
    position: relative;
    z-index: 1;
    width: min(920px, calc(100vw - 32px));
    margin: 48px auto;
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(180deg, #fffdf9, #fff6e8);
    box-shadow: 0 30px 70px rgba(31, 21, 8, 0.24);
}

.payment-demo-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(114, 86, 34, 0.12);
    color: #6d4c15;
    font-size: 26px;
    cursor: pointer;
}

.payment-demo-eyebrow {
    margin: 0 0 6px;
    color: #b57c26;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.payment-demo-card h2 {
    margin: 0;
    color: #1d2736;
    font-size: 30px;
}

.payment-demo-intro {
    margin: 12px 0 0;
    color: #5c6776;
    line-height: 1.8;
}

.payment-demo-topbar,
.payment-demo-channel-grid {
    display: grid;
    gap: 14px;
}

.payment-demo-topbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 20px;
}

.payment-demo-topbar > div,
.payment-demo-channel,
.payment-demo-order {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(188, 145, 71, 0.18);
    background: rgba(255, 255, 255, 0.88);
}

.payment-demo-topbar span,
.payment-demo-channel-head span,
.payment-demo-order-meta span,
.payment-demo-qr em {
    color: #6a7686;
    font-size: 13px;
}

.payment-demo-topbar strong,
.payment-demo-channel-head strong,
.payment-demo-order-meta strong {
    display: block;
    margin-top: 6px;
    color: #1d2736;
}

.payment-demo-channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.payment-demo-channel.is-active {
    border-color: rgba(205, 142, 39, 0.42);
    box-shadow: 0 12px 28px rgba(176, 124, 43, 0.12);
}

.payment-demo-qr {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin: 16px 0;
    padding: 18px;
    border-radius: 18px;
}

.payment-demo-qr-wechat {
    background: linear-gradient(180deg, rgba(235, 255, 241, 0.95), rgba(216, 244, 226, 0.88));
}

.payment-demo-qr-alipay {
    background: linear-gradient(180deg, rgba(237, 247, 255, 0.95), rgba(218, 234, 255, 0.88));
}

.payment-demo-qr-code {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 18px;
    background:
        linear-gradient(90deg, rgba(24, 34, 46, 0.12) 10%, transparent 10%, transparent 20%, rgba(24, 34, 46, 0.12) 20%, rgba(24, 34, 46, 0.12) 30%, transparent 30%, transparent 40%, rgba(24, 34, 46, 0.12) 40%, rgba(24, 34, 46, 0.12) 50%, transparent 50%, transparent 60%, rgba(24, 34, 46, 0.12) 60%, rgba(24, 34, 46, 0.12) 70%, transparent 70%, transparent 80%, rgba(24, 34, 46, 0.12) 80%),
        linear-gradient(rgba(24, 34, 46, 0.12) 10%, transparent 10%, transparent 20%, rgba(24, 34, 46, 0.12) 20%, rgba(24, 34, 46, 0.12) 30%, transparent 30%, transparent 40%, rgba(24, 34, 46, 0.12) 40%, rgba(24, 34, 46, 0.12) 50%, transparent 50%, transparent 60%, rgba(24, 34, 46, 0.12) 60%, rgba(24, 34, 46, 0.12) 70%, transparent 70%, transparent 80%, rgba(24, 34, 46, 0.12) 80%),
        #fff;
    box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.9);
}

.payment-demo-qr-code i {
    position: absolute;
    width: 34px;
    height: 34px;
    border: 8px solid #233142;
    border-radius: 8px;
    background: transparent;
}

.payment-demo-qr-code i:nth-child(1) { top: 18px; left: 18px; }
.payment-demo-qr-code i:nth-child(2) { top: 18px; right: 18px; }
.payment-demo-qr-code i:nth-child(3) { bottom: 18px; left: 18px; }
.payment-demo-qr-code i:nth-child(4) { top: 78px; left: 78px; width: 20px; height: 20px; border-width: 6px; }
.payment-demo-qr-code i:nth-child(5) { top: 116px; right: 52px; width: 16px; height: 16px; border-width: 6px; }
.payment-demo-qr-code i:nth-child(6) { bottom: 48px; right: 30px; width: 26px; height: 26px; border-width: 6px; }

.payment-demo-action,
.payment-demo-confirm,
.payment-demo-admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
}

.payment-demo-action,
.payment-demo-confirm {
    width: 100%;
    border: 0;
    background: linear-gradient(135deg, #202a3d, #394b66);
    color: #fff;
    cursor: pointer;
}

.payment-demo-order {
    margin-top: 18px;
}

.payment-demo-order-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.payment-demo-order-meta strong {
    display: inline;
    margin-top: 0;
}

.payment-demo-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.payment-demo-admin-link {
    background: rgba(192, 137, 47, 0.12);
    color: #9b6822;
}

.payment-demo-note {
    margin: 16px 0 0;
    color: #677284;
    line-height: 1.8;
}

.unlock-result-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.unlock-result-contact-item {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(188, 145, 71, 0.18);
    background: rgba(255, 255, 255, 0.88);
}

.unlock-result-contact-item span {
    color: #6a7686;
    font-size: 13px;
}

.unlock-result-contact-item strong {
    display: block;
    margin-top: 6px;
    color: #1d2736;
    font-size: 16px;
}

.unlock-result-contact-item em {
    display: block;
    margin-top: 8px;
    color: #677284;
    font-size: 13px;
    font-style: normal;
    line-height: 1.6;
}

.site-footer {
    width: min(100%, 1520px);
    margin: 20px auto 0;
    padding: 16px 32px 28px;
    color: var(--muted);
    text-align: center;
    border-top: 1px solid rgba(228, 212, 188, 0.75);
}

.wuxing-mu { color: #2c9b55 !important; }
.wuxing-huo { color: #e53935 !important; }
.wuxing-tu { color: #8a6030 !important; }
.wuxing-jin { color: #b88235 !important; }
.wuxing-shui { color: #1688dc !important; }
.wuxing-purple { color: #8d57a5 !important; }
.di-zhi { color: #8f8378 !important; }

.label-da_ji,
.da_ji,
.label-xiao_ji,
.xiao_ji,
.label-ping,
.ping,
.label-xiao_xiong,
.xiao_xiong,
.label-da_xiong,
.da_xiong {
    color: inherit !important;
}

@media (max-width: 1320px) {
    .site-header {
        grid-template-columns: 220px minmax(0, 1fr) 210px;
        padding: 0 20px;
    }

    .top-nav {
        gap: 18px;
        font-size: 14px;
    }

    .page-shell {
        padding-right: 20px;
        padding-left: 20px;
    }
}

@media (max-width: 980px) {
    .site-header {
        grid-template-columns: 1fr auto;
        height: auto;
        min-height: 70px;
        gap: 10px;
        padding: 10px 16px;
        position: sticky;
    }

    .top-nav {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-self: center;
    }

    .workspace-grid,
    .qimen-main-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "left"
            "center"
            "right";
    }

    .workspace-grid > .left-column,
    .workspace-grid > .center-column,
    .workspace-grid > .right-column,
    .qimen-main-grid > .qimen-left-column,
    .qimen-main-grid > .qimen-center-column,
    .qimen-main-grid > .qimen-right-column {
        grid-column: 1;
        width: 100%;
    }

    .result-body,
    .right-column,
    .detail-grid,
    .content-grid,
    .bazi-summary-grid,
    .bazi-dayun-grid,
    .bazi-seo-grid,
    .bazi-process-list,
    .hehun-score-grid,
    .hehun-insight-grid,
    .hehun-locked-grid {
        grid-template-columns: 1fr;
    }

    .bazi-pillars,
    .bazi-pillar-card {
        grid-template-columns: 1fr;
    }

    .hehun-profile-meta {
        flex-direction: column;
        gap: 8px;
    }

    .payment-demo-card {
        width: min(100vw - 20px, 920px);
        margin: 16px auto;
        padding: 22px 18px;
    }

    .payment-demo-topbar,
    .payment-demo-channel-grid {
        grid-template-columns: 1fr;
    }

    .unlock-result-contact-grid {
        grid-template-columns: 1fr;
    }

    .payment-demo-order-actions {
        flex-direction: column;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .result-body-empty .info-stack-empty {
        grid-template-columns: 1fr;
    }

    .hero-banner {
        height: auto;
        min-height: 88px;
        gap: 16px;
        padding: 18px 24px;
    }

    .hero-banner-home {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        min-height: auto;
        gap: 24px;
        padding: 28px 24px;
    }

    .hero-home-copy {
        width: 100%;
        max-width: none;
    }

    .hero-home-mark {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        justify-content: flex-start;
        margin-top: 0;
    }

    .hero-home-branding strong {
        font-size: 34px;
    }

    .home-feature-grid {
        grid-template-columns: 1fr;
    }

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

    .saved-toolbar {
        justify-items: start;
    }

    .detail-facts {
        grid-template-columns: 1fr;
    }

    .consult-hero,
    .consult-service-card,
    .consult-page-grid,
    .consult-service-grid,
    .consult-process-grid {
        display: grid;
    }

    .consult-profile-main,
    .consult-metrics,
    .consult-review-item {
        grid-template-columns: 1fr;
    }

    .consult-entry-card {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .consult-entry-link {
        grid-column: 2;
    }

    .tab-summary-head {
        min-height: 0;
    }

    .consult-entry-card-inline {
        position: static;
        width: 100%;
        max-width: none;
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .consult-identity-main {
        grid-template-columns: 1fr;
    }

    .consult-hero-badge-wall {
        min-width: 0;
    }

    .consult-contact-actions,
    .consult-note-card {
        display: grid;
    }

    .ai-warning-preview {
        grid-template-columns: 1fr;
    }

    .ai-warning-preview-side {
        padding: 14px;
        border-left: 0;
        border-top: 1px solid rgba(227, 214, 196, 0.95);
    }

    .ai-warning-preview-main {
        padding: 18px 16px;
    }

    .ai-warning-preview-main p {
        font-size: 16px;
    }

    .ai-warning-preview-main .ai-warning-note {
        font-size: 14px;
    }

    .ai-warning-action-button {
        width: 100%;
        min-width: 0;
    }

    .global-consult-entry {
        right: 12px;
        bottom: 12px;
        left: 12px;
        min-width: 0;
        max-width: none;
        padding: 12px 14px;
        border-radius: 16px;
        gap: 12px;
    }

    .global-consult-avatar {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        font-size: 20px;
    }

    .global-consult-copy strong {
        font-size: 15px;
    }

    .global-consult-copy span {
        font-size: 11px;
    }

    .global-consult-cta {
        padding: 9px 12px;
        font-size: 12px;
    }

    .detail-pager {
        grid-template-columns: 1fr;
    }

    .tabs-card {
        overflow: hidden;
    }

    .tabs-card::before {
        position: absolute;
        top: 8px;
        right: 16px;
        z-index: 2;
        color: rgba(143, 104, 46, 0.88);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.08em;
        content: "左右滑动查看更多";
        pointer-events: none;
    }

    .tabs-card::after {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 1;
        width: 52px;
        height: 43px;
        background: linear-gradient(90deg, rgba(247, 243, 234, 0), rgba(247, 243, 234, 0.96) 58%, rgba(247, 243, 234, 1));
        content: "";
        pointer-events: none;
    }

    .tabs {
        padding-right: 44px;
        padding-bottom: 8px;
        scrollbar-width: thin;
        scrollbar-color: rgba(184, 130, 53, 0.8) rgba(233, 223, 205, 0.7);
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .tabs::-webkit-scrollbar {
        height: 6px;
    }

    .tabs::-webkit-scrollbar-track {
        background: rgba(233, 223, 205, 0.72);
        border-radius: 999px;
    }

    .tabs::-webkit-scrollbar-thumb {
        background: rgba(184, 130, 53, 0.82);
        border-radius: 999px;
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding: 12px;
    }

    .site-header {
        padding: 10px 12px;
    }

    .brand strong {
        font-size: 20px;
    }

    .hero-banner {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand-home .brand-mark {
        width: 46px;
        height: 46px;
    }

    .brand-mark-image-home {
        width: 46px;
        height: 46px;
    }

    .brand-lockup-home {
        width: 168px;
        height: 48px;
    }

    .brand-home strong {
        font-size: 24px;
    }

    .brand-home em {
        font-size: 12px;
        letter-spacing: 0.16em;
    }

    .hero-banner-home {
        min-height: auto;
        gap: 16px;
        padding: 20px 18px;
        border-radius: 16px;
    }

    .hero-banner.hero-banner-home h1 {
        font-size: 32px;
    }

    .hero-home-subtitle {
        font-size: 14px;
        line-height: 1.7;
    }

    .hero-home-actions {
        width: 100%;
        flex-direction: column;
        margin-top: 22px;
    }

    .hero-home-primary,
    .hero-home-secondary,
    .hero-home-resume {
        width: 100%;
    }

    .hero-home-mark {
        gap: 12px;
    }

    .hero-home-seal {
        width: 92px;
        height: 92px;
    }

    .hero-home-seal-core {
        inset: 16px;
    }

    .hero-home-branding strong {
        font-size: 28px;
    }

    .hero-home-branding span {
        font-size: 13px;
    }

    .home-feature-card {
        border-radius: 14px;
        min-height: auto;
        padding: 14px 14px 12px;
    }

    .home-feature-card h2 {
        font-size: 17px;
    }

    .hero-actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .hero-points {
        gap: 14px 24px;
    }

    .hero-dream-link {
        min-width: 84px;
        height: 32px;
    }

    .hero-points {
        gap: 14px 24px;
    }

    .content-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 16px;
    }

    .about-card {
        min-height: auto;
    }

    .detail-hero-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .content-back {
        max-width: 100%;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
        min-height: 40px;
        height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .hero-points {
        width: 100%;
        justify-content: flex-start;
    }

    .dream-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .dream-search-form {
        grid-template-columns: 1fr;
    }

    .dream-hot-grid {
        grid-template-columns: 1fr;
    }

    .dream-search-card {
        padding: 14px 14px;
    }

    .dream-card {
        padding: 18px 16px;
    }

    .result-head {
        flex-direction: column;
        gap: 18px;
        padding: 18px 16px;
    }

    .result-meta-desktop {
        display: none;
    }

    .result-meta-mobile {
        display: grid;
        gap: 12px;
        margin-top: 14px;
    }

    .result-actions {
        width: 100%;
        margin-top: 4px;
        padding-top: 12px;
        border-top: 1px solid rgba(226, 205, 169, 0.9);
        justify-content: flex-start;
        gap: 12px;
        flex-wrap: wrap;
    }

    .qimen-pan {
        padding-top: 4px;
    }

    .pan-outer {
        margin: 12px 0 14px;
    }

    .pan-grid {
        max-width: none;
    }

    .gong-dizhi,
    .gong-dizhi2,
    .gong-tianganfang,
    .gong-tianganfang2,
    .gong-bashen,
    .gong-bamen,
    .gong-jiuxing,
    .gong-tiangan,
    .gong-gongname,
    .gong-gongname2,
    .gong-number,
    .gong-dipan {
        font-size: 13px;
    }

    .gong-bamen,
    .gong-jiuxing {
        font-size: 14px;
    }

    .hot-tools,
    .quick-tools,
    .check-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.seo-faq-section {
    margin-top: 22px;
    padding: 20px 22px 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: linear-gradient(180deg, #fffdf9 0%, #fff7eb 100%);
    box-shadow: 0 8px 20px rgba(143, 105, 44, 0.06);
}

.seo-faq-head {
    display: flex;
    gap: 18px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 18px;
}

.seo-faq-head h2 {
    margin: 0;
    color: var(--text);
    font-size: 24px;
    font-weight: 800;
}

.seo-faq-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    max-width: 520px;
}

.seo-eyebrow {
    margin: 0 0 6px;
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

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

.seo-faq-item {
    padding: 16px 18px;
    border: 1px solid rgba(186, 142, 69, 0.18);
    border-radius: 8px;
    background: #fff;
}

.seo-faq-item h3 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
}

.seo-faq-item p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.detail-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.content-back.secondary {
    background: linear-gradient(180deg, #fffaf1, #f7ead0);
    color: var(--gold-dark);
}

.content-back.secondary:hover {
    background: linear-gradient(180deg, #fff5df, #efd8b3);
}

.detail-note a {
    color: var(--gold-dark);
    font-weight: 700;
    text-decoration: none;
}

.detail-note a:hover {
    text-decoration: underline;
}

@media (max-width: 980px) {
    .seo-faq-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .seo-faq-grid {
        grid-template-columns: 1fr;
    }

    .detail-hero-actions {
        justify-content: flex-start;
    }
}
