/* 六爻占卜样式 */
.liuyao-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 六爻排盘样式 */
.liuyao-pai-pan {
    margin: 40px 0;
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e7ef;
}

.pai-pan-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

.pai-pan-table th,
.pai-pan-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid #e1e7ef;
}

.hexagram-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.hexagram-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 20px;
    border: none;
}

.label-cell {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    padding: 12px 8px;
    text-align: center;
    font-size: 14px;
    border: none;
}

.content-cell {
    background: #ffffff;
}

/* 六神列表样式 */
.liushen-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.liushen-item {
    padding: 8px 12px;
    background: #f0f8ff;
    border-radius: 6px;
    font-weight: 500;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* 卦线样式 */
.gua-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.gua-line {
    position: relative;
    width: 120px;
    height: 8px;
    background: #000;
    border-radius: 4px;
}

.gua-line.young-yang {
    background: #000;
}

.gua-line.old-yang {
    background: #000;
}

.gua-line.young-yang::before,
.gua-line.old-yang::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 25px;
    width: 70px;
    height: 12px;
    background: #fff;
    border-radius: 2px;
}

.gua-line.young-yin {
    background: #fff;
    border: 2px solid #000;
}

.gua-line.old-yin {
    background: #fff;
    border: 2px solid #000;
}

.gua-line.young-yin::before,
.gua-line.old-yin::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 25px;
    width: 70px;
    height: 12px;
    background: #000;
    border-radius: 2px;
}

/* 世应指示器 */
.shi-indicator,
.ying-indicator {
    position: absolute;
    top: -20px;
    right: -30px;
    background: #dc2626;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.ying-indicator {
    background: #2563eb;
}

/* 动爻指示器 */
.moving-indicator {
    position: absolute;
    top: -15px;
    left: -20px;
    background: #ea580c;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* 六亲列表样式 */
.liuqin-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.liuqin-item {
    padding: 8px 12px;
    background: #fef3c7;
    border-radius: 6px;
    font-weight: 500;
    color: #92400e;
    border: 1px solid #fbbf24;
}

/* 地支五行样式 */
.dizhi-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dizhi-item {
    padding: 8px 12px;
    background: #ecfdf5;
    border-radius: 6px;
    border: 1px solid #a7f3d0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dizhi-text {
    font-weight: 600;
    color: #065f46;
}

.wuxing-text {
    font-size: 12px;
    color: #047857;
    background: #d1fae5;
    padding: 2px 6px;
    border-radius: 4px;
}

/* 干支列表样式 */
.ganzhi-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ganzhi-item {
    padding: 8px 12px;
    background: #fdf4ff;
    border-radius: 6px;
    font-weight: 500;
    color: #7c2d92;
    border: 1px solid #e9d5ff;
}

/* 变卦样式 */
.biangua-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e1e7ef;
}

.biangua-section h4 {
    color: #dc2626;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.biangua-table {
    border: 2px solid #dc2626;
}

.biangua-table .label-cell {
    background: #fef2f2;
    color: #dc2626;
}

/* 变爻位置样式 */
.moving-lines-info {
    margin: 30px 0;
    padding: 20px;
    background: #fff7ed;
    border-radius: 12px;
    border: 1px solid #fed7aa;
}

.moving-lines-info h4 {
    color: #ea580c;
    margin-bottom: 15px;
}

.moving-lines-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.moving-line-item {
    background: #ea580c;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* 爻辞样式 */
.line-poems-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e1e7ef;
}

.line-poems-section h4 {
    color: #1a202c;
    margin-bottom: 15px;
}

.line-poems-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.line-poem-item {
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    font-style: italic;
    color: #374151;
    line-height: 1.6;
}

/* 起卦规则弹窗样式 */
.rules-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.rules-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.rules-modal {
    background: #ffffff;
    border-radius: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transform: scale(0.9) translateY(-20px);
    transition: all 0.3s ease;
    position: relative;
}

.rules-modal-overlay.show .rules-modal {
    transform: scale(1) translateY(0);
}

.rules-modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.rules-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
    text-align: center;
}

.rules-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 20px;
    transition: all 0.2s ease;
}

.rules-modal-close:hover {
    background: #f8fafc;
    color: #1a202c;
}

.rules-modal-body {
    padding: 30px;
}

.rules-content {
    display: grid;
    gap: 25px;
}

.rule-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
}

.rule-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rule-section h3::before {
    content: '📋';
    font-size: 1.2rem;
}

.rule-list {
    display: grid;
    gap: 12px;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

.rule-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.rule-content {
    flex: 1;
}

.rule-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 4px 0;
}

.rule-content p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.divination-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.method-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.method-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.method-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.method-card h4::before {
    content: '🎯';
    font-size: 18px;
}

.method-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.rules-modal-footer {
    padding: 20px 30px 30px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.rules-modal-footer p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.rules-modal-footer strong {
    color: #1a202c;
}

/* 头部样式 - 清秀大气设计 */
.liuyao-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 50px 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 24px;
    border: 1px solid #e1e7ef;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.liuyao-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.liuyao-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a202c;
    letter-spacing: -0.5px;
    position: relative;
}

.liuyao-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.header-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.feature-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 25px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
    text-align: center;
}

.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a202c;
    text-align: center;
}

.feature-item p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* 决策问题表单样式 */
.decision-form {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid #f0f2f5;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 10px;
}

.form-description {
    text-align: center;
    color: #666666;
    font-size: 16px;
    margin-bottom: 30px;
}

/* 问题输入样式 */
.question-input-section {
    margin-bottom: 30px;
}

.question-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.question-input:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.question-input:disabled {
    background: #f5f5f5;
    color: #999999;
    cursor: not-allowed;
}

/* 起卦方式选择样式 */
.divination-method-section {
    margin-bottom: 40px;
}

.method-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.method-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
}

.rules-btn {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #64748b;
    border: 1px solid #e1e7ef;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.rules-btn:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    color: #1a202c;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.inline-btn {
    font-size: 13px;
    padding: 6px 12px;
}

.method-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.method-option {
    position: relative;
}

.method-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.method-label {
    display: block;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666666;
}

.method-option input[type="radio"]:checked + .method-label {
    background: #667eea;
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 手动起卦样式 */
.manual-divination-section {
    background: #fafbfc;
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
    border: 1px solid #e8e8e8;
}

.manual-header {
    text-align: center;
    margin-bottom: 25px;
}

.manual-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.manual-header p {
    color: #666666;
    font-size: 14px;
}

/* 爻位设置样式 */
.yao-settings {
    margin-bottom: 30px;
}

.yao-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f2f5;
}

.yao-row:last-child {
    border-bottom: none;
}

.yao-label {
    font-weight: 600;
    color: #1a1a1a;
    min-width: 60px;
}

.yao-controls {
    display: flex;
    gap: 8px;
}

.yao-btn {
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
}

.yao-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.yao-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.old-yang-btn.active {
    background: #ff4d4f;
    border-color: #ff4d4f;
}

.old-yin-btn.active {
    background: #fa8c16;
    border-color: #fa8c16;
}

/* 卦象预览样式 */
.hexagram-preview {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e8e8e8;
}

.hexagram-preview h4 {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.hexagram-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.hexagram-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hexagram-line {
    width: 60px;
    height: 4px;
    background: #333;
    position: relative;
}

.hexagram-line.young-yang {
    background: #333;
}

.hexagram-line.old-yang {
    background: #ff4d4f;
}

.hexagram-line.young-yin {
    background: #333;
}

.hexagram-line.young-yin::before,
.hexagram-line.old-yin::before {
    content: '';
    position: absolute;
    left: 15px;
    right: 15px;
    top: -2px;
    height: 8px;
    background: white;
    border: 1px solid #333;
}

.hexagram-line.old-yin {
    background: #fa8c16;
}

.hexagram-info {
    text-align: center;
}

.hexagram-symbol {
    font-size: 3rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.hexagram-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hexagram-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 5px;
}

.hexagram-parts {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #64748b;
}

.hexagram-part {
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.hexagram-name {
    font-size: 1.1rem;
    color: #666666;
}

/* 时间起卦样式 */
.time-divination-section {
    background: #f6ffed;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    border: 1px solid #b7eb8f;
}

.time-settings {
    text-align: center;
}

.time-settings h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #52c41a;
    margin-bottom: 5px;
}

.time-settings p {
    color: #666666;
    font-size: 14px;
    margin-bottom: 15px;
}

.current-time {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #b7eb8f;
    display: inline-block;
    margin-top: 10px;
}

/* 数字起卦样式 */
.number-divination-section {
    background: #f0f9ff;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    border: 1px solid #87e8de;
}

.number-settings {
    text-align: center;
}

.number-settings h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #13c2c2;
    margin-bottom: 5px;
}

.number-settings p {
    color: #666666;
    font-size: 14px;
    margin-bottom: 15px;
}

.number-input {
    padding: 12px 20px;
    border: 2px solid #87e8de;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    width: 200px;
    background: white;
    transition: all 0.3s ease;
}

.number-input:focus {
    outline: none;
    border-color: #13c2c2;
    box-shadow: 0 0 0 3px rgba(19, 194, 194, 0.1);
}

/* 随机起卦样式 */
.random-divination-section {
    background: #fff2e8;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    border: 1px solid #ffd591;
}

.random-settings {
    text-align: center;
}

.random-settings h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fa8c16;
    margin-bottom: 5px;
}

.random-settings p {
    color: #666666;
    font-size: 14px;
    margin-bottom: 15px;
}

.random-btn {
    background: #fa8c16;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.random-btn:hover:not(:disabled) {
    background: #d46b08;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(250, 140, 22, 0.3);
}

.random-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 起卦按钮样式 */
.divination-actions {
    text-align: center;
    margin-top: 30px;
}

.start-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 50px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.start-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.start-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.loading-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 占卜结果样式 */
.divination-result {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid #f0f2f5;
}

.result-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f2f5;
}

.result-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.result-meta {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

/* 简洁的问题显示 */
.question-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 8px;
    border: 1px solid #0ea5e9;
    margin-bottom: 16px;
}

.question-icon {
    font-size: 16px;
    color: #0284c7;
}

.question-text {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    flex: 1;
}

/* 简洁的占卜信息 */
.divination-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.summary-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.summary-item.ganzhi-item {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
}

.summary-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.summary-text {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
}

.ganzhi-text {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    letter-spacing: 0.5px;
    color: #92400e;
    font-weight: 600;
}

/* 紧凑的手动起卦样式 */
.manual-compact {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e1e7ef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.manual-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.method-icon {
    font-size: 18px;
}

/* 紧凑的爻位设置网格 */
.yao-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.yao-compact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.yao-name {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.yao-type-buttons {
    display: flex;
    gap: 4px;
}

.yao-type-btn {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.yao-type-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.yao-type-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* 简化的卦象预览 */
.hexagram-mini-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 8px;
    border: 1px solid #0ea5e9;
}

.preview-lines {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.preview-line {
    height: 6px;
    width: 40px;
    background: #000;
    border-radius: 1px;
    position: relative;
}

.preview-line.yin-line {
    background: linear-gradient(to right, #000 47%, transparent 47%, transparent 53%, #000 53%);
}

.mini-moving {
    position: absolute;
    right: -12px;
    top: -2px;
    font-size: 10px;
    color: #d97706;
    font-weight: bold;
}

.preview-info {
    font-size: 14px;
    font-weight: 600;
    color: #0369a1;
    flex: 1;
}

/* 卦象展示样式 */
.hexagram-result {
    margin-bottom: 40px;
}

.hexagram-card {
    background: #fafbfc;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 1px solid #e8e8e8;
}

.hexagram-symbol {
    font-size: 4rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 10px;
    display: block;
}

.hexagram-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
}

.hexagram-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.hexagram-line {
    width: 80px;
    height: 6px;
    background: #333;
    position: relative;
    border-radius: 3px;
}

.hexagram-line.young-yang {
    background: #333;
}

.hexagram-line.old-yang {
    background: #ff4d4f;
    box-shadow: 0 0 10px rgba(255, 77, 79, 0.3);
}

.hexagram-line.young-yin {
    background: #333;
}

.hexagram-line.young-yin::before,
.hexagram-line.old-yin::before {
    content: '';
    position: absolute;
    left: 20px;
    right: 20px;
    top: -3px;
    height: 12px;
    background: white;
    border: 2px solid #333;
    border-radius: 6px;
}

.hexagram-line.old-yin {
    background: #fa8c16;
    box-shadow: 0 0 10px rgba(250, 140, 22, 0.3);
}

.line-label {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #666666;
    font-weight: 500;
}

/* 世应爻信息样式 */
.shiying-info {
    margin-bottom: 30px;
}

.shiying-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.shiying-label {
    font-weight: 600;
    color: #666666;
    min-width: 60px;
}

.shiying-value {
    font-weight: 600;
    color: #1a1a1a;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

/* 六亲和六神信息样式 */
.liuqin-info,
.liushen-info {
    margin-bottom: 30px;
}

.liuqin-info h3,
.liushen-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-align: center;
}

.liuqin-grid,
.liushen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.liuqin-item,
.liushen-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.liuqin-position,
.liushen-position {
    font-weight: 500;
    color: #666666;
}

.liuqin-relation,
.liushen-name {
    font-weight: 600;
    color: #1a1a1a;
}

.liuqin-wuxing {
    font-size: 12px;
    color: #999999;
}

/* AI分析结果样式 */
.ai-analysis {
    background: #f8fbfc;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e8e8e8;
}

.ai-analysis h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 25px;
    text-align: center;
}

.analysis-content {
    display: grid;
    gap: 25px;
}

.analysis-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e8e8e8;
}

.analysis-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.analysis-item p {
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

/* 特色功能介绍样式 */
.features-section {
    margin-bottom: 50px;
}

.features-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid #f0f2f5;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

/* 常见问题样式 */
.faq-section {
    margin-bottom: 50px;
}

.faq-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 40px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 25px;
}

.faq-item {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
 
}

.faq-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.faq-item p {
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

/* 免责声明样式 */
.disclaimer {
    text-align: center;
    color: #999999;
    font-size: 14px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 40px;
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
    .liuyao-container {
        padding: 15px;
    }

    .liuyao-header {
        padding: 30px 20px;
        margin-bottom: 30px;
    }

    .liuyao-title {
        font-size: 2rem;
    }

    .header-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .decision-form {
        padding: 25px 20px;
    }

    .method-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .yao-controls {
        flex-wrap: wrap;
    }

    .yao-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .result-meta {
        flex-direction: column;
        gap: 10px;
    }

    .liuqin-grid,
    .liushen-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .faq-list {
        padding: 0 15px;
    }

    .faq-item {
        padding: 20px;
    }
}

/* AI分析结果样式 */
.ai-analysis {
    margin: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 30px;
    color: white;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.ai-analysis h3 {
    margin: 0 0 25px 0;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.analysis-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.analysis-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.analysis-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.analysis-item h4 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.analysis-item p {
    margin: 0;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .ai-analysis {
        margin: 30px 0;
        padding: 25px 20px;
    }

    .ai-analysis h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .analysis-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .analysis-item {
        padding: 20px;
    }

    .analysis-item h4 {
        font-size: 1.1rem;
    }
}

/* 六爻排盘紧凑布局样式 */
.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.block {
    display: block;
}

.p-3 {
    padding: 0.75rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.hover\:bg-gray-100:hover {
    background-color: #f3f4f6;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-200 {
    transition-duration: 200ms;
}

.no-underline {
    text-decoration: none;
}

.text-inherit {
    color: inherit;
}

.text-center {
    text-align: center;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.font-medium {
    font-weight: 500;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-1 {
    gap: 0.25rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-gray-800 {
    color: #1f2937;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-600 {
    color: #4b5563;
}

.text-amber-600 {
    color: #d97706;
}

.font-bold {
    font-weight: 700;
}

.h-\[24px\] {
    height: 1.5rem;
}

.mb-\[1px\] {
    margin-bottom: 1px;
}

.w-36 {
    width: 9rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.p-4 {
    padding: 1rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.hover\:bg-gray-200:hover {
    background-color: #e5e7eb;
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.w-full {
    width: 100%;
}

.h-2\.5 {
    height: 0.625rem;
}

.w-\[47\%\] {
    width: 47%;
}

.bg-black {
    background-color: #000000;
}

.rounded-sm {
    border-radius: 0.125rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.pt-4 {
    padding-top: 1rem;
}

.flex-col {
    flex-direction: column;
}

/* 爻象样式 */
.gua-cell .young-yang::before {
    content: "──";
}

.gua-cell .old-yang::before {
    content: "──";
}

.gua-cell .young-yin::before {
    content: "-- --";
}

.gua-cell .old-yin::before {
    content: "-- --";
}

.shi-indicator, .ying-indicator {
    position: absolute;
    top: -8px;
    font-size: 10px;
    font-weight: bold;
    color: #e53e3e;
}

.shi-indicator {
    left: -15px;
}

.ying-indicator {
    right: -15px;
}

.moving-indicator {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #d69e2e;
    font-weight: bold;
}



/* 移动端适配 */
@media (max-width: 768px) {
    .liuyao-pai-pan {
        padding: 15px;
    }

    .result-meta {
        gap: 12px;
    }

    .question-summary {
        padding: 10px 12px;
    }

    .question-text {
        font-size: 14px;
    }

    .divination-summary {
        flex-direction: column;
        gap: 8px;
    }

    .summary-item {
        padding: 6px 10px;
    }

    .summary-text {
        font-size: 12px;
    }

    .manual-compact {
        padding: 12px;
    }

    .manual-title {
        font-size: 15px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .yao-compact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .yao-compact-item {
        padding: 6px 8px;
        flex-direction: column;
        gap: 6px;
        align-items: center;
    }

    .yao-name {
        font-size: 13px;
    }

    .yao-type-buttons {
        gap: 2px;
    }

    .yao-type-btn {
        padding: 3px 6px;
        font-size: 11px;
    }

    .hexagram-mini-preview {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .preview-lines {
        order: 2;
    }

    .preview-info {
        order: 1;
        font-size: 13px;
    }

    .hexagram-title {
        font-size: 1.3rem;
        padding: 15px;
        margin-bottom: 15px;
    }

    .space-y-3 > * + * {
        margin-top: 0.5rem;
    }

    .p-3 {
        padding: 0.5rem;
    }

    .flex.items-start.gap-2 {
        flex-direction: column;
        gap: 1rem;
    }

    .w-36.mx-auto {
        width: 100%;
        max-width: 280px;
    }

    .p-4 {
        padding: 0.75rem;
    }

    .gap-1 {
        gap: 0.25rem;
    }

    .text-xs {
        font-size: 0.7rem;
    }

    .h-24px {
        height: 1.5rem;
    }

    .h-2\.5 {
        height: 0.5rem;
    }

.pt-4 {
    padding-top: 0.5rem;
}

/* 六爻排盘表格样式 */
.hexagram-table-container {
    margin: 2rem 0 !important;
    overflow-x: auto !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #e1e7ef !important;
    position: relative !important;
}

.hexagram-table-container::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%) !important;
    border-radius: 16px 16px 0 0 !important;
}

.hexagram-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: transparent !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: none !important;
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Noto Sans CJK', sans-serif !important;
}

.table-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 16px 12px !important;
    text-align: center !important;
    letter-spacing: 0.5px !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2) !important;
    height: 56px !important;
    position: relative !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.hexagram-row {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.hexagram-row:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    transform: translateX(2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.1);
}

.hexagram-row:nth-child(even) {
    background: linear-gradient(135deg, #fafbfc 0%, #f1f5f9 100%);
}

.hexagram-row:nth-child(even):hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}


