/* ========================================
   铜钱打卦 - 知吉人（独立样式）
   ======================================== */

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

:root {
    --bg-warm: #E8E4DE;
    --bg-cream: #F5F2ED;
    --red-deep: #8B2323;
    --red-medium: #A52A2A;
    --gold-soft: #D4B896;
    --gold-warm: #C9A87C;
    --blue-deep: #5A7A8A;
    --blue-light: #B8CCD6;
    --blue-pale: #D4E1E8;
    --text-dark: #3D4852;
    --text-muted: #6B7C8A;
    --text-light: #9AABB8;
}

html, body {
    scroll-behavior: smooth;
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
}

body {
    font-family: 'Noto Serif SC', 'PingFang SC', 'Microsoft YaHei', serif;
    background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-warm) 100%);
    background-attachment: fixed;
    color: var(--text-dark);
}

/* ========================================
   顶部导航
   ======================================== */
.dagua-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0 24px;
    height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(250,249,247,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139,165,181,0.15);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.nav-logo-img {
    width: 32px; height: 32px;
    object-fit: contain;
    border-radius: 6px;
}

.nav-logo-text {
    font-family: 'Ma Shan Zheng', serif;
    font-size: 1.2rem;
    color: var(--red-deep);
    letter-spacing: 2px;
}

.nav-back {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-back:hover {
    background: rgba(139,165,181,0.1);
    color: var(--text-dark);
}

/* ========================================
   主内容
   ======================================== */
.dagua-main {
    padding-top: 72px;
    padding-bottom: 40px;
    min-height: 100vh;
}

.dagua-step {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 20px;
}

.step-content {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

/* ========================================
   页面标题
   ======================================== */
.page-header {
    text-align: center;
    margin-bottom: 10px;
}

.dagua-title {
    font-family: 'Ma Shan Zheng', serif;
    font-size: 2.2rem;
    color: var(--red-deep);
    letter-spacing: 6px;
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ========================================
   问事选择
   ======================================== */
.section-label {
    font-size: 1rem;
    color: var(--text-muted);
    text-align: center;
    margin: 24px 0 16px;
    font-weight: 400;
}

.question-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.question-card {
    background: rgba(255,255,255,0.7);
    border: 2px solid transparent;
    border-radius: 14px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.question-card:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139,165,181,0.2);
}

.question-card.selected {
    border-color: var(--red-deep);
    background: rgba(139,35,35,0.06);
    box-shadow: 0 4px 16px rgba(139,35,35,0.15);
}

.q-icon {
    font-size: 1.6rem;
    color: var(--blue-deep);
    margin-bottom: 8px;
}

.question-card.selected .q-icon { color: var(--red-deep); }

.q-name {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* 免责声明 */
.disclaimer-section {
    margin: 16px 0;
    text-align: center;
}

.disclaimer-check {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
    position: relative;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.disclaimer-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}

.checkmark {
    width: 20px; height: 20px;
    min-width: 20px;
    border: 2px solid var(--blue-light);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-top: 1px;
}

.disclaimer-check input:checked + .checkmark {
    background: var(--red-deep);
    border-color: var(--red-deep);
}

.disclaimer-check input:checked + .checkmark::after {
    content: '✓';
    color: #fff;
    font-size: 13px;
    line-height: 1;
}

.disclaimer-text {
    line-height: 1.5;
    text-align: left;
}

/* 开始按钮 */
.btn-start {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--red-deep), var(--red-medium));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-family: 'Noto Serif SC', serif;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 2px;
}

.btn-start:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-start:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139,35,35,0.3);
}

/* ========================================
   静心引导
   ======================================== */
.calm-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.calm-circle {
    width: 220px; height: 220px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calm-ring {
    position: absolute; inset: 0;
    border: 3px solid var(--gold-soft);
    border-radius: 50%;
    animation: calmPulse 3s ease-in-out infinite;
}

@keyframes calmPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.08); opacity: 1; }
}

.calm-text { text-align: center; z-index: 1; }

.calm-main {
    font-family: 'Ma Shan Zheng', serif;
    font-size: 1.8rem;
    color: var(--red-deep);
    letter-spacing: 8px;
}

.calm-sub { font-size: 0.9rem; color: var(--text-muted); margin-top: 8px; }

.calm-timer {
    font-family: 'Ma Shan Zheng', serif;
    font-size: 2.8rem;
    color: var(--gold-warm);
    margin-top: 24px;
}

.calm-hint { font-size: 0.85rem; color: var(--text-light); margin-top: 12px; }

/* ========================================
   摇卦
   ======================================== */
.shake-content { text-align: center; }

.shake-title {
    font-family: 'Ma Shan Zheng', serif;
    font-size: 1.6rem;
    color: var(--red-deep);
    letter-spacing: 4px;
}

.shake-progress { margin-top: 10px; }

.shake-count { font-size: 0.9rem; color: var(--text-muted); }
.shake-count em { color: var(--red-deep); font-style: normal; font-weight: 600; }

.progress-bar {
    width: 180px; height: 4px;
    background: var(--blue-pale);
    border-radius: 2px;
    margin: 8px auto 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--red-deep), var(--gold-warm));
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* 铜钱 */
.coins-area {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 32px 0;
    perspective: 800px;
}

.coin { width: 110px; height: 110px; cursor: pointer; }

.coin-inner {
    width: 100%; height: 100%;
    position: relative;
    transform-style: preserve-3d;
    
}

.coin.flipping .coin-inner {
    animation: coinFlip 1s ease-in-out forwards;
}

@keyframes coinFlip {
    0% { transform: rotateY(0deg) rotateX(0deg) translateY(0); }
    20% { transform: rotateY(280deg) rotateX(10deg) translateY(-55px); }
    50% { transform: rotateY(680deg) rotateX(-5deg) translateY(-25px); }
    75% { transform: rotateY(980deg) rotateX(3deg) translateY(-10px); }
    100% { transform: rotateY(var(--final-rotation)) rotateX(0deg) translateY(0); }
}
    25% { transform: rotateY(360deg) translateY(-50px); }
    50% { transform: rotateY(720deg) translateY(-25px); }
    75% { transform: rotateY(1080deg) translateY(-8px); }
    100% { transform: rotateY(var(--final-rotation)) translateY(0); }
}

.coin-front, .coin-back {
    position: absolute; inset: 0;
    backface-visibility: hidden;
    border-radius: 50%;
    overflow: hidden;
}

.coin-front img, .coin-back img { width: 100%; height: 100%; object-fit: cover; }
.coin-back { transform: rotateY(180deg); }
.coin.show-back .coin-inner { transform: rotateY(180deg); }

/* 爻结果 */
.yao-result-display {
    margin: 12px 0;
    padding: 10px 20px;
    background: rgba(139,35,35,0.06);
    border-radius: 10px;
    display: inline-block;
}

.yao-result-text { font-size: 1rem; color: var(--red-deep); font-weight: 600; }

/* 掷铜钱按钮 */
.btn-shake {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 44px;
    background: linear-gradient(135deg, var(--gold-warm), var(--gold-soft));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-family: 'Noto Serif SC', serif;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 2px;
    margin: 16px 0;
}

.btn-shake:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,124,0.4); }
.btn-shake:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* 摇卦方式切换 */
.shake-mode-switch {
    display: flex;
    gap: 0;
    margin: 16px auto;
    max-width: 320px;
    background: rgba(255,255,255,0.5);
    border-radius: 10px;
    padding: 3px;
}

.mode-btn {
    flex: 1;
    padding: 9px 14px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: 'Noto Serif SC', serif;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mode-btn.active {
    background: #fff;
    color: var(--red-deep);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 手摇模式 */
.manual-guide {
    background: rgba(255,255,255,0.7);
    border-radius: 14px;
    padding: 18px 20px;
    margin: 16px 0;
    text-align: left;
    border: 1px solid rgba(212,185,150,0.25);
}

.guide-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--blue-deep);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.guide-steps p {
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 2px;
}

.guide-legend {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(212,185,150,0.2);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.manual-yao-label {
    font-size: 1rem;
    color: var(--red-deep);
    font-weight: 600;
    margin: 18px 0 12px;
}

.manual-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.manual-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    background: rgba(255,255,255,0.8);
    border: 2px solid rgba(212,185,150,0.3);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Noto Serif SC', serif;
}

.manual-btn:hover {
    border-color: var(--gold-warm);
    background: rgba(255,255,255,0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(201,168,124,0.2);
}

.manual-btn:active {
    transform: translateY(0);
    border-color: var(--red-deep);
    background: rgba(139,35,35,0.06);
}

.manual-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.mb-icon {
    font-size: 1.6rem;
    color: var(--red-deep);
}

.mb-name {
    font-size: 0.85rem;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.4;
}

.mb-name small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* 爻位记录 */
.yao-history {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.yao-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.6);
    border-radius: 8px;
    min-width: 56px;
}

.yao-slot.done { background: rgba(139,35,35,0.08); }
.yao-label { font-size: 0.72rem; color: var(--text-light); }
.yao-val { font-size: 0.85rem; color: var(--text-dark); font-weight: 600; }
.yao-slot.done .yao-val { color: var(--red-deep); }

/* ========================================
   卦象展示
   ======================================== */
.result-content { padding-bottom: 40px; }

.gua-card {
    background: rgba(255,255,255,0.85);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(139,165,181,0.15);
    border: 1px solid rgba(212,185,150,0.3);
}

.gua-card-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(212,185,150,0.3);
}

.gua-name-main {
    font-family: 'Ma Shan Zheng', serif;
    font-size: 2.2rem;
    color: var(--red-deep);
    letter-spacing: 6px;
}

.gua-name-sub {
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    gap: 14px;
}

/* 爻位 */
.gua-yaos { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }

.gua-yao-row {
    display: grid;
    grid-template-columns: 50px 40px 1fr 50px 56px 50px 46px;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.gua-yao-row:hover { background: rgba(139,165,181,0.06); }
.gua-yao-row.dong-yao { background: rgba(139,35,35,0.04); }

.yao-pos { color: var(--text-light); font-size: 0.8rem; }
.yao-symbol { font-size: 1.3rem; text-align: center; }
.yao-symbol.yang { color: var(--red-deep); }
.yao-symbol.yin { color: var(--blue-deep); }
.yao-ganzhi { font-weight: 600; color: var(--text-dark); }

.yao-wuxing {
    text-align: center;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.wx-jin { background: #f0e6d3; color: #8B6914; }
.wx-mu { background: #d8ecd8; color: #2E7D32; }
.wx-shui { background: #d6e8f0; color: #1565C0; }
.wx-huo { background: #f0d6d6; color: #C62828; }
.wx-tu { background: #e8e0d0; color: #795548; }

.yao-liuqin { text-align: center; color: var(--text-muted); font-size: 0.8rem; }
.yao-shiying { text-align: center; font-weight: 600; color: var(--red-deep); font-size: 0.8rem; }
.yao-liushen { text-align: center; color: var(--gold-warm); font-size: 0.75rem; }

.yao-dong-tag {
    display: inline-block;
    padding: 1px 5px;
    background: var(--red-deep);
    color: #fff;
    border-radius: 3px;
    font-size: 0.65rem;
    margin-left: 3px;
}

/* 元数据 */
.gua-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(212,185,150,0.2);
}

.meta-item { text-align: center; }
.meta-label { display: block; font-size: 0.72rem; color: var(--text-light); margin-bottom: 3px; }
.meta-val { font-size: 0.85rem; color: var(--text-dark); font-weight: 600; }

/* ========================================
   解卦区域
   ======================================== */
.interpret-section { margin-bottom: 24px; }

.interpret-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.interpret-header h2 {
    font-family: 'Ma Shan Zheng', serif;
    font-size: 1.4rem;
    color: var(--text-dark);
    letter-spacing: 3px;
}

.interpret-lock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--red-deep), var(--red-medium));
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: none;
    font-family: 'Noto Serif SC', serif;
}

.interpret-lock:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(139,35,35,0.3); }

/* Tab */
.interpret-tabs {
    display: flex;
    margin-bottom: 16px;
    background: rgba(255,255,255,0.6);
    border-radius: 10px;
    padding: 3px;
}

.tab-btn {
    flex: 1;
    padding: 9px 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: 'Noto Serif SC', serif;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #fff;
    color: var(--red-deep);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 面板 */
.interpret-panel {
    background: rgba(255,255,255,0.8);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 14px;
    border: 1px solid rgba(212,185,150,0.2);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(212,185,150,0.2);
}

.panel-icon {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139,35,35,0.08);
    border-radius: 10px;
    color: var(--red-deep);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.panel-title h3 { font-size: 1rem; color: var(--text-dark); margin-bottom: 2px; }
.panel-title p { font-size: 0.75rem; color: var(--text-light); }

.panel-body { font-size: 0.9rem; line-height: 1.8; color: var(--text-dark); }

.loading-hint { text-align: center; color: var(--text-light); padding: 24px 0; }
.loading-hint i { margin-right: 6px; }

/* ========================================
   寻物罗盘
   ======================================== */
.compass-section { margin-bottom: 24px; text-align: center; }

.compass-title {
    font-family: 'Ma Shan Zheng', serif;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.compass-container { width: 280px; height: 280px; margin: 0 auto; }
.compass-detail { margin-top: 12px; font-size: 0.9rem; color: var(--text-dark); }

/* ========================================
   底部操作
   ======================================== */
.result-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 24px;
}

.btn-save, .btn-again {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: 'Noto Serif SC', serif;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-save { background: linear-gradient(135deg, var(--red-deep), var(--red-medium)); color: #fff; }
.btn-again { background: rgba(255,255,255,0.7); color: var(--text-dark); border: 1px solid var(--blue-light); }
.btn-save:hover, .btn-again:hover { transform: translateY(-2px); }

/* ========================================
   手机端
   ======================================== */
@media (max-width: 768px) {
    .dagua-nav { padding: 0 16px; }

    .dagua-step { padding: 20px 14px; }

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

    .question-card { padding: 14px 6px; }
    .q-icon { font-size: 1.3rem; }
    .q-name { font-size: 0.8rem; }

    .coins-area { gap: 14px; }
    .coin { width: 80px; height: 80px; }

    .gua-yao-row {
        grid-template-columns: 40px 30px 1fr 40px 46px 40px 36px;
        gap: 3px;
        padding: 5px 6px;
        font-size: 0.75rem;
    }

    .gua-meta { grid-template-columns: repeat(2, 1fr); }

    .interpret-tabs { display: flex !important; }
    .interpret-panel { display: none; }
    .interpret-panel.active { display: block; }

    .result-actions { flex-direction: column; }
    .btn-save, .btn-again { width: 100%; justify-content: center; }
}

@media (min-width: 769px) {
    .interpret-tabs { display: none !important; }
    .interpret-panel { display: block !important; }
}

/* ========================================
   装饰元素 & 美化增强 (v20260212d)
   ======================================== */

/* 导航栏免责声明 */
.nav-disclaimer {
    font-size: 0.72rem;
    color: var(--text-light);
    letter-spacing: 1px;
    opacity: 0.7;
}

/* 背景装饰纹样 */
.bg-decoration {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-pattern {
    position: absolute;
    border-radius: 50%;
    opacity: 0.04;
}

.bg-pattern-1 {
    width: 600px; height: 600px;
    top: -200px; right: -200px;
    background: radial-gradient(circle, var(--red-deep) 0%, transparent 70%);
    animation: floatSlow 20s ease-in-out infinite;
}

.bg-pattern-2 {
    width: 500px; height: 500px;
    bottom: -150px; left: -150px;
    background: radial-gradient(circle, var(--gold-warm) 0%, transparent 70%);
    animation: floatSlow 25s ease-in-out infinite reverse;
}

@keyframes floatSlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -20px); }
}

/* 标题装饰 */
.title-decoration {
    font-size: 1.4rem;
    color: var(--gold-soft);
    letter-spacing: 20px;
    margin-bottom: 6px;
    opacity: 0.6;
}

.title-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-warm), transparent);
    margin: 12px auto 0;
}

/* 步骤内容相对定位 */
.dagua-step { position: relative; z-index: 1; }

/* 问事卡片增强 */
.question-card {
    position: relative;
    overflow: hidden;
}

.question-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-soft), var(--red-deep), var(--gold-soft));
    opacity: 0;
    transition: opacity 0.3s;
}

.question-card.selected::before,
.question-card:hover::before {
    opacity: 1;
}

.question-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(139,35,35,0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.question-card:hover::after { opacity: 1; }

/* ========================================
   摇卦方式大卡片
   ======================================== */
.shake-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: center;
}

.mode-cards {
    display: flex;
    gap: 18px;
    margin: 28px auto;
    max-width: 600px;
    justify-content: center;
}

.mode-card {
    flex: 1;
    max-width: 270px;
    background: rgba(255,255,255,0.75);
    border: 2px solid rgba(212,185,150,0.25);
    border-radius: 18px;
    padding: 28px 20px;
    cursor: pointer;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.mode-card:hover {
    background: rgba(255,255,255,0.92);
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(139,165,181,0.2);
}

.mode-card.active {
    border-color: var(--red-deep);
    background: rgba(139,35,35,0.04);
    box-shadow: 0 8px 28px rgba(139,35,35,0.15);
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-soft), var(--red-deep), var(--gold-soft));
    opacity: 0;
    transition: opacity 0.3s;
}

.mode-card.active::before { opacity: 1; }

.mode-card-icon {
    position: relative;
    width: 64px; height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--blue-deep);
    transition: color 0.3s;
}

.mode-card.active .mode-card-icon { color: var(--red-deep); }

.mode-card-glow {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,185,150,0.2) 0%, transparent 70%);
    transition: all 0.3s;
}

.mode-card.active .mode-card-glow {
    background: radial-gradient(circle, rgba(139,35,35,0.12) 0%, transparent 70%);
}

.mode-card-info h3 {
    font-family: 'Ma Shan Zheng', serif;
    font-size: 1.3rem;
    color: var(--text-dark);
    letter-spacing: 3px;
    margin-bottom: 6px;
}

.mode-card-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.mode-card-tip {
    margin-top: 8px;
    font-size: 0.75rem !important;
    color: var(--text-light) !important;
    font-style: italic;
}

.mode-card-check {
    position: absolute;
    top: 12px; right: 12px;
    font-size: 1.2rem;
    color: var(--red-deep);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s;
}

.mode-card.active .mode-card-check {
    opacity: 1;
    transform: scale(1);
}

/* ========================================
   卦象卡片装饰增强
   ======================================== */
.gua-card {
    position: relative;
    overflow: hidden;
}

.gua-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-soft), var(--red-deep), var(--gold-warm), var(--red-deep), var(--gold-soft));
}

.gua-card::after {
    content: '☰';
    position: absolute;
    top: 16px; right: 20px;
    font-size: 1.6rem;
    color: var(--gold-soft);
    opacity: 0.15;
}

/* 罗盘装饰 */
.compass-section {
    background: rgba(255,255,255,0.7);
    border-radius: 18px;
    padding: 24px;
    border: 1px solid rgba(212,185,150,0.3);
}

.compass-container {
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.compass-title i {
    color: var(--gold-warm);
    margin-right: 6px;
}

.compass-result-text {
    text-align: center;
}

.compass-direction {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.compass-direction strong {
    color: var(--red-deep);
}

.compass-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.compass-note {
    font-size: 0.78rem;
    color: var(--text-light);
    font-style: italic;
}

/* 手摇按钮active状态 */
.manual-btn.manual-btn-active {
    border-color: var(--red-deep) !important;
    background: rgba(139,35,35,0.08) !important;
    transform: scale(0.97);
}

/* 静心页面增强 */
.calm-circle::before {
    content: '';
    position: absolute;
    inset: -20px;
    border: 1px solid var(--gold-soft);
    border-radius: 50%;
    opacity: 0.3;
    animation: calmPulse 4s ease-in-out infinite 0.5s;
}

.calm-circle::after {
    content: '';
    position: absolute;
    inset: -40px;
    border: 1px solid var(--gold-soft);
    border-radius: 50%;
    opacity: 0.15;
    animation: calmPulse 5s ease-in-out infinite 1s;
}

/* 解卦面板增强 */
.interpret-panel {
    position: relative;
    overflow: hidden;
}

.interpret-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-warm), transparent);
}

/* 确认方式按钮 */
.btn-confirm-mode {
    margin-top: 8px;
}

/* 覆盖原CSS的tab和panel显示规则 */
.interpret-tabs { display: none !important; }
.interpret-panel { display: block !important; }

/* 三派上下堆叠 */
.interpret-panels .interpret-panel {
    margin-bottom: 16px;
}

/* 印戳 */
.report-stamp {
    position: relative;
    width: 110px; height: 110px;
    margin: 20px auto;
    border: 4px solid rgba(200, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-15deg);
    color: rgba(200, 0, 0, 0.6);
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    padding: 15px;
    font-family: 'Noto Serif SC', serif;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.report-stamp.visible { opacity: 1; }
.report-stamp .stamp-inner { line-height: 1.4; }

/* 订单信息栏 */
.report-order-info {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    font-size: 12px;
    color: #888;
    line-height: 2;
}
.report-order-info .order-title {
    font-size: 14px;
    color: #666;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}
.report-order-info .order-row {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
}
.report-order-info .order-label { color: #999; min-width: 100px; }
.report-order-info .order-value { color: #666; text-align: right; }
.report-order-info .terms-confirm {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
    color: #999;
    font-size: 11px;
}

/* 重试按钮 */
.btn-retry {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--red-deep), var(--red-medium));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: 'Noto Serif SC', serif;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-retry:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139,35,35,0.3);
}

.interpret-error {
    color: #C75050;
    text-align: center;
    padding: 16px 0 4px;
}

/* ========================================
   手机端补充
   ======================================== */
@media (max-width: 768px) {
    .mode-cards {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }
    .mode-card {
        max-width: 100%;
        padding: 20px 16px;
    }
    .mode-card-icon {
        width: 50px; height: 50px;
        font-size: 1.4rem;
    }
    .mode-card-info h3 { font-size: 1.1rem; }
    .bg-pattern-1 { width: 300px; height: 300px; top: -100px; right: -100px; }
    .bg-pattern-2 { width: 250px; height: 250px; bottom: -80px; left: -80px; }
}
