:root {
    --red: #8b1010;
    --deep-red: #5d0707;
    --gold: #e9c36a;
    --gold-soft: #fff0ba;
    --ink: #361616;
    --muted: #7a5d48;
    --paper: #fff8eb;
    --surface: #fffdf8;
    --surface-soft: #f5f1e9;
    --jade: #315f55;
    --line: rgba(126, 45, 22, 0.18);
    --shadow: 0 12px 30px rgba(70, 15, 10, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #ece7df;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.8;
}

a {
    color: inherit;
}

.page-shell {
    width: min(1080px, 100%);
    margin: 0 auto;
    background: rgba(255, 252, 246, 0.98);
    min-height: 100vh;
    box-shadow: 0 0 36px rgba(54, 22, 18, 0.18);
}

body[data-page="detail"] .page-shell {
    max-width: 980px;
}

.hero {
    position: relative;
    min-height: 372px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(65, 0, 0, 0.2), rgba(92, 7, 7, 0.92)),
        url("/images/banner.jpg") center / cover no-repeat;
    overflow: hidden;
}

body[data-page="detail"] .hero {
    min-height: 342px;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 54px;
    background: linear-gradient(180deg, transparent, rgba(255, 248, 235, 0.98));
}

.hero-top {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px 0;
}

.back-home,
.name-link,
.product-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid rgba(233, 195, 106, 0.68);
    border-radius: 999px;
    color: var(--gold-soft);
    background: rgba(80, 0, 0, 0.42);
    text-decoration: none;
    font-size: 14px;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.back-home:hover,
.name-link:hover,
.back-home:focus-visible,
.name-link:focus-visible {
    border-color: var(--gold);
    color: #fff;
    background: rgba(93, 7, 7, 0.72);
    outline: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 88px 36px 62px;
    text-align: center;
}

body[data-page="detail"] .hero-content {
    padding-top: 76px;
}

.eyebrow,
.section-title p {
    margin: 0 0 8px;
    color: #8e1a12;
    font-size: 13px;
    letter-spacing: 0;
}

.hero .eyebrow {
    color: var(--gold-soft);
}

.hero h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1.12;
    letter-spacing: 0;
    text-shadow: 0 5px 18px rgba(0, 0, 0, 0.36);
}

body:not([data-page="detail"]) .hero h1 {
    white-space: nowrap;
    font-size: 42px;
    line-height: 1.18;
}

body[data-page="detail"] .hero h1 {
    white-space: nowrap;
    font-size: 38px;
    line-height: 1.18;
}

.hero-content p:last-child {
    max-width: 680px;
    margin: 16px auto 0;
    color: rgba(255, 250, 232, 0.94);
    font-size: 16px;
}

.panel {
    margin: 18px 24px 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.gender-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.gender-tab {
    min-height: 44px;
    border: 1px solid rgba(139, 16, 16, 0.18);
    border-radius: 999px;
    color: var(--red);
    background: var(--surface-soft);
    font-size: 16px;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.gender-tab.active {
    color: #fff8df;
    border-color: rgba(233, 195, 106, 0.72);
    background: linear-gradient(135deg, #9e1816, #5d0707);
}

.gender-tab:focus-visible,
.zodiac-step:focus-visible,
.zodiac-select-wrap select:focus-visible {
    outline: 3px solid rgba(49, 95, 85, 0.28);
    outline-offset: 2px;
}

.detail-selector-panel {
    padding: 14px 16px 16px;
}

.detail-selector-panel .gender-tabs {
    margin-bottom: 10px;
}

.detail-zodiac-switcher {
    display: grid;
    grid-template-columns: minmax(82px, 1fr) minmax(132px, 1.6fr) minmax(82px, 1fr);
    gap: 8px;
    align-items: stretch;
}

.zodiac-step,
.zodiac-select-wrap {
    min-width: 0;
    min-height: 50px;
    border: 1px solid rgba(139, 16, 16, 0.2);
    border-radius: 8px;
    background: var(--surface-soft);
}

.zodiac-step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    overflow: hidden;
    color: var(--deep-red);
    text-decoration: none;
    white-space: nowrap;
}

.zodiac-step span {
    flex: 0 0 auto;
    color: var(--red);
    font-size: 26px;
    line-height: 1;
}

.zodiac-step b {
    overflow: hidden;
    text-overflow: ellipsis;
}

.zodiac-select-wrap {
    display: grid;
    grid-template-rows: auto auto;
    padding: 5px 10px 6px;
    text-align: center;
}

.zodiac-select-wrap > span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.2;
}

.zodiac-select-wrap select {
    width: 100%;
    min-width: 0;
    border: 0;
    color: var(--deep-red);
    background: transparent;
    font: inherit;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

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

.zodiac-card {
    min-height: 112px;
    display: grid;
    align-content: center;
    padding: 13px 8px;
    border: 1px solid rgba(126, 45, 22, 0.15);
    border-radius: 8px;
    background: linear-gradient(180deg, #fffefb, #f7ecd7);
    color: inherit;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(70, 15, 10, 0.06);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.zodiac-card:hover,
.zodiac-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(139, 16, 16, 0.44);
    box-shadow: 0 10px 20px rgba(70, 15, 10, 0.12);
    outline: none;
}

.zodiac-card.active {
    border-color: rgba(139, 16, 16, 0.64);
    background: linear-gradient(180deg, #fff1c6, #c51d17);
    color: #fff8df;
}

.zodiac-icon {
    display: block;
    font-size: 34px;
    line-height: 1;
}

.zodiac-name {
    display: block;
    margin-top: 8px;
    color: var(--deep-red);
    font-weight: 700;
}

.zodiac-card.active .zodiac-name {
    color: #fff8df;
}

.zodiac-tag {
    display: inline-block;
    min-height: 20px;
    margin-top: 4px;
    padding: 0 7px;
    border-radius: 999px;
    color: var(--jade);
    background: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.section-nav {
    position: sticky;
    top: 8px;
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 16px 24px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(93, 7, 7, 0.12);
    border: 1px solid rgba(233, 195, 106, 0.36);
    box-shadow: 0 10px 24px rgba(70, 15, 10, 0.16);
}

body[data-page="detail"] .section-nav {
    grid-template-columns: repeat(8, minmax(0, 1fr));
}

section[id] {
    scroll-margin-top: 72px;
}

.section-nav a {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff8df;
    background: rgba(93, 7, 7, 0.92);
    text-decoration: none;
    font-size: 13px;
    transition: background-color 160ms ease, color 160ms ease;
}

.section-nav a:hover,
.section-nav a:focus-visible {
    color: #fff;
    background: #8e1a12;
    outline: none;
}

.section-title {
    position: relative;
    padding-left: 14px;
}

.section-title::before {
    content: "";
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 0;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--red), var(--gold));
}

.section-title h2 {
    margin: 0;
    color: var(--deep-red);
    font-size: 26px;
    line-height: 1.3;
}

.fortune-score {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 16px;
    align-items: center;
    margin-top: 16px;
}

.score-ring {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--deep-red);
    background:
        radial-gradient(circle, #fff9e7 0 54%, transparent 55%),
        conic-gradient(var(--gold) 0 78%, rgba(139, 16, 16, 0.16) 78% 100%);
}

.score-ring strong {
    font-size: 32px;
    line-height: 1;
}

.score-ring span,
.daily-score span {
    color: var(--muted);
    font-size: 12px;
}

.score-line {
    display: grid;
    grid-template-columns: 58px 1fr 36px;
    gap: 8px;
    align-items: center;
    margin: 8px 0;
    font-size: 14px;
}

.bar {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(139, 16, 16, 0.1);
}

.bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #b71916, var(--gold));
}

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

.tag-row span,
.daily-tips span,
.product-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    color: #8d2017;
    background: #fff0c4;
    font-size: 13px;
}

.fortune-copy {
    color: #513629;
    font-size: 16px;
}

.fortune-copy h3 {
    margin: 18px 0 6px;
    color: var(--red);
    font-size: 18px;
}

.fortune-copy p {
    margin: 0 0 10px;
    line-height: 1.95;
    text-align: justify;
}

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

.home-intro-grid div {
    padding: 14px;
    border: 1px solid rgba(126, 45, 22, 0.14);
    border-radius: 8px;
    background: var(--surface-soft);
}

.home-intro-grid strong {
    display: block;
    color: var(--deep-red);
    font-size: 18px;
    margin-bottom: 4px;
}

.home-intro-grid p {
    margin: 0;
    color: #513629;
}

.basis-box {
    margin: 16px 0 12px;
    padding: 14px;
    border: 1px solid rgba(139, 16, 16, 0.16);
    border-radius: 8px;
    background: #f7f1df;
}

.basis-box strong {
    display: block;
    color: var(--deep-red);
    margin-bottom: 4px;
}

.basis-box p {
    margin: 0;
}

.theory-list {
    margin: 0;
    padding-left: 20px;
}

.theory-list li {
    margin: 6px 0;
    text-align: justify;
}

.theory-list b {
    color: var(--deep-red);
}

.age-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.age-card {
    padding: 12px;
    border: 1px solid rgba(126, 45, 22, 0.14);
    border-radius: 8px;
    background: var(--surface-soft);
}

.age-card strong {
    display: block;
    color: var(--red);
    font-size: 16px;
}

.age-card span {
    display: block;
    margin: 2px 0 6px;
    color: var(--muted);
    font-size: 13px;
}

.age-card p {
    margin: 0;
    font-size: 14px;
}

.note-text {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
}

.month-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.month-item {
    padding: 12px;
    border: 1px solid rgba(126, 45, 22, 0.14);
    border-radius: 8px;
    background: var(--surface-soft);
}

.month-item strong {
    display: block;
    color: var(--red);
    margin-bottom: 4px;
}

.daily-card {
    display: grid;
    grid-template-columns: 1fr 92px;
    gap: 16px;
    align-items: center;
    margin-top: 14px;
}

.daily-date {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 13px;
}

.daily-card h3 {
    margin: 0 0 8px;
    color: var(--red);
}

.daily-card p {
    margin: 0;
}

.daily-score {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--deep-red);
    background: linear-gradient(180deg, #fff4cd, #e8bd5a);
}

.daily-score strong {
    font-size: 30px;
    line-height: 1;
}

.daily-tips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.product-card {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
    margin-top: 16px;
    align-items: start;
}

.product-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(126, 45, 22, 0.16);
    background: #fff;
}

.product-info h3 {
    margin: 12px 0 8px;
    color: var(--deep-red);
    font-size: 24px;
}

.product-info p {
    margin: 0 0 10px;
}

.product-info ul {
    margin: 8px 0 14px;
    padding-left: 20px;
}

.product-info li {
    margin: 6px 0;
}

.product-info strong {
    color: var(--deep-red);
}

.product-note {
    padding: 10px 12px;
    border-left: 3px solid var(--gold);
    background: #fff8ea;
    font-size: 14px;
}

.product-link {
    color: #fff8df;
    background: linear-gradient(135deg, #9e1816, #5d0707);
}

.fortune-order-button {
    border-color: rgba(233, 195, 106, 0.68);
    cursor: pointer;
    font: inherit;
}

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

.theory-grid > div {
    padding: 14px;
    border: 1px solid rgba(126, 45, 22, 0.14);
    border-radius: 8px;
    background: var(--surface-soft);
}

.theory-grid strong {
    color: var(--deep-red);
}

.theory-grid p,
.theory-disclaimer {
    margin: 6px 0 0;
    color: #513629;
    text-align: justify;
}

.theory-disclaimer {
    padding: 10px 12px;
    border-left: 3px solid var(--gold);
    background: #fff8ea;
}

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

.detail-accordion-grid details,
.month-list details {
    padding: 0;
    border: 1px solid rgba(126, 45, 22, 0.14);
    border-radius: 8px;
    background: var(--surface-soft);
    overflow: hidden;
}

.detail-accordion-grid summary,
.month-list summary {
    min-height: 48px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    list-style: none;
    background: rgba(255, 253, 248, 0.72);
}

.detail-accordion-grid summary::-webkit-details-marker,
.month-list summary::-webkit-details-marker {
    display: none;
}

.detail-accordion-grid summary::after,
.month-list summary::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--red);
    font-size: 20px;
}

.detail-accordion-grid details[open] summary::after,
.month-list details[open] summary::after {
    content: "−";
}

.detail-accordion-grid details[open] summary,
.month-list details[open] summary {
    border-bottom: 1px solid rgba(126, 45, 22, 0.1);
    color: var(--deep-red);
}

.detail-accordion-grid summary span,
.month-list summary span {
    color: #7e5c45;
    font-size: 13px;
    font-weight: 400;
}

.detail-accordion-grid details p,
.month-list details p {
    margin: 0;
    padding: 0 14px 14px;
    line-height: 1.95;
    text-align: justify;
}

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

.action-list {
    padding: 14px 16px;
    border: 1px solid rgba(126, 45, 22, 0.14);
    border-radius: 8px;
    background: var(--surface-soft);
}

.action-list.is-do {
    border-color: rgba(49, 95, 85, 0.24);
    background: #eef4f0;
}

.action-list.is-do h3,
.action-list.is-do li::marker {
    color: var(--jade);
}

.action-list h3 {
    margin: 0 0 8px;
    color: var(--deep-red);
}

.action-list ul {
    margin: 0;
    padding-left: 20px;
}

.action-list li {
    margin: 7px 0;
    color: #513629;
}

.action-list.is-caution {
    background: #fff1e7;
}

.fortune-product-price {
    color: var(--deep-red);
    font-size: 24px;
    font-weight: 800;
}

body.fortune-order-open {
    overflow: hidden;
}

.fortune-order-modal,
.fortune-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(38, 8, 4, 0.72);
}

.fortune-order-modal.is-open,
.fortune-confirm-modal.is-open {
    display: flex;
}

.fortune-order-dialog {
    width: min(760px, 100%);
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    border: 1px solid rgba(222, 179, 73, 0.65);
    border-radius: 8px;
    background: #fffaf0;
    box-shadow: 0 22px 70px rgba(48, 8, 4, 0.36);
}

.fortune-confirm-dialog {
    width: min(720px, 100%);
}

.fortune-order-dialog > header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 20px;
    color: #fff8df;
    background: #760b09;
}

.fortune-order-dialog header small {
    display: block;
    color: #f0cb68;
}

.fortune-order-dialog header h2 {
    margin: 2px 0 0;
    font-size: 20px;
}

.fortune-order-dialog header button {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid rgba(255, 248, 223, 0.45);
    border-radius: 50%;
    color: #fff8df;
    background: transparent;
    font-size: 25px;
    cursor: pointer;
}

.fortune-order-product {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin: 18px 22px 0;
    padding: 14px;
    border: 1px solid rgba(126, 45, 22, 0.14);
    border-radius: 8px;
    background: #fff;
}

.fortune-order-product img {
    width: 104px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
}

.fortune-order-product strong,
.fortune-order-product span,
.fortune-order-product b {
    display: block;
}

.fortune-order-product strong {
    color: var(--deep-red);
    font-size: 18px;
}

.fortune-order-product span {
    margin: 4px 0;
    color: #7e5c45;
    font-size: 13px;
}

.fortune-order-product b {
    color: #a51411;
    font-size: 20px;
}

#fortuneOrderForm {
    display: grid;
    gap: 14px;
    padding: 20px 22px 22px;
}

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

#fortuneOrderForm label {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 6px 4px;
    align-items: center;
    color: #5d0707;
    font-weight: 700;
}

#fortuneOrderForm .fortune-required {
    justify-self: start;
    color: #b71916;
}

#fortuneOrderForm label > input,
#fortuneOrderForm label > select,
#fortuneOrderForm label > textarea,
#fortuneOrderForm label > .fortune-money-input,
#fortuneOrderForm label > small {
    grid-column: 1 / -1;
}

#fortuneOrderForm input,
#fortuneOrderForm select,
#fortuneOrderForm textarea {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid rgba(126, 45, 22, 0.28);
    border-radius: 6px;
    color: #321b14;
    background: #fff;
    font: inherit;
}

#fortuneOrderForm textarea {
    min-height: 84px;
    resize: vertical;
}

.fortune-order-payment-box {
    display: grid;
    gap: 10px;
    padding: 15px;
    border: 1px solid rgba(126, 45, 22, 0.18);
    border-radius: 8px;
    background: #fff7df;
}

.fortune-order-choice-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

#fortuneOrderForm .fortune-order-choice {
    display: block;
    font-weight: 400;
}

#fortuneOrderForm .fortune-order-choice input {
    position: absolute;
    width: 1px;
    min-height: 1px;
    opacity: 0;
}

.fortune-order-choice > span {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(139, 16, 16, 0.2);
    border-radius: 7px;
    color: var(--deep-red);
    background: #fff;
    cursor: pointer;
}

.fortune-order-choice input:checked + span {
    border-color: rgba(233, 195, 106, 0.78);
    color: #fff8df;
    background: linear-gradient(135deg, #9e1816, #5d0707);
}

.fortune-order-payment-detail[hidden],
#fortuneOrderForm [data-fortune-deposit-field][hidden] {
    display: none;
}

.fortune-money-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.fortune-money-input em {
    padding-left: 8px;
    color: var(--muted);
    font-style: normal;
}

[data-fortune-deposit-field] small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}

.fortune-payment-result {
    display: grid;
    gap: 10px;
}

.fortune-payment-result:empty {
    display: none;
}

.fortune-payment-qr {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(126, 45, 22, 0.18);
    border-radius: 8px;
    background: #fff;
}

.fortune-payment-qr img {
    width: 92px;
    aspect-ratio: 1;
    object-fit: contain;
}

.fortune-payment-result p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.fortune-order-submit,
.fortune-payment-link {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #8e1a12;
    border-radius: 6px;
    color: #fff8df;
    background: #8e1a12;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.fortune-order-submit:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.fortune-order-help,
.fortune-order-status {
    margin: 0;
    color: #7e5c45;
    font-size: 13px;
}

.fortune-order-status.error {
    color: #a51411;
}

.fortune-order-status.success {
    color: #26713a;
}

.fortune-confirm-content {
    display: grid;
    gap: 16px;
    padding: 24px 22px 18px;
}

.fortune-confirm-mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    border-radius: 50%;
    color: #fff8df;
    background: #8e1a12;
    font-size: 30px;
    font-weight: 800;
}

.fortune-confirm-content > h3,
.fortune-confirm-lead {
    margin: 0;
    text-align: center;
}

.fortune-confirm-content > h3 {
    color: var(--deep-red);
    font-size: 23px;
}

.fortune-confirm-lead {
    color: var(--muted);
}

.fortune-confirm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid rgba(126, 45, 22, 0.16);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.fortune-confirm-grid > div {
    min-width: 0;
    display: grid;
    gap: 4px;
    padding: 11px 12px;
    border-right: 1px solid rgba(126, 45, 22, 0.12);
    border-bottom: 1px solid rgba(126, 45, 22, 0.12);
}

.fortune-confirm-grid > div:nth-child(2n) {
    border-right: 0;
}

.fortune-confirm-grid span,
.fortune-confirm-products > span,
.fortune-confirm-item span {
    color: var(--muted);
    font-size: 13px;
}

.fortune-confirm-grid b,
.fortune-confirm-item b {
    overflow-wrap: anywhere;
    color: #3f261d;
}

.fortune-confirm-address {
    grid-column: 1 / -1;
    border-right: 0 !important;
}

.fortune-confirm-products {
    display: grid;
    gap: 8px;
    padding: 13px;
    border: 1px solid rgba(126, 45, 22, 0.16);
    border-radius: 8px;
    background: #fff7df;
}

.fortune-confirm-item {
    display: grid;
    gap: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(126, 45, 22, 0.12);
}

.fortune-confirm-payment-status {
    margin: 0;
    color: var(--muted);
    text-align: center;
}

.fortune-confirm-payment-status.is-paid {
    color: #26713a;
    font-weight: 700;
}

.fortune-confirm-payment-status.is-error {
    color: #a51411;
}

.fortune-confirm-footer {
    padding: 0 22px 22px;
}

.fortune-confirm-footer button {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(126, 45, 22, 0.25);
    border-radius: 6px;
    color: var(--deep-red);
    background: #fff;
    font: inherit;
    cursor: pointer;
}

.faq-list {
    margin-top: 14px;
}

details {
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
}

details:last-child {
    border-bottom: 0;
}

summary {
    color: var(--red);
    font-weight: 700;
    cursor: pointer;
}

details p {
    margin: 8px 0 0;
    color: #513629;
}

.footer {
    padding: 28px 14px 36px;
    text-align: center;
    color: #7e5c45;
    font-size: 13px;
}

.footer p {
    margin: 4px 0;
}

@media (max-width: 900px) {
    .page-shell,
    body[data-page="detail"] .page-shell {
        max-width: 760px;
    }

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

    body[data-page="detail"] .section-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .product-card {
        grid-template-columns: 210px minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 326px;
    }

    body[data-page="detail"] .hero {
        min-height: 306px;
    }

    .hero-content {
        padding: 68px 18px 48px;
    }

    body[data-page="detail"] .hero-content {
        padding-top: 58px;
    }

    .hero-top {
        padding: 14px 14px 0;
    }

    .back-home,
    .name-link {
        min-height: 36px;
        padding: 0 13px;
        font-size: 13px;
    }

    body:not([data-page="detail"]) .hero h1 {
        font-size: 28px;
    }

    body[data-page="detail"] .hero h1 {
        font-size: 26px;
    }

    .hero-content p:last-child {
        margin-top: 12px;
        font-size: 14px;
    }

    .panel {
        margin: 12px 10px 0;
        padding: 16px;
    }

    .zodiac-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .zodiac-card {
        min-height: 98px;
        padding: 10px 5px;
    }

    .zodiac-icon {
        font-size: 30px;
    }

    .zodiac-name {
        margin-top: 6px;
        font-size: 14px;
    }

    .zodiac-tag {
        max-width: 100%;
        padding: 0 5px;
        overflow: hidden;
        font-size: 11px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .detail-zodiac-switcher {
        grid-template-columns: minmax(0, 0.85fr) minmax(110px, 1.35fr) minmax(0, 0.85fr);
        gap: 6px;
    }

    .zodiac-step {
        gap: 3px;
        font-size: 13px;
    }

    .zodiac-step span {
        font-size: 22px;
    }

    .zodiac-select-wrap {
        padding-right: 6px;
        padding-left: 6px;
    }

    .zodiac-select-wrap select {
        font-size: 14px;
    }

    .section-nav,
    body[data-page="detail"] .section-nav {
        grid-auto-flow: column;
        top: 4px;
        grid-auto-columns: minmax(96px, 1fr);
        grid-template-columns: none;
        margin: 10px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .section-nav::-webkit-scrollbar {
        display: none;
    }

    .section-title h2 {
        font-size: 22px;
    }

    .fortune-score,
    .daily-card,
    .product-card {
        grid-template-columns: 1fr;
    }

    .score-ring,
    .daily-score {
        margin: 0 auto;
    }

    .month-list {
        grid-template-columns: 1fr;
    }

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

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

    .theory-grid,
    .detail-accordion-grid,
    .action-columns {
        grid-template-columns: 1fr;
    }

    .detail-accordion-grid summary,
    .month-list summary {
        min-height: 52px;
    }

    .fortune-order-modal,
    .fortune-confirm-modal {
        align-items: flex-end;
        padding: 0;
    }

    .fortune-order-dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 8px 8px 0 0;
    }

    .fortune-order-product {
        grid-template-columns: 76px minmax(0, 1fr);
        margin: 12px 14px 0;
        padding: 10px;
    }

    .fortune-order-product img {
        width: 76px;
    }

    #fortuneOrderForm,
    .fortune-confirm-content {
        padding-right: 14px;
        padding-left: 14px;
    }

    .fortune-confirm-footer {
        padding-right: 14px;
        padding-left: 14px;
    }

    .fortune-order-row {
        grid-template-columns: 1fr;
    }

    .fortune-confirm-grid {
        grid-template-columns: 1fr;
    }

    .fortune-confirm-grid > div,
    .fortune-confirm-grid > div:nth-child(2n) {
        border-right: 0;
    }
}
