:root {
    --forest-deep: #1a3a2f;
    --forest-mid: #2d5a47;
    --sage: #4a7c5f;
    --moss: #6b9b7a;
    --mint: #a8d4b8;
    --cream: #f8faf6;
    --paper: #fffef9;
    --bark: #3d3d3d;
    --ember: #c45c3e;
    --gold-soft: #d4a854;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Serif SC', serif;
    background: var(--cream);
    color: var(--bark);
    line-height: 1.9;
    font-size: 17px;
    min-height: 100vh;
}

/* 顶部装饰 */
.top-decoration {
    height: 6px;
    background: linear-gradient(90deg, 
        var(--forest-deep) 0%, 
        var(--sage) 30%, 
        var(--moss) 50%, 
        var(--sage) 70%, 
        var(--forest-deep) 100%);
}

/* 页面容器 */
.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

#report-root {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(168, 212, 184, 0.4);
    border-radius: 18px;
    padding: 18px 24px 32px;
    box-shadow: 0 12px 36px rgba(24, 54, 39, 0.08);
}

/* 头部 */
header {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--moss);
}

.header-label {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 13px;
    letter-spacing: 6px;
    color: var(--sage);
    text-transform: uppercase;
    margin-bottom: 20px;
}

h1 {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 42px;
    font-weight: 400;
    color: var(--forest-deep);
    letter-spacing: 8px;
    margin-bottom: 16px;
}

.subtitle {
    font-size: 15px;
    color: var(--sage);
    font-style: italic;
}

/* 章节 */
section {
    padding: 60px 0;
    border-bottom: 1px solid rgba(106, 155, 122, 0.2);
    animation: fadeInUp 0.6s ease-out;
}

section:last-of-type {
    border-bottom: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 章节标号 */
.section-number {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 12px;
    color: var(--moss);
    letter-spacing: 3px;
    margin-bottom: 12px;
}

h2 {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 26px;
    font-weight: 400;
    color: var(--forest-mid);
    margin-bottom: 36px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--moss), transparent);
}

h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--forest-deep);
    margin: 48px 0 20px;
    padding-left: 16px;
    border-left: 3px solid var(--moss);
}

h3:first-of-type {
    margin-top: 0;
}

/* 正文 */
p {
    margin-bottom: 20px;
    text-align: justify;
}

/* 一句话总结 */
.summary {
    background: linear-gradient(135deg, rgba(168, 212, 184, 0.15), rgba(107, 155, 122, 0.1));
    padding: 24px 28px;
    border-radius: 4px;
    margin: 32px 0;
    position: relative;
    border-left: 3px solid var(--sage);
}

.summary::before {
    content: '总结';
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--cream);
    padding: 0 10px;
    font-size: 12px;
    color: var(--sage);
    letter-spacing: 2px;
}

.summary p {
    margin: 0;
    color: var(--forest-mid);
    font-weight: 500;
}

/* === 判词内容区样式 === */

/* 判词卡片容器 */
.verdict-card {
    background: var(--paper);
    border-radius: 16px;
    padding: 28px 24px 36px;
    box-shadow: 0 6px 24px rgba(45, 90, 71, 0.08);
    border: 1px solid rgba(168, 212, 184, 0.4);
}

@media (min-width: 640px) {
    .verdict-card {
        padding: 36px 40px 48px;
    }
}

/* 主标题（一、总论 等）- h3.section-title */
.verdict-card h3.section-title,
.verdict-card .section-title {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--forest-deep);
    margin: 48px 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(168, 212, 184, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 1px;
}

.verdict-card h3.section-title:first-child,
.verdict-card .section-title:first-child {
    margin-top: 0;
}

/* 子标题（少年期、青年期等）- h4.sub-title */
.verdict-card h4.sub-title {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--forest-mid);
    margin: 28px 0 12px 0;
    padding-left: 16px;
    border-left: 3px solid var(--moss);
}

/* 模块标题前的图标容器 */
.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.section-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* 高亮行（技术句、一句话总括） */
.verdict-card .highlight-line {
    background: linear-gradient(135deg, rgba(168, 212, 184, 0.15) 0%, rgba(107, 155, 122, 0.08) 100%);
    border-left: 4px solid var(--sage);
    border-radius: 8px;
    padding: 14px 18px;
    margin: 16px 0 20px 0;
    color: var(--forest-mid);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.9;
}

/* 普通段落 */
.verdict-card p {
    font-family: 'Noto Serif SC', serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 2;
    color: var(--bark);
    margin: 0 0 18px 0;
    text-align: justify;
}

.verdict-card > p:not(.knife):not(.section-title):not(.highlight-line)::before {
    display: none;
}

/* 金句样式 - 柔和优雅风格 */
.knife,
p.knife {
    position: relative;
    background: linear-gradient(135deg, rgba(168, 212, 184, 0.12) 0%, rgba(107, 155, 122, 0.08) 100%);
    border: 1px solid rgba(107, 155, 122, 0.35);
    border-left: 4px solid var(--sage);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 8px 0 20px 0;
    color: var(--forest-mid);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.8;
    column-count: unset;
    column-gap: unset;
    column-width: unset;
}

p.knife {
    display: block;
}

/* 隐藏旧的 knife 内部元素 */
.knife-icon,
.knife-heading {
    display: none !important;
}

/* === 短刀布局 === */
.v3-demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: rgba(168, 212, 184, 0.18);
    color: var(--forest-mid);
    font-size: 14px;
    letter-spacing: 1px;
}

.v3-section-card {
    background: var(--paper);
    border: 1px solid rgba(168, 212, 184, 0.45);
    border-radius: 16px;
    padding: 18px 18px 16px;
    margin-bottom: 14px;
    box-shadow: 0 8px 26px rgba(24, 54, 39, 0.08);
}

.v3-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.v3-seq {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(168, 212, 184, 0.25), rgba(107, 155, 122, 0.18));
    color: var(--forest-mid);
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 14px;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.v3-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.v3-key {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(61, 61, 61, 0.7);
}

.v3-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--forest-deep);
    letter-spacing: 1px;
}

.v3-verdict {
    margin: 2px 0 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(168, 212, 184, 0.16), rgba(107, 155, 122, 0.12));
    border-left: 4px solid var(--sage);
    font-size: 15px;
    line-height: 1.8;
    color: var(--forest-mid);
    font-weight: 600;
}

.v3-role {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(168, 212, 184, 0.08);
    border: 1px dashed rgba(168, 212, 184, 0.65);
}

.v3-role-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.v3-role-col {
    flex: 1;
    min-width: 0;
}

.v3-role-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(168, 212, 184, 0.22);
    color: var(--forest-deep);
    font-size: 12px;
    font-weight: 700;
    word-break: break-word;
}

.v3-role-mirror {
    margin-top: 10px;
}

.v3-role-mirror-label {
    font-size: 12px;
    color: rgba(61, 61, 61, 0.7);
    margin-bottom: 4px;
}

.v3-role-mirror-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--bark);
}

.v3-role-switch {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(168, 212, 184, 0.6);
    font-size: 13px;
    line-height: 1.8;
    color: rgba(24, 54, 39, 0.9);
}

.v3-body p {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.9;
    color: var(--bark);
}

.v3-evidence {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 4px;
}

.v3-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(168, 212, 184, 0.3);
    color: var(--forest-mid);
    font-size: 12px;
}

.v3-rule {
    margin-top: 6px;
    padding-top: 6px;
    font-size: 14px;
    color: var(--forest-deep);
    border-top: 1px dashed rgba(168, 212, 184, 0.6);
}

.v3-partner-card .partner-lock {
    margin-top: 10px;
    border-radius: 14px;
    padding: 18px 16px;
    background: linear-gradient(135deg, rgba(168, 212, 184, 0.12), rgba(107, 155, 122, 0.08));
    border: 1px dashed rgba(168, 212, 184, 0.7);
    text-align: center;
}

.v3-partner-card .partner-lock-inner {
    margin: 0 auto;
    max-width: 320px;
}

.v3-partner-card .partner-lock-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--forest-deep);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.v3-partner-card .partner-lock-sub {
    font-size: 13px;
    color: rgba(77, 93, 79, 0.85);
    margin-bottom: 12px;
    line-height: 1.7;
}

.v3-partner-card .partner-content {
    margin-top: 12px;
}

.v3-partner-card .partner-title-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.v3-partner-card .partner-free-chip {
    font-weight: 600;
}

.v3-partner-card .partner-free {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(168, 212, 184, 0.45);
    background: rgba(255, 255, 255, 0.7);
}

.v3-partner-card .partner-free-body p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--bark);
}

.v3-partner-card .partner-free-body p:last-child {
    margin-bottom: 0;
}

.v3-partner-card .partner-free-placeholder {
    color: rgba(77, 93, 79, 0.75);
    font-size: 13px;
}

.v3-partner-card .partner-cta {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.v3-partner-card .partner-cta-hint {
    font-size: 12px;
    color: rgba(77, 93, 79, 0.8);
}

.v3-partner-card .partner-quick {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(168, 212, 184, 0.6);
    background: rgba(255, 255, 255, 0.72);
}

.v3-partner-card .partner-quick-head {
    font-size: 12px;
    font-weight: 600;
    color: var(--forest-mid);
    margin-bottom: 6px;
}

.v3-partner-card .partner-quick-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.v3-partner-card .partner-quick-input {
    border-radius: 999px;
    border: 1px solid rgba(168, 212, 184, 0.9);
    padding: 0 12px;
    height: 34px;
    font-size: 13px;
    line-height: 34px;
    font-family: inherit;
    background: rgba(255, 255, 252, 0.95);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.v3-partner-card .partner-quick-input.partner-quick-year {
    width: 86px;
    text-align: center;
}

.v3-partner-card .partner-quick-select {
    border-radius: 999px;
    border: 1px solid rgba(168, 212, 184, 0.9);
    padding: 0 28px 0 12px;
    height: 34px;
    font-size: 13px;
    line-height: 34px;
    font-family: inherit;
    background: rgba(255, 255, 252, 0.95);
    outline: none;
    min-width: 72px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(77, 93, 79, 0.7) 50%),
        linear-gradient(135deg, rgba(77, 93, 79, 0.7) 50%, transparent 50%);
    background-position: right 12px center, right 7px center;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.v3-partner-card .partner-quick-hour {
    min-width: 86px;
}

.v3-partner-card .partner-quick-suffix {
    font-size: 12px;
    line-height: 34px;
    color: rgba(61, 61, 61, 0.75);
    margin-right: 4px;
}

.v3-partner-card .partner-quick-calendar {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    color: rgba(61, 61, 61, 0.8);
}

.v3-partner-card .partner-quick-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.v3-partner-card .partner-quick-leap {
    display: none;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.v3-partner-card .partner-quick-radio input[type="radio"],
.v3-partner-card .partner-quick-leap input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--forest-mid);
}

.v3-partner-card .partner-quick-input:focus {
    border-color: var(--forest-mid);
    box-shadow: 0 0 0 1px rgba(87, 142, 112, 0.35);
    background: #fffefc;
}

.v3-partner-card .partner-quick-result {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(61, 61, 61, 0.78);
}

.v3-partner-card .partner-quick-line {
    font-weight: 600;
    color: var(--forest-deep);
    margin-bottom: 4px;
}

.v3-partner-card .partner-quick-meta {
    color: rgba(45, 90, 71, 0.85);
}

.v3-partner-card .partner-compat {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(168, 212, 184, 0.45);
    background: rgba(255, 255, 255, 0.75);
}

.v3-partner-card .partner-compat-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--forest-deep);
    margin-bottom: 4px;
}

.v3-partner-card .partner-compat-hint {
    font-size: 12px;
    color: rgba(77, 93, 79, 0.82);
    margin-bottom: 10px;
}

.v3-partner-card .partner-compat-form {
    display: grid;
    gap: 10px;
}

.v3-partner-card .partner-compat-label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    color: var(--forest-mid);
}

.v3-partner-card .partner-compat-input {
    border-radius: 12px;
    border: 1px solid rgba(168, 212, 184, 0.9);
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    background: rgba(255, 255, 252, 0.95);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.v3-partner-card .partner-compat-input:focus {
    border-color: var(--forest-mid);
    box-shadow: 0 0 0 1px rgba(87, 142, 112, 0.4);
    background: #fffefc;
}

.v3-partner-card .partner-compat-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.v3-partner-card .partner-h3 {
    margin: 14px 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--forest-deep);
}

.v3-partner-card .partner-content p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.85;
    color: var(--bark);
}

.v3-partner-card .btn-modal-primary[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    filter: grayscale(0.2);
}

.placeholder.streaming {
    opacity: 0.8;
}

/* === Fortune Curve === */
.fortune-card .fortune-summary {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(61, 61, 61, 0.78);
    margin-bottom: 10px;
}

.fortune-card .fortune-highpoint {
    font-size: 13px;
    font-weight: 800;
    color: rgba(45, 90, 71, 0.92);
    margin: 6px 0 10px;
}

.fortune-card .fortune-chart {
    width: 100%;
    height: 320px;
    border-radius: 14px;
    border: 1px solid rgba(168, 212, 184, 0.45);
    background: rgba(255, 255, 255, 0.65);
    overflow: hidden;
}

.fortune-card .fortune-footnote {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.7;
    color: rgba(61, 61, 61, 0.74);
}

.fortune-card .fortune-paywall {
    margin: 10px 0 12px;
    border-radius: 14px;
    padding: 14px 14px;
    background: linear-gradient(135deg, rgba(212, 168, 84, 0.10), rgba(168, 212, 184, 0.10));
    border: 1px dashed rgba(212, 168, 84, 0.55);
}

.fortune-card .fortune-paywall-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--forest-deep);
    margin-bottom: 4px;
}

.fortune-card .fortune-paywall-sub {
    font-size: 13px;
    color: rgba(61, 61, 61, 0.78);
    line-height: 1.7;
    margin-bottom: 10px;
}

.fortune-card .fortune-list {
    border-radius: 14px;
    border: 1px solid rgba(168, 212, 184, 0.45);
    background: rgba(255, 255, 255, 0.65);
    overflow: auto;
    max-height: 420px;
}

.fortune-card .fortune-item {
    padding: 12px 12px 10px;
    border-bottom: 1px solid rgba(168, 212, 184, 0.35);
}

.fortune-card .fortune-item:last-child {
    border-bottom: none;
}

.fortune-card .fortune-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fortune-card .fortune-year {
    width: 56px;
    flex-shrink: 0;
    font-family: 'ZCOOL XiaoWei', serif;
    color: var(--forest-deep);
    letter-spacing: 0.5px;
}

.fortune-card .fortune-gz {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    color: rgba(45, 90, 71, 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fortune-card .fortune-score {
    width: 70px;
    flex-shrink: 0;
    text-align: right;
    font-weight: 800;
    color: var(--forest-mid);
    font-size: 13px;
}

.fortune-card .fortune-item.locked .fortune-score {
    opacity: 0.65;
}

.fortune-card .fortune-mode {
    width: 52px;
    flex-shrink: 0;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(168, 212, 184, 0.22);
    color: var(--forest-deep);
}

.fortune-card .fortune-mode.mode-Attack {
    background: rgba(16, 185, 129, 0.16);
    color: #0f766e;
}

.fortune-card .fortune-mode.mode-Build {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.fortune-card .fortune-mode.mode-Consolidate {
    background: rgba(212, 168, 84, 0.14);
    color: #92400e;
}

.fortune-card .fortune-mode.mode-Avoid {
    background: rgba(196, 92, 62, 0.12);
    color: #9f1239;
}

.fortune-card .fortune-conf {
    width: 22px;
    flex-shrink: 0;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    color: rgba(61, 61, 61, 0.75);
}

.fortune-card .fortune-markers {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.fortune-card .fortune-marker {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(168, 212, 184, 0.26);
    font-size: 11px;
    color: rgba(45, 90, 71, 0.95);
    letter-spacing: 0.3px;
}

.fortune-card .fortune-lines {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.75;
    color: var(--bark);
}

.fortune-card .fortune-advice {
    margin-top: 4px;
    color: rgba(45, 90, 71, 0.92);
}

/* === 2026 运势板块 === */
.fortune2026-card {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.08) 0%, 
        rgba(255, 107, 107, 0.06) 50%, 
        rgba(168, 212, 184, 0.10) 100%);
    border: 2px solid rgba(255, 215, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.fortune2026-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(255, 215, 0, 0.03) 50%, 
        transparent 100%);
    animation: fortune2026-shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes fortune2026-shimmer {
    0%, 100% { transform: translateX(-50%) translateY(-50%) rotate(0deg); }
    50% { transform: translateX(-50%) translateY(-50%) rotate(5deg); }
}

/* 付费模块中的 2026 运势卡片 */
.v3-section-card[data-product-code="lucky6"] {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.08) 0%, 
        rgba(255, 107, 107, 0.06) 50%, 
        rgba(168, 212, 184, 0.10) 100%);
    border: 2px solid rgba(255, 215, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.v3-section-card[data-product-code="lucky6"]::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(255, 215, 0, 0.03) 50%, 
        transparent 100%);
    animation: fortune2026-shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.v3-section-card[data-product-code="lucky6"] .partner-lock-title {
    color: #8B4513;
}

.v3-section-card[data-product-code="lucky6"] .partner-lock-inner {
    background: linear-gradient(180deg, 
        rgba(255, 248, 220, 0.95) 0%, 
        rgba(255, 239, 190, 0.90) 100%);
    border-color: rgba(255, 215, 0, 0.4);
}

.v3-section-card[data-product-code="lucky6"] .btn-modal-primary {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #5D4037;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
}

.v3-section-card[data-product-code="lucky6"] .btn-modal-primary:hover {
    background: linear-gradient(135deg, #FFE44D 0%, #FFB84D 100%);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.5);
}

.fortune2026-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.fortune2026-year-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 999px;
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 18px;
    font-weight: 700;
    color: #8B4513;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.35);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.fortune2026-year-badge .year-emoji {
    font-size: 20px;
}

.fortune2026-overview {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 14px;
    border: 1px solid rgba(255, 215, 0, 0.25);
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--forest-deep);
}

.fortune2026-section {
    margin-bottom: 16px;
}

.fortune2026-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--forest-deep);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px dashed rgba(168, 212, 184, 0.45);
}

.fortune2026-section-title .title-icon {
    font-size: 16px;
}

.fortune2026-module {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 12px;
    border: 1px solid rgba(168, 212, 184, 0.35);
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.fortune2026-module:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-1px);
}

.fortune2026-module:last-child {
    margin-bottom: 0;
}

.fortune2026-module-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.fortune2026-module-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.fortune2026-module-name {
    flex: 1;
    font-size: 14px;
    font-weight: 700;
    color: var(--forest-deep);
}

.fortune2026-module-result {
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.25));
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #047857;
    white-space: nowrap;
}

.fortune2026-module-result.negative {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.20));
    color: #dc2626;
}

.fortune2026-module-result.neutral {
    background: linear-gradient(135deg, rgba(212, 168, 84, 0.15), rgba(212, 168, 84, 0.25));
    color: #92400e;
}

.fortune2026-module-reason {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(61, 61, 61, 0.85);
    margin-bottom: 6px;
}

.fortune2026-module-advice {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(45, 90, 71, 0.95);
    padding-left: 12px;
    border-left: 3px solid rgba(16, 185, 129, 0.5);
}

.fortune2026-bg-module {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 10px;
    border: 1px solid rgba(168, 212, 184, 0.25);
    margin-bottom: 8px;
}

.fortune2026-bg-module:last-child {
    margin-bottom: 0;
}

.fortune2026-bg-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.fortune2026-bg-icon {
    font-size: 16px;
}

.fortune2026-bg-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--forest-mid);
}

.fortune2026-bg-result {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(168, 212, 184, 0.22);
    color: var(--forest-deep);
}

.fortune2026-bg-advice {
    font-size: 12px;
    line-height: 1.6;
    color: rgba(61, 61, 61, 0.78);
}

.fortune2026-closing {
    margin-top: 16px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 107, 107, 0.08));
    border-radius: 14px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
    color: var(--forest-deep);
    text-align: center;
}

.fortune2026-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 16px;
}

.fortune2026-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 215, 0, 0.2);
    border-top-color: #FFD700;
    border-radius: 50%;
    animation: fortune2026-spin 1s linear infinite;
}

@keyframes fortune2026-spin {
    to { transform: rotate(360deg); }
}

.fortune2026-loading-text {
    font-size: 14px;
    color: var(--forest-mid);
}

/* === Markdown 格式支持 === */

/* 引用块样式 */
.verdict-card blockquote,
.verdict-card .quote-block {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    color: var(--forest-mid);
    font-size: 14px;
    font-style: normal;
    line-height: 1.9;
}

/* 分隔线样式 */
.verdict-card hr,
.verdict-card .section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--moss), transparent);
    margin: 32px 0;
}

/* 判词列表样式 - 覆盖默认 ul/ol */
.verdict-card .verdict-list {
    margin: 16px 0 24px 0;
    padding-left: 0;
    list-style: none;
}

.verdict-card ol.verdict-list {
    counter-reset: list-counter;
}

.verdict-card .verdict-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.9;
    color: var(--bark);
}

.verdict-card ul.verdict-list li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 11px;
    width: 7px;
    height: 7px;
    background: var(--moss);
    border-radius: 50%;
}

.verdict-card ol.verdict-list li {
    counter-increment: list-counter;
}

.verdict-card ol.verdict-list li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 0;
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--sage);
    width: 20px;
    text-align: center;
}

/* 加粗文本样式 */
.verdict-card strong {
    font-weight: 600;
    color: var(--forest-deep);
}

/* 列表样式 */
ul {
    list-style: none;
    margin: 24px 0;
}

ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 14px;
}

ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--moss);
    border-radius: 50%;
}

/* 数据标签 */
.data {
    display: inline-block;
    background: rgba(168, 212, 184, 0.3);
    padding: 2px 8px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    color: var(--forest-deep);
}

/* 冲突卡片 */
.conflict {
    margin: 48px 0;
    padding: 40px;
    background: var(--paper);
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(45, 90, 71, 0.06);
}

.conflict h3 {
    margin-top: 0;
    border-left-color: var(--gold-soft);
}

/* 建议区 */
.advice-section {
    background: linear-gradient(180deg, var(--cream) 0%, rgba(168, 212, 184, 0.1) 100%);
    padding: 80px 0;
    margin-top: 40px;
}

.advice-card {
    background: var(--paper);
    padding: 36px 40px;
    margin-bottom: 32px;
    border-radius: 6px;
    box-shadow: 0 4px 24px rgba(45, 90, 71, 0.08);
    position: relative;
    overflow: hidden;
}

.advice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--sage), var(--mint));
}

.advice-card h3 {
    border-left: none;
    padding-left: 0;
    margin-bottom: 24px;
    color: var(--forest-mid);
}

.advice-label {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--sage);
    margin-bottom: 12px;
    padding: 4px 10px;
    background: rgba(168, 212, 184, 0.2);
    border-radius: 2px;
}

.action-step {
    background: rgba(168, 212, 184, 0.12);
    padding: 20px 24px;
    border-radius: 4px;
    margin: 20px 0;
}

.action-step strong {
    color: var(--forest-deep);
}

/* 页脚 */
footer {
    text-align: center;
    padding: 60px 0;
    color: var(--sage);
    font-size: 14px;
}

footer::before {
    content: '·';
    display: block;
    font-size: 18px;
    color: var(--moss);
    margin-bottom: 20px;
}

/* 分割装饰 */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 48px 0;
    color: var(--moss);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(107, 155, 122, 0.3), transparent);
}

.divider span {
    padding: 0 20px;
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 32px;
        letter-spacing: 4px;
    }

    h2 {
        font-size: 22px;
    }

    section {
        padding: 48px 0;
    }

    .conflict {
        padding: 28px 24px;
    }

    .advice-card {
        padding: 28px 24px;
    }
}

/* === Extra layout for form & modal on index.html === */

.form-card {
  background: rgba(255, 255, 249, 0.92);
  border-radius: 18px;
  padding: 22px 20px 24px;
  margin-bottom: 42px;
  box-shadow: 0 10px 30px rgba(19, 41, 32, 0.14);
  border: 1px solid rgba(168, 212, 184, 0.8);
}

@media (min-width: 960px) {
  .form-card {
    padding: 26px 28px 26px;
    margin-bottom: 48px;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 18px;
  margin-top: 4px;
}

@media (min-width: 720px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.field span {
  font-weight: 500;
  color: var(--forest-mid);
}

.field input[type="text"],
.field input[type="date"],
.field select {
  border-radius: 999px;
  border: 1px solid rgba(168, 212, 184, 0.9);
  padding: 10px 16px;
  font-size: 14px;
  font-family: inherit;
  background: rgba(255, 255, 252, 0.95);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.field input[type="text"]:focus,
.field input[type="date"]:focus,
.field select:focus {
  border-color: var(--forest-mid);
  box-shadow: 0 0 0 1px rgba(87, 142, 112, 0.4);
  background: #fffefc;
}

.radio-group {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
  color: var(--bark);
}

.radio input[type="radio"] {
  accent-color: var(--forest-mid);
  width: 16px;
  height: 16px;
}

.micro-hint {
  font-size: 12px;
  color: rgba(77, 93, 79, 0.8);
}

.btn-primary {
  margin-top: 12px;
  grid-column: 1 / -1;
  border: none;
  border-radius: 999px;
  padding: 11px 24px;
  font-size: 15px;
  font-weight: 500;
  background: linear-gradient(135deg, var(--forest-mid), var(--moss));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(45, 90, 71, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.date-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.date-row input[type="text"],
.date-row select {
  width: 92px;
}

.date-row select {
  min-width: 80px;
}

.date-suffix {
  font-size: 13px;
  color: rgba(61, 61, 61, 0.8);
  margin-right: 6px;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(31, 66, 52, 0.45);
  filter: brightness(1.03);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(31, 66, 52, 0.35);
  filter: brightness(0.98);
}

.status {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-size: 13px;
  min-height: 16px;
}

.status.info {
  color: rgba(77, 93, 79, 0.9);
}

.status.success {
  color: var(--forest-mid);
}

.status.error {
  color: var(--ember);
}

.placeholder {
  color: rgba(88, 106, 96, 0.75);
  font-size: 14px;
  font-style: italic;
}

.bazi-line {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 22px;
  letter-spacing: 3px;
  margin: 6px 0 16px;
  color: var(--forest-mid);
}

#bazi-section {
  padding: 36px 0 28px;
}

#bazi-section .section-number {
  margin-bottom: 6px;
}

#bazi-section h2 {
  margin-bottom: 20px;
}

#bazi-section .bazi-line {
  margin: 4px 0 12px;
}

.bazi-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}

#bazi-section .bazi-pillars {
  gap: 10px;
  margin-bottom: 6px;
}

#section-verdict {
  padding-top: 36px;
}

.pillar {
  background: var(--paper);
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(168, 212, 184, 0.8);
  box-shadow: 0 6px 16px rgba(45, 90, 71, 0.08);
}

.pillar-role {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--moss);
  margin-bottom: 4px;
}

.pillar-value {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 20px;
  color: var(--forest-deep);
  letter-spacing: 4px;
}

.pillar-wuxing {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
}

.wuxing-chip {
  --wuxing-color: var(--forest-mid);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(45, 90, 71, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--wuxing-color);
  letter-spacing: 1px;
}

.wuxing-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wuxing-label {
  font-size: 12px;
  line-height: 1;
}

.wuxing-placeholder {
  color: rgba(61, 61, 61, 0.6);
  letter-spacing: 1px;
}

.wuxing-wood { --wuxing-color: #4a7c5f; }
.wuxing-fire { --wuxing-color: #c45c3e; }
.wuxing-earth { --wuxing-color: #b98a4f; }
.wuxing-metal { --wuxing-color: #c8a54c; }
.wuxing-water { --wuxing-color: #4f7aa6; }

footer {
    margin-top: 32px;
    padding: 20px 0 32px;
    font-size: 12px;
    color: rgba(61, 61, 61, 0.6);
}

.share-footer {
    margin-top: 28px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(168, 212, 184, 0.6);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 10px 32px rgba(24, 54, 39, 0.08);
}

.share-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--forest-mid);
}

.share-title {
    font-size: 15px;
    font-weight: 600;
}

.share-sub {
    font-size: 13px;
    color: rgba(77, 93, 79, 0.75);
}

.share-qr img {
    width: 132px;
    height: 132px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(168, 212, 184, 0.7);
    padding: 6px;
}

.save-row {
    display: flex;
    justify-content: center;
    margin: 10px 0 28px;
    gap: 12px;
    flex-wrap: wrap;
}

.save-row .btn-primary {
    padding: 11px 26px;
    font-weight: 600;
    min-width: 180px;
}

.save-row .btn-secondary {
    padding: 10px 20px;
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.1s;
}

.save-row .btn-secondary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.save-row .btn-secondary:active {
    transform: translateY(0);
}

/* btn-reset 只覆盖颜色样式，其他继承自 btn-primary */
.save-row .btn-reset {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 8px 22px rgba(231, 76, 60, 0.35);
}

.save-row .btn-reset:hover {
    box-shadow: 0 12px 28px rgba(231, 76, 60, 0.4);
}

.save-row .btn-reset:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

@media (max-width: 640px) {
    .share-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Modal overlay for calendar confirmation */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
}

.modal.show {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(2px);
}

.modal-content {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border-radius: 18px;
  padding: 22px 22px 18px;
  box-shadow: 0 18px 50px rgba(17, 37, 29, 0.5);
  max-width: 360px;
  width: 88%;
  border: 1px solid rgba(168, 212, 184, 0.9);
}

.modal-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--forest-deep);
}

.modal-content p {
  font-size: 14px;
  margin-bottom: 18px;
  color: rgba(61, 61, 61, 0.9);
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.btn-modal-primary,
.btn-modal-secondary {
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-modal-primary {
  background: linear-gradient(135deg, var(--forest-mid), var(--moss));
  color: #fff;
  box-shadow: 0 6px 18px rgba(45, 90, 71, 0.38);
}

.btn-modal-secondary {
  background: rgba(244, 248, 244, 0.96);
  color: var(--forest-mid);
  border: 1px solid rgba(168, 212, 184, 0.8);
}
