/* 综合起卦界面样式 */

/* 综合起卦整体样式 */
.unified-divination {
    background: #F7F7F7;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #8ECAE6;
}

/* 起卦方式选择样式 */
.divination-method-selection {
    margin-bottom: 30px;
    text-align: center;
}

.divination-method-selection h3 {
    color: #14213D;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.method-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    background: #14213D;
    border-radius: 8px;
    padding: 5px;
    margin: 0 auto;
    max-width: 600px;
}

.method-tab {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: #F7F7F7;
    cursor: pointer;
    font-weight: bold;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 1em;
}

.method-tab:hover {
    background: #8ECAE6;
    color: #14213D;
}

.method-tab.active {
    background: #8ECAE6;
    color: #14213D;
    box-shadow: 0 2px 8px rgba(142, 202, 230, 0.3);
}

/* 起卦方式内容样式 */
.method-content {
    background: #F7F7F7;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid #8ECAE6;
    display: none;
}

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

/* 时间起卦样式 */
.time-divination {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.datetime-selection {
    margin-bottom: 20px;
}

.datetime-container {
    background: #F7F7F7;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #8ECAE6;
}

.datetime-selection h3 {
    color: #14213D;
    font-size: 1.3em;
    margin-bottom: 20px;
    text-align: center;
}

.datetime-inputs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.date-input, .time-input {
    flex: 1;
    min-width: 150px;
}

.timezone-selection {
    flex: 2;
    min-width: 200px;
}

.beijing-conversion {
    flex: 1;
    min-width: 150px;
}

.beijing-time {
    background: linear-gradient(145deg, #8ECAE6 0%, #F7F7F7 100%);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #14213D;
    box-shadow: 0 2px 10px rgba(142, 202, 230, 0.1);
}

.beijing-time p {
    color: #14213D;
    margin: 0;
    font-weight: bold;
}

.timezone-warning {
    background: linear-gradient(145deg, #F7F7F7 0%, #8ECAE6 100%);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #14213D;
    box-shadow: 0 2px 10px rgba(142, 202, 230, 0.1);
}

.timezone-warning p {
    color: #14213D;
    margin: 0;
    font-weight: bold;
    text-align: center;
}

.btn-use-current, .submit-btn {
    background: #14213D;
    color: #F7F7F7;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1em;
}

.btn-use-current:hover, .submit-btn:hover {
    background: #8ECAE6;
    color: #14213D;
}

.submit-btn:disabled {
    background: #8ECAE6;
    color: #14213D;
    cursor: not-allowed;
    opacity: 0.6;
}

input[type="date"], input[type="time"], select.timezone-select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid #8ECAE6;
    background: #F7F7F7;
    color: #14213D;
    font-size: 1em;
}

input[type="date"]:focus, input[type="time"]:focus, select.timezone-select:focus {
    border-color: #14213D;
    outline: none;
    box-shadow: 0 0 5px rgba(142, 202, 230, 0.3);
}

/* 加载指示器 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    padding: 20px;
    background: #F7F7F7;
    border-radius: 10px;
    border: 1px solid #14213D;
}

.spinner {
    border: 3px solid rgba(142, 202, 230, 0.3);
    border-radius: 50%;
    border-top: 3px solid #14213D;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading span {
    color: #14213D;
    font-weight: bold;
    margin-left: 15px;
}

/* 卦象显示区域 */
.hexagram-display {
    background: #F7F7F7;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid #14213D;
}

.hexagram-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.hexagram-box {
    background: #F7F7F7;
    border-radius: 8px;
    padding: 25px;
    flex: 1;
    max-width: 500px;
    border: 1px solid #8ECAE6;
}

.hexagram-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    text-align: center;
    color: #14213D;
    font-weight: bold;
}

.hexagram-name {
    font-size: 1.8em;
    font-weight: bold;
    color: #14213D;
    margin-bottom: 25px;
    text-align: center;
}

.hexagram-visual {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.line {
    width: 100px;
    height: 14px;
    background-color: #14213D;
}

.line.yang {
    background-color: #14213D;
}

.line.yin {
    position: relative;
    background-color: transparent;
}

.line.yin:before, .line.yin:after {
    content: '';
    position: absolute;
    width: 40%;
    height: 100%;
    background-color: #14213D;
}

.line.yin:before {
    left: 0;
}

.line.yin:after {
    right: 0;
}

/* 选项卡样式 */
.tab-container {
    margin-top: 30px;
    background: #F7F7F7;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #8ECAE6;
}

.tab-header {
    display: flex;
    background: #14213D;
    border-radius: 6px;
    margin-bottom: 25px;
    overflow: hidden;
}

.tab-btn {
    padding: 15px 25px;
    background: transparent;
    border: none;
    color: #F7F7F7;
    cursor: pointer;
    font-weight: bold;
    flex: 1;
}

.tab-btn:hover {
    background: #8ECAE6;
    color: #14213D;
}

.tab-btn.active {
    background: #8ECAE6;
    color: #14213D;
}

.tab-pane {
    display: none;
    background: #F7F7F7;
    border-radius: 8px;
    padding: 20px;
}

.tab-pane.active {
    display: block;
}

/* 爻位表格 */
.lines-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #F7F7F7;
    border-radius: 6px;
    overflow: hidden;
}

.lines-table th, .lines-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #444;
}

.lines-table th {
    background: #14213D;
    color: #F7F7F7;
    font-weight: bold;
}

.lines-table tr:hover {
    background-color: #8ECAE6;
}

.lines-table tr.changing-line {
    background-color: #8ECAE6;
    border-left: 3px solid #14213D;
}

.lines-table td {
    color: #14213D;
}

/* 爻位详情样式 */
.hexagram-with-details {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.hexagram-palace-info {
    text-align: center;
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #14213D;
}

.hidden-info {
    display: none;
}

.line-with-detail {
    display: grid;
    grid-template-columns: 80px 140px 120px 100px;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.liushen-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 8px;
}

.line-with-detail:hover {
    background-color: #444;
}

.line-detail {
    display: flex;
    align-items: center;
}

.left-detail {
    justify-content: flex-end;
    padding-right: 12px;
    font-weight: bold;
    font-size: 1em;
    white-space: nowrap;
    color: white;
}

.right-detail {
    justify-content: flex-start;
    padding-left: 12px;
    white-space: nowrap;
}

.line-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
}

/* 爻线样式 */
.line {
    height: 16px;
    border-radius: 2px;
}

.line.yang {
    background: #ff8800;
    width: 120px;
}

.line.yin {
    position: relative;
    background-color: transparent;
    height: 16px;
    width: 120px;
}

.line.yin:before, .line.yin:after {
    content: '';
    position: absolute;
    width: 44%;
    height: 100%;
    background: #ff8800;
    border-radius: 2px;
}

.line.yin:before {
    left: 0;
}

.line.yin:after {
    right: 0;
}

/* 爻辞颜色 */
.yao-wealth {
    color: #ff6600;
}

.yao-official {
    color: #d40000;
}

.yao-parent-child {
    color: #006600;
}

.yao-brother {
    color: #0000aa;
}

.yao-wife {
    color: #aa00aa;
}

.position-mark {
    display: inline-block;
    background: linear-gradient(135deg, #ff8800 0%, #ff6600 100%);
    color: #fff;
    font-weight: bold;
    font-size: 1em;
    padding: 4px 8px;
    border-radius: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 6px rgba(255, 136, 0, 0.3);
}

.kongwang-mark {
    color: #999;
    margin-left: 8px;
    font-size: 0.85em;
    background: rgba(153, 153, 153, 0.1);
    padding: 2px 6px;
    border-radius: 8px;
}

.fushen-info {
    margin-top: 15px;
    text-align: center;
    color: #ff6600;
}

.fushen {
    color: #ff6600;
    font-size: 1em;
    font-weight: bold;
}

.liushen-mark {
    font-weight: bold;
    color: #00bcd4;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.2) 0%, rgba(0, 188, 212, 0.1) 100%);
    padding: 4px 6px;
    border-radius: 12px;
    display: inline-block;
    border: 1px solid rgba(0, 188, 212, 0.3);
    font-size: 0.85em;
    text-shadow: 0 1px 2px rgba(0, 188, 212, 0.3);
    text-align: center;
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 美化描述文本 */
.time-divination-description p, .coin-divination-description p {
    color: #14213D;
    text-align: center;
    font-size: 1.1em;
    margin: 20px 0;
    padding: 15px;
    background: rgba(142, 202, 230, 0.1);
    border-radius: 8px;
    border-left: 4px solid #14213D;
}

/* 硬币起卦样式 */
.coin-divination {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.coin-throwing-area {
    background: #F7F7F7;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
    text-align: center;
    border: 1px solid #8ECAE6;
}

.coin-throwing-area h3 {
    color: #14213D;
    font-size: 1.4em;
    margin-bottom: 20px;
}

.throw-status {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    background: rgba(142, 202, 230, 0.1);
    padding: 15px;
    border-radius: 6px;
}

.throw-status p {
    color: #14213D;
    font-weight: bold;
    margin: 0;
}

.coins-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.coin {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.coin.flipping {
    animation: flip 1.5s ease-in-out;
}

.coin-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.coin-front, .coin-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: bold;
    border: 3px solid #14213D;
    box-shadow: 0 4px 15px rgba(142, 202, 230, 0.3);
    overflow: hidden;
    backface-visibility: hidden;
}

.coin-front {
    background: linear-gradient(135deg, #14213D 0%, #8ECAE6 100%);
    color: #F7F7F7;
    transform: rotateY(0deg);
}

.coin-back {
    background: linear-gradient(135deg, #666 0%, #444 100%);
    color: #ccc;
    transform: rotateY(180deg);
}

.coin-front img, .coin-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* 显示正面 - 有heads或yang类时 */
.coin.heads .coin-inner, .coin.yang .coin-inner {
    transform: rotateY(0deg);
}

/* 显示反面 - 有yin类或没有heads和yang类时 */
.coin.yin .coin-inner {
    transform: rotateY(180deg);
}

/* 默认状态显示正面 */
.coin:not(.heads):not(.yang):not(.yin) .coin-inner {
    transform: rotateY(0deg);
}

/* 硬币起卦基本信息卡片样式 */
.coin-info-card {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: 2px solid #FF8C00;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}

.coin-info-card .info-card-header {
    background: linear-gradient(135deg, #FF8C00 0%, #FF6347 100%);
    color: white;
}

.coin-info-card .info-card-header h4::before {
    content: "🪙 ";
    margin-right: 8px;
}

.coin-info-card .info-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    padding: 8px 12px;
    margin: 6px 0;
    border-left: 3px solid #FF8C00;
}

.coin-info-card .info-item label {
    color: #8B4513;
    font-weight: 600;
}

.coin-info-card .info-item span {
    color: #2F4F4F;
    font-weight: 500;
}

@keyframes flip {
    0% { transform: rotateY(0deg); }
    25% { transform: rotateY(180deg); }
    50% { transform: rotateY(360deg); }
    75% { transform: rotateY(540deg); }
    100% { transform: rotateY(720deg); }
}

.throw-result {
    margin: 20px 0;
    min-height: 30px;
}

.throw-result p {
    color: #ff8800;
    font-size: 1.2em;
    font-weight: bold;
}

.throw-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn-throw, .btn-reset, .btn-generate {
    background: #14213D;
    color: #F7F7F7;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
}

.btn-throw:hover, .btn-reset:hover, .btn-generate:hover {
    background: #8ECAE6;
    color: #14213D;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(142, 202, 230, 0.3);
}

.btn-generate:disabled {
    background: #8ECAE6;
    color: #14213D;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}


/* 手动起卦样式 */
.hexagram-selection {
    margin: 20px 0;
}

.hexagram-section {
    margin-bottom: 20px;
    padding: 20px;
    background: #F7F7F7;
    border: 1px solid #8ECAE6;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(142, 202, 230, 0.1);
}

.hexagram-section h4 {
    color: #14213D;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
}

.trigram-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.trigram-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 200px;
    flex: 1;
}

.trigram-label {
    color: #14213D;
    margin-bottom: 8px;
    font-weight: 500;
    text-align: center;
    font-size: 14px;
}

.trigram-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #8ECAE6;
    border-radius: 5px;
    background: #F7F7F7;
    color: #14213D;
    font-size: 14px;
    transition: all 0.3s ease;
}

.trigram-select:focus {
    outline: none;
    border-color: #14213D;
    box-shadow: 0 0 5px rgba(142, 202, 230, 0.3);
}

.trigram-select:hover {
    border-color: #14213D;
    background: rgba(142, 202, 230, 0.1);
}

.trigram-select option {
    background: #F7F7F7;
    color: #14213D;
    padding: 8px;
}


/* Time Information Styles */
.time-info-section {
    margin: 20px 0;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #ff8800;
}

.time-info-section h4 {
    color: #ff8800;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
}

.time-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 15px;
    grid-template-areas: 
        "lunar ganzhi"
        "shensha shensha";
}

/* Grid area assignments for specific containers */
.lunar-info {
    grid-area: lunar;
}

.ganzhi-info {
    grid-area: ganzhi;
}

.shensha-info {
    grid-area: shensha;
}

.shensha-info .time-info-content {
    padding: 15px;
}

.time-info-card {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #444;
    transition: all 0.3s ease;
}

.time-info-card:hover {
    border-color: #ff8800;
    box-shadow: 0 2px 8px rgba(255, 136, 0, 0.2);
}

.time-info-header {
    margin-bottom: 12px;
    border-bottom: 1px solid #444;
    padding-bottom: 8px;
}

.time-info-header h5 {
    color: #ff8800;
    margin: 0;
    font-size: 1em;
    font-weight: 600;
}

.time-info-content {
    color: #fff;
}

.time-info-content .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 4px 0;
}

.time-info-content .info-item:last-child {
    margin-bottom: 0;
}

.time-info-content .info-item label {
    color: #ccc;
    font-weight: 500;
    min-width: 80px;
}

.time-info-content .info-item span {
    color: #fff;
    font-weight: 600;
    text-align: right;
}

/* 特定卡片样式 */
.lunar-info {
    border-left: 4px solid #2196F3;
}

.ganzhi-info {
    border-left: 4px solid #FF9800;
}

.shensha-info {
    border-left: 4px solid #9C27B0;
}

/* Divine Spirits Special Styles */
.shensha-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(156, 39, 176, 0.1);
    border-radius: 4px;
}

.shensha-item:last-child {
    margin-bottom: 0;
}

.shensha-item label {
    color: #ff8800;
    font-weight: 600;
    margin-bottom: 4px;
}

.shensha-branch {
    color: #fff;
    background: rgba(156, 39, 176, 0.3);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.95em;
}


/* 响应式设计 */
@media (max-width: 1024px) and (min-width: 769px) {
    .time-info-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "lunar ganzhi"
            "shensha shensha";
    }
}

@media (max-width: 768px) {
    .time-info-grid {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "lunar"
            "ganzhi"
            "shensha";
    }
    
    .time-info-content .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .time-info-content .info-item span {
        text-align: left;
    }
    
    .shensha-item {
        padding: 6px;
        margin-bottom: 10px;
    }
    
}

/* 结果显示样式 */
.hexagram-result-container {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    color: #fff;
}

.hexagram-result-container h3 {
    text-align: center;
    color: #ff8800;
    margin-bottom: 20px;
}

.result-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #333;
    margin-bottom: 20px;
}

.result-tabs .tab-button {
    background: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin: 0 2px;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
    transition: background 0.3s;
}

.result-tabs .tab-button.active {
    background: #ff8800;
    color: #fff;
}

.result-tabs .tab-button:hover {
    background: #555;
}

.result-tabs .tab-button.active:hover {
    background: #ff8800;
}

.tab-content {
    display: none;
    padding: 20px 0;
}

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

.hexagram-display {
    text-align: center;
}

.hexagram-pair {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

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

.hexagram-info h4 {
    color: #ff8800;
    margin-bottom: 10px;
}

.hexagram-name {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 5px;
}

.hexagram-symbol {
    color: #ccc;
    font-size: 1.1em;
}

.liuyao-table-container {
    margin: 20px 0;
}

.liuyao-table-container h4 {
    color: #14213D;
    text-align: center;
    margin-bottom: 20px;
}

.table-section {
    margin-bottom: 30px;
}

.table-section h5 {
    color: #14213D;
    margin-bottom: 10px;
    text-align: center;
}

.liuyao-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    background: #F7F7F7;
    border-radius: 8px;
    overflow: hidden;
    table-layout: fixed;
    min-width: 280px;
    border: 1px solid #8ECAE6;
}

.liuyao-table th {
    background: #14213D;
    color: #F7F7F7;
    padding: 12px 8px;
    text-align: center;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.liuyao-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #8ECAE6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
    color: #14213D;
}

.liuyao-table tr:hover {
    background: rgba(142, 202, 230, 0.1);
}

.liuyao-table .changing-line {
    background: rgba(142, 202, 230, 0.2);
}

.liuyao-table .hidden-line-row {
    background: rgba(142, 202, 230, 0.1);
    font-style: italic;
}

.liuyao-table .hidden-line-row td {
    padding: 6px 8px;
    font-size: 0.9em;
}

.hexagram-analysis {
    text-align: left;
    margin-bottom: 20px;
}

.hexagram-analysis h4 {
    color: #14213D;
    margin-bottom: 15px;
}

.hexagram-description, .hexagram-meaning {
    background: #F7F7F7;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    line-height: 1.6;
    border: 1px solid #8ECAE6;
    color: #14213D;
}

.yao-analysis {
    text-align: left;
}

.yao-analysis h4 {
    color: #14213D;
    margin-bottom: 15px;
}

.yao-item {
    background: #F7F7F7;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    border-left: 4px solid #8ECAE6;
    border: 1px solid #8ECAE6;
}

.yao-item.changing-line {
    border-left: 4px solid #14213D;
    background: rgba(142, 202, 230, 0.1);
}

.yao-title {
    font-weight: bold;
    color: #14213D;
    margin-bottom: 8px;
}

.yao-text {
    margin-bottom: 8px;
    line-height: 1.5;
}

.yao-interpretation {
    color: #14213D;
    font-style: italic;
}

.guidance-content {
    text-align: left;
}

.guidance-content h4 {
    color: #14213D;
    margin-bottom: 15px;
}

/* 免责声明样式 */
.guidance-disclaimer {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
}

.guidance-disclaimer p {
    margin: 0;
}

/* practical-guidance 颜色改为藏青色 */
.practical-guidance {
    color: #14213d !important;
}

.practical-guidance h5 {
    color: #14213d !important;
}

/* primary-lines 颜色改为藏青色 */
.primary-lines {
    color: #14213d !important;
}

.primary-lines h5 {
    color: #14213d !important;
}

.guidance-text {
    background: #F7F7F7;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    line-height: 1.6;
    border: 1px solid #8ECAE6;
    color: #14213D;
}

.changing-guidance {
    margin-top: 20px;
}

.changing-guidance h5 {
    color: #14213D;
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hexagram-pair {
        flex-direction: column;
        gap: 20px;
    }
    
    .result-tabs {
        flex-wrap: wrap;
    }
    
    .result-tabs .tab-button {
        padding: 8px 12px;
        font-size: 0.9em;
    }
    
    .liuyao-table {
        font-size: 0.9em;
    }
    
    .liuyao-table th,
    .liuyao-table td {
        padding: 8px 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 80px;
    }
}

/* 六爻占卜传统UI样式 */
.liuyao-result-container {
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 16px;
    padding: 35px;
    margin: 20px 0;
    border: 3px solid #ff8800;
    box-shadow: 
        0 8px 25px rgba(255, 136, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
}

.hexagram-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #333;
}

.hexagram-header h2 {
    color: #ff8800;
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(255, 136, 0, 0.3);
}

.hexagram-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.gua-palace {
    color: #00bcd4;
    font-size: 1.2em;
    font-weight: bold;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.2) 0%, rgba(0, 188, 212, 0.1) 100%);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(0, 188, 212, 0.3);
}

.date-info {
    color: #ccc;
    font-size: 1.1em;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #444;
}

.hexagram-comparison {
    margin-bottom: 20px;
}

.hexagram-info-header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(142, 202, 230, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(142, 202, 230, 0.3);
}

.hexagram-info-column {
    text-align: center;
    flex: 1;
}

.hexagram-column {
    padding: 20px;
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
}

.hexagram-column .hexagram-title {
    color: #14213D;
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hexagram-column .hexagram-name {
    color: #14213D;
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(142, 202, 230, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hexagram-column .hexagram-palace {
    color: #14213D;
    font-size: 1.1em;
    text-align: center;
    margin: 0 auto 20px;
    font-weight: bold;
    background: linear-gradient(135deg, rgba(142, 202, 230, 0.2) 0%, rgba(142, 202, 230, 0.1) 100%);
    padding: 6px 12px;
    border-radius: 15px;
    border: 1px solid rgba(142, 202, 230, 0.3);
    display: block;
    width: fit-content;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.hexagram-symbol-display {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(142, 202, 230, 0.05);
    border-radius: 8px;
    border: 1px solid #8ECAE6;
}

.hexagram-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.hexagram-line {
    font-family: monospace;
    font-size: 1.2em;
    font-weight: bold;
    letter-spacing: 2px;
    padding: 2px 0;
}

.hexagram-line.yang-line {
    color: #14213D;
}

.hexagram-line.yin-line {
    color: #14213D;
}

.hexagram-line.changing {
    background: linear-gradient(135deg, rgba(142, 202, 230, 0.3) 0%, rgba(142, 202, 230, 0.1) 100%);
    border-radius: 4px;
    padding: 3px 8px;
    border: 1px solid rgba(142, 202, 230, 0.5);
}



/* 传统六爻排盘样式 */
.traditional-liuyao-display {
    padding: 20px;
    margin: 0 auto;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}



.yao-line-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    position: relative;
    transition: all 0.3s ease;
    margin: 2px 0;
    max-width: 100%;
    box-sizing: border-box;
}

.yao-line-row:hover {
    transform: translateY(-1px);
}

.yao-line-row.changing-line {
    margin: 4px 0;
}

.yao-liushen-section {
    flex: 0 0 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.liushen-placeholder {
    width: 70px;
    height: 20px;
    display: inline-block;
}

.yao-left-section, .yao-right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 140px;
    max-width: 180px;
    gap: 4px;
    overflow: hidden;
}

.yao-symbol-section {
    flex: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 160px;
    max-width: 200px;
}

.liushen-name {
    color: #14213D;
    font-weight: bold;
    font-size: 0.8em;
    margin: 0;
    background: linear-gradient(135deg, rgba(142, 202, 230, 0.3) 0%, rgba(142, 202, 230, 0.1) 100%);
    padding: 3px 6px;
    border-radius: 10px;
    border: 1px solid #8ECAE6;
    box-shadow: 0 1px 4px rgba(142, 202, 230, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
    max-width: 70px;
    text-align: center;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yao-info {
    color: #14213D;
    font-size: 0.85em;
    text-align: center;
    line-height: 1.4;
    font-weight: 600;
    margin: 2px 0;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.kongwang-info {
    color: #14213D;
    font-size: 0.75em;
    font-weight: bold;
    background: rgba(142, 202, 230, 0.2);
    padding: 1px 5px;
    border-radius: 6px;
    border: 1px solid rgba(142, 202, 230, 0.4);
    margin-top: 2px;
    display: inline-block;
    max-width: 50px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shenfen-mark {
    color: #14213D;
    font-size: 0.7em;
    font-weight: bold;
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(142, 202, 230, 0.2);
    padding: 1px 3px;
    border-radius: 4px;
    border: 1px solid rgba(142, 202, 230, 0.4);
    max-width: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hb-info {
    color: #14213D;
    font-size: 0.75em;
    font-weight: bold;
    background: rgba(142, 202, 230, 0.2);
    padding: 1px 5px;
    border-radius: 6px;
    border: 1px solid rgba(142, 202, 230, 0.4);
    margin-top: 2px;
    display: inline-block;
    max-width: 60px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shenfen-info {
    color: #14213D;
    font-size: 0.75em;
    font-weight: bold;
    background: rgba(142, 202, 230, 0.2);
    padding: 1px 5px;
    border-radius: 6px;
    border: 1px solid rgba(142, 202, 230, 0.4);
    margin-top: 2px;
    display: inline-block;
    max-width: 60px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 传统爻象符号样式 */
.yao-line {
    width: 140px;
    height: 10px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 0;
}

.yao-line.yang-line .line-full {
    width: 100%;
    height: 10px;
    background: linear-gradient(135deg, #ff8800 0%, #ff6600 100%);
    border-radius: 2px;
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.2),
        0 -1px 0 rgba(0, 0, 0, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(255, 136, 0, 0.4);
    border: 1px solid #ff6600;
    position: relative;
}

.yao-line.yang-line .line-full::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
}

.yao-line.yin-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.yao-line.yin-line .line-part {
    width: 42%;
    height: 10px;
    background: linear-gradient(135deg, #ff8800 0%, #ff6600 100%);
    border-radius: 2px;
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.2),
        0 -1px 0 rgba(0, 0, 0, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(255, 136, 0, 0.4);
    border: 1px solid #ff6600;
    position: relative;
}

.yao-line.yin-line .line-part::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
}

.yao-line.yin-line .line-gap {
    width: 14%;
    height: 10px;
    background: transparent;
}



.change-mark {
    color: #ff4444;
    font-size: 1.2em;
    font-weight: bold;
    margin-left: 8px;
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(255, 68, 68, 0.6);
}

/* 伏神信息样式 */
.fushen-row {
    text-align: left;
    padding: 8px 12px;
    margin: 4px 0;
}

.fushen-label {
    color: #ff4444;
    font-weight: bold;
    font-size: 0.9em;
    margin-right: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.fushen-content {
    color: #ff6666;
    font-size: 0.9em;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 卦象底部标识 */
.hexagram-bottom-label {
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
    color: #4caf50;
    font-weight: bold;
    font-size: 1.2em;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(76, 175, 80, 0.1) 100%);
    border-radius: 12px;
    border: 2px solid #4caf50;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 3px 8px rgba(76, 175, 80, 0.3);
}

/* 移动端响应式优化 */
@media (max-width: 768px) {
    .traditional-liuyao-display {
        padding: 15px;
    }
    
    .yao-line-row {
        padding: 6px 0;
    }
    
    .yao-liushen-section {
        flex: 0 0 70px;
        padding: 0 3px;
    }

    .yao-left-section, .yao-right-section {
        min-width: 90px;
        max-width: 120px;
    }
    
    .yao-symbol-section {
        min-width: 150px;
    }
    
    .yao-line {
        width: 100px;
        height: 6px;
    }
    
    .yao-line.yang-line .line-full,
    .yao-line.yin-line .line-part {
        height: 6px;
    }
    
    .liushen-name {
        font-size: 0.75em;
        padding: 3px 6px;
        min-width: 50px;
    }
    
    .yao-info {
        font-size: 0.75em;
    }
}

@media (max-width: 480px) {
    .yao-liushen-section {
        flex: 0 0 60px;
        padding: 0 2px;
    }

    .yao-left-section, .yao-right-section {
        min-width: 70px;
        max-width: 100px;
    }
    
    .yao-symbol-section {
        min-width: 120px;
    }
    
    .yao-line {
        width: 80px;
        height: 5px;
    }
    
    .yao-line.yang-line .line-full,
    .yao-line.yin-line .line-part {
        height: 5px;
    }
    
    .liushen-name {
        font-size: 0.7em;
        padding: 2px 4px;
        min-width: 40px;
    }
}

.analysis-tabs {
    background: #F7F7F7;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #8ECAE6;
}

.analysis-tabs .tab-header {
    display: flex;
    background: #14213D;
    border-radius: 8px;
    margin-bottom: 25px;
    overflow: hidden;
    gap: 2px;
}

.analysis-tabs .tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: #F7F7F7;
    cursor: pointer;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
}

.analysis-tabs .tab-btn:hover {
    background: #8ECAE6;
    color: #14213D;
}

.analysis-tabs .tab-btn.active {
    background: linear-gradient(135deg, #8ECAE6 0%, #14213D 100%);
    color: #F7F7F7;
    box-shadow: 0 2px 8px rgba(142, 202, 230, 0.3);
}

.analysis-tabs .tab-content {
    background: #F7F7F7;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid #8ECAE6;
}

.analysis-tabs .tab-pane {
    display: none;
}

.analysis-tabs .tab-pane.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

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

.basic-info {
    display: grid;
    gap: 15px;
}

.info-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #8ECAE6;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row label {
    color: #14213D;
    font-weight: bold;
}

/* 登录提示样式 */
.login-required-content {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    border: 2px solid #8ECAE6;
    margin: 20px 0;
}

.login-required-icon {
    font-size: 4em;
    margin-bottom: 20px;
    color: #14213D;
    opacity: 0.8;
}

.login-required-content h3 {
    color: #14213D;
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
}

.login-required-content p {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.login-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.login-btn, .register-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 140px;
    justify-content: center;
}

.login-btn {
    background: linear-gradient(135deg, #14213D 0%, #8ECAE6 100%);
    color: white;
    border-color: #14213D;
}

.login-btn:hover {
    background: linear-gradient(135deg, #8ECAE6 0%, #14213D 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(20, 33, 61, 0.3);
    color: white;
    text-decoration: none;
}

.register-btn {
    background: linear-gradient(135deg, #8ECAE6 0%, #14213D 100%);
    color: white;
    border-color: #8ECAE6;
}

.register-btn:hover {
    background: linear-gradient(135deg, #14213D 0%, #8ECAE6 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(142, 202, 230, 0.3);
    color: white;
    text-decoration: none;
}

.btn-icon {
    font-size: 1.2em;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .login-required-content {
        padding: 40px 20px;
    }
    
    .login-required-content h3 {
        font-size: 1.3em;
    }
    
    .login-required-content p {
        font-size: 1em;
    }
    
    .login-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .login-btn, .register-btn {
        width: 100%;
        max-width: 200px;
    }
}

.info-row span {
    color: #14213D;
    flex: 1;
}

/* 基本信息分组标题样式 */
.info-section-divider {
    color: #8ECAE6;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    margin: 20px 0 15px 0;
    padding: 8px 0;
    background: linear-gradient(90deg, transparent, rgba(142, 202, 230, 0.2), transparent);
    border-radius: 6px;
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.info-section-divider::before {
    content: '';
    position: absolute;
    left: 20px;
    right: 20px;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8ECAE6, transparent);
    z-index: -1;
}

.info-section-divider::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #8ECAE6;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(142, 202, 230, 0.6);
}

.hexagram-analysis {
    color: #fff;
}

.primary-analysis, .changing-analysis {
    background: #333;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #444;
}

.primary-analysis h4, .changing-analysis h4 {
    color: #ff8800;
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: bold;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
}

.analysis-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 6px;
    border-left: 4px solid #ff8800;
}

.analysis-item:last-child {
    margin-bottom: 0;
}

.analysis-item strong {
    color: #ff8800;
    font-size: 1.1em;
    display: block;
    margin-bottom: 10px;
}

.analysis-item p {
    color: #ccc;
    line-height: 1.6;
    margin: 0;
}

.lines-analysis {
    color: #fff;
}

.lines-analysis h4 {
    color: #ff8800;
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: bold;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
}

.line-statement {
    background: #333;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #444;
    transition: all 0.3s ease;
}

.line-statement:hover {
    background: #3a3a3a;
    border-color: #ff8800;
}

.line-statement.changing-line {
    border-left: 4px solid #ff8800;
    background: linear-gradient(135deg, rgba(255, 136, 0, 0.1) 0%, rgba(255, 136, 0, 0.05) 100%);
}

.line-position {
    color: #ff8800;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.line-text {
    color: #ccc;
}

.line-chinese {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 8px;
    color: #fff;
}

.line-english {
    font-size: 0.95em;
    line-height: 1.5;
    color: #aaa;
    font-style: italic;
}

.guidance-content {
    color: #fff;
}

.guidance-content h4 {
    color: #ff8800;
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: bold;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
}

.guidance-text {
    background: #333;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #ff8800;
}

.guidance-text p {
    color: #ccc;
    line-height: 1.7;
    margin: 0;
    font-size: 1.05em;
}

.changing-guidance {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #444;
}

.changing-guidance h5 {
    color: #ff8800;
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: bold;
}

.changing-guidance p {
    color: #ccc;
    line-height: 1.6;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .liuyao-result-container {
        padding: 20px 15px;
        margin: 15px 0;
    }
    
    .hexagram-header h2 {
        font-size: 2em;
    }
    
    .hexagram-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .hexagram-info-header {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        padding: 10px;
    }
    
    .hexagram-info-column {
        width: 100%;
        text-align: center;
    }
    
    .hexagram-symbol-display {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .hexagram-line {
        font-size: 1em;
    }
    
    .hexagram-column .hexagram-palace {
        font-size: 1em;
        padding: 4px 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 90%;
    }
    

    
    .traditional-liuyao-display {
        padding: 12px;
    }
    
    .yao-line-row {
        padding: 4px 0;
        margin: 1px 0;
    }
    
    .analysis-tabs {
        padding: 15px;
    }
    
    .analysis-tabs .tab-header {
        flex-direction: column;
        gap: 2px;
    }
    
    .analysis-tabs .tab-btn {
        padding: 12px 15px;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-row label {
        min-width: auto;
        margin-right: 0;
    }
    
    .line-statement {
        padding: 15px;
    }
    
    .guidance-text {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .hexagram-header h2 {
        font-size: 1.8em;
    }
    
    .hexagram-column .hexagram-name {
        font-size: 1.5em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .yao-line {
        width: 70px;
        height: 4px;
    }
    
    .yao-line.yang-line .line-full,
    .yao-line.yin-line .line-part {
        height: 4px;
    }
    
    .analysis-tabs .tab-content {
        padding: 15px;
    }
} 

/* Table optimization styles */
.liuyao-table table {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.liuyao-table table thead th {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.liuyao-table table tbody tr {
    transition: background-color 0.2s ease;
}

.liuyao-table table tbody tr:hover {
    background-color: rgba(142, 202, 230, 0.1) !important;
}

.liuyao-table table tbody tr:hover td {
    background-color: inherit !important;
}

/* 本卦列样式优化 */
.liuyao-table table tbody td[style*="rgba(0,100,200,0.05)"] {
    background: linear-gradient(135deg, rgba(142, 202, 230, 0.08), rgba(142, 202, 230, 0.03)) !important;
}

/* 变卦列样式优化 */
.liuyao-table table tbody td[style*="rgba(200,100,0,0.05)"] {
    background: linear-gradient(135deg, rgba(20, 33, 61, 0.08), rgba(20, 33, 61, 0.03)) !important;
}

/* 箭头列样式优化 */
.liuyao-table table tbody td[style*="rgba(255,255,255,0.15)"] {
    background: linear-gradient(135deg, rgba(142, 202, 230, 0.15), rgba(142, 202, 230, 0.05)) !important;
    font-size: 1.2em !important;
}

/* 表格头部样式优化 */
.liuyao-table table thead th[style*="rgba(0,100,200,0.1)"] {
    background: linear-gradient(135deg, rgba(142, 202, 230, 0.2), rgba(142, 202, 230, 0.1)) !important;
    border-left: 2px solid rgba(142, 202, 230, 0.3);
}

.liuyao-table table thead th[style*="rgba(200,100,0,0.1)"] {
    background: linear-gradient(135deg, rgba(20, 33, 61, 0.2), rgba(20, 33, 61, 0.1)) !important;
    border-right: 2px solid rgba(20, 33, 61, 0.3);
}

.liuyao-table table thead th[style*="rgba(255,255,255,0.3)"] {
    background: linear-gradient(135deg, rgba(142, 202, 230, 0.3), rgba(142, 202, 230, 0.1)) !important;
    text-shadow: 0 0 10px rgba(142, 202, 230, 0.5);
}

/* 变爻行高亮优化 */
.liuyao-table table tbody tr[style*="rgba(255,136,0,0.2)"] {
    background: linear-gradient(135deg, rgba(142, 202, 230, 0.15), rgba(142, 202, 230, 0.05)) !important;
    box-shadow: inset 0 0 10px rgba(142, 202, 230, 0.2);
}

/* Hidden Line 样式优化 */
.liuyao-table table tbody tr[style*="rgba(255,136,0,0.1)"] td {
    background: linear-gradient(90deg, rgba(142, 202, 230, 0.1), rgba(142, 202, 230, 0.05)) !important;
    font-style: italic;
    border-left: 3px solid rgba(142, 202, 230, 0.5);
}

/* 爻象符号样式优化 */
.liuyao-table table tbody td[style*="font-family: monospace"] {
    font-family: 'Courier New', 'Monaco', monospace !important;
    font-weight: bold;
    letter-spacing: 1px;
}

/* 手动起卦响应式设计 */
@media (max-width: 768px) {
    .trigram-selection {
        flex-direction: column;
        align-items: center;
    }
    
    .trigram-group {
        min-width: 100%;
        max-width: 300px;
    }
    
    
    .hexagram-section {
        padding: 15px;
    }
    
    .hexagram-section h4 {
        font-size: 1.1em;
    }
    
    .trigram-label {
        font-size: 13px;
    }
    
    .trigram-select {
        font-size: 13px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .trigram-group {
        min-width: 100%;
    }
    
    
    .hexagram-section {
        padding: 10px;
    }
    
    .hexagram-section h4 {
        font-size: 1em;
    }
    
    .trigram-label {
        font-size: 12px;
    }
    
    .trigram-select {
        font-size: 12px;
        padding: 6px;
    }
}

/* 基本信息展示样式 */
.basic-info-section {
    background: linear-gradient(135deg, #F7F7F7 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    border: 2px solid #8ECAE6;
    box-shadow: 0 4px 15px rgba(142, 202, 230, 0.2);
}

.basic-info-container {
    max-width: 1200px;
    margin: 0 auto;
}

.basic-info-title {
    text-align: center;
    color: #14213D;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(142, 202, 230, 0.3);
    position: relative;
}

.basic-info-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #8ECAE6, transparent);
    border-radius: 2px;
}

.basic-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #8ECAE6;
    box-shadow: 0 3px 10px rgba(142, 202, 230, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8ECAE6, #14213D, #8ECAE6);
    border-radius: 12px 12px 0 0;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(142, 202, 230, 0.25);
    border-color: #14213D;
}

.info-card-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(142, 202, 230, 0.3);
}

.info-card-header h4 {
    color: #14213D;
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(142, 202, 230, 0.1);
    transition: background-color 0.2s ease;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item:hover {
    background: rgba(142, 202, 230, 0.05);
    border-radius: 6px;
    margin: 0 -8px;
    padding: 8px;
}

.info-item label {
    color: #14213D;
    font-weight: 600;
    font-size: 0.95em;
    min-width: 80px;
    flex-shrink: 0;
}

.info-item span {
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.95em;
    text-align: right;
    flex: 1;
    margin-left: 10px;
}

/* 特定信息卡片的特殊样式 */
.lunar-info-card .info-card-header h4 {
    color: #e74c3c;
}

.lunar-info-card::before {
    background: linear-gradient(90deg, #e74c3c, #c0392b, #e74c3c);
}

.sizhu-info-card .info-card-header h4 {
    color: #f39c12;
}

.sizhu-info-card::before {
    background: linear-gradient(90deg, #f39c12, #e67e22, #f39c12);
}

.shensha-info-card .info-card-header h4 {
    color: #9b59b6;
}

.shensha-info-card::before {
    background: linear-gradient(90deg, #9b59b6, #8e44ad, #9b59b6);
}

.method-info-card .info-card-header h4 {
    color: #3498db;
}

.method-info-card::before {
    background: linear-gradient(90deg, #3498db, #2980b9, #3498db);
}

/* Four Pillars Information Special Layout */
.sizhu-info-card .info-card-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
}

.sizhu-info-card .info-item {
    border-bottom: 1px solid rgba(243, 156, 18, 0.2);
}

.sizhu-info-card .info-item:hover {
    background: rgba(243, 156, 18, 0.05);
}

/* Divine Spirits Horizontal Layout Styles */
.shensha-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.shensha-tag {
    display: inline-flex;
    align-items: center;
    background: #444444;
    border: 1px solid #ff8c00;
    border-radius: 20px;
    padding: 4px 12px;
    margin: 2px;
    font-size: 13px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.shensha-tag:hover {
    background: #555555;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
}

.shensha-name {
    color: #ff8c00;
    font-weight: 600;
    margin-right: 4px;
}

.shensha-branch {
    color: #ffffff;
    background: rgba(255, 140, 0, 0.2);
    border-radius: 10px;
    padding: 2px 6px;
    margin: 0 2px;
    font-size: 12px;
}


.time-info-card .time-info-content {
    padding: 15px;
}

.time-info-card.shensha-info .time-info-content {
    max-height: 200px;
    overflow-y: auto;
}

/* 神煞列表的特殊样式（保留原有样式） */
#shensha-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
}

#shensha-list .shensha-tag {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(155, 89, 182, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .shensha-grid {
        gap: 6px;
    }
    
    .shensha-tag {
        font-size: 12px;
        padding: 3px 8px;
        margin: 1px;
    }
    
    .shensha-branch {
        font-size: 11px;
        padding: 1px 4px;
    }
    
    
    .basic-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .info-card {
        padding: 15px;
    }
    
    .basic-info-section {
        padding: 20px 15px;
        margin: 15px 0;
    }
    
    .basic-info-title {
        font-size: 1.5em;
    }
    
    .info-card-header h4 {
        font-size: 1.1em;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-item label {
        min-width: auto;
    }
    
    .info-item span {
        text-align: left;
        margin-left: 0;
    }
    
    .sizhu-info-card .info-card-content {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .basic-info-section {
        padding: 15px 10px;
    }
    
    .info-card {
        padding: 12px;
    }
    
    .basic-info-title {
        font-size: 1.3em;
    }
    
    .info-card-header h4 {
        font-size: 1em;
    }
    
    .info-item label,
    .info-item span {
        font-size: 0.9em;
    }
} 