/* 全局样式 */
:root {
    --primary-color: #6b46c1;
    --secondary-color: #434190;
    --accent-color: #805ad5;
    --text-color: #2d3748;
    --light-text: #718096;
    --background: #f7fafc;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition-base: all 0.3s ease;
}

body {
    background: var(--background);
    color: var(--text-color);
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
}

/* 导航栏样式 */
.f-navbar {
    background: var(--gradient-primary);
    padding: 1rem 2rem;
    box-shadow: var(--shadow-sm);
}

.f-navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, #fff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--shadow-sm);
}

/* 主容器样式 */
.fortune-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

/* 卡片基础样式 */
.f-card {
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    background: white;
    overflow: hidden;
    transition: var(--transition-base);
    margin-bottom: 4rem;
}

.f-card:hover {
    transform: translateY(-5px);
}

.f-card-header {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.f-card-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
}

.f-card-body {
    padding: 2rem;
}

/* 表单样式 */
.f-form-item {
    margin-bottom: 1.5rem;
}

.f-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.f-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
    box-sizing: border-box;
    transition: var(--transition-base);
    background: linear-gradient(120deg, #ffffff 0%, #f8f9fa 100%);
}

.f-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.2);
    outline: none;
    background: linear-gradient(120deg, #ffffff 0%, #e9ecef 100%);
    transform: translateY(-1px);
}

.f-textarea:not(:placeholder-shown) {
    animation: inputGlow 3s infinite;
}

/* 按钮样式 */
.button-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

.f-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--shadow-sm);
}

.f-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.f-btn-primary {
    background: var(--primary-color);
    color: white;
}

.f-btn-primary:hover {
    background: var(--secondary-color);
}

.f-btn-secondary {
    background: #6c757d;
    color: white;
}

.f-btn-secondary:hover {
    background: #5a6268;
}

.f-btn-primary {
    width: 100%;
    max-width: 300px;
    min-width: 250px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
    animation: buttonPulse 2s infinite;
}

.f-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.f-btn-primary:active {
    transform: translateY(1px);
}

.f-btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(45deg);
    transition: var(--transition-base);
    opacity: 0;
}

.f-btn-primary:hover::before {
    opacity: 1;
    animation: shimmer 1.5s infinite;
}

/* 紧凑型按钮样式 */
.btn-compact {
    padding: 8px 16px;
    min-width: 120px;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.f-card-footer .d-flex {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
}

/* 传统占卜方法区域 */
.divination-methods {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 4rem 0;
    background: var(--gradient-primary);
    overflow: hidden;
}

.divination-methods .section-title {
    color: white;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 轮播容器 */
.divination-swiper {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    height: 420px;
}

/* 轮播卡片 */
.swiper-slide {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.divination-item {
    background: rgba(255, 255, 255, 0.98);
    padding: 3.5rem 4rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4rem;
    height: 100%;
    width: 100%;
    position: relative;
}

.divination-icon {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    padding: 35px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.divination-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.divination-item-content {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.divination-item h3 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: bold;
    line-height: 1.2;
}

.divination-item p {
    color: var(--text-color);
    font-size: 1.4rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

.chinese-symbol {
    position: absolute;
    right: 4rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    opacity: 0.15;
    color: var(--primary-color);
}

/* 轮播导航按钮 */
.swiper-button-next,
.swiper-button-prev {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.swiper-button-next:hover:after,
.swiper-button-prev:hover:after {
    color: white;
}

/* 轮播分页器 */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 6px;
    transition: var(--transition-base);
}

.swiper-pagination-bullet-active {
    background: white;
    transform: scale(1.2);
}

/* 动画效果 */
@keyframes inputGlow {
    0% { box-shadow: 0 0 5px rgba(0, 123, 255, 0.2); }
    50% { box-shadow: 0 0 15px rgba(0, 123, 255, 0.4); }
    100% { box-shadow: 0 0 5px rgba(0, 123, 255, 0.2); }
}

@keyframes shimmer {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes buttonPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

/* 响应式布局 */
@media (min-width: 768px) {
    .button-container {
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 1440px) {
    .divination-swiper {
        width: 95%;
    }
    
    .divination-item {
        padding: 3rem 3.5rem;
        gap: 3rem;
    }
    
    .divination-icon {
        width: 160px;
        height: 160px;
    }
    
    .divination-item h3 {
        font-size: 2.4rem;
    }
}

@media (max-width: 992px) {
    .divination-swiper {
        height: 380px;
    }
    
    .divination-icon {
        width: 140px;
        height: 140px;
        padding: 25px;
    }
    
    .divination-item {
        padding: 2.5rem 3rem;
        gap: 3rem;
    }
    
    .chinese-symbol {
        font-size: 3.5rem;
        right: 3rem;
    }
}

@media (max-width: 768px) {
    .fortune-container {
        padding: 15px;
    }

    .divination-methods {
        padding: 3rem 0;
    }
    
    .divination-methods .section-title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
    
    .divination-swiper {
        width: 95%;
        height: auto;
        min-height: 420px;
    }
    
    .divination-item {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
        text-align: center;
    }
    
    .divination-item-content {
        text-align: center;
    }
    
    .divination-icon {
        width: 120px;
        height: 120px;
        padding: 20px;
    }
    
    .divination-item h3 {
        font-size: 2rem;
    }
    
    .divination-item p {
        font-size: 1.2rem;
    }
    
    .chinese-symbol {
        position: static;
        transform: none;
        margin-top: 1rem;
        font-size: 3rem;
        opacity: 0.2;
    }
}

/* 示例问题区域 */
.example-questions {
    margin-top: 1.5rem;
}

.example-questions-label {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.example-questions-label i {
    color: var(--primary-color);
}

/* 示例问题标签样式 */
.question-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.question-tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f5f5f5;
    border-radius: 16px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.question-tag:hover {
    background-color: #e0e0e0;
    color: #333;
}

/* 按钮和说明文字布局 */
.action-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.service-note {
    font-size: 13px;
    color: #666;
    flex: 1;
    min-width: 0; /* 防止文字溢出 */
    line-height: 1.4;
}

.service-note i {
    margin-right: 4px;
    color: #888;
}

.submit-button {
    white-space: nowrap;
    padding: 8px 24px;
    min-width: 200px;
    max-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 40px;
    position: relative;
    font-weight: 500;
}

.submit-button i {
    font-size: 16px;
    display: inline-flex;
    align-items: center;
}

.price-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 24px;
    margin-left: 10px;
    padding: 0 6px;
    font-size: 14px;
    font-weight: normal;
    border-radius: 4px;
}

.price-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: inherit;
}

/* 特征部分 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* 改为固定的三列 */
    gap: 2rem;
    padding: 2rem 0;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-base);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition-base);
}

.feature-item:hover i {
    transform: scale(1.1);
}

.feature-item h3 {
    color: var(--text-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-item p {
    color: var(--light-text);
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;  /* 在移动端改为单列 */
        gap: 1.5rem;
        padding: 1.5rem 0;
    }

    .feature-item {
        padding: 1.5rem;
    }

    .question-tags {
        gap: 0.5rem;
    }

    .question-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* 客户评价区域 */
.testimonials-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f6f7fb 0%, #f0f1f7 100%);
}

.testimonials-section .section-title {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: bold;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-item {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    display: flex;
    gap: 1.5rem;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    flex: 1;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.testimonial-author {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.testimonial-date {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-left: 1rem;
}

.testimonial-rating {
    color: #ffd700;
    font-size: 1rem;
}

/* 结果页面按钮样式 */
.result-actions {
    display: flex;
    gap: 15px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    justify-content: center;
}

.result-actions .f-button {
    padding: 8px 20px;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.result-actions .f-button i {
    font-size: 16px;
}

.result-actions .share-button {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.result-actions .share-button:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.result-actions .save-button {
    background-color: #e9ecef;
    color: #495057;
    border: 1px solid #ced4da;
}

.result-actions .save-button:hover {
    background-color: #dee2e6;
    border-color: #adb5bd;
}

/* 分享弹窗 */
.share-popup-overlay,
.share-popup {
    display: none;  /* 默认隐藏 */
}

.share-popup-overlay.active,
.share-popup.active {
    display: block;
}

.share-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.share-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    width: 90%;
    max-width: 500px;
}

.share-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.share-popup-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.share-popup-close {
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    transition: var(--transition-base);
}

.share-popup-close:hover {
    color: var(--text-color);
}

.share-url-container {
    display: flex;
    gap: 0.5rem;
}

.share-url-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    background: #f8f9fa;
}

.copy-url-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0 1.2rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.copy-url-btn:hover {
    background: var(--secondary-color);
}

@media (max-width: 768px) {
    .share-popup {
        width: 95%;
        padding: 1.5rem;
    }
}

/* 模态框样式 */
.f-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}

.f-modal-dialog {
    position: relative;
    width: 90%;
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease-out;
}

.f-modal.show .f-modal-dialog {
    transform: translateY(0);
}

.f-modal-content {
    position: relative;
    padding: 1rem;
}

.f-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.f-modal-title {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.f-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--light-text);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition-base);
}

.f-modal-close:hover {
    color: var(--text-color);
}

.f-modal-body {
    padding: 1rem;
}

/* 页脚 */
.footer {
    background: var(--gradient-primary);
    color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer p {
    margin: 0.5rem 0;
}

.acknowledgment {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 3rem 0;
    }

    .testimonials-section .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .testimonial-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .result-actions {
        flex-direction: column;
        align-items: center;
    }

    .result-actions .f-btn-primary {
        width: 100%;
        max-width: none;
    }
}

/* FAQ 区域样式 */
.faq-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.05) 0%, rgba(67, 65, 144, 0.05) 100%);
}

.faq-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2rem;
}

.faq-title i {
    margin: 0 0.5rem;
    color: var(--accent-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-base);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
}

.faq-answer.active {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    margin: 0;
    color: var(--light-text);
    line-height: 1.6;
}

/* 卦象显示相关的样式 */
.hexagram-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px auto;
    max-width: 800px;
    padding: 0 20px;
}

.hexagram-result {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 280px;
    border: 1px solid rgba(0,0,0,0.1);
}

.hexagram-result .title {
    font-size: 1.8em;
    color: #000;
    margin-bottom: 25px;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}

.lines-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 20px 0;
    align-items: center;
}

.lines-container .line {
    font-size: 36px;
    line-height: 0.3;
    color: #000;
    font-weight: 900;
    letter-spacing: 0;
    white-space: pre;
    text-shadow: 0 0 1px rgba(0,0,0,0.3);
    font-family: "Arial Black", "Microsoft YaHei", sans-serif;
    transform: scale(1.2, 1);
}

.yao-names {
    text-align: left;
    margin-top: 25px;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 20px;
}

.yao-names .yao-name {
    margin: 8px 0;
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .hexagram-container {
        flex-direction: column;
        align-items: center;
    }
    
    .hexagram-result {
        margin-bottom: 20px;
    }
}

/* 卦象显示样式 */
.hexagram-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 800px;
}

.hexagram-section {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 0.8rem;
    min-width: 200px;
    transition: transform 0.3s ease;
}

.hexagram-section:hover {
    transform: translateY(-5px);
}

.hexagram-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.hexagram-symbol {
    font-size: 4rem;
    line-height: 1.2;
    color: #34495e;
    margin: 1rem 0;
}

.hexagram-description {
    font-size: 1rem;
    color: #7f8c8d;
    margin-top: 1rem;
    line-height: 1.5;
}

.hexagram-arrow {
    font-size: 2rem;
    color: #95a5a6;
    display: flex;
    align-items: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* 适配移动设备 */
@media (max-width: 768px) {
    .hexagram-display {
        flex-direction: column;
        padding: 1rem;
    }
    
    .hexagram-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
    
    .hexagram-section {
        width: 100%;
        min-width: unset;
    }
}

/* 按钮样式 */
.submit-button {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    min-width: 200px;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-button .price-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.service-note {
    color: var(--light-text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.service-note i {
    color: var(--accent-color);
}

/* 卦象显示相关的样式 */
.hexagram-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px auto;
    max-width: 800px;
    padding: 0 20px;
}

.hexagram-result {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 280px;
    border: 1px solid rgba(0,0,0,0.1);
}

.hexagram-result .title {
    font-size: 1.8em;
    color: #000;
    margin-bottom: 25px;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}

.lines-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 20px 0;
    align-items: center;
}

.lines-container .line {
    font-size: 36px;
    line-height: 0.3;
    color: #000;
    font-weight: 900;
    letter-spacing: 0;
    white-space: pre;
    text-shadow: 0 0 1px rgba(0,0,0,0.3);
    font-family: "Arial Black", "Microsoft YaHei", sans-serif;
    transform: scale(1.2, 1);
}

.yao-names {
    text-align: left;
    margin-top: 25px;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 20px;
}

.yao-names .yao-name {
    margin: 8px 0;
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .hexagram-container {
        flex-direction: column;
        align-items: center;
    }
    
    .hexagram-result {
        margin-bottom: 20px;
    }
}

/* 卦象显示样式 */
.hexagram-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 800px;
}

.hexagram-section {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 0.8rem;
    min-width: 200px;
    transition: transform 0.3s ease;
}

.hexagram-section:hover {
    transform: translateY(-5px);
}

.hexagram-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.hexagram-symbol {
    font-size: 4rem;
    line-height: 1.2;
    color: #34495e;
    margin: 1rem 0;
}

.hexagram-description {
    font-size: 1rem;
    color: #7f8c8d;
    margin-top: 1rem;
    line-height: 1.5;
}

.hexagram-arrow {
    font-size: 2rem;
    color: #95a5a6;
    display: flex;
    align-items: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* 适配移动设备 */
@media (max-width: 768px) {
    .hexagram-display {
        flex-direction: column;
        padding: 1rem;
    }
    
    .hexagram-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
    
    .hexagram-section {
        width: 100%;
        min-width: unset;
    }
}

/* 结果页面样式 */
.result-section {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin-bottom: 2rem;
}

.result-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: bold;
}

.result-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.result-item h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.result-item h3 i {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.result-content {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.1rem;
    white-space: pre-line;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .result-section {
        padding: 1.5rem;
    }
    
    .result-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .result-item h3 {
        font-size: 1.2rem;
    }
    
    .result-content {
        font-size: 1rem;
    }
}

/* 卦象显示相关的样式 */
.hexagram-box {
    text-align: center;
}

.hexagram-box h4 {
    margin-bottom: 10px;
    color: #333;
}

.hexagram-arrow {
    font-size: 24px;
    color: #666;
}

.hexagram-name {
    margin-top: 10px;
    font-weight: bold;
    color: #333;
}

.hexagram-line {
    height: 20px;
    margin: 5px 0;
    width: 60px;
}

.yang-line {
    height: 8px;
    background-color: #333;
    margin: 6px 0;
}

.yin-line {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.yin-line div {
    height: 8px;
    background-color: #333;
    width: 45%;
    margin: 6px 0;
}

.changing-lines {
    text-align: center;
    color: #666;
    margin: 10px 0;
}

.interpretation {
    margin-top: 20px;
    line-height: 1.6;
    color: #333;
}

.interpretation p {
    margin-bottom: 15px;
}

/* 动画效果 */
.hexagram-line {
    transition: opacity 0.3s ease-in-out;
}

.hexagram-line:hover {
    opacity: 0.7;
}

.hexagram-box {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
