/* public/css/liuyao.css - 六爻神卦專屬高質感樣式 (Punchy & Prominent Design System) */

:root {
    --liuyao-gold: #f59e0b;
    --liuyao-gold-dark: #b45309;
    --liuyao-cyan: #06b6d4;
    --liuyao-purple: #8b5cf6;
    --liuyao-rose: #f43f5e;
    --liuyao-amber-glow: rgba(245, 158, 11, 0.20);
    --liuyao-indigo-glow: rgba(99, 102, 241, 0.18);
    --liuyao-coin-outer: #78350f;
    --liuyao-coin-grad-1: #fef3c7;
    --liuyao-coin-grad-2: #fcd34d;
    --liuyao-coin-grad-3: #f59e0b;
    --liuyao-coin-grad-4: #b45309;
}

[data-theme="dark"] {
    --liuyao-amber-glow: rgba(245, 158, 11, 0.32);
    --liuyao-indigo-glow: rgba(99, 102, 241, 0.32);
    --liuyao-coin-outer: #451a03;
    --liuyao-coin-grad-1: #fef08a;
    --liuyao-coin-grad-2: #fbbf24;
    --liuyao-coin-grad-3: #d97706;
    --liuyao-coin-grad-4: #92400e;
}

/* Lucide 圖標通用對齊與尺寸 */
.suite-hero-badge [data-lucide],
.suite-form-label [data-lucide],
.liuyao-tab-btn [data-lucide],
.liuyao-action-bar [data-lucide],
.suite-copy-btn [data-lucide],
.liuyao-actions [data-lucide] {
    width: 16px;
    height: 16px;
    stroke-width: 2.2px;
    vertical-align: -2.5px;
    display: inline-block;
}

.btn-lg [data-lucide] {
    width: 18px;
    height: 18px;
    stroke-width: 2.3px;
    vertical-align: -3px;
}

/* 頂部英雄區 */
.liuyao-hero {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.09) 0%, rgba(99, 102, 241, 0.07) 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.28);
    border-radius: 20px;
    padding: 26px 20px;
    margin-bottom: 24px;
    box-shadow: 0 10px 32px var(--liuyao-amber-glow);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.liuyao-hero.suite-hero-compact {
    padding: 10px 18px !important;
    margin-bottom: 14px !important;
    border-radius: 14px !important;
}

.liuyao-hero.suite-hero-compact .suite-hero-heading,
.liuyao-hero.suite-hero-compact .liuyao-hero-title,
.liuyao-hero.suite-hero-compact h1 {
    font-size: 22px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    line-height: 1.3;
}

.liuyao-hero.suite-hero-compact .suite-hero-badge {
    margin: 0 !important;
    font-size: 13px !important;
    padding: 3px 12px !important;
    border-radius: 16px;
    font-weight: 600;
    vertical-align: middle;
}

.liuyao-badge-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.liuyao-badge-purple {
    background: rgba(139, 92, 246, 0.12) !important;
    color: #7c3aed !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}
[data-theme="dark"] .liuyao-badge-purple {
    color: #a78bfa !important;
}

.liuyao-hero-title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
    color: #92400e;
    line-height: 1.3;
}
[data-theme="dark"] .liuyao-hero-title {
    color: #fbbf24;
}

.liuyao-hero-subtitle {
    font-size: 15px;
    font-weight: 500;
    color: var(--suite-text-muted);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 統一儀式感主卡片與多步驟區段 */
.liuyao-main-card {
    padding: 24px;
    margin-bottom: 24px;
}

.liuyao-stage-section {
    position: relative;
    padding-bottom: 8px;
}

.liuyao-stage-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--suite-border), transparent);
    margin: 28px 0;
}

.liuyao-stage-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.liuyao-stage-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.liuyao-stage-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--suite-text);
    margin: 0 0 4px 0;
    letter-spacing: -0.2px;
}

.liuyao-stage-desc {
    font-size: 13px;
    color: var(--suite-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* 分類選項情境分群 */
.liuyao-pill-clusters {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.liuyao-cluster {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.015);
    border-radius: 12px;
    border: 1px dashed rgba(0, 0, 0, 0.06);
}
[data-theme="dark"] .liuyao-cluster {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.06);
}

.cluster-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--suite-text-muted);
    min-width: 68px;
    letter-spacing: 0.5px;
}

.liuyao-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

.liuyao-pill {
    cursor: pointer;
    user-select: none;
    padding: 7px 15px;
    border-radius: 20px;
    border: 1.5px solid var(--suite-border);
    background: var(--suite-card-bg);
    color: var(--suite-text);
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.liuyao-pill .pill-ys {
    font-size: 11px;
    opacity: 0.8;
    margin-left: 4px;
    font-weight: normal;
}

.liuyao-pill:hover {
    border-color: var(--liuyao-gold);
    transform: translateY(-1.5px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.liuyao-pill.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border-color: #d97706;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

/* 性別現代膠囊切換 */
.liuyao-gender-pills {
    display: inline-flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.03);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--suite-border);
}
[data-theme="dark"] .liuyao-gender-pills {
    background: rgba(255, 255, 255, 0.03);
}

.liuyao-gender-pill {
    cursor: pointer;
    user-select: none;
    padding: 7px 18px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--suite-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.liuyao-gender-pill:hover {
    color: var(--suite-text);
    background: rgba(0, 0, 0, 0.03);
}

.liuyao-gender-pill.active {
    background: var(--suite-card-bg);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .liuyao-gender-pill.active {
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.5);
}

.gender-symbol {
    font-size: 14px;
    font-weight: 800;
}

/* 快捷鍵微標籤 */
.liuyao-kbd {
    display: inline-block;
    padding: 2px 6px;
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
    line-height: 1;
    color: var(--suite-text-muted);
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    vertical-align: middle;
    margin: 0 2px;
}
.btn-primary .liuyao-kbd,
.suite-btn-primary .liuyao-kbd {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.45);
}
[data-theme="dark"] .liuyao-kbd {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e5e7eb;
}

/* 起卦模式切換頁籤 */
.liuyao-mode-tabs {
    display: flex;
    border-bottom: 2px solid var(--suite-border);
    margin-bottom: 22px;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.liuyao-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 15px;
    font-weight: 700;
    color: var(--suite-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.liuyao-tab-btn.active {
    color: #b45309;
    border-bottom-color: #f59e0b;
}
[data-theme="dark"] .liuyao-tab-btn.active {
    color: #fbbf24;
    border-bottom-color: #fbbf24;
}

/* 搖卦互動競技場 */
.liuyao-arena {
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.toss-status-desc {
    font-weight: 700;
    color: #b45309;
    font-size: 15px;
    margin-bottom: 14px;
}
[data-theme="dark"] .toss-status-desc {
    color: #fbbf24;
}

.mode-desc {
    font-size: 15px;
    color: var(--suite-text-muted);
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto 18px;
}

/* 擬真古典青銅/黃銅錢幣 */
.coins-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin: 20px 0 24px;
    min-height: 96px;
}

.coin {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--liuyao-coin-grad-1) 0%, var(--liuyao-coin-grad-2) 35%, var(--liuyao-coin-grad-3) 65%, var(--liuyao-coin-grad-4) 90%, var(--liuyao-coin-outer) 100%);
    border: 2.5px solid var(--liuyao-coin-outer);
    box-shadow: inset 0 0 0 2px rgba(217, 119, 6, 0.8), inset 0 2px 4px rgba(255, 255, 255, 0.6), 0 8px 24px rgba(180, 83, 9, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    user-select: none;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.coin-hole {
    width: 20px;
    height: 20px;
    background: var(--suite-card-bg, #fff);
    border: 2px solid var(--liuyao-coin-outer);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
    position: absolute;
    z-index: 1;
}

.coin-face {
    position: absolute;
    font-weight: 900;
    font-size: 15px;
    color: var(--liuyao-coin-outer);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
    z-index: 2;
    pointer-events: none;
}

.coin.flipping {
    animation: coinFlip 0.75s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes coinFlip {
    0% { transform: translateY(0) rotateY(0deg) scale(1); }
    50% { transform: translateY(-46px) rotateY(540deg) scale(1.15); }
    100% { transform: translateY(0) rotateY(1080deg) scale(1); }
}

/* 即時六爻構築塔 (由下至上) */
.toss-progress-tower {
    max-width: 360px;
    margin: 0 auto 22px;
    display: flex;
    flex-direction: column-reverse; /* 由初爻至上爻由下至上 */
    gap: 7px;
    background: rgba(245, 158, 11, 0.04);
    border: 1.5px dashed rgba(245, 158, 11, 0.35);
    border-radius: 14px;
    padding: 14px;
}
[data-theme="dark"] .toss-progress-tower {
    background: rgba(245, 158, 11, 0.08);
}

.tower-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 14px;
    background: var(--suite-card-bg);
    border: 1px solid var(--suite-border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.tower-step.active {
    border-color: #f59e0b;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.12);
    transform: scale(1.02);
}

.tower-step.done {
    border-color: rgba(99, 102, 241, 0.35);
}

.yao-bar-yang {
    font-family: monospace;
    font-weight: 900;
    color: #d97706;
    letter-spacing: 1px;
}
[data-theme="dark"] .yao-bar-yang {
    color: #fbbf24;
}

.yao-bar-yin {
    font-family: monospace;
    font-weight: 900;
    color: #4f46e5;
    letter-spacing: 1px;
}
[data-theme="dark"] .yao-bar-yin {
    color: #a5b4fc;
}

.moving-indicator {
    color: #e11d48;
    font-weight: 900;
    margin-left: 6px;
}

/* 操作按鈕群 */
.liuyao-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* 卦象排盤結果操作列（複製、Email、重新起卦） */
.liuyao-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 22px 0 24px;
}

.liuyao-action-bar button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14.5px;
    font-weight: 700;
    border-radius: 24px;
    background: var(--suite-card-bg);
    border: 1.5px solid var(--suite-border);
    color: var(--suite-text);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.liuyao-action-bar button:hover {
    border-color: #f59e0b;
    color: #b45309;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.15);
}
[data-theme="dark"] .liuyao-action-bar button:hover {
    color: #fbbf24;
}

/* 排盤結果卡片 */
.liuyao-result-card {
    padding: 24px;
    margin-bottom: 24px;
}

.liuyao-header-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1.5px solid var(--suite-border);
    padding-bottom: 16px;
    margin-bottom: 18px;
}

.liuyao-time-meta {
    font-size: 13.5px;
    color: var(--suite-text-muted);
    font-weight: 500;
    line-height: 1.6;
    margin-top: 4px;
}

/* 用神英雄醒目標籤 */
.yongshen-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(234, 88, 12, 0.10) 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.35);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 20px;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.10);
}

.yongshen-title {
    font-size: 15px;
    font-weight: 800;
    color: #b45309;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
[data-theme="dark"] .yongshen-title {
    color: #fbbf24;
}

.yongshen-desc {
    font-size: 14px;
    color: var(--suite-text);
    margin: 0;
    line-height: 1.6;
}

/* 雙卦並列格網 */
.gua-matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.gua-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1.5px solid var(--suite-border);
    border-radius: 14px;
    padding: 18px;
}
[data-theme="dark"] .gua-card {
    background: rgba(255, 255, 255, 0.02);
}

.gua-card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16.5px;
    font-weight: 800;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--suite-border);
    padding-bottom: 10px;
}

.gua-lines-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
}

.gua-line-row {
    background: var(--suite-card-bg);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.gua-line-row td {
    padding: 8px 10px;
    font-size: 13.5px;
    vertical-align: middle;
}

.badge-shi {
    background: #f59e0b;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.badge-ying {
    background: #06b6d4;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.badge-fushen {
    background: rgba(139, 92, 246, 0.15);
    color: #7c3aed;
    border: 1px solid rgba(139, 92, 246, 0.3);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}
[data-theme="dark"] .badge-fushen {
    color: #c4b5fd;
}

.badge-kong {
    background: rgba(244, 63, 94, 0.15);
    color: #e11d48;
    border: 1px solid rgba(244, 63, 94, 0.3);
    font-size: 11px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 4px;
}

.zhuxi-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1.5px solid rgba(99, 102, 241, 0.25);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.zhuxi-title {
    font-size: 15px;
    font-weight: 800;
    color: #4f46e5;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
[data-theme="dark"] .zhuxi-title {
    color: #818cf8;
}

/* LLM 宗師解答區 */
.liuyao-ai-section {
    border: 1.5px solid rgba(245, 158, 11, 0.3);
    padding: 24px;
    box-shadow: 0 8px 30px var(--liuyao-amber-glow);
    margin-bottom: 24px;
}

.liuyao-ai-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--suite-border);
    padding-bottom: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.liuyao-ai-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--suite-text);
    margin: 0;
}

.suite-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
[data-theme="dark"] .suite-icon-circle {
    background: rgba(245, 158, 11, 0.25);
    color: #fbbf24;
}

.suite-copy-btn {
    background: var(--suite-card-bg);
    border: 1px solid var(--suite-border);
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--suite-primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}
.suite-copy-btn:hover {
    border-color: var(--suite-primary);
    background: rgba(204, 107, 73, 0.08);
}

.suite-tag-gold {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 700;
}
[data-theme="dark"] .suite-tag-gold {
    color: #fbbf24;
}

.liuyao-ai-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--suite-text);
}

.liuyao-ai-content h1,
.liuyao-ai-content h2,
.liuyao-ai-content h3 {
    font-weight: 800;
    color: #b45309;
    margin-top: 22px;
    margin-bottom: 12px;
    line-height: 1.4;
}

[data-theme="dark"] .liuyao-ai-content h1,
[data-theme="dark"] .liuyao-ai-content h2,
[data-theme="dark"] .liuyao-ai-content h3 {
    color: #fbbf24;
}

.liuyao-ai-content h1 {
    font-size: 20px;
    border-bottom: 2px solid rgba(245, 158, 11, 0.3);
    padding-bottom: 6px;
}

.liuyao-ai-content h2 {
    font-size: 17.5px;
    border-bottom: 1.5px solid rgba(245, 158, 11, 0.25);
    padding-bottom: 4px;
}

.liuyao-ai-content h3 {
    font-size: 16px;
    border-bottom: 1px dashed rgba(245, 158, 11, 0.2);
    padding-bottom: 3px;
}

.liuyao-ai-content h4 {
    font-size: 15px;
    font-weight: 700;
    margin-top: 16px;
    margin-bottom: 8px;
    color: var(--suite-text);
}

.liuyao-ai-content hr {
    border: 0;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.4), transparent);
    margin: 22px 0;
}

.liuyao-ai-content .markdown-table-wrapper {
    margin: 16px 0;
    overflow-x: auto;
    border-radius: 10px;
    border: 1.5px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.08);
}

.liuyao-ai-content table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 14.5px;
    margin: 0;
    background: var(--suite-card-bg);
}

.liuyao-ai-content th {
    background: rgba(245, 158, 11, 0.12);
    color: #92400e;
    font-weight: 800;
    padding: 10px 14px;
    border: 1px solid var(--suite-border);
    white-space: nowrap;
}

[data-theme="dark"] .liuyao-ai-content th {
    background: rgba(245, 158, 11, 0.22);
    color: #fde68a;
    border-color: rgba(255, 255, 255, 0.12);
}

.liuyao-ai-content td {
    padding: 10px 14px;
    border: 1px solid var(--suite-border);
    line-height: 1.6;
}

[data-theme="dark"] .liuyao-ai-content td {
    border-color: rgba(255, 255, 255, 0.08);
}

.liuyao-ai-content blockquote {
    background: rgba(245, 158, 11, 0.06);
    border-left: 2.5px solid #d97706;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    margin: 14px 0;
    color: var(--suite-text);
    font-size: 14.5px;
}

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

.liuyao-ai-content li {
    margin-bottom: 6px;
}

.liuyao-followup-container {
    margin-top: 24px;
    border-top: 1px dashed var(--suite-border);
    padding-top: 18px;
}

/* 移動端表格防擠壓容器 */
.gua-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
}

@media (max-width: 767px) {
    .gua-matrix-grid {
        grid-template-columns: 1fr;
    }
    .liuyao-hero-title {
        font-size: 22px;
    }
    .coins-container {
        gap: 14px;
    }
    .coin {
        width: 62px;
        height: 62px;
    }
    .coin-hole {
        width: 17px;
        height: 17px;
    }
    .liuyao-action-bar button {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    input[type="text"],
    input[type="number"],
    select,
    textarea,
    .form-control,
    .suite-input {
        font-size: 16px !important;
    }
}

/* 浮動輕量級 Toast 通知系統 (取代阻斷式原生 alert) */
.liuyao-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 380px;
    width: calc(100% - 48px);
}

.liuyao-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    background: var(--suite-card-bg, #ffffff);
    color: var(--suite-text, #1f2937);
    border: 1.5px solid var(--suite-border, #e5e7eb);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
    animation: liuyaoToastIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.2s ease;
    cursor: pointer;
}

.liuyao-toast-info {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 8px 24px var(--liuyao-indigo-glow);
}
.liuyao-toast-info .toast-icon { color: #6366f1; }

.liuyao-toast-warning {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 8px 24px var(--liuyao-amber-glow);
}
.liuyao-toast-warning .toast-icon { color: #f59e0b; }

.liuyao-toast-error {
    border-color: rgba(244, 63, 94, 0.45);
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.2);
}
.liuyao-toast-error .toast-icon { color: #f43f5e; }

.liuyao-toast-success {
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}
.liuyao-toast-success .toast-icon { color: #10b981; }

.liuyao-toast.closing {
    animation: liuyaoToastOut 0.22s ease forwards;
}

@keyframes liuyaoToastIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes liuyaoToastOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-10px) scale(0.95); }
}

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