/* 全局样式 - 简约高级风格 */
:root {
    /* 主色调：采用高级灰和深青色作为主色调 */
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --accent-color: #2c5282;
    --accent-light: #4299e1;
    --border-color: #e2e8f0;
    --shadow-color: rgba(0, 0, 0, 0.05);
    
    /* 六神对应的优雅颜色 */
    --color-daan: #3182ce;
    --color-liulian: #805ad5;
    --color-suxi: #dd6b20;
    --color-chikou: #e53e3e;
    --color-xiaoji: #38a169;
    --color-kongwang: #718096;
    
    /* 过渡效果 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* 深色模式 */
.dark-theme {
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --text-primary: #f7fafc;
    --text-secondary: #a0aec0;
    --accent-color: #63b3ed;
    --accent-light: #90cdf4;
    --border-color: #4a5568;
    --shadow-color: rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 简约背景效果 */
.background-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 1;
    transition: opacity var(--transition-normal);
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(44, 82, 130, 0.03) 0%, transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(44, 82, 130, 0.03) 0%, transparent 30%);
}

.dark-theme .background-effect {
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(99, 179, 237, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(99, 179, 237, 0.05) 0%, transparent 30%);
}

/* 主题切换按钮 */
.theme-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--accent-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 1000;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
    color: var(--accent-light);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-normal);
}

.theme-toggle:hover svg {
    transform: rotate(180deg);
}

/* 容器样式 */
  .container {
     max-width: 1000px;
     margin: 0 auto;
     padding: 60px 24px;
}

/* 标题样式 */
.header {
    text-align: center;
    margin-bottom: 64px;
    position: relative;
}

.header h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.2;
    position: relative;
    display: inline-block;
    letter-spacing: -0.025em;
}

.header h1::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.header .subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.025em;
    margin-top: 24px;
}

/* 起卦方式切换 */
.method-switch {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
}

.method-btn {
    padding: 12px 32px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.method-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: rgba(44, 82, 130, 0.04);
}

.dark-theme .method-btn:hover {
    background-color: rgba(99, 179, 237, 0.08);
}

.method-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.2);
}

.dark-theme .method-btn.active {
    box-shadow: 0 4px 12px rgba(99, 179, 237, 0.2);
}

/* 输入区域样式 */
.input-section {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 36px;
    margin-bottom: 48px;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: all var(--transition-normal);
}

.input-section:hover {
    box-shadow: 0 6px 24px var(--shadow-color);
}

.input-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-daan), var(--color-suxi), var(--color-chikou), var(--color-xiaoji), var(--color-liulian), var(--color-kongwang));
    border-radius: 3px 3px 0 0;
}

/* 起课步骤区域样式 */
.steps-section {
    background-color: var(--bg-secondary);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.steps-section h2 {
    margin-bottom: 16px;
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.steps-display {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-item {
    padding: 16px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.dark-theme .step-item {
    background-color: rgba(255, 255, 255, 0.05);
}

.step-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.step-number {
    font-weight: 700;
    color: var(--accent-color);
    margin-right: 8px;
    font-size: 1.1rem;
}

.step-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-formula {
    font-family: 'Noto Serif SC', serif;
    background-color: rgba(0, 0, 0, 0.02);
    padding: 8px 12px;
    border-radius: 4px;
    margin: 8px 0;
    color: var(--accent-color);
    font-weight: 500;
}

/* 时间起卦布局 */
#date-method {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* 数字起卦布局 */
#number-method {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* 输入组样式 */
.input-group {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-group label {
    color: var(--text-primary);
    font-size: 1.125rem;
    white-space: nowrap;
    min-width: 100px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.input-group select,
.input-group input[type="number"] {
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-normal);
    min-width: 120px;
}

.input-group select:hover,
.input-group input[type="number"]:hover {
    border-color: var(--accent-color);
    background-color: var(--bg-primary);
}

.input-group select:focus,
.input-group input[type="number"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

.dark-theme .input-group select:focus,
.dark-theme .input-group input[type="number"]:focus {
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.15);
}

/* 数字显示样式 */
.num-display {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-color);
    font-family: 'Inter', monospace;
    min-width: 32px;
    text-align: center;
    letter-spacing: 0.05em;
}

#num-result-1,
#num-result-2,
#num-result-3 {
    font-weight: 600;
    color: var(--accent-color);
    min-width: 20px;
    text-align: center;
    font-size: 1.125rem;
}

/* 按钮容器 */
.button-container {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* 主要按钮样式 */
#calculate-btn,
#export-btn {
    padding: 14px 36px;
    background: var(--accent-color);
    border: 1px solid var(--accent-color);
    color: white;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

#calculate-btn:hover,
#export-btn:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(44, 82, 130, 0.2);
}

.dark-theme #calculate-btn:hover,
.dark-theme #export-btn:hover {
    box-shadow: 0 6px 16px rgba(99, 179, 237, 0.2);
}

/* 实时时间按钮 - 使用与开始排盘相同的按钮样式 */
#current-time-btn {
    padding: 14px 36px;
    background: var(--accent-color);
    border: 1px solid var(--accent-color);
    color: white;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#current-time-btn::before {
    content: "获取当前时间";
}

#current-time-btn:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(44, 82, 130, 0.2);
}

.dark-theme #current-time-btn:hover {
    box-shadow: 0 6px 16px rgba(99, 179, 237, 0.2);
}

#current-time-btn svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-normal);
}

/* 主网格容器 */
.main-grid-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 500px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.dark-theme .main-grid-container {
    background: #1a202c;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* 宫格容器 - 传统排盘样式 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 0;
    width: 100%;
    max-width: 550px;
    margin: 20px auto;
    justify-items: center;
    border: 3px solid var(--border-color);
    border-radius: 16px;
    background-color: var(--bg-secondary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    /* 确保六宫按照两行三列的布局显示 */
}

.dark-theme .grid-container {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* 宫格样式 - 传统排盘 */
.grid-cell {
    width: 180px;
    height: 200px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border-color);
    border-radius: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    background-color: var(--bg-secondary);
    font-family: 'Noto Serif SC', serif;
    box-shadow: none;
    overflow: hidden;
}

/* 为宫格添加边框线样式 */
.grid-cell:nth-child(1),
.grid-cell:nth-child(2),
.grid-cell:nth-child(3) {
    border-bottom: 2px solid var(--border-color);
}

.grid-cell:nth-child(1),
.grid-cell:nth-child(4) {
    border-left: none;
}

.grid-cell:nth-child(3),
.grid-cell:nth-child(6) {
    border-right: none;
}

.grid-cell:nth-child(4),
.grid-cell:nth-child(5),
.grid-cell:nth-child(6) {
    border-bottom: none;
}

.dark-theme .grid-cell {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    box-shadow: none;
}

.grid-cell:hover {
    background-color: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
}

.dark-theme .grid-cell:hover {
    background-color: #374151;
    border-color: #718096;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* 结果状态 - 传统样式 */
.grid-cell.final-result {
    background-color: #fff8e1;
    border: 2px solid #ffc107;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
    transform: scale(1.02);
}

.dark-theme .grid-cell.final-result {
    background-color: #4a422e;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.1);
}

/* 移除日落宫的特殊样式，使用默认宫格样式 */
.grid-cell.day-result {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: none;
    transform: none;
}

.dark-theme .grid-cell.day-result {
    background-color: var(--bg-secondary);
    box-shadow: none;
}

/* 宫格内容 - 传统样式 */
.cell-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    z-index: 1;
    position: relative;
}

/* 上部内容 - 六神和六亲 */
.cell-top {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

/* 自身位置的特殊标记 */
.god-name.self-position {
    color: #2196F3;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(33, 150, 243, 0.3);
    position: relative;
}

.god-name.self-position::after {
    content: '●';
    color: #2196F3;
    position: absolute;
    right: -12px;
    top: -4px;
    font-size: 0.6rem;
}

.dark-theme .god-name.self-position {
    color: #42a5f5;
    text-shadow: 0 1px 2px rgba(66, 165, 245, 0.3);
}

.dark-theme .god-name.self-position::after {
    color: #42a5f5;
}

.god-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    letter-spacing: 0.02em;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    font-family: 'Noto Serif SC', serif;
    visibility: visible;
    opacity: 1;
    z-index: 10;
}

.dark-theme .god-name {
    color: #f7fafc;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 时间信息样式 */
.time-info {
    display: none; /* 隐藏原来的右上角时间信息 */
}

/* 月日时标签样式 */
  .time-tags-container {
    position: absolute;
    top: 39px;
    right: -34px;
    transform-origin: right top;
    transform: rotate(45deg);
    z-index: 10;
  }
  
  .time-tag {
    padding: 5px 49px;
    font-size: 0.75rem;
    text-align: center;
    font-weight: bold;
    background-color: #f44336;
    color: white;
    border: 1px solid #d32f2f;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    white-space: nowrap;
    border-radius: 4px;
    /* 圆角斜向标签 */
    display: inline-block;
  }

/* 深色模式下的红色标签 */
[data-theme="dark"] .time-tag {
    background-color: #e53935;
    color: #ffffff;
    border-color: #c62828;
    box-shadow: 0 1px 2px rgba(255,255,255,0.1);
}

/* 统一所有标签为红色 */
.month-tag,
.day-tag,
.hour-tag {
    background-color: #f44336;
    border-color: #d32f2f;
}

.dark-theme .month-tag,
.dark-theme .day-tag,
.dark-theme .hour-tag {
    background-color: #e53935;
    border-color: #c62828;
}

.month-info, .day-info, .hour-info {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: rgba(44, 98, 130, 0.1);
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.dark-theme .month-info, 
.dark-theme .day-info, 
.dark-theme .hour-info {
    background-color: rgba(99, 179, 237, 0.15);
    color: var(--accent-light);
}

/* 中间内容 - 干支、六亲、五星 */
.cell-middle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px; /* 进一步减小间距使内容更紧凑 */
    margin: 2px 0; /* 进一步减小上下边距使整体向上偏移 */
}

.ganzhi {
    font-size: 1.25rem;
    font-weight: bold;
    color: #4a5568;
    letter-spacing: 1px;
    padding: 0; /* 移除内边距 */
    margin-bottom: 1px;
}

.dark-theme .ganzhi {
    color: #a0aec0;
}

.earthly-branch-container {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: -2px 0 0 0; /* 负上边距使内容向上偏移 */
}

.earthly-branch {
    font-size: 1.125rem;
    color: #4a6fa5;
    font-weight: 600;
    background-color: rgba(74, 111, 165, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

.earthly-branch-element {
    font-size: 0.8rem;
    color: #999;
    font-style: italic;
    background-color: rgba(153, 153, 153, 0.05);
    padding: 1px 6px;
    border-radius: 6px;
}

.dark-theme .earthly-branch-element {
    color: #888;
    background-color: rgba(153, 153, 153, 0.1);
}

.dark-theme .earthly-branch {
    color: #6495ed;
    background-color: rgba(74, 111, 165, 0.2);
}

.liuqin {
    font-size: 1.125rem;
    color: #e67e22;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    background-color: rgba(230, 126, 34, 0.05);
    display: inline-block;
    margin: 0 auto;
}

.dark-theme .liuqin {
    color: #f39c12;
    background-color: rgba(230, 126, 34, 0.15);
}

.five-star-container {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 4px 0 0 0;
}

.five-star {
    font-size: 1rem;
    color: #8e44ad;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    background-color: rgba(142, 68, 173, 0.05);
    display: inline-block;
    font-style: italic;
    text-align: left;
}

.six-god {
    font-size: 1rem;
    color: #e74c3c;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 6px;
    background-color: rgba(231, 76, 60, 0.2);
    display: inline-block;
    text-align: center;
    position: relative;
    z-index: 120;
    margin-left: 12px;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
    min-width: 70px;
    border: 1px solid #e74c3c;
}

.dark-theme .five-star {
    color: #9b59b6;
    background-color: rgba(142, 68, 173, 0.15);
}

/* 下部内容 - 神格 */
.cell-bottom {
    font-size: 0.85rem;
    color: #e53e3e;
    margin-top: 6px;
    text-align: center;
    font-weight: 600;
    padding: 4px 0;
}

.dark-theme .cell-bottom {
    color: #fc8181;
}

/* 五行颜色条 - 底部横条 */
.element-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    transition: all 0.3s ease;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.grid-cell:hover .element-bar {
    height: 8px;
}

/* 五行颜色定义 - 传统配色 */
.grid-cell[data-element="木"] .element-bar {
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
}

.grid-cell[data-element="火"] .element-bar {
    background: linear-gradient(90deg, #F44336, #EF5350);
}

.grid-cell[data-element="土"] .element-bar {
    background: linear-gradient(90deg, #FFC107, #FFCA28);
}

.grid-cell[data-element="金"] .element-bar {
    background: linear-gradient(90deg, #9E9E9E, #BDBDBD);
}

.grid-cell[data-element="水"] .element-bar {
    background: linear-gradient(90deg, #2196F3, #42A5F5);
}

/* 标签样式 */
.cell-label {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 500;
    opacity: 0.9;
}

.dark-theme .cell-label {
    color: #cbd5e0;
}

/* 神格样式 */
.shenge {
    font-size: 0.9rem;
    font-weight: bold;
    color: #2196F3;
    background-color: rgba(33, 150, 243, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.dark-theme .shenge {
    color: #64b5f6;
    background-color: rgba(33, 150, 243, 0.2);
    border-color: rgba(33, 150, 243, 0.3);
}

/* 六亲容器 */
.liuqin-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

/* 六亲样式 */
.liuqin {
    font-size: 1rem;
    font-weight: 600;
    color: #f44336;
    background-color: rgba(244, 67, 54, 0.1);
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid rgba(244, 67, 54, 0.2);
    white-space: nowrap;
}

/* 自身六亲的特殊样式 */
.liuqin.self-liuqin {
    color: #2196F3;
    background-color: rgba(33, 150, 243, 0.1);
    border-color: rgba(33, 150, 243, 0.3);
    font-weight: bold;
}

/* 生克关系逻辑样式 */
.liuqin-relationship {
    font-size: 0.75rem;
    color: #666;
    background-color: rgba(102, 102, 102, 0.05);
    padding: 2px 8px;
    border-radius: 8px;
    border: 1px solid rgba(102, 102, 102, 0.1);
    white-space: nowrap;
}

.dark-theme .liuqin {
    color: #ef5350;
    background-color: rgba(244, 67, 54, 0.2);
    border-color: rgba(244, 67, 54, 0.3);
}

.dark-theme .liuqin.self-liuqin {
    color: #42a5f5;
    background-color: rgba(33, 150, 243, 0.2);
    border-color: rgba(33, 150, 243, 0.3);
}

.dark-theme .liuqin-relationship {
    color: #aaa;
    background-color: rgba(170, 170, 170, 0.1);
    border-color: rgba(170, 170, 170, 0.2);
}

/* 卦象可视化区域 */
.visualization-container {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 36px;
    width: 100%;
    max-width: 800px;
    border: 1px solid var(--border-color);
    position: relative;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: all var(--transition-normal);
}

.visualization-container:hover {
    box-shadow: 0 6px 24px var(--shadow-color);
}

.visualization-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 3px 3px 0 0;
}

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

.visualization-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.toggle-visualization {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.toggle-visualization:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: rgba(44, 82, 130, 0.04);
}

.dark-theme .toggle-visualization:hover {
    background-color: rgba(99, 179, 237, 0.08);
}

.toggle-visualization svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-normal);
}

.toggle-visualization:hover svg {
    transform: rotate(180deg);
}

/* 图表容器 */
.chart-container {
    height: 320px;
    position: relative;
    overflow: hidden;
}

/* 时辰对照表 */
.time-conversion {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 28px;
    margin-top: 40px;
    border: 1px solid var(--border-color);
    position: relative;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.time-conversion h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.time-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.time-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-radius: 8px;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.time-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.time-item .chinese-hour {
    color: var(--accent-color);
    font-weight: 600;
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 0.05em;
}

.time-item .time-range {
    color: var(--text-secondary);
    font-family: 'Inter', monospace;
    font-weight: 400;
}

/* 历史记录区域 */
.history-section {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 28px;
    margin-top: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.history-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.clear-history {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 0.875rem;
    font-weight: 500;
}

.clear-history:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: rgba(44, 82, 130, 0.04);
}

.dark-theme .clear-history:hover {
    background-color: rgba(99, 179, 237, 0.08);
}

.history-list {
    max-height: 240px;
    overflow-y: auto;
    padding-right: 8px;
}

/* 滚动条样式 */
.history-list::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
    transition: background var(--transition-fast);
}

.history-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.history-item {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.history-item:hover {
    background-color: rgba(44, 82, 130, 0.04);
    transform: translateX(4px);
}

.dark-theme .history-item:hover {
    background-color: rgba(99, 179, 237, 0.08);
}

.history-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.history-time {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-family: 'Inter', monospace;
    font-weight: 400;
}

.history-method {
    font-size: 0.875rem;
    color: var(--accent-color);
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: rgba(44, 82, 130, 0.08);
}

.dark-theme .history-method {
    background-color: rgba(99, 179, 237, 0.12);
}

.history-result {
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 0.025em;
}

.result-element {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
}

/* 卦象解读弹窗 */
.interpretation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    backdrop-filter: blur(4px);
}

.interpretation-modal.active {
    opacity: 1;
    visibility: visible;
}

.interpretation-content {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 40px;
    max-width: 650px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    transform: translateY(20px);
    transition: transform var(--transition-slow), opacity var(--transition-slow);
    opacity: 0;
}

.interpretation-modal.active .interpretation-content {
    transform: translateY(0);
    opacity: 1;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-normal);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
}

.close-modal:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: rotate(90deg);
}

.interpretation-content h3 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--text-primary);
    text-align: center;
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 0.025em;
    font-weight: 700;
}

.interpretation-content .basic-interpretation {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.interpretation-content h4 {
    font-size: 1.375rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 0.01em;
    font-weight: 600;
}

.interpretation-content p {
    line-height: 1.8;
    margin-bottom: 20px;
    text-indent: 2em;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.interpretation-content .combination-interpretation {
    margin-top: 24px;
}

.interpretation-content .combination-item {
    margin-bottom: 16px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.interpretation-content .combination-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.interpretation-content .combination-name {
    font-weight: 600;
    color: var(--accent-color);
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 0.025em;
    margin-right: 8px;
}

.interpretation-content .combination-desc {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 分享链接 */
.share-section {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.share-section p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1rem;
    font-weight: 400;
}

.share-link {
    display: inline-block;
    padding: 12px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--transition-normal);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.share-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.2);
}

.dark-theme .share-link:hover {
    box-shadow: 0 4px 12px rgba(99, 179, 237, 0.2);
}

/* Toast提示 */
.toast-message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 16px 24px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 3000;
    opacity: 0;
    transition: all var(--transition-normal);
    font-size: 1rem;
    font-weight: 500;
}

.toast-message.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 详细信息对话框样式 - 北京验收白色弹窗 */
.info-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 对话框整体样式 */
.info-dialog .dialog-content {
    background-color: white;
    border: 3px solid #d4d4d8;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease-out;
    position: relative;
}

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

/* 对话框头部 - 只包含关闭按钮 */
.info-dialog .dialog-header {
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    padding: 10px 20px;
    margin: 0;
    text-align: right;
    position: relative;
    border-radius: 13px 13px 0 0;
    border-top: none;
    border-left: none;
    border-right: none;
}

/* 基础信息区域的标题样式 */
.info-dialog .section-title {
    color: #1e293b;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Noto Serif SC', serif;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
}

/* 关闭按钮 - 右上角 */
.info-dialog .close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.info-dialog .close-btn:hover {
    background-color: #e2e8f0;
    color: #1e293b;
    transform: scale(1.1);
}

/* 对话框内容区域 - 左右布局，确保在圆角方框内部 */
.info-dialog .dialog-content > div.content-wrapper {
    padding: 24px;
    background-color: white;
}

/* 内容容器 - 左右两列布局 */
.info-dialog .content-wrapper {
    display: flex;
    gap: 24px;
}

/* 左侧基础信息区域 */
.info-dialog .basic-info {
    flex: 1;
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 右侧校准验证信息区域 */
.info-dialog .validation-section {
    flex: 1;
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 验证区域标题 */
.info-dialog .validation-section h4 {
    margin-bottom: 16px;
    color: #3b82f6;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

/* 基础信息文本样式 */
.info-dialog .basic-info p {
    margin: 12px 0;
    line-height: 1.6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.info-dialog .basic-info p:last-child {
    border-bottom: none;
}

/* 验证信息文本样式 */
.info-dialog .validation-section p {
    margin: 12px 0;
    line-height: 1.6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.info-dialog .validation-section p:last-child {
    border-bottom: none;
}

/* 标签样式 */
.info-dialog strong {
    color: #475569;
    font-weight: 600;
    flex: 1;
    font-size: 15px;
}

/* 数值样式 */
.info-dialog .value {
    font-weight: 700;
    color: #1e293b;
    text-align: right;
    min-width: 120px;
    font-size: 15px;
    font-family: 'Noto Serif SC', serif;
}

/* 暗色主题适配 */
.dark-theme .info-dialog .dialog-content {
    background-color: #1e293b;
    border-color: #334155;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.dark-theme .info-dialog .dialog-header {
    background-color: #0f172a;
    border-bottom-color: #334155;
    border-radius: 13px 13px 0 0;
    border-top: none;
    border-left: none;
    border-right: none;
}

.dark-theme .info-dialog .section-title {
    color: #f8fafc;
    border-bottom-color: #334155;
}

.dark-theme .info-dialog .dialog-header h3 {
    color: #f8fafc;
}

.dark-theme .info-dialog .dialog-content > div {
    background-color: #1e293b;
}

.dark-theme .info-dialog .basic-info,
.dark-theme .info-dialog .validation-section {
    background-color: #0f172a;
    border-color: #334155;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.dark-theme .info-dialog strong {
    color: #cbd5e1;
}

.dark-theme .info-dialog .value {
    color: #f8fafc;
}

.dark-theme .info-dialog .validation-section h4 {
    color: #60a5fa;
    border-bottom-color: #334155;
}

.dark-theme .info-dialog .close-btn {
    background-color: #0f172a;
    border-color: #334155;
    color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dark-theme .info-dialog .close-btn:hover {
    background-color: #1e293b;
    color: #f8fafc;
    transform: scale(1.1);
}

.dark-theme .info-dialog .basic-info p,
.dark-theme .info-dialog .validation-section p {
    border-bottom-color: #334155;
}

/* 粒子效果动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-30px) translateX(10px);
        opacity: 0.2;
    }
}

/* 激光扫描动画 */
@keyframes laserScan {
    0% {
        background: rgba(44, 82, 130, 0);
    }
    50% {
        background: rgba(44, 82, 130, 0.1);
    }
    100% {
        background: rgba(44, 82, 130, 0);
    }
}

@keyframes scanLine {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 40px 16px;
    }
    
    .header h1 {
        font-size: 2.25rem;
    }
    
    /* 保持六宫格布局，缩小间距 */
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
        gap: 10px;
    }
    
    .input-group {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .input-group label {
        min-width: auto;
    }
    
    .method-switch {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .method-btn {
        width: 200px;
    }
    
    .button-container {
        gap: 16px;
    }
    
    .interpretation-content {
        padding: 32px 20px;
    }
}

/* 响应式设计 - 平板和小型设备 */
@media (max-width: 768px) {
    /* 容器调整 */
    .container {
        padding: 40px 16px;
    }
    
    /* 标题调整 */
    .header h1 {
        font-size: 2.25rem;
    }
    
    .header .subtitle {
        font-size: 1rem;
    }
    
    /* 宫格容器调整 */
    .grid-container {
        max-width: 420px;
    }
    
    .grid-cell {
        width: 140px;
        height: 160px;
    }
    
    /* 输入区域调整 */
    #date-method {
        gap: 20px;
    }
    
    .input-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .input-group label {
        min-width: auto;
    }
    
    .input-group select,
    .input-group input[type="number"] {
        min-width: 100%;
    }
}

/* 响应式设计 - 移动设备 */
@media (max-width: 480px) {
    /* 容器调整 */
    .container {
        padding: 24px 12px;
        max-width: 100%;
    }
    
    /* 主题切换按钮 */
    .theme-toggle {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
    
    /* 标题调整 */
    .header {
        margin-bottom: 40px;
    }
    
    .header h1 {
        font-size: 1.75rem;
    }
    
    .header .subtitle {
        font-size: 0.875rem;
        margin-top: 16px;
    }
    
    /* 起卦方式切换 */
    .method-switch {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 32px;
    }
    
    .method-btn {
        padding: 10px 24px;
        width: 100%;
    }
    
    /* 输入区域调整 */
    .input-section {
        padding: 24px 16px;
        margin-bottom: 32px;
    }
    
    #date-method {
        flex-direction: column;
        gap: 16px;
    }
    
    /* 宫格容器保持六宫格布局，调整大小适应移动端 */
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
        max-width: 100%;
        margin: 16px auto;
        border-radius: 12px;
        gap: 2px;
    }
    
    .grid-cell {
        width: 100%;
        height: 160px;
        padding: 14px;
        min-height: 160px;
    }
    
    /* 宫格内容调整 - 进一步减小字体大小 */
    .ganzhi {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }
    
    .earthly-branch-container {
        gap: 4px;
        margin: -3px 0 0 0;
    }
    
    .earthly-branch {
        font-size: 0.8rem;
        padding: 2px 6px;
    }
    
    .earthly-branch-element {
        font-size: 0.7rem;
        padding: 1px 4px;
    }
    
    .liuqin {
        font-size: 0.8rem;
        padding: 2px 6px;
        margin: 1px 0;
    }
    
    .god-name {
        font-size: 0.7rem;
        padding: 1px 3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* 五星和六神相关样式调整 - 进一步优化显示 */
    .five-star, .six-god {
        font-size: 0.65rem;
        padding: 1px 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
        line-height: 1.2;
    }
    
    .five-star-container {
        display: flex;
        flex-wrap: wrap;
        gap: 1px;
        align-items: center;
        margin-top: 2px;
    }
    
    /* 调整细胞内容布局 */
    .cell-middle {
        gap: 0;
        margin: 0;
    }
    
    .cell-top {
        gap: 8px;
        margin-bottom: 6px;
    }
    
    /* 步骤区域调整 */
    .steps-section {
        padding: 20px 16px;
    }
    
    .steps-section h2 {
        font-size: 1.3rem;
    }
    
    .step-item {
        padding: 12px;
    }
    
    /* 按钮容器调整 */
    .button-container {
        flex-direction: column;
        gap: 16px;
        margin-top: 32px;
    }
    
    #calculate-btn,
    #export-btn {
        width: 100%;
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    /* 确保获取实时时间按钮在移动端与开始排盘按钮样式一致 */
    #current-time-btn {
        width: 100%;
        padding: 12px 24px;
        font-size: 1rem;
        border: 1px solid var(--accent-color);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    #current-time-btn svg {
        width: 18px;
        height: 18px;
    }
    
    /* 调整月日时标签样式，将其定位在宫位的右上角 */
    .grid-cell {
        position: relative;
    }
    
    .time-tags-container {
        position: absolute;
        top: 4px;
        right: 4px;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 4px;
        margin: 0;
        z-index: 10;
    }
    
    .time-tag {
        font-size: 0.9rem;
        padding: 4px 12px;
        border-radius: 12px;
        background-color: var(--time-tag-bg, #e74c3c);
        color: white;
        white-space: nowrap;
    }
    
    /* 主网格容器调整 */
    .main-grid-container {
        padding: 24px 12px;
        min-height: auto;
    }
}

/* 响应式设计 - 非常小的移动设备 */
@media (max-width: 360px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    /* 保持六宫格布局，进一步缩小宫格高度，并将间距缩小到几乎没有 */
    .grid-container {
        gap: 2px;
    }
    
    .grid-cell {
        position: relative;
        height: 145px;
        padding: 12px;
        min-height: 145px;
    }
    
    /* 调整月日时标签样式，将其定位在宫位的右上角并增加长度 */
    .time-tags-container {
        position: absolute;
        top: 34px;
        right: -27px;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 4px;
        margin: 0;
        z-index: 10;
    }
    
    .time-tag {
        font-size: 0.85rem;
        padding: 4px 38px;
        border-radius: 12px;
        background-color: var(--time-tag-bg, #e74c3c);
        color: white;
        white-space: nowrap;
    }
    
    /* 进一步缩小字体以适应最小屏幕 */
    .ganzhi {
        font-size: 0.8rem;
        margin-bottom: 1px;
        letter-spacing: 0;
    }
    
    .earthly-branch-container {
        gap: 3px;
        margin: -4px 0 0 0;
    }
    
    /* 确保获取实时时间按钮在最小移动设备上与开始排盘按钮样式一致 */
    #current-time-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.95rem;
        border: 1px solid var(--accent-color);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }
    
    #current-time-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .earthly-branch {
        font-size: 0.7rem;
        padding: 1px 5px;
    }
    
    .earthly-branch-element {
        font-size: 0.6rem;
        padding: 1px 3px;
    }
    
    .liuqin {
        font-size: 0.7rem;
        padding: 1px 5px;
        margin: 0;
    }
    
    .god-name {
        font-size: 0.6rem;
        padding: 1px 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* 五星和六神相关样式调整 - 进一步优化显示 */
    .five-star, .six-god {
        font-size: 0.6rem;
        padding: 0 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
        line-height: 1.1;
    }
    
    .five-star-container {
        display: flex;
        flex-wrap: wrap;
        gap: 1px;
        align-items: center;
        margin-top: 1px;
    }
    
    /* 进一步调整布局间距 */
    .cell-middle {
        gap: 0;
        margin: -2px 0;
    }
    
    .cell-top {
        gap: 6px;
        margin-bottom: 4px;
    }
    
    /* 进一步调整输入区域内边距 */
    .input-section {
        padding: 20px 12px;
    }
}
