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

:root {
    /* 仙风道骨 - 东方美学配色 */
    --primary-gold: #d4af37;        /* 赤金 */
    --dark-gold: #b8941f;
    --red-gold: #c9952b;            /* 红金 */
    --earth-color: #8b7355;
    --dark-green: #2d5016;
    --bright-red: #c41e3a;
    --mystical-blue: #1a2438;       /* 玄青 */
    --deep-blue: #0f1728;           /* 深玄青 */
    --ivory-white: #faf9f6;         /* 象牙白 */
    --ancient-gold: #c8a876;        /* 古金 */
    --dark-bg: #0f1728;
    --card-bg: #1a2438;
    --text-primary: #faf9f6;        /* 象牙白 */
    --text-secondary: #c4c0b5;      /* 灰白 */
    --border-color: #c9952b;        /* 金色边框 */
}

/* 霞鹜文楷字体 - 书卷气和仙气 */
@import url('https://cdn.jsdelivr.net/npm/lxgw-wenkai-webfont@1.1.0/style.css');

body {
    font-family: "LXGW WenKai", 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', serif;
    /* 玄青渐变背景 */
    background: linear-gradient(135deg, #0f1728 0%, #1a2438 50%, #121b2e 100%);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    padding-top: 70px;
    /* 宣纸纹理效果 */
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(250, 249, 246, 0.015) 2px, rgba(250, 249, 246, 0.015) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(250, 249, 246, 0.015) 2px, rgba(250, 249, 246, 0.015) 4px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* 固定标题栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(26, 31, 58, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1001;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo-icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
    transition: all 0.3s ease;
    animation: breatheGlow 3s ease-in-out infinite;
}

@keyframes breatheGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.7));
    }
}

.logo-text {
    font-family: 'DFLiShu-Md', 'DFLiShu', 'STLiti', 'LiSu', '隶书', 'KaiTi', serif;
    background: linear-gradient(135deg, var(--primary-gold) 0%, #f4e4c1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-logo:hover .logo-icon {
    transform: rotate(360deg) scale(1.1);
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.9));
    animation: none;
}

.navbar-logo:hover .logo-text {
    letter-spacing: 6px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.developer-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 6px;
}

.developer-link:hover {
    color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.1);
}

.lang-switch {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--primary-gold);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
    z-index: 10;
}

.lang-switch:hover {
    background: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.lang-text {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--primary-gold);
    transition: color 0.3s ease;
    pointer-events: none;
}

.lang-switch:hover .lang-text {
    color: var(--dark-bg);
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    padding: 8px;
}

.social-icon:hover {
    color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.navbar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--primary-gold);
    border-radius: 8px;
    color: var(--primary-gold);
    font-size: 1rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.navbar-btn:hover {
    background: var(--primary-gold);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.navbar-btn svg {
    width: 20px;
    height: 20px;
}

/* 记录弹窗 */
.record-panel {
    position: fixed;
    top: 70px;
    right: -500px;
    width: 480px;
    height: calc(100vh - 70px);
    background: rgba(26, 31, 58, 0.98);
    backdrop-filter: blur(15px);
    border-left: 2px solid var(--primary-gold);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.record-panel.active {
    right: 0;
}

.record-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(212, 175, 55, 0.05);
    flex-wrap: wrap;
    gap: 10px;
}

.record-header h3 {
    font-size: 1.5rem;
    color: var(--primary-gold);
    letter-spacing: 3px;
    font-weight: 600;
    margin: 0;
}

.record-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    opacity: 0.6;
    margin: 0;
    flex-basis: 100%;
    order: 2;
}

.clear-btn {
    padding: 8px 16px;
    background: rgba(196, 30, 58, 0.1);
    border: 1px solid var(--bright-red);
    border-radius: 6px;
    color: var(--bright-red);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.clear-btn:hover {
    background: var(--bright-red);
    color: white;
    transform: translateY(-1px);
}

.record-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.record-list::-webkit-scrollbar {
    width: 8px;
}

.record-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.record-list::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 4px;
}

.record-list::-webkit-scrollbar-thumb:hover {
    background: var(--dark-gold);
}

.empty-records {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.record-item {
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.record-item:hover {
    border-color: var(--primary-gold);
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.record-time {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.record-time::before {
    content: '📅';
    font-size: 1rem;
}

.record-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.record-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.record-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.record-value {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.record-value.auspicious {
    color: #4ade80;
}

.record-value.inauspicious {
    color: #f87171;
}

.record-value.score {
    color: var(--primary-gold);
}

.record-choice {
    margin-top: 8px;
    padding: 10px 15px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--primary-gold);
    font-size: 0.95rem;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.record-choice.follow {
    border-left-color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.1);
}

.record-choice.defy {
    border-left-color: var(--bright-red);
    background: rgba(196, 30, 58, 0.1);
}

.record-choice.restart {
    border-left-color: var(--text-secondary);
    background: rgba(176, 176, 176, 0.1);
}

.navbar-btn svg {
    width: 20px;
    height: 20px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(138, 115, 85, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 40px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.page {
    display: none;
    width: 100%;
    animation: fadeIn 0.6s ease-in-out;
}

.page.active {
    display: block;
}

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

/* 主页面样式 */
.header {
    text-align: center;
    margin-bottom: 60px;
}

/* 口号容器 - 让标题和副标题并排 */
.slogan-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.title {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 8px;
    font-family: 'DFLiShu-Md', 'DFLiShu', 'STLiti', 'LiSu', '隶书', 'KaiTi', serif;
    background: linear-gradient(135deg, var(--primary-gold) 0%, #f4e4c1 50%, var(--primary-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

/* 分隔符 */
.slogan-separator {
    font-size: 2.5rem;
    color: var(--primary-gold);
    opacity: 0.6;
    font-weight: 300;
}

.subtitle {
    font-size: 3.5rem;
    color: var(--primary-gold);
    letter-spacing: 8px;
    font-weight: 300;
    font-family: 'DFLiShu-Md', 'DFLiShu', 'STLiti', 'LiSu', '隶书', 'KaiTi', serif;
    background: linear-gradient(135deg, var(--primary-gold) 0%, #f4e4c1 50%, var(--primary-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    margin: 0;
}

.page-title {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: var(--primary-gold);
    margin-bottom: 40px;
}

/* 八卦圆盘 */
.divination-circle {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto 80px;
}

.circle-outer,
.circle-middle,
.circle-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid;
}

.circle-outer {
    width: 100%;
    height: 100%;
    border-color: var(--primary-gold);
    border-width: 3px;
    border-style: double;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.3),
                inset 0 0 40px rgba(212, 175, 55, 0.1);
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(212, 175, 55, 0.05) 45deg,
        transparent 90deg,
        rgba(212, 175, 55, 0.05) 135deg,
        transparent 180deg,
        rgba(212, 175, 55, 0.05) 225deg,
        transparent 270deg,
        rgba(212, 175, 55, 0.05) 315deg,
        transparent 360deg
    );
}

.circle-outer.rotating {
    animation: rotateReverse 60s linear infinite;
}

.circle-middle {
    width: 70%;
    height: 70%;
    border-color: var(--earth-color);
    border-width: 2px;
    box-shadow: 0 0 30px rgba(138, 115, 85, 0.3),
                inset 0 0 30px rgba(138, 115, 85, 0.1);
    background: repeating-conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(138, 115, 85, 0.1) 15deg,
        transparent 30deg
    );
}

.circle-middle.rotating {
    animation: rotate 40s linear infinite;
}

.circle-inner {
    width: 40%;
    height: 40%;
    border-color: var(--primary-gold);
    border-width: 4px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, rgba(184, 148, 31, 0.2) 50%, rgba(139, 115, 85, 0.1) 100%);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4),
                inset 0 0 30px rgba(212, 175, 55, 0.2);
    animation: pulseNoRotate 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 铜钱中心方孔 */
.circle-inner::before {
    content: '';
    position: absolute;
    width: 35%;
    height: 35%;
    background: rgba(10, 14, 39, 0.9);
    border: 2px solid var(--primary-gold);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8),
                0 0 10px rgba(212, 175, 55, 0.3);
    z-index: 1;
}

/* 招财进宝文字容器 */
.circle-inner::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* 招财进宝四个字的样式 */
.bagua-symbols {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 3;
}

/* 为铜钱添加招财进宝文字 */
.divination-circle::after {
    content: '';
    position: absolute;
    width: 40%;
    height: 40%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
}

/* 招字 - 上方 */
.circle-inner .coin-text-top {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.6rem;
    font-weight: 700;
    font-family: 'STLiti', 'LiSu', '隶书', 'KaiTi', serif;
    color: var(--primary-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8),
                 0 0 20px rgba(212, 175, 55, 0.4);
    animation: textGlow 2s ease-in-out infinite;
    z-index: 10;
}

/* 财字 - 右方 */
.circle-inner .coin-text-right {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    font-weight: 700;
    font-family: 'STLiti', 'LiSu', '隶书', 'KaiTi', serif;
    color: var(--primary-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8),
                 0 0 20px rgba(212, 175, 55, 0.4);
    animation: textGlow 2s ease-in-out infinite 0.2s;
    z-index: 10;
}

/* 进字 - 下方 */
.circle-inner .coin-text-bottom {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.6rem;
    font-weight: 700;
    font-family: 'STLiti', 'LiSu', '隶书', 'KaiTi', serif;
    color: var(--primary-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8),
                 0 0 20px rgba(212, 175, 55, 0.4);
    animation: textGlow 2s ease-in-out infinite 0.4s;
    z-index: 10;
}

/* 宝字 - 左方 */
.circle-inner .coin-text-left {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    font-weight: 700;
    font-family: 'STLiti', 'LiSu', '隶书', 'KaiTi', serif;
    color: var(--primary-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8),
                 0 0 20px rgba(212, 175, 55, 0.4);
    animation: textGlow 2s ease-in-out infinite 0.6s;
    z-index: 10;
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(212, 175, 55, 0.8),
                     0 0 20px rgba(212, 175, 55, 0.4);
    }
    50% {
        text-shadow: 0 0 15px rgba(212, 175, 55, 1),
                     0 0 30px rgba(212, 175, 55, 0.6),
                     0 0 40px rgba(212, 175, 55, 0.3);
    }
}

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

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

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
        transform: translate(-50%, -50%) scale(1.05);
    }
}

@keyframes pulseNoRotate {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* 八卦符号 */
.bagua-symbols {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.bagua-symbols.rotating {
    animation: rotate 40s linear infinite;
}

.symbol {
    position: absolute;
    font-size: 2rem;
    color: var(--primary-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    animation: symbolGlow 2s ease-in-out infinite;
}

.symbol:nth-child(1) { top: 2%; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.symbol:nth-child(2) { top: 15%; right: 15%; animation-delay: 0.25s; }
.symbol:nth-child(3) { top: 50%; right: 5%; transform: translateY(-50%); animation-delay: 0.5s; }
.symbol:nth-child(4) { bottom: 15%; right: 15%; animation-delay: 0.75s; }
.symbol:nth-child(5) { bottom: 2%; left: 50%; transform: translateX(-50%); animation-delay: 1s; }
.symbol:nth-child(6) { bottom: 15%; left: 15%; animation-delay: 1.25s; }
.symbol:nth-child(7) { top: 50%; left: 5%; transform: translateY(-50%); animation-delay: 1.5s; }
.symbol:nth-child(8) { top: 15%; left: 15%; animation-delay: 1.75s; }

@keyframes symbolGlow {
    0%, 100% {
        opacity: 0.6;
        text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    }
}

/* 按钮样式 */
.start-btn {
    display: block;
    margin: 0 auto;
    padding: 20px 80px;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 8px;
    color: var(--dark-bg);
    background: linear-gradient(135deg, var(--primary-gold) 0%, #f4e4c1 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.start-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.start-btn:hover::before {
    width: 300px;
    height: 300px;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

.start-btn:active {
    transform: translateY(-1px);
}

/* 介绍区块样式 */
.intro-section {
    margin-top: 50px;
    padding: 30px;
    background: rgba(26, 31, 58, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.intro-title {
    color: var(--primary-gold);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 3px;
}

.intro-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.9;
    text-align: justify;
    letter-spacing: 1px;
}

/* 表单样式 */
.form {
    background: rgba(26, 31, 58, 0.6);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto;
}

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

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 25px;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--primary-gold);
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px; /* iOS防止自动缩放，必须>=16px */
    transition: all 0.3s ease;
    -webkit-appearance: none; /* 移除iOS默认样式 */
    appearance: none;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.form-group small {
    display: block;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* 按钮选择组 */
.button-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.option-btn {
    padding: 14px 20px;
    background: rgba(58, 63, 90, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 16px; /* iOS防止自动缩放 */
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 300;
    min-height: 48px; /* 确保足够的触摸区域 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-btn:hover {
    background: rgba(58, 63, 90, 0.6);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

.option-btn.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.15) 100%);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.option-btn:active {
    transform: translateY(0);
}

/* 地点输入组 */
.location-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.location-group input {
    padding: 14px 15px;
    background: rgba(58, 63, 90, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 16px; /* iOS防止自动缩放 */
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.location-group input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* 使用我的位置按钮 */
.use-location-btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid var(--primary-gold);
    border-radius: 10px;
    color: var(--primary-gold);
    font-size: 0.95rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.use-location-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.15) 100%);
    border-color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.use-location-btn:active {
    transform: translateY(0);
}

.use-location-btn svg {
    width: 18px;
    height: 18px;
}

.use-location-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.surprise-icon {
    font-size: 1.1rem;
    animation: pulse-gift 2s ease-in-out infinite;
}

@keyframes pulse-gift {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }
}


.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.btn {
    flex: 1;
    padding: 16px 30px;
    font-size: 16px; /* iOS防止自动缩放 */
    letter-spacing: 2px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 300;
    min-height: 48px; /* 确保足够的触摸区域 */
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    color: var(--dark-bg);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: rgba(58, 63, 90, 0.6);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(58, 63, 90, 0.8);
    border-color: var(--primary-gold);
}

/* 加载动画页面 */
.loading-container {
    text-align: center;
    padding: 60px 20px;
    position: relative;
}

/* 玄学背景元素 */
.loading-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background-image:
        radial-gradient(circle at center, transparent 30%, rgba(212, 175, 55, 0.03) 30%, rgba(212, 175, 55, 0.03) 31%, transparent 31%),
        radial-gradient(circle at center, transparent 45%, rgba(212, 175, 55, 0.03) 45%, rgba(212, 175, 55, 0.03) 46%, transparent 46%),
        radial-gradient(circle at center, transparent 60%, rgba(212, 175, 55, 0.03) 60%, rgba(212, 175, 55, 0.03) 61%, transparent 61%);
    opacity: 0.6;
    animation: rotate 30s linear infinite;
    pointer-events: none;
}

/* 六十四卦背景图案 */
.loading-container::after {
    content: '☰ ☱ ☲ ☳ ☴ ☵ ☶ ☷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-gold);
    opacity: 0.15;
    letter-spacing: 25px;
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.hexagram-animation {
    width: 200px;
    height: 240px;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

.hexagram-line {
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-gold) 50%, transparent 100%);
    border-radius: 4px;
    animation: lineGlow 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    position: relative;
}

/* 为每条爻添加古文装饰 */
.hexagram-line::before {
    content: '━';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-gold);
    font-size: 1.2rem;
    opacity: 0.5;
}

.hexagram-line::after {
    content: '━';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-gold);
    font-size: 1.2rem;
    opacity: 0.5;
}

.hexagram-line:nth-child(1) { animation-delay: 0s; }
.hexagram-line:nth-child(2) { animation-delay: 0.2s; }
.hexagram-line:nth-child(3) { animation-delay: 0.4s; }
.hexagram-line:nth-child(4) { animation-delay: 0.6s; }
.hexagram-line:nth-child(5) { animation-delay: 0.8s; }
.hexagram-line:nth-child(6) { animation-delay: 1s; }

@keyframes lineGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

.loading-text {
    font-size: 1.8rem;
    letter-spacing: 4px;
    color: var(--primary-gold);
    margin-bottom: 15px;
    animation: textPulse 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.loading-subtext {
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

@keyframes textPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* 结果页面 - 九宫格布局 */
.result-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    gap: 15px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 15px 30px;
}

.grid-cell {
    background: rgba(26, 31, 58, 0.6);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    min-height: 120px;
    overflow-y: auto;
}

.cell-title {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--primary-gold);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

/* 第三行按钮格：跨三列 */
.cell-actions {
    grid-column: 1 / -1;
    padding: 15px 20px;
    min-height: auto;
    overflow-y: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

/* 自定义滚动条样式 */
.grid-cell::-webkit-scrollbar {
    width: 6px;
}

.grid-cell::-webkit-scrollbar-track {
    background: rgba(10, 14, 39, 0.4);
    border-radius: 3px;
}

.grid-cell::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.grid-cell::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.5);
}

/* 起卦信息格 */
.cell-info {
    padding: 10px 14px;
    min-height: 100px;
}

.divination-info {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.divination-info .info-item {
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
}

.divination-info .info-label {
    color: var(--primary-gold);
    min-width: 80px;
    font-size: 0.95rem;
    font-weight: 500;
}

.divination-info .info-value {
    color: var(--text-primary);
    flex: 1;
    font-size: 0.95rem;
}

/* 卦象已成格 */
.cell-result {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.cell-result .result-title {
    font-size: 1.2rem;
    letter-spacing: 4px;
    margin-bottom: 15px;
    border-bottom: none;
}

/* K线图格 */
.cell-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

.chart-container {
    width: 100%;
    height: 180px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
}

.chart-container::-webkit-scrollbar {
    height: 6px;
}

.chart-container::-webkit-scrollbar-track {
    background: rgba(26, 31, 58, 0.3);
    border-radius: 3px;
}

.chart-container::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 3px;
}

.chart-container::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.5);
}

.kline-chart {
    width: 100%;
    min-width: 500px;
    height: 164px;
    display: block;
}

.result-title {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 5px;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

/* 吉凶判断样式 */
.fortune-judgment {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 8px;
    margin: 15px 0;
    padding: 15px 35px;
    border-radius: 12px;
    display: inline-block;
    animation: fortuneAppear 0.8s ease-out;
    text-shadow: 0 0 20px currentColor;
    min-width: 180px;
}

.fortune-judgment.auspicious {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    border: 2px solid rgba(74, 222, 128, 0.3);
    box-shadow: 0 0 25px rgba(74, 222, 128, 0.2);
}

.fortune-judgment.inauspicious {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    border: 2px solid rgba(248, 113, 113, 0.3);
    box-shadow: 0 0 25px rgba(248, 113, 113, 0.2);
}

/* 投资评分样式 */
.investment-score {
    margin: 20px 0;
    text-align: center;
    width: 100%;
}

.score-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.score-display {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, #f4e4c1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
    animation: scoreAppear 0.8s ease-out;
}

.score-bar {
    width: 100%;
    max-width: 280px;
    height: 12px;
    background: rgba(10, 14, 39, 0.6);
    border-radius: 6px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.score-progress {
    height: 100%;
    background: linear-gradient(90deg, #f87171 0%, #fbbf24 50%, #4ade80 100%);
    border-radius: 6px;
    transition: width 1s ease-out;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes scoreAppear {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes progressGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.8);
    }
}

@keyframes fortuneAppear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hexagram-display {
    font-size: 2.5rem;
    letter-spacing: 10px;
    color: var(--primary-gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    margin: 15px 0;
    padding: 12px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 12px;
    min-width: 150px;
}

.result-content {
    margin-bottom: 30px;
}

.result-section {
    margin-bottom: 25px;
    padding: 25px;
    background: rgba(10, 14, 39, 0.4);
    border-radius: 12px;
    border-left: 3px solid var(--primary-gold);
}

.result-section h3 {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.interpretation-text,
.advice-text,
.conclusion-text {
    line-height: 1.8;
    color: var(--text-primary);
    font-size: 0.95rem;
    white-space: pre-wrap;
}

.conclusion {
    border-left-color: var(--earth-color);
    background: rgba(138, 115, 85, 0.1);
}

/* 行动按钮 */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 0.8fr 0.8fr 1fr;
    gap: 20px;
    margin-bottom: 0;
    align-items: center;
}

.action-btn {
    padding: 20px 24px;
    font-size: 1.05rem;
    letter-spacing: 3px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 300;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.new-divination-btn {
    padding: 18px 20px;
    font-size: 1rem;
    letter-spacing: 2px;
    background: rgba(58, 63, 90, 0.8);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 300;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.action-btn:hover::before {
    width: 400px;
    height: 400px;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.new-divination-btn:hover {
    background: rgba(58, 63, 90, 0.95);
    border-color: var(--primary-gold);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* 下载按钮样式 */
.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 20px;
    font-size: 1rem;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, #f4e4c1 100%);
    color: var(--dark-bg);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.download-btn svg {
    width: 22px;
    height: 22px;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    letter-spacing: 2px;
}

.download-btn:active {
    transform: translateY(-1px);
}

/* 顺应天命按钮 - 适合投资时为暗金色 */
.follow-fate.suitable {
    background: linear-gradient(135deg, var(--dark-gold) 0%, #8b7355 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(184, 148, 31, 0.5);
}

/* 顺应天命按钮 - 不适合投资时为绿色 */
.follow-fate.unsuitable {
    background: linear-gradient(135deg, var(--dark-green) 0%, #1a3a0f 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(45, 80, 22, 0.5);
}

/* 枯骨死草按钮 - 适合投资��为土色 */
.defy-fate.suitable {
    background: linear-gradient(135deg, var(--earth-color) 0%, #6b5d4f 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(139, 115, 85, 0.5);
}

/* 枯骨死草按钮 - 不适合投资时为红色 */
.defy-fate.unsuitable {
    background: linear-gradient(135deg, var(--bright-red) 0%, #8b1a1a 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
        /* 优化移动端滚动 */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }

    /* 移动端通用触摸优化 */
    * {
        -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
        -webkit-touch-callout: none;
    }

    /* 确保所有输入框字体大小>=16px，防止iOS自动缩放 */
    input, select, textarea {
        font-size: 16px !important;
    }

    /* 确保所有按钮有足够的触摸区域 (最小44x44px) */
    button, .navbar-btn, .use-location-btn, .option-btn {
        min-height: 44px;
    }

    /* 优化地点输入框在移动端的显示 */
    .location-group {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* 移动端记录面板全屏显示 */
    .record-panel {
        top: 60px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 60px);
    }

    .record-panel.active {
        right: 0;
    }

    .record-header {
        padding: 20px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .record-list {
        padding: 15px;
    }

    .record-item {
        padding: 15px;
    }

    .navbar {
        height: 60px;
    }

    .navbar-container {
        padding: 0 15px;
    }

    .navbar-logo {
        font-size: 1.4rem;
        letter-spacing: 2px;
        gap: 8px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .navbar-right {
        gap: 12px;
    }

    /* 手机端隐藏"由 AIGun 开发"链接，节省空间 */
    .developer-link {
        display: none;
    }

    .lang-switch {
        width: 32px;
        height: 32px;
    }

    .lang-text {
        font-size: 0.75rem;
    }

    .social-icon {
        width: 32px;
        height: 32px;
    }

    .social-icon svg {
        width: 20px;
        height: 20px;
    }

    .navbar-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        gap: 6px;
    }

    .navbar-btn svg {
        width: 18px;
        height: 18px;
    }

    .container {
        padding: 20px 20px;
    }

    .title {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .divination-circle {
        width: 280px;
        height: 280px;
        margin-bottom: 60px;
    }

    .symbol {
        font-size: 1.5rem;
    }

    .start-btn {
        padding: 16px 60px;
        font-size: 1.2rem;
        letter-spacing: 6px;
    }

    .form {
        padding: 30px 20px;
    }

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

    .form-row .form-group {
        margin-bottom: 25px;
    }

    /* 九宫格移动端适配 */
    .result-grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 15px;
        padding: 15px 20px;
    }

    .grid-cell {
        min-height: auto;
        overflow-y: visible;
    }

    .cell-actions {
        grid-column: 1;
    }

    .action-buttons {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .new-divination-btn {
        grid-column: 1;
    }

    .action-btn {
        font-size: 1rem;
    }

    /* 投资卡片移动端适配 */
    .investment-card {
        max-width: 100%;
        padding: 20px 16px;
        margin: 0 10px;
    }

    .card-logo {
        width: 40px;
        height: 40px;
    }

    .card-brand {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }

    .qr-container {
        width: 60px;
        height: 60px;
    }

    .layer-core {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .core-fortune {
        font-size: 3rem;
        letter-spacing: 6px;
    }

    .score-value {
        font-size: 2rem;
    }

    .strategy-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .divination-circle {
        width: 240px;
        height: 240px;
    }

    .start-btn {
        padding: 14px 50px;
        font-size: 1rem;
        letter-spacing: 4px;
    }

    /* 投资卡片超小屏幕适配 */
    .investment-card {
        padding: 16px 12px;
    }

    .card-brand {
        font-size: 1.1rem;
    }

    .param-target {
        font-size: 1.1rem;
    }

    .param-time {
        font-size: 0.85rem;
    }

    .core-fortune {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .score-value {
        font-size: 1.8rem;
    }

    .strategy-text {
        font-size: 0.95rem;
    }

    .logic-details {
        font-size: 0.65rem;
    }
}

/* ========================================
   投资卡片 - 仙风道骨极简版
   ======================================== */

.investment-card {
    max-width: 580px; /* 从500px增加到580px，稍微宽一些 */
    margin: 0 auto;
    /* 玄青背景 + 宣纸质感 */
    background: linear-gradient(135deg, rgba(26, 36, 56, 0.98) 0%, rgba(15, 23, 40, 0.98) 100%);
    border-radius: 4px;
    padding: 28px 24px;
    /* 极细金色边框 */
    border: 0.5px solid var(--red-gold);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(201, 149, 43, 0.1);
    position: relative;
    /* 添加微弱宣纸纹理 */
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(250, 249, 246, 0.008) 3px, rgba(250, 249, 246, 0.008) 6px);
}

/* 四角装饰 - 仿古建筑榫卯 */
.investment-card::before,
.investment-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-style: solid;
    border-color: var(--red-gold);
}

.investment-card::before {
    top: -1px;
    left: -1px;
    border-width: 1px 0 0 1px;
}

.investment-card::after {
    top: -1px;
    right: -1px;
    border-width: 1px 1px 0 0;
}

/* 底部两角 */
.investment-card .card-header::before,
.investment-card .card-actions::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-style: solid;
    border-color: var(--red-gold);
}

.card-header::before {
    content: none; /* 暂不显示 */
}

/* 页眉 - 衬线体 + 呼吸灯 */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 0.5px solid rgba(201, 149, 43, 0.4);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.card-logo {
    width: 50px;
    height: 50px;
    transform: scale(1.3);
    filter: drop-shadow(0 0 12px rgba(201, 149, 43, 0.6));
    /* 呼吸灯效果 */
    animation: logo-breathe 3s ease-in-out infinite;
}

@keyframes logo-breathe {
    0%, 100% {
        filter: drop-shadow(0 0 12px rgba(201, 149, 43, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(201, 149, 43, 0.9));
    }
}

.card-brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--red-gold);
    letter-spacing: 5px;
    text-shadow: 0 0 15px rgba(201, 149, 43, 0.6);
    font-family: "LXGW WenKai", serif;
    /* 呼吸灯效果 */
    animation: brand-glow 3s ease-in-out infinite;
}

@keyframes brand-glow {
    0%, 100% {
        text-shadow: 0 0 15px rgba(201, 149, 43, 0.6);
    }
    50% {
        text-shadow: 0 0 25px rgba(201, 149, 43, 0.9), 0 0 35px rgba(201, 149, 43, 0.5);
    }
}

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

.qr-container {
    width: 75px;
    height: 75px;
    background: white;
    border-radius: 3px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 古式印章红框 */
    box-shadow:
        0 0 0 1.5px #c41e3a,
        0 0 0 3px rgba(196, 30, 58, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.4);
    position: relative;
}

/* 印章刻痕效果 */
.qr-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 1px, rgba(196, 30, 58, 0.05) 1px, rgba(196, 30, 58, 0.05) 2px);
    border-radius: 3px;
    pointer-events: none;
}

.qr-container canvas,
.qr-container img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 2px;
}

.qr-label {
    font-size: 0.7rem;
    color: #c41e3a;
    letter-spacing: 2px;
    font-weight: 500;
}

/* 通用层级样式 */
.card-layer {
    margin-bottom: 22px;
}

.layer-title {
    font-size: 1rem;
    color: var(--red-gold);
    letter-spacing: 4px;
    margin-bottom: 12px;
    font-weight: 500;
    text-align: center;
}

/* 层级 1：基础参数 */
.layer-params {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 1.05rem;
    color: var(--ivory-white);
    letter-spacing: 2px;
    padding: 12px 0;
    border-bottom: 0.5px solid rgba(201, 149, 43, 0.25);
}

.param-target {
    font-weight: 700;
    color: var(--red-gold);
    font-size: 1.4rem;
    letter-spacing: 3px;
}

.param-separator {
    color: rgba(201, 149, 43, 0.6);
    font-size: 1rem;
}

.param-time {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 层级 2：演算核心 - 简化布局 */
.layer-core {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 20px 0;
    border-bottom: 0.5px solid rgba(201, 149, 43, 0.25);
}

/* 吉凶显示 - 左侧 */
.core-fortune {
    font-size: 4rem;
    font-weight: 700;
    color: var(--red-gold);
    letter-spacing: 12px;
    font-family: "LXGW WenKai", 'STLiti', 'LiSu', '隶书', serif;
    /* 金色光晕效果 */
    text-shadow:
        0 0 20px rgba(201, 149, 43, 0.7),
        0 0 40px rgba(201, 149, 43, 0.5),
        0 0 60px rgba(201, 149, 43, 0.3);
    position: relative;
    /* 呼吸效果 */
    animation: fortune-breathe 2.5s ease-in-out infinite;
}

@keyframes fortune-breathe {
    0%, 100% {
        text-shadow:
            0 0 20px rgba(201, 149, 43, 0.7),
            0 0 40px rgba(201, 149, 43, 0.5),
            0 0 60px rgba(201, 149, 43, 0.3);
        transform: scale(1);
    }
    50% {
        text-shadow:
            0 0 30px rgba(201, 149, 43, 0.9),
            0 0 50px rgba(201, 149, 43, 0.7),
            0 0 80px rgba(201, 149, 43, 0.5);
        transform: scale(1.02);
    }
}

.core-fortune.inauspicious {
    color: #ff6b6b;
    text-shadow:
        0 0 20px rgba(255, 107, 107, 0.6),
        0 0 40px rgba(255, 107, 107, 0.4),
        0 0 60px rgba(255, 107, 107, 0.2);
}

/* 评分区域 - 右侧 */
.core-score {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.core-score .score-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.score-value {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--red-gold);
    letter-spacing: 3px;
    /* 呼吸灯 */
    animation: score-glow 2s ease-in-out infinite;
}

@keyframes score-glow {
    0%, 100% {
        color: var(--red-gold);
        text-shadow: 0 0 10px rgba(201, 149, 43, 0.5);
    }
    50% {
        color: var(--ancient-gold);
        text-shadow: 0 0 20px rgba(201, 149, 43, 0.8);
    }
}

/* 层级 3：趋势策略 - 仙机指引 */
.layer-strategy {
    padding: 14px 0;
    border-bottom: 0.5px solid rgba(201, 149, 43, 0.25);
}

.strategy-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ivory-white);
    letter-spacing: 2px;
    text-align: justify;
    /* 两端留白模拟古籍 */
    padding: 0 8px;
    text-indent: 2em;
}

/* 层级 3.5：卦象解析 - 神神鬼鬼 */
.layer-hexagram {
    padding: 14px 0;
    border-bottom: 0.5px solid rgba(201, 149, 43, 0.25);
}

.hexagram-text {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--ivory-white);
    letter-spacing: 1.5px;
    opacity: 0.95;
    padding: 0 8px;
}

.hexagram-name {
    color: var(--red-gold);
    font-weight: 600;
    font-size: 1.05rem;
    display: inline-block;
    margin-bottom: 6px;
}

/* 层级 4：逻辑支撑 - 古籍小注 */
.layer-logic {
    padding: 14px 0;
}

.logic-details {
    font-size: 0.7rem;
    line-height: 1.8;
    color: rgba(196, 192, 181, 0.7);
    opacity: 0.9;
    letter-spacing: 1px;
}

.logic-item {
    margin-bottom: 7px;
    display: flex;
    gap: 10px;
}

.logic-label {
    color: rgba(201, 149, 43, 0.8);
    min-width: 70px;
    font-weight: 500;
}

.logic-value {
    color: rgba(196, 192, 181, 0.75);
    flex: 1;
}

/* 操作按钮 */
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
}

.card-actions .action-btn,
.card-actions .download-btn,
.card-actions .new-divination-btn {
    padding: 15px 18px;
    font-size: 0.95rem;
    /* 方角处理 */
    border-radius: 2px;
    letter-spacing: 2px;
    font-family: "LXGW WenKai", serif;
    width: 100%;
}

.new-divination-btn {
    background: linear-gradient(135deg, rgba(26, 36, 56, 0.8) 0%, rgba(15, 23, 40, 0.8) 100%);
    color: var(--red-gold);
    border: 0.5px solid var(--red-gold);
    cursor: pointer;
    transition: all 0.3s ease;
}

.new-divination-btn:hover {
    background: rgba(201, 149, 43, 0.1);
    border-color: var(--ancient-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 149, 43, 0.3);
}

/* 页面底部免责声明 */
.page-footer {
    position: relative;
    width: 100%;
    padding: 40px 20px 30px;
    margin-top: 60px;
    background: linear-gradient(180deg, transparent 0%, rgba(26, 31, 58, 0.4) 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-text {
    font-size: 0.95rem;
    color: var(--primary-gold);
    letter-spacing: 2px;
    margin-bottom: 12px;
    opacity: 0.9;
    font-weight: 300;
}

.footer-disclaimer {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    opacity: 0.7;
    font-weight: 300;
    line-height: 1.8;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .page-footer {
        padding: 30px 15px 25px;
        margin-top: 40px;
    }

    .footer-text {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
        margin-bottom: 10px;
    }

    .footer-disclaimer {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .page-footer {
        padding: 25px 10px 20px;
        margin-top: 30px;
    }

    .footer-text {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .footer-disclaimer {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }
}
