/* 全局样式优化 - 添加前缀 */
.liuyao-index-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    font-family: 'Noto Serif SC', serif;
    color: #e0d6c3;
}

.liuyao-index-hexagram-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(37, 42, 66, 0.7);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.liuyao-index-title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.liuyao-index-title-container i {
    font-size: 2.5rem;
    color: #c5a26e;
}

/* 选项卡样式优化 */
.liuyao-index-method-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.liuyao-index-tab {
    padding: 15px 25px;
    background: rgba(37, 42, 66, 0.7);
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    min-width: 150px;
    justify-content: center;
    font-size: 1.1rem;
}

.liuyao-index-tab.active {
    background: rgba(197, 162, 110, 0.2);
    border: 1px solid #c5a26e;
    box-shadow: 0 0 15px rgba(197, 162, 110, 0.3);
}

.liuyao-index-tab i {
    font-size: 1.2rem;
}

/* 时间选择区域优化 */
.liuyao-index-time-selection {
    background: rgba(37, 42, 66, 0.7);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.liuyao-index-datetime-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.liuyao-index-datetime-group,
.liuyao-index-user-info {
    flex: 1;
    min-width: 300px;
}

.liuyao-index-datetime-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.liuyao-index-datetime-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #c5a26e;
    display: flex;
    align-items: center;
    gap: 10px;
}

.liuyao-index-calendar-type {
    display: flex;
    gap: 15px;
    margin-left: auto;
}

.liuyao-index-calendar-type label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    background: rgba(30, 35, 56, 0.8);
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid #4a4e69;
    transition: all 0.3s;
}

.liuyao-index-calendar-type label:hover {
    border-color: #c5a26e;
}

.liuyao-index-calendar-type input[type="radio"]:checked + span {
    color: #ffd700;
}

.liuyao-index-calendar-type input[type="radio"]:checked + span::before {
    background-color: #c5a26e;
}

.liuyao-index-datetime-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.liuyao-index-input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    position: relative;
}

.liuyao-index-input-group label {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #c5a26e;
}

.liuyao-index-input-group label.required::after {
    content: '*';
    color: #ff6b6b;
    margin-left: 4px;
}

.liuyao-index-input-group input,
.liuyao-index-input-group select,
.liuyao-index-input-group textarea {
    padding: 12px 15px;
    background: rgba(30, 35, 56, 0.8);
    border: 1px solid #4a4e69;
    border-radius: 8px;
    color: #e0d6c3;
    font-size: 1rem;
    transition: all 0.3s;
}

.liuyao-index-input-group input:focus,
.liuyao-index-input-group select:focus,
.liuyao-index-input-group textarea:focus {
    border-color: #c5a26e;
    box-shadow: 0 0 0 2px rgba(197, 162, 110, 0.3);
    outline: none;
}

.liuyao-index-input-group textarea {
    min-height: 100px;
    resize: vertical;
}

.liuyao-index-flatpickr-input {
    background: rgba(30, 35, 56, 0.8);
    border: 1px solid #4a4e69;
    color: #e0d6c3;
    padding: 12px 15px;
    border-radius: 8px;
    width: 100%;
}

/* 日期选择器图标 */
.liuyao-index-input-with-icon {
    position: relative;
}
.liuyao-index-input-with-icon i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #c5a26e;
    pointer-events: none;
}

/* 类别样式 */
.liuyao-index-category-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* 方法内容区域 */
.liuyao-index-method-content {
    background: rgba(37, 42, 66, 0.7);
    border-radius: 15px;
    padding: 30px;
    min-height: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.liuyao-index-method-section {
    display: none;
}

.liuyao-index-method-section.active {
    display: block;
}

/* 铜钱样式 - 来自乾隆通宝 */
.liuyao-index-coin-container {
    position: relative;
    width: 120px; /* 增大尺寸 */
    height: 120px; /* 增大尺寸 */
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0.1, 0.3, 0.9);
    cursor: pointer;
}

.liuyao-index-coin {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    backface-visibility: hidden;
    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.6),
        inset 0 0 10px rgba(0, 0, 0, 0.4);
}

/* 正面样式（汉文） */
.liuyao-index-coin-front {
    background: radial-gradient(circle at 35% 35%, #d4af37, #b8860b, #8b6914);
}

/* 反面样式（满文） */
.liuyao-index-coin-back {
    background: radial-gradient(circle at 65% 35%, #c6a028, #a67a0a, #78550f);
    transform: rotateY(180deg);
}

/* 方形孔洞 */
.liuyao-index-coin::before {
    content: '';
    position: absolute;
    width: 30px; /* 增大尺寸 */
    height: 30px; /* 增大尺寸 */
    background: linear-gradient(45deg, #1a110e, #2d221e);
    transform: rotate(45deg);
    box-shadow:
        inset 0 0 5px rgba(255, 215, 0, 0.5),
        0 0 0 1px #5d4511;
    z-index: 1;
}

/* 文字样式基础 */
.liuyao-index-coin-char {
    position: absolute;
    color: #111;
    text-shadow:
        0 1px 0 rgba(255, 215, 0, 0.7),
        0 -1px 0 rgba(139, 69, 19, 0.5);
    font-weight: 900;
    text-align: center;
    opacity: 0.9;
    z-index: 2;
    font-size: 1.6em; /* 增大字体 */
    width: auto;
}

/* 正面文字位置与样式 */
.liuyao-index-coin-front .liuyao-index-char1 { top: 8%; left: 50%; transform: translateX(-50%); }
.liuyao-index-coin-front .liuyao-index-char2 { bottom: 8%; left: 50%; transform: translateX(-50%); }
.liuyao-index-coin-front .liuyao-index-char3 { top: 50%; right: 12%; transform: translateY(-50%); }
.liuyao-index-coin-front .liuyao-index-char4 { top: 50%; left: 12%; transform: translateY(-50%); }

/* 反面文字位置与样式 (满文) */
.liuyao-index-coin-back .liuyao-index-manchu1 {
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.4em; /* 增大字体 */
    font-family: 'Noto Sans', sans-serif;
    letter-spacing: 2px;
}

.liuyao-index-coin-back .liuyao-index-manchu2 {
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.4em; /* 增大字体 */
    font-family: 'Noto Sans', sans-serif;
    letter-spacing: 2px;
}

.liuyao-index-foundry {
    position: absolute;
    font-size: 0.9em; /* 增大字体 */
    color: #3c2a08;
    font-weight: bold;
    letter-spacing: 2px;
    opacity: 0.85;
}

.liuyao-index-foundry-left {
    top: 50%;
    left: 14%;
    transform: translateY(-50%) rotate(90deg);
}

.liuyao-index-foundry-right {
    top: 50%;
    right: 14%;
    transform: translateY(-50%) rotate(270deg);
}

/* 钱币边缘装饰 */
.liuyao-index-coin-edge {
    position: absolute;
    width: 105%;
    height: 105%;
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow:
        inset 0 0 10px rgba(255, 215, 0, 0.2),
        0 0 5px rgba(255, 215, 0, 0.3);
    z-index: 1;
}

/* 铜钱纹理效果 */
.liuyao-index-coin-texture {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        radial-gradient(circle, rgba(0, 0, 0, 0.2) 1px, transparent 1px);
    background-size: 6px 6px;
    opacity: 0.15;
    z-index: 0;
}

/* 钱币包装器 */
.liuyao-index-coins-wrapper {
    display: flex;
    justify-content: center;
    gap: 40px; /* 增大间距 */
    flex-wrap: wrap;
}

/* 抛掷动画 */
@keyframes toss-coin {
    0% {
        transform: translateY(0) rotateY(0deg);
    }
    30% {
        transform: translateY(-150px) rotateY(360deg);
    }
    60% {
        transform: translateY(0) rotateY(720deg);
    }
    100% {
        transform: translateY(0) rotateY(1080deg);
    }
}

.liuyao-index-coin-container.tossing {
    animation: toss-coin 1.5s ease-in-out forwards;
}

/* 卦象显示区域 - 优化样式 */
.liuyao-index-sequence-display {
    background: rgba(30, 35, 56, 0.5);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(197, 162, 110, 0.3);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
    min-width: 300px;
    min-height: 300px;
    padding: 20px;
}

.liuyao-index-sequence-title {
    color: #c5a26e;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
}

.liuyao-index-yao-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.liuyao-index-yao {
    font-size: 3rem; /* 增大字体 */
    font-family: 'Noto Serif SC', serif;
    width: 100%;
    max-width: 200px;
    text-align: left;
    background: rgba(20, 25, 46, 0.8);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: left;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.liuyao-index-yao:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(197, 162, 110, 0.2);
}

/* 按钮样式优化 */
.liuyao-index-analysis-action-btn {
    background: linear-gradient(135deg, #c5a26e, #b08d5f);
    color: #1a1d2e;
    border: none;
    padding: 16px 45px;
    font-size: 1.3rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.liuyao-index-analysis-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #d4af37, #c5a26e);
}

.liuyao-index-analysis-action-btn:active {
    transform: translateY(1px);
}

.liuyao-index-analysis-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 手工指定样式 */
.liuyao-index-manual-yao-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.liuyao-index-yao-row {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(30, 35, 56, 0.8);
    border-radius: 10px;
    flex-wrap: wrap;
    transition: background 0.3s;
}

.liuyao-index-yao-row.active {
    background: rgba(197, 162, 110, 0.2);
    border: 1px solid #c5a26e;
}

.liuyao-index-position-label {
    min-width: 60px;
    font-weight: bold;
    color: #c5a26e;
}

.liuyao-index-yao-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    flex: 1;
}

.liuyao-index-yao-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s;
}

.liuyao-index-yao-options label:hover {
    background: rgba(197, 162, 110, 0.1);
}

.liuyao-index-yao-options input[type="radio"]:checked + span {
    font-weight: bold;
    color: #ffd700;
}

/* 时间起卦样式 */
.liuyao-index-time-method-info {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
    background: rgba(30, 35, 56, 0.8);
    padding: 20px;
    border-radius: 10px;
}

.liuyao-index-info-icon {
    font-size: 2.5rem;
    color: #c5a26e;
}

.liuyao-index-info-text {
    flex: 1;
}

.liuyao-index-info-text h3 {
    color: #c5a26e;
    margin-top: 0;
    margin-bottom: 10px;
}

.liuyao-index-info-text p {
    margin-bottom: 5px;
    color: #d0c6b5;
}

/* 查看卦象按钮 */
.liuyao-index-view-btn {
    background: linear-gradient(135deg, #4a6572, #344955);
    margin-left: 20px;
}

/* 时间选择器容器 */
.liuyao-index-datetime-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.liuyao-index-datetime-input-container .liuyao-index-input-group {
    flex: 1;
    margin-bottom: 0;
    min-width: 80px;
}

/* 刷新按钮 */
.liuyao-index-refresh-btn {
    background: rgba(30, 35, 56, 0.8);
    border: 1px solid #4a4e69;
    color: #c5a26e;
    border-radius: 8px;
    padding: 0 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    height: 46px;
    align-self: flex-end;
}

.liuyao-index-refresh-btn:hover {
    background: rgba(197, 162, 110, 0.1);
    border-color: #c5a26e;
}

/* 性别提示样式 */
.liuyao-index-gender-hint {
    color: #c5a26e;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

/* 日历按钮样式 */
.liuyao-index-calendar-btn {
    background: rgba(30, 35, 56, 0.8);
    border: 1px solid #4a4e69;
    color: #c5a26e;
    border-radius: 8px;
    padding: 0 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    height: 46px;
    width: 46px;
    align-self: flex-end;
}

.liuyao-index-calendar-btn:hover {
    background: rgba(197, 162, 110, 0.1);
    border-color: #c5a26e;
}

/* 移动端适配 */
@media (max-width: 992px) {
    .liuyao-index-datetime-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .liuyao-index-calendar-type {
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .liuyao-index-datetime-picker {
        flex-direction: column;
        gap: 20px;
    }

    .liuyao-index-datetime-group, .liuyao-index-user-info {
        min-width: 100%;
    }

    .liuyao-index-method-tabs {
        flex-direction: column;
        align-items: center;
    }

    .liuyao-index-tab {
        width: 100%;
        max-width: 300px;
    }

    .liuyao-index-datetime-inputs {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .liuyao-index-coins-wrapper {
        gap: 20px;
    }

    .liuyao-index-coin-container {
        width: 100px;
        height: 100px;
    }

    .liuyao-index-coin-char { font-size: 1.3em; }
    .liuyao-index-coin-back .liuyao-index-manchu1,
    .liuyao-index-coin-back .liuyao-index-manchu2 { font-size: 1.1em; }
    .liuyao-index-foundry { font-size: 0.8em; }
}

@media (max-width: 480px) {
    .liuyao-index-datetime-inputs {
        grid-template-columns: repeat(2, 1fr);
    }

    .liuyao-index-analysis-action-btn {
        width: 100%;
        justify-content: center;
    }

    .liuyao-index-yao {
        font-size: 2.2rem;
        padding: 12px 20px;
    }

    .liuyao-index-coin-container {
        width: 85px;
        height: 85px;
    }

    .liuyao-index-coins-wrapper {
        gap: 15px;
    }

    .liuyao-index-calendar-type {
        flex-direction: column;
        width: 100%;
    }

    .liuyao-index-calendar-type label {
        width: 100%;
        justify-content: center;
    }

    .liuyao-index-datetime-input-container .liuyao-index-input-group {
        min-width: calc(50% - 8px);
    }

    .liuyao-index-sequence-display {
        min-height: 280px;
    }
}

/* 铜币修复样式 */
.liuyao-index-coin {
    backface-visibility: visible !important;
}

.liuyao-index-coin-back {
    transform: rotateY(0deg) !important;
}

.liuyao-index-coin-container.flipped .liuyao-index-coin-front {
    transform: rotateY(180deg);
}

.liuyao-index-coin-container.flipped .liuyao-index-coin-back {
    transform: rotateY(0deg);
}

.liuyao-index-coin-back {
    display: none;
}

.liuyao-index-coin-container.tossing .liuyao-index-coin-back {
    display: flex;
}


/* 新增的铜钱起卦法说明区域样式 */
.coin-method-instruction {
    flex: 1;
    padding: 20px;
    background: rgba(37, 42, 66, 0.7);
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.method-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #d0c6b5;
    display: none;
}

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

.method-content h3 {
    color: #c5a26e;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.method-content ul, .method-content ol {
    padding-left: 20px;
    margin: 15px 0;
}

.method-content li {
    margin-bottom: 8px;
}

/* 铜钱起卦法选项卡 */
.coin-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(197, 162, 110, 0.3);
}

.coin-tab {
    padding: 10px 20px;
    cursor: pointer;
    background: rgba(30, 35, 56, 0.5);
    border: 1px solid transparent;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
    transition: all 0.3s;
}

.coin-tab.active {
    background: rgba(197, 162, 110, 0.2);
    border-color: #c5a26e;
    border-bottom: none;
    position: relative;
    top: 1px;
}

/* 调整铜钱和卦象容器布局 */
.coins-result-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 20px 0;
}

/* 移动端适配 */
@media (max-width: 992px) {
    .coin-method-instruction {
        margin-bottom: 30px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .coin-tabs {
        flex-direction: column;
    }

    .coin-tab {
        margin-bottom: 5px;
        border-radius: 5px;
    }

    .coin-tab.active {
        border-radius: 5px 5px 0 0;
    }

    .coins-result-container {
        flex-direction: column;
    }
}

/* 时间起卦法说明 */
.time-method-details {
    background: rgba(30, 35, 56, 0.8);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border: 1px solid rgba(197, 162, 110, 0.3);
}

.time-method-details h3 {
    color: #c5a26e;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

.detail-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(197, 162, 110, 0.2);
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-title {
    font-weight: bold;
    color: #c5a26e;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-content {
    padding-left: 28px;
}

.detail-formula {
    font-family: monospace;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin: 5px 0;
}

.detail-example {
    font-style: italic;
    color: #b5ab9a;
    margin-top: 8px;
}

/* 法律声明容器 */
.liuyao-fengxian-content {
    background: rgba(37, 42, 66, 0.7);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid rgba(197, 162, 110, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 1000px;
    margin: 20px auto 0;
}

.liuyao-fengxian-content h2 {
    color: #c5a26e;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(197, 162, 110, 0.3);
    padding-bottom: 10px;
}

.liuyao-fengxian-content ul {
    padding-left: 25px;
}

.liuyao-fengxian-content li {
    margin-bottom: 10px;
    color: #d0c6b5;
}

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }

        body {
            background: linear-gradient(135deg, #1e2338 0%, #0d1425 100%);
            color: #e0d6c9;
            min-height: 100vh;
            padding: 20px;
        }

        .liuyao-analysis-container {
            max-width: 1200px;
            margin: 0 auto;
            background: rgba(30, 35, 56, 0.7);
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            overflow: hidden;
            padding: 25px;
            border: 1px solid rgba(197, 162, 110, 0.3);
        }

        .analysis-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px solid #c5a26e;
        }

        .back-btn {
            background: rgba(37, 42, 66, 0.7);
            color: #c5a26e;
            padding: 10px 20px;
            border-radius: 30px;
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .back-btn:hover {
            background: rgba(197, 162, 110, 0.2);
        }

        .analysis-header h1 {
            font-size: 28px;
            font-weight: 600;
            color: #c5a26e;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .info-header {
            border-bottom: 1px solid #c5a26e;
            padding-bottom: 12px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .info-header h2 {
            font-size: 22px;
            font-weight: 500;
            color: #c5a26e;
        }

        /* 基本信息区域 */
        .basic-info-section {
            background: rgba(30, 35, 56, 0.8);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 25px;
            border: 1px solid rgba(197, 162, 110, 0.2);
        }

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

        .info-item {
            display: flex;
            gap: 10px;
            padding: 12px;
            background: rgba(37, 42, 66, 0.6);
            border-radius: 8px;
        }

        .info-label {
            font-weight: 600;
            color: #c5a26e;
            min-width: 80px;
        }

        /* 卦象概览区域 */
        .hexagram-overview-section {
            background: rgba(30, 35, 56, 0.8);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 25px;
            border: 1px solid rgba(197, 162, 110, 0.2);
        }

        .hexagram-overview {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
        }

        .hexagram-overview.single {
            grid-template-columns: 1fr;
        }

        .hexagram-overview.single .hexagram-card {
            max-width: 600px;
            margin: 0 auto;
            width: 100%;
        }

        .hexagram-card {
            background: rgba(37, 42, 66, 0.6);
            border-radius: 12px;
            padding: 20px;
            border: 1px solid rgba(197, 162, 110, 0.2);
        }

        .hexagram-card h3 {
            text-align: center;
            margin-bottom: 15px;
            color: #c5a26e;
            font-size: 20px;
        }

        .hexagram-symbol {
            font-family: 'Courier New', monospace;
            font-size: 24px;
            text-align: center;
            margin: 15px 0;
            line-height: 1.8;
        }

        .hexagram-name {
            text-align: center;
            font-size: 18px;
            font-weight: 500;
            color: #e0d6c9;
            margin-top: 10px;
        }

        .yao-details-grid {
            display: grid;
            grid-template-columns: 1fr;
        }

        /* 本卦行布局调整 */
        .ben-gua-row {
            display: grid;
            grid-template-columns: 70px 70px 80px 70px 40px minmax(60px, 1fr); /* 伏神列增加宽度 */
            align-items: center;
            background: rgba(30, 35, 56, 0.5);
        }

        /* 变卦行布局调整 */
        .bian-gua-row {
            display: grid;
            grid-template-columns: 70px 70px 80px 70px 40px minmax(60px, 1fr); /* 保持一致性 */
            align-items: center;
            background: rgba(30, 35, 56, 0.5);
        }

        .yao-row:nth-child(even) {
            background: rgba(37, 42, 66, 0.4);
        }

        .yao-row-header {
            font-weight: 600;
            background: rgba(197, 162, 110, 0.2);
            color: #c5a26e;
        }

        .yao-position {
            text-align: center;
            font-weight: 600;
        }

        .yao-symbol {
            text-align: center;
            font-family: 'Courier New', monospace;
            font-size: 40px;
            min-width: 40px; /* 增加最小宽度防止换行 */
        }

        .yao-info {
            text-align: center;
        }

                /* 六神单独对齐 */
        .liu-shen-container {
            display: flex;
            flex-direction: column;
            margin-right: 15px;
        }

        .liu-shen-cell {
            height: 60px; /* 与每行高度匹配 */
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            color: #c5a26e;
            padding: 5px 0;
        }

                /* 伏神格子增加宽度 */
        .fushen-cell {
            font: 12px/1.5 'Courier New', monospace;
            min-width: 50px; /* 保证伏神内容完整显示 */
            white-space: nowrap; /* 防止换行 */
        }

        .moving-yao-card {
            grid-column: span 2;
            background: rgba(37, 42, 66, 0.6);
            border-radius: 12px;
            padding: 20px;
            margin-top: 15px;
            border: 1px solid rgba(197, 162, 110, 0.2);
        }

        .moving-yao-list {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-top: 15px;
        }

        .moving-yao-item {
            padding: 8px 15px;
            background: rgba(197, 162, 110, 0.2);
            border-radius: 30px;
            font-weight: 500;
        }

        /* 详细分析区域 */
        .detailed-analysis {
            max-width: 1200px;
            margin: 0 auto;
            background: rgba(30, 35, 56, 0.8);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 25px;
            border: 1px solid rgba(197, 162, 110, 0.2);
        }

        .analysis-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            border-bottom: 1px solid rgba(197, 162, 110, 0.3);
        }

        .tab {
            padding: 12px 25px;
            cursor: pointer;
            border-radius: 8px 8px 0 0;
            background: rgba(37, 42, 66, 0.5);
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .tab:hover {
            background: rgba(197, 162, 110, 0.2);
        }

        .tab.active {
            background: rgba(197, 162, 110, 0.2);
            border-bottom: 2px solid #c5a26e;
        }

        .analysis-content-section {
            display: none;
            padding: 20px;
            background: rgba(30, 35, 56, 0.6);
            border-radius: 10px;
            margin-bottom: 20px;
        }

        .analysis-content-section.active {
            display: block;
        }

        .gua-characteristics, .gua-summary {
            margin-bottom: 25px;
        }

        .gua-characteristics h3, .gua-summary h3 {
            margin-bottom: 12px;
            color: #c5a26e;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .related-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-top: 15px;
        }

        .related-item {
            background: rgba(37, 42, 66, 0.6);
            padding: 15px;
            border-radius: 8px;
            display: flex;
            justify-content: space-between;
        }

        .yao-position-info {
            margin-bottom: 25px;
        }

        .yao-details-container {
            background: rgba(37, 42, 66, 0.6);
            border-radius: 10px;
            padding: 20px;
        }

        .yao-detail-item {
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px dashed rgba(197, 162, 110, 0.2);
        }

        .yao-detail-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .yao-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            padding-bottom: 8px;
            border-bottom: 1px solid rgba(197, 162, 110, 0.3);
        }

        .yao-position {
            font-weight: bold;
            color: #c5a26e;
        }

        .shensha-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 15px;
        }

        .shensha-item {
            background: rgba(37, 42, 66, 0.6);
            padding: 15px;
            border-radius: 8px;
        }

        .shensha-name {
            font-weight: 600;
            color: #c5a26e;
            margin-bottom: 5px;
        }

        .shensha-value {
            color: #e0d6c9;
        }

        .kongwang-info {
            background: rgba(37, 42, 66, 0.6);
            padding: 15px;
            border-radius: 8px;
            margin-top: 20px;
        }

        /* 底部操作按钮 */
        .analysis-actions {
            display: flex;
            justify-content: center;
            gap: 25px;
            margin-top: 30px;
        }

        .action-btn {
            padding: 12px 35px;
            border-radius: 30px;
            border: none;
            color: white;
            font-weight: 500;
            font-size: 16px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: all 0.3s ease;
        }

        .print-btn {
            background: linear-gradient(135deg, #4f86f7, #5e4a9f);
        }

        .print-btn:hover {
            background: linear-gradient(135deg, #5e4a9f, #4f86f7);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(94, 74, 159, 0.4);
        }

        .save-btn {
            background: linear-gradient(135deg, #c5a26e, #b08d5f);
        }

        .save-btn:hover {
            background: linear-gradient(135deg, #b08d5f, #c5a26e);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(197, 162, 110, 0.4);
        }

        /* 卦象符号样式 */
        .yang {
            color: #f8f9fa;
            font-weight: bold;
        }

        .yin {
            color: #6c757d;
        }

        .moving {
            position: relative;
        }

        /* 世应标记 */
        .shi-mark, .ying-mark {
            display: inline-block;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 14px;
            margin-left: 8px;
        }

        .shi-mark {
            background-color: rgba(76, 175, 80, 0.3);
            color: #4caf50;
        }

        .ying-mark {
            background-color: rgba(33, 150, 243, 0.3);
            color: #2196f3;
        }

        /* 响应式设计 */
        @media (max-width: 900px) {
            .hexagram-overview {
                grid-template-columns: 1fr;
            }

            .hexagram-overview.single .hexagram-card {
                max-width: 100%;
            }

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

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

            .ben-gua-row, .bian-gua-row {
                grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
                font-size: 14px;
                gap: 5px;
            }
        }

        @media (max-width: 600px) {
            .analysis-tabs {
                flex-wrap: wrap;
            }

            .tab {
                padding: 10px 15px;
                font-size: 14px;
            }

            .analysis-actions {
                flex-direction: column;
                align-items: center;
                gap: 15px;
            }

            .ben-gua-row, .bian-gua-row {
                display: block;
            }
            .ben-gua-row > div, .bian-gua-row > div {
                margin-bottom: 5px;
            }
        }
        .shensha-explanation {
            font-size: 0.85em;
            color: #a3a8b8;
            margin-top: 5px;
        }

        .related-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-top: 15px;
        }

        .related-item {
            background: rgba(37, 42, 66, 0.7);
            padding: 15px;
            border-radius: 8px;
            display: flex;
            justify-content: space-between;
            border: 1px solid rgba(197, 162, 110, 0.2);
        }
        .leap-month {
            color: #c5a26e;
            font-style: italic;
            margin-left: 5px;
        }

        .yao-symbol {
            text-align: left;
            font-family: 'Courier New', monospace;
            font-size: 30px;
        }

        /* 四柱和空亡区域 */
        .pillar-section {
            display: flex;
            justify-content: space-between;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .pillar-box {
            background: rgba(37, 42, 66, 0.6);
            border-radius: 8px;
            padding: 15px 20px;
            flex: 1;
            min-width: 200px;
            border: 1px solid rgba(197, 162, 110, 0.2);
        }

        .pillar-title {
            font-weight: 600;
            color: #c5a26e;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .pillar-content {
            display: flex;
            justify-content: space-between;
        }

        .pillar-item {
            text-align: center;
            flex: 1;
        }

        .pillar-label {
            font-size: 14px;
            color: #c5a26e;
            margin-bottom: 5px;
        }

        .pillar-value {
            font-size: 18px;
            font-weight: 500;
        }

        /* 六神列样式 */
        .liu-shen-cell {
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            color: #c5a26e;
        }

        /* 在现有样式中添加以下规则 */
.hexagram-overview-section {
    margin-top: 20px; /* 增加上边距 */
}

/* 优化卦象布局 */
.hexagram-overview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 居中显示 */
    gap: 30px;
}

.hexagram-card {
    flex: 1;
    min-width: 500px;
    max-width: 600px;
}