/* 卦象符号显示 */
.gua-symbol-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(238,187,85,0.1);
    border: 1px solid var(--gold);
    border-radius: 8px;
    min-width: 90px;
}

.gua-symbol-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    font-size: 32px;
    line-height: 1;
}

.gua-symbol-line {
    color: var(--gold);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.gua-combined {
    color: var(--cyan);
    font-size: 14px;
    font-weight: bold;
}

.gua-symbol-box {
    font-size: 18px;
    color: var(--gold);
    padding: 10px;
    background: rgba(238,187,85,0.1);
    border-radius: 6px;
}

/* 卦象可视化显示 */
.record-guas-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: rgba(238,187,85,0.05);
    border-radius: 8px;
    margin: 15px 0;
}

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

.gua-label {
    font-size: 12px;
    color: #999;
}

.gua-name-big {
    font-size: 24px;
    font-weight: bold;
    color: var(--gold);
    padding: 10px 15px;
    background: rgba(238,187,85,0.1);
    border: 2px solid var(--gold);
    border-radius: 8px;
    min-width: 80px;
    text-align: center;
}

.gua-name-small {
    font-size: 18px;
    color: var(--cyan);
    padding: 8px 12px;
    background: rgba(136,255,234,0.1);
    border: 1px solid var(--cyan);
    border-radius: 6px;
    min-width: 60px;
    text-align: center;
}

.gua-arrow {
    font-size: 20px;
    color: var(--gold);
    font-weight: bold;
}

.record-extra-info {
    text-align: center;
    color: #999;
    font-size: 13px;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 解卦内容显示 */
.interpretation-box {
    margin-top: 15px;
    padding: 15px;
    background: rgba(136,255,234,0.05);
    border-left: 3px solid var(--cyan);
    border-radius: 6px;
}

.interpretation-header {
    color: var(--cyan);
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 14px;
}

.interpretation-content {
    color: #ccc;
    line-height: 1.8;
    font-size: 14px;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
}

/* 解卦按钮样式 */
.btn-interpretation {
    background: linear-gradient(135deg, rgba(136,255,234,0.3), rgba(136,255,234,0.4));
    border: 2px solid var(--cyan);
    color: var(--cyan);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: none;
}

.btn-interpretation:hover {
    background: linear-gradient(135deg, rgba(136,255,234,0.5), rgba(136,255,234,0.6));
    box-shadow: none;
    transform: translateY(-2px);
}

.btn-interpretation:active,
.btn-interpretation:focus {
    background: rgba(136,255,234,0.7);
    color: #000000;
    font-weight: 700;
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

/* 手机端适配 */
@media (max-width: 768px) {
    .record-guas-visual {
        flex-direction: row;
        gap: 8px;
        padding: 18px 10px;
        overflow-x: visible;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .gua-item {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 31%;
        gap: 10px;
    }

    .gua-arrow {
        transform: none;
        font-size: 18px;
        align-self: center;
        flex-shrink: 0;
        min-width: 24px;
        max-width: 24px;
        margin: 0 2px;
    }

    .gua-name-big {
        font-size: 15px;
        padding: 8px 6px;
        min-width: auto;
        line-height: 1.4;
    }

    .gua-name-small {
        font-size: 13px;
        padding: 6px 5px;
        min-width: auto;
        line-height: 1.4;
    }

    .gua-symbol-display {
        min-width: 55px;
        padding: 8px;
    }

    .gua-symbol-stack {
        font-size: 20px;
    }

    .gua-label {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .record-actions {
        flex-direction: column;
        gap: 6px;
    }

    .record-actions button {
        width: 100%;
        font-size: 11px;
        padding: 6px 8px;
    }

    .time-filter {
        gap: 4px;
        margin: 10px 0;
    }

    .filter-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .interpretation-content {
        max-height: 200px;
    }
}

/* 时间筛选样式 */
.time-filter {
    display: flex;
    gap: 8px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 14px;
    border: 1px solid rgba(238,187,85,0.5);
    background: rgba(238,187,85,0.05);
    color: var(--gold);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    font-weight: 500;
}

.filter-btn:hover {
    background: rgba(238,187,85,0.15);
    border-color: var(--gold);
}

.filter-btn.active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

/* ========== 主题3-11: 添加解卦按钮超强对比度 ========== */
body[data-theme="0"] .btn-interpretation,
body[data-theme="1"] .btn-interpretation,
body[data-theme="2"] .btn-interpretation,
body[data-theme="3"] .btn-interpretation,
body[data-theme="4"] .btn-interpretation,
body[data-theme="5"] .btn-interpretation,
body[data-theme="6"] .btn-interpretation,
body[data-theme="7"] .btn-interpretation,
body[data-theme="8"] .btn-interpretation,
body[data-theme="9"] .btn-interpretation,
body[data-theme="10"] .btn-interpretation,
body[data-theme="11"] .btn-interpretation {
    background: rgba(0, 255, 238, 0.5) !important;
    border: 3px solid rgba(0, 255, 238, 0.9) !important;
    color: #000000 !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    padding: 10px 18px !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

body[data-theme="0"] .btn-interpretation:hover,
body[data-theme="1"] .btn-interpretation:hover,
body[data-theme="2"] .btn-interpretation:hover,
body[data-theme="3"] .btn-interpretation:hover,
body[data-theme="4"] .btn-interpretation:hover,
body[data-theme="5"] .btn-interpretation:hover,
body[data-theme="6"] .btn-interpretation:hover,
body[data-theme="7"] .btn-interpretation:hover,
body[data-theme="8"] .btn-interpretation:hover,
body[data-theme="9"] .btn-interpretation:hover,
body[data-theme="10"] .btn-interpretation:hover,
body[data-theme="11"] .btn-interpretation:hover {
    background: rgba(0, 255, 238, 0.85) !important;
    box-shadow: none !important;
    transform: translateY(-2px) !important;
}

body[data-theme="0"] .btn-interpretation:active,
body[data-theme="0"] .btn-interpretation:focus,
body[data-theme="1"] .btn-interpretation:active,
body[data-theme="1"] .btn-interpretation:focus,
body[data-theme="2"] .btn-interpretation:active,
body[data-theme="2"] .btn-interpretation:focus,
body[data-theme="3"] .btn-interpretation:active,
body[data-theme="3"] .btn-interpretation:focus,
body[data-theme="4"] .btn-interpretation:active,
body[data-theme="4"] .btn-interpretation:focus,
body[data-theme="5"] .btn-interpretation:active,
body[data-theme="5"] .btn-interpretation:focus,
body[data-theme="6"] .btn-interpretation:active,
body[data-theme="6"] .btn-interpretation:focus,
body[data-theme="7"] .btn-interpretation:active,
body[data-theme="7"] .btn-interpretation:focus,
body[data-theme="8"] .btn-interpretation:active,
body[data-theme="8"] .btn-interpretation:focus,
body[data-theme="9"] .btn-interpretation:active,
body[data-theme="9"] .btn-interpretation:focus,
body[data-theme="10"] .btn-interpretation:active,
body[data-theme="10"] .btn-interpretation:focus,
body[data-theme="11"] .btn-interpretation:active,
body[data-theme="11"] .btn-interpretation:focus {
    background: rgba(0, 255, 238, 0.95) !important;
    color: #000000 !important;
    font-weight: 900 !important;
    outline: 3px solid rgba(0, 255, 238, 1) !important;
    outline-offset: 2px !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* 主题0-11: 解卦内容框强化 */
body[data-theme="0"] .interpretation-box,
body[data-theme="1"] .interpretation-box,
body[data-theme="2"] .interpretation-box,
body[data-theme="3"] .interpretation-box,
body[data-theme="4"] .interpretation-box,
body[data-theme="5"] .interpretation-box,
body[data-theme="6"] .interpretation-box,
body[data-theme="7"] .interpretation-box,
body[data-theme="8"] .interpretation-box,
body[data-theme="9"] .interpretation-box,
body[data-theme="10"] .interpretation-box,
body[data-theme="11"] .interpretation-box {
    background: rgba(0, 0, 0, 0.85) !important;
    border-left: 4px solid #00ffee !important;
    border: 2px solid rgba(0, 255, 238, 0.5) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6) !important;
}

body[data-theme="0"] .interpretation-header,
body[data-theme="1"] .interpretation-header,
body[data-theme="2"] .interpretation-header,
body[data-theme="3"] .interpretation-header,
body[data-theme="4"] .interpretation-header,
body[data-theme="5"] .interpretation-header,
body[data-theme="6"] .interpretation-header,
body[data-theme="7"] .interpretation-header,
body[data-theme="8"] .interpretation-header,
body[data-theme="9"] .interpretation-header,
body[data-theme="10"] .interpretation-header,
body[data-theme="11"] .interpretation-header {
    color: #00ffee !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    text-shadow: 0 0 10px rgba(0, 255, 238, 0.8) !important;
}

body[data-theme="0"] .interpretation-content,
body[data-theme="1"] .interpretation-content,
body[data-theme="2"] .interpretation-content,
body[data-theme="3"] .interpretation-content,
body[data-theme="4"] .interpretation-content,
body[data-theme="5"] .interpretation-content,
body[data-theme="6"] .interpretation-content,
body[data-theme="7"] .interpretation-content,
body[data-theme="8"] .interpretation-content,
body[data-theme="9"] .interpretation-content,
body[data-theme="10"] .interpretation-content,
body[data-theme="11"] .interpretation-content {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* ========== 本卦/互卦/变卦可视化超强增强（所有主题通用） ========== */

/* 卦象可视化容器 */
.record-guas-visual {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(20, 20, 20, 0.9) 100%) !important;
    border: 3px solid rgba(238, 187, 85, 0.8) !important;
    border-radius: 12px !important;
    padding: 25px 20px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 30px rgba(238, 187, 85, 0.3) !important;
    margin: 20px 0 !important;
}

/* 卦象项目 */
.gua-item {
    position: relative !important;
}

/* 卦象标签 */
.gua-label {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(255, 255, 255, 0.4) !important;
    margin-bottom: 10px !important;
}

/* 卦名大框（本卦） */
.gua-name-big {
    background: linear-gradient(135deg, rgba(238, 187, 85, 0.95) 0%, rgba(212, 160, 58, 1) 100%) !important;
    color: #000000 !important;
    font-weight: 900 !important;
    font-size: 28px !important;
    padding: 15px 20px !important;
    border: 4px solid #ffd700 !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 20px rgba(238, 187, 85, 0.6),
                inset 0 2px 0 rgba(255, 255, 255, 0.5),
                0 0 30px rgba(238, 187, 85, 0.4) !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8),
                 0 0 10px rgba(255, 215, 0, 0.6) !important;
    min-width: 100px !important;
    transition: all 0.3s ease !important;
}

.gua-name-big:hover {
    transform: scale(1.08) translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(238, 187, 85, 0.8),
                inset 0 2px 0 rgba(255, 255, 255, 0.7),
                0 0 40px rgba(238, 187, 85, 0.6) !important;
}

/* 卦名小框（互卦、变卦） */
.gua-name-small {
    background: linear-gradient(135deg, rgba(0, 255, 238, 0.9) 0%, rgba(0, 230, 218, 1) 100%) !important;
    color: #000000 !important;
    font-weight: 800 !important;
    font-size: 20px !important;
    padding: 12px 16px !important;
    border: 3px solid #00ffee !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 16px rgba(0, 255, 238, 0.5),
                inset 0 2px 0 rgba(255, 255, 255, 0.4),
                0 0 25px rgba(0, 255, 238, 0.4) !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8),
                 0 0 8px rgba(0, 255, 238, 0.5) !important;
    min-width: 80px !important;
    transition: all 0.3s ease !important;
}

.gua-name-small:hover {
    transform: scale(1.08) translateY(-3px) !important;
    box-shadow: 0 8px 24px rgba(0, 255, 238, 0.7),
                inset 0 2px 0 rgba(255, 255, 255, 0.6),
                0 0 35px rgba(0, 255, 238, 0.6) !important;
}

/* 箭头 */
.gua-arrow {
    color: #ffd700 !important;
    font-weight: 900 !important;
    font-size: 28px !important;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8),
                 0 2px 4px rgba(0, 0, 0, 0.9) !important;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6)) !important;
}

/* 卦象符号显示框 */
.gua-symbol-display {
    background: linear-gradient(135deg, rgba(238, 187, 85, 0.25) 0%, rgba(212, 160, 58, 0.3) 100%) !important;
    border: 3px solid rgba(238, 187, 85, 0.8) !important;
    border-radius: 10px !important;
    padding: 15px !important;
    box-shadow: 0 4px 16px rgba(238, 187, 85, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    min-width: 100px !important;
}

.gua-symbol-line {
    color: #ffd700 !important;
    font-weight: 900 !important;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.8),
                 0 2px 4px rgba(0, 0, 0, 0.9) !important;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5)) !important;
}

.gua-combined {
    color: #00ffee !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    text-shadow: 0 0 10px rgba(0, 255, 238, 0.8),
                 0 2px 4px rgba(0, 0, 0, 0.9) !important;
}

/* 额外信息 */
.record-extra-info {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border-top: 2px solid rgba(238, 187, 85, 0.3) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}
