/* =============================================================================
   ProfessionalBaZi Web Client Stylesheet
   Design Paradigm: Ultra-Premium Glassmorphism Dark Mode
   Scalability: Relative rem/em sizing linked to dynamically controlled root font-size
   ============================================================================= */

:root {
    /* 动态全局字体尺寸基准 */
    --base-font-size: 16px;

    /* 暗夜极光高级色盘 */
    --bg-app: #080d16;
    --bg-glass: rgba(13, 22, 38, 0.65);
    --bg-card: rgba(22, 34, 57, 0.45);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-active: rgba(0, 229, 255, 0.25);
    
    --text-primary: #f0f4f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-gold: #f59e0b;

    /* 物理场渐变色彩 */
    --color-yang: #ff9f43;
    --color-yin: #3c6382;
    --color-alliance: #00d2d3;
    --color-enemy: #ee5253;

    /* 五行专属标准色彩系统 (高饱和度、高对比度) */
    --wuxing-mu: #10b981;    /* 翡翠绿 (木) */
    --wuxing-huo: #ef4444;  /* 枫叶红 (火) */
    --wuxing-tu: #d97706;   /* 琥珀金 (土) */
    --wuxing-jin: #94a3b8;  /* 钛金灰 (金) */
    --wuxing-shui: #3b82f6; /* 深海蓝 (水) */
    
    /* 常用辉光与阴影 */
    --glow-cyan: 0 0 20px rgba(6, 182, 212, 0.35);
    --glow-gold: 0 0 20px rgba(217, 119, 6, 0.35);
    --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* 动效过渡 */
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================
   全局与排版重置
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--base-font-size);
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', 'Outfit', sans-serif;
    background-color: var(--bg-app);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 2rem 1.5rem;
    overflow-x: hidden;
    position: relative;
}

/* 宇宙极光背景晕染 */
.glass-bg-blur {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(217, 119, 6, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.app-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ==========================================
   页眉 (Header)
   ========================================== */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1.5rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-yin-yang {
    color: var(--text-primary);
    animation: rotateTaiji 20s linear infinite;
}

@keyframes rotateTaiji {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-text h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #06b6d4 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text .version {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* 缩放小挂件 */
.zoom-widget {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding-left: 0.5rem;
}

.zoom-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    width: 2.2rem;
    height: 1.6rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.zoom-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.zoom-btn.active {
    background: #06b6d4;
    color: #080d16;
    box-shadow: var(--glow-cyan);
}

.sys-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background-color: var(--wuxing-mu);
    box-shadow: 0 0 10px var(--wuxing-mu);
}

.status-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ==========================================
   毛玻璃卡片通用样式 (Glassmorphism Cards)
   ========================================== */
.glass-card {
    background-color: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* ==========================================
   输入控制中心 (Control Panel)
   ========================================== */
.control-panel {
    padding: 1.75rem;
    transition: padding 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.control-panel.collapsed {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.control-panel.collapsed .panel-header {
    border-bottom-color: transparent;
    margin-bottom: 0;
    padding-bottom: 0;
}

.mode-tabs {
    display: flex;
    gap: 1rem;
}

.toggle-panel-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1.1rem;
    border-radius: 9999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.toggle-panel-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.collapsible-content {
    max-height: 500px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease, margin-top 0.4s ease;
}

.control-panel.collapsed .collapsible-content {
    max-height: 0 !important;
    opacity: 0 !important;
    pointer-events: none;
}

.tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.25);
}

.form-group-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.4s ease-out;
}

.form-group-wrapper.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.input-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-item.full-width {
    grid-column: 1 / -1;
}

.input-item label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.input-item input[type="date"],
.input-item input[type="time"],
.input-item input[type="number"],
.input-item input[type="text"] {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: 'Outfit', 'Noto Sans SC', sans-serif;
    transition: var(--transition-smooth);
    width: 100%;
}

.input-item input:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.helper-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* 命造性别选择滑块 (Modern Switch Toggle) */
.gender-switch-container {
    display: flex;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-glass);
    border-radius: 0.75rem;
    padding: 0.25rem;
    position: relative;
    width: 100%;
}

.gender-switch-container input[type="radio"] {
    display: none;
}

.gender-btn {
    flex: 1;
    text-align: center;
    padding: 0.55rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.gender-switch-container input[type="radio"]#gender-male:checked ~ .male-btn {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.gender-switch-container input[type="radio"]#gender-female:checked ~ .female-btn {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* 提交按钮流光效果 */
.common-group {
    grid-template-columns: 1.5fr 1fr;
    align-items: flex-end;
}

.submit-item {
    width: 100%;
}

.btn-submit {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
    color: #ffffff;
    border: none;
    padding: 0.85rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 0.75rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    width: 100%;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 182, 212, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

/* ==========================================
   加载与报错反馈区
   ========================================== */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 3rem;
    animation: fadeIn 0.4s ease-out;
}

.spinner {
    width: 40px;
    height: 40px;
    position: relative;
}

.double-bounce1, .double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #06b6d4;
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
    animation-delay: -1.0s;
}

@keyframes sk-bounce {
    0%, 100% { transform: scale(0.0); }
    50% { transform: scale(1.0); }
}

.error-state {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 1rem;
    color: #fca5a5;
    animation: fadeIn 0.4s ease-out;
}

.error-icon {
    font-size: 1.5rem;
}

/* 隐藏实用工具类 */
.hidden {
    display: none !important;
}

/* ==========================================
   排盘结果元信息条 (Meta Banner)
   ========================================== */
.result-dashboard {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.meta-banner {
    padding: 0.65rem 2rem;
}

.meta-badge-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 1.5rem;
}

.meta-badge {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.meta-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.meta-label::after {
    content: "：";
    opacity: 0.5;
}

.meta-val {
    font-size: 0.95rem;
    font-weight: 600;
}

.meta-val.highlight {
    color: #06b6d4;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
}

/* ==========================================
   数据面板总网格 (Grid System)
   ========================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-card {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.grid-card.full-width {
    grid-column: 1 / -1;
}

.p-four-pillars {
    grid-column: 1 / -1; /* 四柱命局置顶满宽 */
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.8rem;
}

.card-title-icon {
    font-size: 1.3rem;
}

.card-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.card-tip {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: auto;
}

/* ==========================================
   板块1：八字四柱排盘网格
   ========================================== */
.pillars-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    padding-top: 0.25rem;
}

.pillar-column {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 1rem;
    padding: 1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
    position: relative;
    overflow: hidden;
}

/* 卡片 Hover 悬浮上浮与微发光效果 */
.pillar-column:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--border-glass-active);
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.12);
}

.p-god {
    font-size: 0.85rem;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-weight: 500;
}

.p-god.active {
    background: rgba(217, 119, 6, 0.12);
    color: var(--text-gold);
    border: 1px solid rgba(217, 119, 6, 0.2);
}

/* 巨型干支 */
.p-chars {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    margin: 0.2rem 0;
}

.p-chars .gan, .p-chars .zhi {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    transition: var(--transition-smooth);
    /* 强力五行发光阴影效果 */
    text-shadow: 0 0 15px currentColor;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.5));
}

.pillar-column:hover .gan, .pillar-column:hover .zhi {
    text-shadow: 0 0 25px currentColor;
    transform: scale(1.05);
}

.p-hidden {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.p-stage {
    font-size: 0.75rem;
    padding: 0.15rem 0.45rem;
    background: rgba(16, 185, 129, 0.08);
    color: var(--wuxing-mu);
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.p-shensha {
    font-size: 0.7rem;
    color: #a78bfa;
    text-align: center;
    line-height: 1.4;
    margin-top: auto;
    word-break: keep-all;
    height: 2.5rem;
    overflow: hidden;
}

/* ==========================================
   板块2：古籍引用参考 (Classic Reference)
   ========================================== */
.classic-ref-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.classic-ref-item {
    background: rgba(167, 139, 250, 0.03);
    border: 1px solid rgba(167, 139, 250, 0.15);
    border-left: 3px solid #a78bfa;
    border-radius: 0 0.75rem 0.75rem 0;
    padding: 0.9rem 1.25rem;
}

.classic-ref-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #c084fc;
    margin-bottom: 0.4rem;
    display: block;
}

.classic-ref-desc, .classic-ref-poem {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    white-space: pre-line;
}

.classic-ref-poem {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border-glass);
    font-style: italic;
    color: var(--text-muted);
}

/* ==========================================
   板块3：互动时间轴 (Luck Pillars Timeline)
   ========================================== */
.luck-timeline-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
    min-height: 0;
}

.luck-timeline-body::-webkit-scrollbar {
    width: 6px;
}

.luck-timeline-body::-webkit-scrollbar-thumb {
    background-color: var(--border-glass);
    border-radius: 9999px;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    padding-left: 1.5rem;
}

/* 贯穿主轴线 */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 4px;
    width: 2px;
    background: var(--border-glass);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    position: relative;
}

.time-node {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    border: 2px solid var(--bg-app);
    position: absolute;
    left: -20px;
    top: 1.1rem;
    z-index: 2;
    transition: var(--transition-smooth);
}

.luck-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 0.75rem;
    padding: 0.85rem 1.25rem;
    flex: 1;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.luck-info-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.luck-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.luck-age {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}

.luck-pillar-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.luck-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* 点击展开的流年子列表 */
.liunian-panel {
    display: none;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-glass);
}

.luck-info-card.expanded .liunian-panel {
    display: flex;
}

.liunian-tag {
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-family: 'Outfit', 'Noto Sans SC', sans-serif;
}

/* ==========================================
   大字悬浮聚焦放大模态框 (Pillar Zoom Modal)
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 8, 15, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    padding: 2.2rem;
    position: relative;
    transform: scale(0.92) translateY(10px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.85);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 1.5rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.modal-body-content {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.modal-pillar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.m-pillar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.m-pillar-god {
    font-size: 0.8rem;
    padding: 0.15rem 0.5rem;
    background: rgba(217, 119, 6, 0.12);
    color: var(--text-gold);
    border-radius: 4px;
    font-weight: 600;
}

/* 巨幅艺术字大字放大显示 */
.modal-huge-chars {
    font-size: 5rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 229, 255, 0.1);
    margin: 0.5rem 0;
    line-height: 1;
}

.modal-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-section h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    border-left: 3px solid #06b6d4;
    padding-left: 0.5rem;
}

.modal-section p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 藏干大卡片明细 */
.modal-hidden-grid {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.m-hid-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.m-hid-char {
    font-size: 1.1rem;
    font-weight: 700;
}

.m-hid-god {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.m-hid-score {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #00d2d3;
}

/* 神煞大字放大列表 */
.modal-shensha-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 8rem;
    overflow-y: auto;
}

.ss-box {
    background: rgba(167, 139, 250, 0.03);
    border: 1px solid rgba(167, 139, 250, 0.15);
    border-radius: 0.5rem;
    padding: 0.6rem 0.85rem;
}

.ss-box strong {
    color: #c084fc;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
}

.ss-box p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ==========================================
   响应式断点 (Responsive Breakpoints)
   ========================================== */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem 0.75rem;
    }
    
    .form-group-wrapper {
        grid-template-columns: 1fr;
    }
    
    .common-group {
        grid-template-columns: 1fr;
    }

    .pillars-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .p-chars .gan, .p-chars .zhi {
        font-size: 2.8rem; /* 移动端字号折中，防止溢出折行 */
    }
}
