/* ========================================
   道缘阁 - 玄门命理网站样式
   传统玄门风格：红金配色、古典纹样
   ======================================== */

/* === 基础变量 === */
:root {
    --primary-red: #8B1A1A;
    --deep-red: #6B0F0F;
    --light-red: #A52A2A;
    --gold: #C5A35A;
    --light-gold: #D4B96A;
    --pale-gold: #F0E4C1;
    --dark-bg: #1A0A0A;
    --dark-bg2: #2A1515;
    --text-light: #F5F0E8;
    --text-muted: #B8A88A;
    --text-dark: #3A2A1A;
    --border-gold: rgba(197, 163, 90, 0.3);
    --shadow-gold: rgba(197, 163, 90, 0.15);
    --font-serif: 'Noto Serif SC', 'SimSun', 'STSong', serif;
    --font-brush: 'Ma Shan Zheng', 'KaiTi', 'STKaiti', cursive;
}

/* === 重置 === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-serif);
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.8;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === 顶部装饰线 === */
.top-border {
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--gold) 15%,
        var(--light-gold) 50%,
        var(--gold) 85%,
        transparent 100%
    );
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

/* === 导航栏 === */
.navbar {
    position: fixed;
    top: 4px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-gold);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 65px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--gold);
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-family: var(--font-brush);
    font-size: 26px;
    letter-spacing: 4px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 2px;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border-gold);
    color: var(--gold);
    font-size: 22px;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

/* === 英雄区域 === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(139, 26, 26, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse at 20% 80%, rgba(197, 163, 90, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(197, 163, 90, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-bg2) 50%, var(--dark-bg) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-brush);
    font-size: clamp(60px, 12vw, 120px);
    color: var(--gold);
    letter-spacing: 20px;
    text-shadow:
        0 0 40px rgba(197, 163, 90, 0.3),
        0 0 80px rgba(197, 163, 90, 0.1);
    margin-bottom: 15px;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 26px);
    color: var(--light-gold);
    letter-spacing: 12px;
    margin-bottom: 25px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 2;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-btn {
    display: inline-block;
    padding: 14px 50px;
    border: 2px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 6px;
    transition: all 0.4s;
    animation: fadeInUp 1s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s;
    z-index: -1;
}

.hero-btn:hover {
    color: var(--dark-bg);
}

.hero-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.hero-decoration {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.06;
}

.taiji {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background:
        radial-gradient(circle at 50% 25%, var(--gold) 8px, transparent 8px),
        radial-gradient(circle at 50% 75%, transparent 8px, var(--gold) 8px, transparent 9px),
        linear-gradient(to right, var(--gold) 50%, transparent 50%);
    animation: rotate 30s linear infinite;
}

/* === 通用区域样式 === */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-icon {
    font-size: 32px;
    color: var(--gold);
    display: block;
    margin-bottom: 15px;
}

.section-header h2 {
    font-family: var(--font-brush);
    font-size: clamp(32px, 5vw, 48px);
    color: var(--gold);
    letter-spacing: 8px;
    margin-bottom: 15px;
}

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

.section-desc {
    color: var(--text-muted);
    font-size: 15px;
    letter-spacing: 3px;
}

/* === 道教简介 === */
.about-section {
    background:
        radial-gradient(ellipse at 30% 50%, rgba(139, 26, 26, 0.08) 0%, transparent 60%),
        var(--dark-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.about-card {
    background: rgba(42, 21, 21, 0.6);
    border: 1px solid var(--border-gold);
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s;
    position: relative;
}

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

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 40px var(--shadow-gold);
}

.about-card:hover::before {
    opacity: 1;
}

.about-card-icon {
    font-size: 36px;
    color: var(--gold);
    margin-bottom: 15px;
}

.about-card h3 {
    font-family: var(--font-brush);
    font-size: 22px;
    color: var(--light-gold);
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.about-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 2;
    text-align: justify;
}

.about-philosophy {
    text-align: center;
    padding: 40px;
    border-top: 1px solid var(--border-gold);
    border-bottom: 1px solid var(--border-gold);
}

.about-philosophy blockquote {
    font-family: var(--font-brush);
    font-size: clamp(22px, 4vw, 32px);
    color: var(--light-gold);
    letter-spacing: 4px;
    line-height: 2;
}

.about-philosophy cite {
    display: block;
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-muted);
    font-style: normal;
    letter-spacing: 2px;
}

/* === 命理测算 === */
.fortune-section {
    background:
        radial-gradient(ellipse at 70% 30%, rgba(197, 163, 90, 0.05) 0%, transparent 60%),
        var(--dark-bg2);
}

.fortune-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(26, 10, 10, 0.8);
    border: 1px solid var(--border-gold);
    padding: 45px 40px;
    position: relative;
}

.fortune-form-wrapper::before,
.fortune-form-wrapper::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--gold);
}

.fortune-form-wrapper::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid var(--gold);
    border-left: 2px solid var(--gold);
}

.fortune-form-wrapper::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    flex: 1;
}

.form-group.full-width {
    flex-basis: 100%;
}

.form-group label {
    display: block;
    color: var(--light-gold);
    font-size: 14px;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.form-group select,
.form-group input[type="date"] {
    width: 100%;
    padding: 12px 15px;
    background: rgba(42, 21, 21, 0.6);
    border: 1px solid var(--border-gold);
    color: var(--text-light);
    font-family: var(--font-serif);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23C5A35A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.form-group select:focus,
.form-group input[type="date"]:focus {
    border-color: var(--gold);
    box-shadow: 0 0 10px var(--shadow-gold);
}

.form-group select option {
    background: var(--dark-bg2);
    color: var(--text-light);
}

/* 测算类型选择 */
.fortune-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.fortune-type {
    cursor: pointer;
}

.fortune-type input {
    display: none;
}

.type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    border: 1px solid var(--border-gold);
    background: rgba(42, 21, 21, 0.4);
    transition: all 0.3s;
    text-align: center;
}

.type-card:hover {
    border-color: var(--gold);
    background: rgba(139, 26, 26, 0.2);
}

.fortune-type input:checked + .type-card {
    border-color: var(--gold);
    background: rgba(139, 26, 26, 0.3);
    box-shadow: 0 0 20px var(--shadow-gold);
}

.type-icon {
    font-size: 28px;
    color: var(--gold);
    margin-bottom: 8px;
}

.type-name {
    font-size: 16px;
    color: var(--light-gold);
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.type-desc {
    font-size: 11px;
    color: var(--text-muted);
}

/* 提交按钮 */
.submit-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-red), var(--deep-red));
    border: 2px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-brush);
    font-size: 22px;
    letter-spacing: 8px;
    cursor: pointer;
    transition: all 0.4s;
    margin-top: 10px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--gold), var(--light-gold));
    color: var(--dark-bg);
    box-shadow: 0 0 30px var(--shadow-gold);
}

/* === 测算结果 === */
.fortune-result {
    max-width: 900px;
    margin: 40px auto 0;
}

.result-loading {
    text-align: center;
    padding: 60px;
}

.loading-taiji {
    width: 60px;
    height: 60px;
    border: 3px solid var(--gold);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: rotate 2s linear infinite;
    border-top-color: transparent;
}

.result-loading p {
    color: var(--text-muted);
    letter-spacing: 3px;
}

/* 结果卡片 */
.result-card {
    background: rgba(42, 21, 21, 0.6);
    border: 1px solid var(--border-gold);
    padding: 35px;
    margin-bottom: 25px;
    position: relative;
}

.result-card h3 {
    font-family: var(--font-brush);
    font-size: 24px;
    color: var(--gold);
    letter-spacing: 4px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-gold);
}

.result-card h4 {
    font-size: 16px;
    color: var(--light-gold);
    margin: 18px 0 10px;
    letter-spacing: 2px;
}

/* 八字展示 */
.bazi-display {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 25px 0;
}

.bazi-pillar {
    text-align: center;
    min-width: 80px;
}

.pillar-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.pillar-content {
    background: rgba(139, 26, 26, 0.2);
    border: 1px solid var(--border-gold);
    padding: 15px 20px;
    min-width: 70px;
}

.pillar-gan {
    font-family: var(--font-brush);
    font-size: 32px;
    color: var(--gold);
    display: block;
    margin-bottom: 5px;
}

.pillar-zhi {
    font-family: var(--font-brush);
    font-size: 32px;
    color: var(--light-gold);
    display: block;
}

.pillar-wuxing {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* 五行图 */
.wuxing-chart {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin: 25px 0;
    padding: 20px;
}

.wuxing-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.wuxing-bar-fill {
    width: 40px;
    border-radius: 3px 3px 0 0;
    transition: height 0.8s ease;
    min-height: 10px;
}

.wuxing-bar-fill.jin { background: linear-gradient(to top, #C0C0C0, #E8E8E8); }
.wuxing-bar-fill.mu { background: linear-gradient(to top, #2E8B57, #5CB85C); }
.wuxing-bar-fill.shui { background: linear-gradient(to top, #1E3A5F, #4A90D9); }
.wuxing-bar-fill.huo { background: linear-gradient(to top, #8B1A1A, #E74C3C); }
.wuxing-bar-fill.tu { background: linear-gradient(to top, #8B6914, #DAA520); }

.wuxing-bar-label {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.wuxing-bar-count {
    font-size: 13px;
    color: var(--light-gold);
}

/* 运势评分 */
.score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(26, 10, 10, 0.5);
    border: 1px solid rgba(197, 163, 90, 0.15);
}

.score-label {
    font-size: 14px;
    color: var(--text-muted);
    min-width: 60px;
}

.score-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
    background: linear-gradient(90deg, var(--primary-red), var(--gold));
}

.score-value {
    font-size: 16px;
    color: var(--gold);
    font-weight: 600;
    min-width: 35px;
    text-align: right;
}

/* 吉凶标签 */
.ji-tag {
    display: inline-block;
    padding: 5px 18px;
    font-size: 14px;
    letter-spacing: 2px;
    border-radius: 3px;
    margin: 5px;
}

.ji-tag.da-ji { background: rgba(218, 165, 32, 0.3); color: #FFD700; border: 1px solid rgba(255, 215, 0, 0.5); }
.ji-tag.ji { background: rgba(76, 175, 80, 0.2); color: #81C784; border: 1px solid rgba(76, 175, 80, 0.4); }
.ji-tag.xiao-ji { background: rgba(129, 199, 132, 0.15); color: #A5D6A7; border: 1px solid rgba(129, 199, 132, 0.3); }
.ji-tag.ping { background: rgba(158, 158, 158, 0.2); color: #BDBDBD; border: 1px solid rgba(158, 158, 158, 0.3); }
.ji-tag.xiao-xiong { background: rgba(255, 152, 0, 0.15); color: #FFB74D; border: 1px solid rgba(255, 152, 0, 0.3); }
.ji-tag.xiong { background: rgba(244, 67, 54, 0.15); color: #E57373; border: 1px solid rgba(244, 67, 54, 0.3); }

/* 宜忌 */
.yi-ji-section {
    display: flex;
    gap: 25px;
    margin: 20px 0;
}

.yi-list, .ji-list {
    flex: 1;
}

.yi-list h4 {
    color: #81C784;
}

.ji-list h4 {
    color: #E57373;
}

.yi-list .tag, .ji-list .tag {
    display: inline-block;
    padding: 4px 12px;
    margin: 4px;
    font-size: 13px;
    border-radius: 3px;
}

.yi-list .tag {
    background: rgba(76, 175, 80, 0.15);
    color: #81C784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.ji-list .tag {
    background: rgba(244, 67, 54, 0.1);
    color: #E57373;
    border: 1px solid rgba(244, 67, 54, 0.2);
}

/* 建议列表 */
.advice-list {
    list-style: none;
}

.advice-list li {
    padding: 10px 0;
    padding-left: 20px;
    border-bottom: 1px solid rgba(197, 163, 90, 0.1);
    color: var(--text-muted);
    font-size: 14px;
    position: relative;
}

.advice-list li::before {
    content: '\2605';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 10px;
}

/* 信息行 */
.info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}

.info-item {
    padding: 8px 18px;
    background: rgba(139, 26, 26, 0.15);
    border: 1px solid rgba(197, 163, 90, 0.2);
    font-size: 14px;
}

.info-item .label {
    color: var(--text-muted);
    margin-right: 8px;
}

.info-item .value {
    color: var(--light-gold);
}

/* 大运表格 */
.dayun-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.dayun-table th,
.dayun-table td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid var(--border-gold);
    font-size: 14px;
}

.dayun-table th {
    background: rgba(139, 26, 26, 0.3);
    color: var(--gold);
    letter-spacing: 2px;
    font-weight: normal;
}

.dayun-table td {
    color: var(--text-muted);
}

.dayun-table tr:hover td {
    background: rgba(197, 163, 90, 0.05);
    color: var(--text-light);
}

/* 月运柱状图 */
.monthly-chart {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.month-item {
    text-align: center;
    padding: 10px 5px;
    background: rgba(26, 10, 10, 0.5);
    border: 1px solid rgba(197, 163, 90, 0.1);
}

.month-name {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.month-score {
    font-size: 18px;
    color: var(--gold);
    font-weight: 600;
}

.month-level {
    font-size: 11px;
    margin-top: 3px;
}

/* 吉时 */
.jishi-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.jishi-item {
    padding: 6px 16px;
    background: rgba(197, 163, 90, 0.1);
    border: 1px solid var(--border-gold);
    color: var(--light-gold);
    font-size: 13px;
    letter-spacing: 1px;
}

/* 总评分 */
.total-score {
    text-align: center;
    padding: 30px;
    margin: 20px 0;
    border: 2px solid var(--border-gold);
    background: rgba(139, 26, 26, 0.1);
}

.total-score .number {
    font-family: var(--font-brush);
    font-size: 56px;
    color: var(--gold);
    line-height: 1;
}

.total-score .label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
    letter-spacing: 3px;
}

/* 命主信息 */
.mingzhu-info {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
}

.mingzhu-info .riZhu {
    font-family: var(--font-brush);
    font-size: 36px;
    color: var(--gold);
}

.mingzhu-info .desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 5px;
}

/* === 道学文化 === */
.culture-section {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(139, 26, 26, 0.06) 0%, transparent 60%),
        var(--dark-bg);
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.culture-card {
    background: rgba(42, 21, 21, 0.5);
    border: 1px solid var(--border-gold);
    padding: 30px;
}

.culture-card h3 {
    font-family: var(--font-brush);
    font-size: 22px;
    color: var(--gold);
    letter-spacing: 3px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-gold);
}

.culture-card ul {
    list-style: none;
}

.culture-card li {
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 14px;
    border-bottom: 1px solid rgba(197, 163, 90, 0.08);
}

.culture-card li:last-child {
    border-bottom: none;
}

.culture-card li strong {
    color: var(--light-gold);
}

/* === 底部 === */
.footer {
    background: rgba(10, 5, 5, 0.8);
    border-top: 1px solid var(--border-gold);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.footer-brand h3 {
    font-family: var(--font-brush);
    font-size: 24px;
    color: var(--gold);
    letter-spacing: 4px;
    margin-bottom: 5px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 2px;
}

.footer-links p {
    color: var(--text-muted);
    font-size: 13px;
    text-align: right;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(197, 163, 90, 0.1);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 1px;
}

/* === 动画 === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes scoreIn {
    from { width: 0; }
}

/* === 响应式 === */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        background: rgba(26, 10, 10, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid var(--border-gold);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .fortune-types {
        grid-template-columns: 1fr;
    }

    .bazi-display {
        flex-wrap: wrap;
        gap: 15px;
    }

    .score-grid {
        grid-template-columns: 1fr;
    }

    .yi-ji-section {
        flex-direction: column;
    }

    .monthly-chart {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-links p {
        text-align: center;
    }

    .fortune-form-wrapper {
        padding: 30px 20px;
    }

    .dayun-table {
        font-size: 12px;
    }

    .dayun-table th,
    .dayun-table td {
        padding: 8px 5px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        letter-spacing: 10px;
    }

    .hero-subtitle {
        letter-spacing: 6px;
    }

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

/* === 日期选择器展示区 === */
.date-picker-display {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(42, 21, 21, 0.6);
    border: 1px solid var(--border-gold);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.date-picker-display:hover {
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--shadow-gold);
}

.date-display-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 8px 0;
    border-right: 1px solid rgba(197, 163, 90, 0.15);
}

.date-display-item:last-of-type {
    border-right: none;
}

.date-display-item .date-num {
    font-family: var(--font-brush);
    font-size: 28px;
    color: var(--gold);
    line-height: 1.2;
}

.date-display-item .date-label {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-top: 2px;
}

.date-display-hint {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
    opacity: 0.6;
}

.date-picker-display.has-date .date-display-hint {
    display: none;
}

/* === 模态框 === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.modal-box {
    background: var(--dark-bg2);
    border: 1px solid var(--gold);
    width: 90%;
    max-width: 420px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

.modal-header h3 {
    font-family: var(--font-brush);
    font-size: 22px;
    color: var(--gold);
    letter-spacing: 4px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    transition: color 0.3s;
}

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

.modal-body {
    padding: 20px 25px;
}

.modal-section {
    margin-bottom: 20px;
}

.modal-section label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* 滚动选择器 */
.picker-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 160px;
    overflow-y: auto;
    padding: 5px 0;
}

.picker-scroll::-webkit-scrollbar {
    width: 4px;
}

.picker-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}

.picker-scroll::-webkit-scrollbar-thumb {
    background: var(--border-gold);
    border-radius: 2px;
}

.picker-item {
    padding: 8px 14px;
    background: rgba(42, 21, 21, 0.6);
    border: 1px solid rgba(197, 163, 90, 0.2);
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    min-width: 48px;
}

.picker-item:hover {
    border-color: var(--gold);
    color: var(--light-gold);
}

.picker-item.active {
    background: rgba(139, 26, 26, 0.4);
    border-color: var(--gold);
    color: var(--gold);
    font-weight: 600;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 15px 25px;
    border-top: 1px solid var(--border-gold);
}

.modal-cancel {
    flex: 1;
    padding: 12px;
    background: rgba(42, 21, 21, 0.6);
    border: 1px solid var(--border-gold);
    color: var(--text-muted);
    font-family: var(--font-serif);
    font-size: 14px;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-cancel:hover {
    border-color: var(--gold);
    color: var(--text-light);
}

.modal-confirm {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-red), var(--deep-red));
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-serif);
    font-size: 14px;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-confirm:hover {
    background: linear-gradient(135deg, var(--gold), var(--light-gold));
    color: var(--dark-bg);
}

/* === 年份按钮组 === */
.year-btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.year-btn {
    flex: 1;
    min-width: 80px;
    padding: 12px 10px;
    background: rgba(42, 21, 21, 0.6);
    border: 1px solid var(--border-gold);
    color: var(--text-muted);
    font-family: var(--font-serif);
    font-size: 15px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

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

.year-btn.active {
    background: rgba(139, 26, 26, 0.4);
    border-color: var(--gold);
    color: var(--gold);
    font-weight: 600;
    box-shadow: 0 0 12px var(--shadow-gold);
}

/* === 十神标签 === */
.shishen-tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 3px;
    margin: 2px;
}

.shishen-tag.ji {
    background: rgba(76, 175, 80, 0.15);
    color: #81C784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.shishen-tag.xiong {
    background: rgba(244, 67, 54, 0.1);
    color: #E57373;
    border: 1px solid rgba(244, 67, 54, 0.2);
}

.shishen-tag.zhong {
    background: rgba(158, 158, 158, 0.15);
    color: #BDBDBD;
    border: 1px solid rgba(158, 158, 158, 0.25);
}

/* === 时柱展示 === */
.bazi-display.four-pillars {
    gap: 20px;
}

/* 响应式补充 */
@media (max-width: 768px) {
    .date-picker-display {
        gap: 10px;
        padding: 12px 15px;
    }

    .date-display-item .date-num {
        font-size: 22px;
    }

    .year-btn-group {
        flex-wrap: wrap;
    }

    .year-btn {
        min-width: 60px;
        padding: 10px 8px;
        font-size: 13px;
    }

    .modal-box {
        width: 95%;
        max-height: 90vh;
    }

    .picker-scroll {
        max-height: 120px;
    }
}
