/* ========================================
   占卜卡片 - 东方美学重构
   仙风道骨 · 天人合一
   ======================================== */

/* 主卡片容器 */
.divination-card {
    max-width: 650px;
    margin: 0 auto;
    /* 玄青背景 + 宣纸质感 */
    background: linear-gradient(180deg,
        rgba(18, 28, 45, 0.98) 0%,
        rgba(12, 19, 32, 0.98) 50%,
        rgba(18, 28, 45, 0.98) 100%);
    border-radius: 8px;
    padding: 0;
    position: relative;
    /* 极细金色边框 */
    border: 1px solid rgba(201, 149, 43, 0.3);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(201, 149, 43, 0.08);
    /* 宣纸纹理 */
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(250, 249, 246, 0.012) 2px, rgba(250, 249, 246, 0.012) 4px);
    overflow: hidden;
}

/* 四角云纹装饰 */
.divination-card::before,
.divination-card::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><path d="M0,0 Q10,0 10,10 Q10,0 20,0" stroke="rgba(201,149,43,0.4)" fill="none" stroke-width="1"/><path d="M0,0 Q0,10 10,10 Q0,10 0,20" stroke="rgba(201,149,43,0.4)" fill="none" stroke-width="1"/></svg>');
    opacity: 0.6;
}

.divination-card::before {
    top: 0;
    left: 0;
}

.divination-card::after {
    top: 0;
    right: 0;
    transform: scaleX(-1);
}

/* 页眉：Logo + 印章 */
.card-seal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 28px 32px 24px;
    border-bottom: 1px solid rgba(201, 149, 43, 0.15);
    position: relative;
}

.header-logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.seal-logo {
    width: 65px;
    height: 65px;
    filter: drop-shadow(0 0 15px rgba(201, 149, 43, 0.7));
    animation: logo-breathe 4s ease-in-out infinite;
}

@keyframes logo-breathe {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(201, 149, 43, 0.7));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 28px rgba(201, 149, 43, 1));
        transform: scale(1.03);
    }
}

.seal-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.seal-title {
    font-size: 2rem;  /* 从1.6rem增大到2rem */
    font-weight: 300;
    color: var(--red-gold);
    letter-spacing: 5px;
    text-shadow: 0 0 18px rgba(201, 149, 43, 0.7);
    font-family: 'DFLiShu-Md', 'DFLiShu', 'STLiti', 'LiSu', '隶书', 'KaiTi', serif;
    animation: title-glow 4s ease-in-out infinite;
}

.seal-subtitle {
    font-size: 1.15rem;  /* 从0.95rem增大到1.15rem */
    font-weight: 500;
    color: rgba(201, 149, 43, 0.85);
    letter-spacing: 3px;
    font-family: "LXGW WenKai", serif;
    text-shadow: 0 0 10px rgba(201, 149, 43, 0.4);
}

@keyframes title-glow {
    0%, 100% {
        text-shadow: 0 0 18px rgba(201, 149, 43, 0.7);
    }
    50% {
        text-shadow: 0 0 30px rgba(201, 149, 43, 1), 0 0 40px rgba(201, 149, 43, 0.6);
    }
}

/* 印章二维码 */
.header-seal-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.seal-qr {
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 4px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 朱砂红印章框 */
    box-shadow:
        0 0 0 2.5px #c41e3a,
        0 0 0 5px rgba(196, 30, 58, 0.25),
        0 6px 16px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* 印章刻痕纹理 */
.seal-qr::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 1px, rgba(196, 30, 58, 0.06) 1px, rgba(196, 30, 58, 0.06) 2px);
    border-radius: 4px;
    pointer-events: none;
}

.seal-hint {
    font-size: 0.75rem;
    color: #c41e3a;
    letter-spacing: 2px;
    font-family: "LXGW WenKai", serif;
    text-shadow: 0 0 8px rgba(196, 30, 58, 0.4);
}

/* 天头留白 */
.sky-margin {
    height: 25px;
}

/* 时辰标注 - 置于顶部 */
.time-notation {
    text-align: center;
    margin: 0 0 20px;
    padding: 0 32px;
}

.time-text {
    font-size: 0.9rem;
    color: rgba(201, 149, 43, 0.65);
    letter-spacing: 3px;
    font-family: "LXGW WenKai", serif;
}

/* ========================================
   核心视觉中轴 - 标的/评分/结果聚合
   ======================================== */
.hero-result-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;  /* 减少底部间距 */
    padding: 0 32px;
}

/* 顶端：标的名称 - 视觉引领 */
.target-display {
    text-align: center;
    margin-bottom: 18px;
}

.target-name {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--red-gold);
    letter-spacing: 12px;
    font-family: "LXGW WenKai", 'Arial', sans-serif;
    text-shadow:
        0 0 25px rgba(201, 149, 43, 0.9),
        0 0 40px rgba(201, 149, 43, 0.6);
    animation: title-glow 4s ease-in-out infinite;
}

/* 中间：太极评分环 */
.taiji-score-ring {
    position: relative;
    width: 130px;
    height: 130px;
    flex-shrink: 0;
    margin-bottom: 45px;  /* 增加底部间距，让"投资评分"标签和卦象之间有足够空间 */
}

.taiji-svg {
    width: 100%;
    height: 100%;
}

.taiji-center-score {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--red-gold);
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(201, 149, 43, 0.8);
    animation: score-shimmer 3s ease-in-out infinite;
}

@keyframes score-shimmer {
    0%, 100% {
        text-shadow: 0 0 15px rgba(201, 149, 43, 0.8);
    }
    50% {
        text-shadow: 0 0 25px rgba(201, 149, 43, 1), 0 0 35px rgba(201, 149, 43, 0.6);
    }
}

.taiji-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: rgba(201, 149, 43, 0.7);
    letter-spacing: 3px;
    font-family: "LXGW WenKai", serif;
    white-space: nowrap;
}

/* 底端：卦象结果 - 压舱石 */
.destiny-result-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 卦象结果 - 朱砂红/琥珀金 */
.destiny-symbol {
    position: relative;
    font-size: 5.5rem;
    font-weight: 900;
    letter-spacing: 20px;
    font-family: "LXGW WenKai", 'STLiti', 'LiSu', '隶书', serif;
    z-index: 2;
    /* 默认琥珀金（吉） - 加强发光 */
    color: #ffa726;
    text-shadow:
        0 0 30px rgba(255, 167, 38, 1),
        0 0 60px rgba(255, 167, 38, 0.7),
        0 0 90px rgba(255, 167, 38, 0.4);
    animation: destiny-pulse 3s ease-in-out infinite;
}

@keyframes destiny-pulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.03);
        filter: brightness(1.2);
    }
}

/* 朱砂红（凶） - 加强发光 */
.destiny-symbol.inauspicious {
    color: #d32f2f;
    text-shadow:
        0 0 30px rgba(211, 47, 47, 1),
        0 0 60px rgba(211, 47, 47, 0.8),
        0 0 90px rgba(211, 47, 47, 0.5);
}

/* 灵光扩散效果 */
.destiny-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 167, 38, 0.2) 0%, transparent 70%);
    z-index: 0;
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.destiny-symbol.inauspicious ~ .destiny-glow {
    background: radial-gradient(circle, rgba(211, 47, 47, 0.2) 0%, transparent 70%);
}

/* 策项参考 - 简体留白 */
.strategy-section {
    max-width: 80%;
    margin: 0 auto 20px;  /* 减少底部间距 */
}

.section-title {
    font-size: 1.1rem;
    color: var(--red-gold);
    letter-spacing: 4px;
    text-align: center;
    margin-bottom: 15px;  /* 减少标题和内容之间的间距 */
    font-family: "LXGW WenKai", serif;
    position: relative;
}

/* 标题下划线装饰 */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--red-gold) 50%, transparent 100%);
}

.strategy-content {
    font-size: 1.1rem;
    line-height: 2.2;
    color: var(--ivory-white);
    letter-spacing: 2.5px;
    text-align: justify;
    text-indent: 2.2em;
    padding: 0 20px;
    font-family: "LXGW WenKai", serif;
    opacity: 0.95;
}

/* 卦象解析 */
.hexagram-section {
    max-width: 80%;
    margin: 0 auto 20px;  /* 减少底部间距 */
}

.hexagram-content {
    font-size: 1rem;
    line-height: 2;
    color: var(--ivory-white);
    letter-spacing: 2px;
    padding: 0 20px;
    font-family: "LXGW WenKai", serif;
    opacity: 0.92;
}

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

/* 底部逻辑背书 - 微缩 */
.divination-proof {
    margin: 20px 48px 0;  /* 减少顶部间距 */
    padding: 12px 0;      /* 减少内边距 */
    border-top: 0.5px solid rgba(201, 149, 43, 0.12);
}

.proof-text {
    font-size: 0.7rem;
    line-height: 1.6;
    color: rgba(201, 149, 43, 0.4);
    letter-spacing: 1px;
    opacity: 0.6;
    text-align: center;
    font-family: "LXGW WenKai", monospace;
}

/* ETH 地址收集区（结果页） */
.result-eth-section {
    margin: 25px 32px 15px;
    padding: 0;
}

.eth-collect-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0.03) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 20px;
}

.eth-collect-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.eth-collect-title {
    font-size: 1rem;
    color: var(--red-gold);
    letter-spacing: 2px;
    font-family: "LXGW WenKai", serif;
}

.eth-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.result-eth-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(10, 14, 39, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 8px;
    color: var(--ivory-white);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.result-eth-input:focus {
    outline: none;
    border-color: var(--red-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.result-eth-input:valid {
    border-color: rgba(76, 222, 128, 0.5);
}

.submit-eth-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%);
    border: 1px solid var(--red-gold);
    border-radius: 8px;
    color: var(--red-gold);
    font-size: 0.95rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "LXGW WenKai", serif;
    white-space: nowrap;
}

.submit-eth-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(212, 175, 55, 0.2) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

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

.submit-eth-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.eth-submit-status {
    margin-top: 12px;
    text-align: center;
    font-size: 0.9rem;
    font-family: "LXGW WenKai", serif;
    letter-spacing: 1px;
    min-height: 24px;
}

.eth-submit-status.success {
    color: rgba(76, 222, 128, 0.95);
}

.eth-submit-status.error {
    color: rgba(248, 113, 113, 0.95);
}

/* 地脚留白 */
.ground-margin {
    height: 10px;  /* 减少底部留白 */
}

/* 操作按钮 */
.card-actions {
    padding: 0 32px 20px;  /* 减少底部内边距 */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-btn,
.new-divination-btn,
.export-records-btn {
    width: 100%;
    padding: 14px 24px;
    border-radius: 4px;
    font-size: 1rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: "LXGW WenKai", serif;
}

.download-btn {
    background: linear-gradient(135deg, rgba(201, 149, 43, 0.15) 0%, rgba(201, 149, 43, 0.08) 100%);
    border: 1px solid rgba(201, 149, 43, 0.4);
    color: var(--red-gold);
}

.export-records-btn {
    background: linear-gradient(135deg, rgba(76, 222, 128, 0.12) 0%, rgba(76, 222, 128, 0.06) 100%);
    border: 1px solid rgba(76, 222, 128, 0.4);
    color: rgba(76, 222, 128, 0.95);
    font-size: 0.95rem;
}

.export-records-btn:hover {
    background: linear-gradient(135deg, rgba(76, 222, 128, 0.22) 0%, rgba(76, 222, 128, 0.12) 100%);
    border-color: rgba(76, 222, 128, 0.6);
    box-shadow: 0 0 20px rgba(76, 222, 128, 0.3);
    transform: translateY(-1px);
}

.download-btn:hover {
    background: linear-gradient(135deg, rgba(201, 149, 43, 0.25) 0%, rgba(201, 149, 43, 0.15) 100%);
    border-color: rgba(201, 149, 43, 0.6);
    box-shadow: 0 0 20px rgba(201, 149, 43, 0.3);
}

.new-divination-btn {
    background: linear-gradient(135deg, rgba(26, 36, 56, 0.8) 0%, rgba(15, 23, 40, 0.8) 100%);
    border: 1px solid rgba(201, 149, 43, 0.3);
    color: var(--red-gold);
}

.new-divination-btn:hover {
    background: linear-gradient(135deg, rgba(26, 36, 56, 0.95) 0%, rgba(15, 23, 40, 0.95) 100%);
    border-color: rgba(201, 149, 43, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .divination-card {
        max-width: 100%;
        border-radius: 0;
    }

    /* 核心视觉中轴 */
    .hero-result-group {
        padding: 0 24px;
    }

    .target-name {
        font-size: 2.8rem;
        letter-spacing: 8px;
    }

    .taiji-score-ring {
        width: 120px;
        height: 120px;
        margin-bottom: 18px;
    }

    .destiny-symbol {
        font-size: 4.5rem;
        letter-spacing: 15px;
    }

    .destiny-glow {
        width: 220px;
        height: 220px;
    }

    /* 解析文字保持80%宽度 */
    .strategy-section,
    .hexagram-section {
        max-width: 85%;
    }

    .strategy-content,
    .hexagram-content {
        padding: 0 16px;
    }

    .divination-proof {
        margin-left: 24px;
        margin-right: 24px;
    }
}
