/* 玄门风格基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0f1219;
    --bg-secondary: #14171f;
    --bg-card: #191c26;
    --bg-card-hover: #1f2230;
    --border-color: #262a36;
    --border-gold: #8b733c;
    --text-primary: #d8d4c8;
    --text-secondary: #9a9585;
    --text-muted: #6b6658;
    --gold: #bfa055;
    --gold-light: #dbca8a;
    --gold-dark: #8b733c;
    --red: #c47b5e;
    --green: #7a9a60;
    --blue: #6b8db8;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'STKaiti', 'KaiTi', '楷体', 'Noto Serif SC', serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #0b0d13 30%, var(--bg-secondary) 70%, #111319 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.7;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 15% 10%, rgba(191, 160, 85, 0.06) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 85%, rgba(191, 160, 85, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 40%, rgba(191, 160, 85, 0.03) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.4) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 标题区域 */
.header-section {
    text-align: center;
    margin-bottom: 15px;
}

.title {
    font-size: 2.6rem;
    color: var(--gold);
    text-shadow: 
        0 0 15px rgba(191, 160, 85, 0.25), 
        0 0 30px rgba(191, 160, 85, 0.12),
        0 0 50px rgba(191, 160, 85, 0.06);
    margin-bottom: -15px;
    font-weight: 700;
    letter-spacing: 8px;
    position: relative;
    padding: 5px 0 0;
}

.title::before,
.title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.4;
}

.title::before {
    left: 8%;
    transform: translateY(-50%);
}

.title::after {
    right: 8%;
    transform: translateY(-50%);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 4px;
    opacity: 0.75;
}

/* 时间显示区域 */
.time-display-section {
    text-align: center;
    margin-bottom: 2px;
    margin-top: 2px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}



.date-display {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 4px;
    letter-spacing: 2px;
}

.click-hint {
    display: inline-block;
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 8px;
    letter-spacing: 2px;
    animation: hintPulse 2s ease-in-out infinite;
    text-align: center;
    cursor: default;
    pointer-events: none;
}

@keyframes hintPulse {
    0%, 100% {
        opacity: 0.4;
        text-shadow: 0 0 0 rgba(191, 160, 85, 0);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 15px rgba(191, 160, 85, 0.8);
    }
}

/* 导航按钮 */
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 12px 35px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 0.5px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 3px;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(191, 160, 85, 0.15), transparent);
    transition: left 0.5s ease;
}

.nav-btn:hover::before,
.nav-btn.active::before {
    left: 100%;
}

.nav-btn:hover,
.nav-btn.active {
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 
        0 0 15px rgba(191, 160, 85, 0.18),
        inset 0 0 20px rgba(191, 160, 85, 0.05);
    transform: translateY(-1px);
}

/* 主内容区域 */
.main-content {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    border: 0.5px solid var(--border-color);
    border-radius: 16px;
    padding: 35px;
    min-height: 400px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
    border-radius: 16px 16px 0 0;
}

/* 时间选择弹窗 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 7, 10, 0.92);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-content {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 50%, var(--bg-card) 100%);
    border: 0.5px solid var(--border-gold);
    border-radius: 16px;
    padding: 35px;
    width: 90%;
    max-width: 480px;
    animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(191, 160, 85, 0.1);
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.5;
    border-radius: 16px 16px 0 0;
}

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

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

.modal-header h3 {
    color: var(--gold);
    font-size: 1.4rem;
    letter-spacing: 3px;
}

.close-btn {
    width: 35px;
    height: 35px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    border-color: var(--red);
    color: var(--red);
}

/* 时间选择器 */
.time-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    margin-bottom: 25px;
}

.date-picker,
.time-picker {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.date-picker label,
.time-picker label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: center;
    letter-spacing: 2px;
}

.date-picker input,
.time-picker input {
    padding: 14px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1.1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    min-width: 180px;
}

.date-picker input:focus,
.time-picker input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(191, 160, 85, 0.18);
}

/* 快速选择按钮 */
.quick-select {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.quick-btn {
    padding: 10px 24px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 1px;
}

.quick-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(191, 160, 85, 0.05);
}

/* 确认按钮 */
.modal-footer {
    display: flex;
    justify-content: center;
}

.confirm-btn {
    padding: 14px 60px;
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
    border: none;
    border-radius: 10px;
    color: var(--bg-primary);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 3px;
    font-family: inherit;
}

.confirm-btn:hover {
    box-shadow: 0 0 20px rgba(191, 160, 85, 0.3);
    transform: translateY(-2px);
}

/* 奇门信息卡片 */
.qimen-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.qimen-card {
    background: var(--bg-card);
    border: 0.5px solid var(--border-color);
    border-radius: 12px;
    padding: 22px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.qimen-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qimen-card:hover {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(191, 160, 85, 0.12);
    transform: translateY(-3px);
}

.qimen-card:hover::before {
    opacity: 0.5;
}

.qimen-card .label {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: block;
    letter-spacing: 2px;
}

.qimen-card .value {
    color: var(--gold);
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(191, 160, 85, 0.25);
}

/* 排盘时间 */
.qimen-time {
    text-align: center;
    margin-bottom: 35px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(191, 160, 85, 0.08) 0%, rgba(191, 160, 85, 0.03) 100%);
    border: 0.5px solid rgba(191, 160, 85, 0.3);
    border-radius: 12px;
}

.qimen-time span {
    color: var(--text-secondary);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.qimen-time strong {
    color: var(--gold);
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(191, 160, 85, 0.35);
    margin-left: 12px;
    letter-spacing: 2px;
}

/* 九宫格 */
.nine-palace {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 400px;
    margin: 0 auto 20px;
}

.palace {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-primary) 100%);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.palace::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(191, 160, 85, 0.03) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.palace:hover {
    transform: scale(1.08);
    z-index: 10;
}

.palace:hover::before {
    opacity: 1;
}

.palace.center {
    border-color: var(--gold);
    box-shadow: 
        0 0 20px rgba(191, 160, 85, 0.2),
        inset 0 0 15px rgba(191, 160, 85, 0.06);
}

.palace.lucky {
    border-color: var(--green);
    box-shadow: 
        0 0 20px rgba(122, 154, 96, 0.15),
        inset 0 0 15px rgba(122, 154, 96, 0.06);
}

.palace.unlucky {
    border-color: var(--red);
    box-shadow: 
        0 0 20px rgba(196, 123, 94, 0.15),
        inset 0 0 15px rgba(196, 123, 94, 0.06);
}

.palace-name {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.palace-star {
    font-size: 1rem;
    color: var(--gold);
    font-weight: 700;
}

.palace-door {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.palace-god {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.palace-heaven,
.palace-earth {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.palace-luck {
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 6px;
    padding: 3px 10px;
    border-radius: 12px;
}

.palace-luck.luck {
    background: rgba(122, 154, 96, 0.12);
    color: var(--green);
}

.palace-luck.unluck {
    background: rgba(196, 123, 94, 0.12);
    color: var(--red);
}

/* 复制按钮 */
.copy-section {
    text-align: center;
    margin-bottom: 15px;
}

.copy-btn {
    padding: 10px 28px;
    background: var(--bg-card);
    border: 0.5px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 1.5px;
}

.copy-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.copy-btn.copied {
    border-color: var(--green);
    color: var(--green);
}

/* 排盘解析 */
.analysis-section {
    margin-top: 20px;
}

.analysis-section h3 {
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 2.5px;
    text-align: center;
}

.analysis-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.analysis-summary {
    background: var(--bg-card);
    border: 0.5px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
}

.analysis-summary h4 {
    color: var(--gold);
    font-size: 1.15rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1.5px;
}

.summary-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1rem;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-row span {
    color: var(--text-muted);
}

.summary-row strong {
    color: var(--text-primary);
    margin-left: 10px;
    font-size: 1.15rem;
}

.summary-row .sub-info {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-left: 12px;
    font-style: italic;
}

/* 详细信息区域 */
.detail-section {
    background: var(--bg-primary);
    border: 0.5px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h5 {
    color: var(--gold);
    margin-bottom: 12px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

.detail-section p:last-child {
    margin-bottom: 0;
}

/* 每日指导 */
.daily-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
}

.guide-section {
    background: var(--bg-primary);
    border: 0.5px solid var(--border-color);
    border-radius: 10px;
    padding: 18px;
    transition: all 0.3s ease;
}

.guide-section:hover {
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(191, 160, 85, 0.1);
}

.guide-section h5 {
    color: var(--gold);
    margin-bottom: 12px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* 方位指南 */
.direction-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}

.direction-group {
    background: rgba(122, 154, 96, 0.06);
    border: 0.5px solid rgba(122, 154, 96, 0.2);
    border-radius: 10px;
    padding: 18px;
}

.direction-group.caution {
    background: rgba(196, 123, 94, 0.06);
    border: 0.5px solid rgba(196, 123, 94, 0.2);
}

.direction-group h5 {
    color: var(--green);
    margin-bottom: 12px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.direction-group.caution h5 {
    color: var(--red);
}

.direction-group p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 12px;
}

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

.guide-tip {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
}

/* 每日寄语 */
.daily-message {
    background: linear-gradient(135deg, rgba(191, 160, 85, 0.08) 0%, rgba(191, 160, 85, 0.03) 100%);
    border: 0.5px solid rgba(191, 160, 85, 0.2);
    border-radius: 10px;
    padding: 20px;
}

.daily-message p {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.8;
    text-align: center;
    font-weight: 500;
}

/* 基础概念 */
.basic-concepts {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.concept-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.concept-tab {
    padding: 10px 24px;
    background: var(--bg-card);
    border: 0.5px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 2px;
}

.concept-tab:hover,
.concept-tab.active {
    border-color: var(--gold);
    color: var(--gold);
}

.concept-content {
    background: var(--bg-card);
    border: 0.5px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
}

.concept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.concept-card {
    background: var(--bg-primary);
    border: 0.5px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.concept-card:hover {
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(191, 160, 85, 0.07);
}

.concept-card h4 {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.concept-card .category {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(191, 160, 85, 0.15);
    border-radius: 6px;
    color: var(--gold);
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.concept-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.main-tabs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.main-tab-btn {
    padding: 10px 28px;
    background: var(--bg-card);
    border: 0.5px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 2px;
}

.main-tab-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* 数码管样式 */
.time-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Courier New', 'SF Mono', 'Monaco', monospace;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 
        0 0 12px rgba(191, 160, 85, 0.35), 
        0 0 25px rgba(191, 160, 85, 0.18);
    letter-spacing: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto 5px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(191, 160, 85, 0.08) 0%, rgba(191, 160, 85, 0.03) 50%, rgba(191, 160, 85, 0.05) 100%);
    border: 0.5px solid var(--border-color);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(191, 160, 85, 0.1);
}

.time-display:hover {
    border-color: var(--gold);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 12px rgba(191, 160, 85, 0.15),
        inset 0 1px 0 rgba(191, 160, 85, 0.2);
    transform: translateY(-1px);
}

.seven-segment {
    display: inline-block;
    min-width: 48px;
    text-align: center;
}

.colon {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* 标签内容 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 弹窗关闭按钮 */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 35px;
    height: 35px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    border-color: var(--red);
    color: var(--red);
}

/* 点击选择器 */
.date-picker-container,
.time-picker-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.click-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.click-picker-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.click-picker-value {
    width: 70px;
    height: 50px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.click-picker-value:hover {
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(191, 160, 85, 0.18);
}

.click-picker-options {
    display: none;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    grid-template-columns: repeat(5, 1fr);
}

.click-picker-options.active {
    display: grid;
}

.option-btn {
    padding: 8px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
    text-align: center;
}

.option-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(191, 160, 85, 0.1);
}

.picker-separator {
    font-size: 1.8rem;
    color: var(--gold);
    font-weight: 700;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn {
    padding: 12px 40px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 2px;
}

.btn.primary {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
    border: none;
    color: var(--bg-primary);
}

.btn.primary:hover {
    box-shadow: 0 0 20px rgba(191, 160, 85, 0.3);
    transform: translateY(-2px);
}

/* 奇门容器 */
.qimen-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 排盘信息网格 */
.qimen-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.qimen-info-card {
    background: var(--bg-card);
    border: 0.5px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
}

.qimen-info-card:hover {
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(191, 160, 85, 0.1);
}

.qimen-info-card.time-card {
    background: linear-gradient(135deg, rgba(191, 160, 85, 0.1) 0%, var(--bg-card) 100%);
    border: 0.5px solid rgba(191, 160, 85, 0.4);
}

/* 排盘信息合并两列布局 */
.qimen-info-full {
    max-width: 780px;
    margin: 0 auto;
}

.qimen-info-body {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.qimen-info-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qimen-info-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qimen-info-divider {
    width: 0.5px;
    align-self: stretch;
    background: rgba(191, 160, 85, 0.3);
}

.info-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 1.5px;
}

.time-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.time-date-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.time-date {
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.time-hour {
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.time-shichen-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.time-shichen-row span:first-child {
    color: var(--text-secondary);
    font-size: 1rem;
}

.time-shichen-row span:last-child {
    color: var(--gold);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.time-time {
    color: var(--gold);
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(191, 160, 85, 0.25);
    letter-spacing: 4px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    min-width: 0;
}

.info-row span {
    color: var(--text-secondary);
    font-size: 1rem;
    flex-shrink: 0;
}

.info-row strong {
    color: var(--gold);
    font-size: 1.1rem;
    flex: 1;
    text-align: right;
    white-space: normal;
    word-break: keep-all;
}

.info-row.sizhu-row strong {
    font-size: 0.9rem;
    letter-spacing: 1px;
    white-space: nowrap;
}

.qimen-header,
.qimen-xunshou,
.qimen-sizhu {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    padding: 15px 20px;
    background: var(--bg-card);
    border: 0.5px solid var(--border-color);
    border-radius: 10px;
}

.qimen-header span,
.qimen-xunshou span,
.qimen-sizhu span {
    color: var(--text-secondary);
    font-size: 1rem;
}

.qimen-header strong,
.qimen-xunshou strong,
.qimen-sizhu strong {
    color: var(--gold);
    margin-left: 8px;
}

.nine-palace-container {
    display: flex;
    justify-content: center;
}

/* 基础概念样式 */
.basics-container {
    max-width: 1000px;
    margin: 0 auto;
}

.basics-container h3 {
    color: var(--gold);
    font-size: 1.6rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 3px;
    text-align: center;
}

.explanation-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.exp-tab-btn {
    padding: 12px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 2px;
}

.exp-tab-btn:hover,
.exp-tab-btn.active {
    border-color: var(--gold);
    color: var(--gold);
}

.explanation-content {
    background: var(--bg-card);
    border: 0.5px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
}

.exp-content {
    display: none;
}

.exp-content.active {
    display: block;
}

.exp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.exp-card {
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(191, 160, 85, 0.03) 50%, var(--bg-primary) 100%);
    border: 0.5px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.exp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.exp-card:hover {
    border-color: var(--gold);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(191, 160, 85, 0.12),
        inset 0 1px 0 rgba(191, 160, 85, 0.1);
    transform: translateY(-3px);
}

.exp-card:hover::before {
    opacity: 0.5;
}

.exp-card h4 {
    color: var(--gold);
    font-size: 1.25rem;
    margin-bottom: 14px;
    letter-spacing: 2px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.exp-card .category {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(191, 160, 85, 0.12);
    border: 0.5px solid rgba(191, 160, 85, 0.2);
    border-radius: 20px;
    color: var(--gold);
    font-size: 0.82rem;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.exp-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.85;
    position: relative;
    z-index: 1;
}

.exp-card.category-lucky {
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(72, 187, 120, 0.05) 50%, var(--bg-primary) 100%);
    border-color: rgba(72, 187, 120, 0.2);
}

.exp-card.category-lucky::before {
    background: linear-gradient(90deg, transparent, #48bb78, transparent);
}

.exp-card.category-lucky:hover {
    border-color: #48bb78;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(72, 187, 120, 0.12),
        inset 0 1px 0 rgba(72, 187, 120, 0.1);
}

.exp-card.category-lucky h4 {
    color: #48bb78;
}

.exp-card.category-lucky .category {
    background: rgba(72, 187, 120, 0.15);
    border-color: rgba(72, 187, 120, 0.3);
    color: #48bb78;
}

.exp-card.category-unlucky {
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(245, 101, 101, 0.05) 50%, var(--bg-primary) 100%);
    border-color: rgba(245, 101, 101, 0.2);
}

.exp-card.category-unlucky::before {
    background: linear-gradient(90deg, transparent, #f56565, transparent);
}

.exp-card.category-unlucky:hover {
    border-color: #f56565;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(245, 101, 101, 0.12),
        inset 0 1px 0 rgba(245, 101, 101, 0.1);
}

.exp-card.category-unlucky h4 {
    color: #f56565;
}

.exp-card.category-unlucky .category {
    background: rgba(245, 101, 101, 0.15);
    border-color: rgba(245, 101, 101, 0.3);
    color: #f56565;
}

.exp-card.category-neutral {
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(250, 204, 21, 0.05) 50%, var(--bg-primary) 100%);
    border-color: rgba(250, 204, 21, 0.2);
}

.exp-card.category-neutral::before {
    background: linear-gradient(90deg, transparent, #facc15, transparent);
}

.exp-card.category-neutral:hover {
    border-color: #facc15;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(250, 204, 21, 0.12),
        inset 0 1px 0 rgba(250, 204, 21, 0.1);
}

.exp-card.category-neutral h4 {
    color: #facc15;
}

.exp-card.category-neutral .category {
    background: rgba(250, 204, 21, 0.15);
    border-color: rgba(250, 204, 21, 0.3);
    color: #facc15;
}

.guide-content,
.advanced-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.guide-section,
.advanced-section {
    background: var(--bg-primary);
    border: 0.5px solid var(--border-color);
    border-radius: 10px;
    padding: 22px;
}

.guide-section h4,
.advanced-section h4 {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.guide-section p,
.advanced-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

.guide-section p:last-child,
.advanced-section p:last-child {
    margin-bottom: 0;
}

.guide-step {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.guide-step:last-child {
    margin-bottom: 0;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(191, 160, 85, 0.15);
    border-radius: 50%;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.quick-reference {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ref-item {
    padding: 10px 15px;
    background: rgba(191, 160, 85, 0.05);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
    border-left: 3px solid var(--gold);
}

.guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guide-list li {
    padding: 10px 15px;
    background: rgba(191, 160, 85, 0.05);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    padding-left: 25px;
}

.guide-list li::before {
    content: '•';
    position: absolute;
    left: 12px;
    color: var(--gold);
}

.advanced-section .concept-card {
    background: var(--bg-card);
    border: 0.5px solid var(--border-color);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 12px;
}

.advanced-section .concept-card:last-child {
    margin-bottom: 0;
}

.advanced-section .concept-card h5 {
    color: var(--gold);
    font-size: 1.05rem;
    margin-bottom: 12px;
    letter-spacing: 1.5px;
}

.advanced-section .concept-card p {
    margin-bottom: 8px;
}

.advanced-section .concept-card p:last-child {
    margin-bottom: 0;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .title {
        font-size: 2rem;
        letter-spacing: 6px;
        padding: 15px 0 0;
    }
    
    .title::before,
    .title::after {
        width: 50px;
    }
    
    .time-display {
        font-size: 2.2rem;
        padding: 12px;
        gap: 5px;
    }
    
    .seven-segment {
        min-width: 40px;
    }
    
    .date-display {
        font-size: 1.1rem;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .nine-palace {
        max-width: 320px;
        gap: 8px;
    }
    
    .palace {
        padding: 8px;
    }
    
    .palace-star {
        font-size: 0.85rem;
    }
    
    .palace-door,
    .palace-god {
        font-size: 0.75rem;
    }
    
    .qimen-info-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 12px;
    }
    
    .qimen-info-card {
        padding: 16px;
    }
    
    .time-date {
        font-size: 1.3rem;
    }
    
    .time-time {
        font-size: 2rem;
    }
    
    .exp-grid {
        grid-template-columns: 1fr;
    }
    
    .exp-card {
        padding: 18px;
    }
    
    .click-picker-options {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .option-btn {
        min-width: 45px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .time-display {
        font-size: 1.6rem;
        padding: 12px;
        gap: 3px;
    }
    
    .seven-segment {
        min-width: 30px;
    }
    
    .date-display {
        font-size: 1rem;
    }
    
    .main-tab-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .qimen-time {
        padding: 18px;
    }
    
    .qimen-time span {
        font-size: 1rem;
    }
    
    .qimen-time strong {
        font-size: 1.4rem;
    }
    
    .qimen-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .qimen-info-body {
        flex-direction: column;
        gap: 12px;
    }

    .qimen-info-divider {
        width: 100%;
        height: 0.5px;
        align-self: auto;
    }
    
    .time-date {
        font-size: 1.2rem;
    }
    
    .time-time {
        font-size: 1.6rem;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: wrap;
    }
    
    .info-row strong {
        text-align: left;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
    
    .exp-tab-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .explanation-content {
        padding: 20px;
    }
    
    .click-picker-options {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .click-picker-value {
        width: 60px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 10px 30px;
        font-size: 0.95rem;
    }
    
    .footer {
        padding: 30px 0;
        font-size: 0.85rem;
    }
}
