/* 六十四卦样式文件 */

/* 整体页面背景 */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* 容器样式 */
.hexagrams-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 0px;
    background: transparent;
}

/* 头部样式 */
.hexagrams-header {
    text-align: center;
    margin-bottom: 45px;
    padding: 50px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.hexagrams-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="50" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="30" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hexagrams-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 3px 8px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.hexagrams-subtitle {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.hexagrams-stats {
    display: flex;
    justify-content: center;
    gap: 25px;
    position: relative;
    z-index: 1;
}

.stat-item {

    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);

    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
}

/* 搜索区域 */
.search-section {
    margin-bottom: 30px;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto 20px;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 20px;
    border: 2px solid #e1e5e9;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-tab:hover,
.filter-tab.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

/* 卦象网格 */
.hexagrams-content {
    margin-top: 30px;
}

.difficulty-section {
    margin-bottom: 40px;
}

.difficulty-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.hexagrams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* 卦象卡片 */
.hexagram-card {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hexagram-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.hexagram-symbol {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 15px;
    color: #667eea;
}

.hexagram-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.hexagram-pinyin {
    margin: 0 0 5px 0;
    color: #666;
    font-size: 0.9rem;
}

.hexagram-english {
    margin: 0 0 10px 0;
    color: #888;
    font-size: 0.8rem;
    font-style: italic;
}

.hexagram-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.tag {
    background: #f5f7fa;
    color: #666;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.tag.difficulty {
    background: #667eea;
    color: white;
}

.hexagram-sequence {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #333;
}

.empty-state p {
    margin: 0;
}

/* 详情页面样式 */
.hexagram-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* 面包屑 */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 卦象头部 */
.hexagram-header {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hexagram-main-info {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.hexagram-symbol-large {
    font-size: 5rem;
    color: #667eea;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hexagram-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #333;
}

.hexagram-subtitle {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 1.1rem;
}

.hexagram-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.meta-item {
    background: #f5f7fa;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #666;
}

.meta-item.difficulty {
    background: #667eea;
    color: white;
}

/* 导航按钮 */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #f5f7fa;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #667eea;
    color: white;
}

.nav-btn.list-btn {
    background: #667eea;
    color: white;
}

.nav-symbol {
    font-size: 1.5rem;
}

/* 内容区域 */
.hexagram-content {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.content-section {
    border-bottom: 1px solid #e1e5e9;
}

.content-section:last-child {
    border-bottom: none;
}

.section-title {
    background: #f8f9fa;
    padding: 20px 30px;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e1e5e9;
}

.section-content {
    padding: 30px;
}

/* 卦辞样式 */
.guaci-text {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.guaci-meaning {
    background: #f0f7ff;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #4a90e2;
}

/* 彖辞和象辞 */
.tuanci-text,
.xiangci-text {
    line-height: 1.7;
    font-size: 1rem;
}

/* 六爻详解 */
.lines-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.line-item {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
}

.line-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.line-type {
    font-weight: 600;
    color: #667eea;
    font-size: 1.1rem;
}

.line-position {
    color: #666;
    font-size: 0.9rem;
}

.line-content {
    padding: 20px;
}

.line-text {
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
    font-size: 1rem;
}

.line-interpretation {
    color: #666;
    line-height: 1.6;
}

/* 启示和应用 */
.enlightenment-text,
.modern-application-text {
    line-height: 1.7;
    white-space: pre-line;
}

/* 相关卦象 */
.related-hexagrams {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.related-hexagram {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #f5f7fa;
    border-radius: 20px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
}

.related-hexagram:hover {
    background: #667eea;
    color: white;
}

.related-symbol {
    font-size: 1.2rem;
}

.related-sequence {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* 关键词 */
.keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-tag {
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
}

/* 底部导航 */
.bottom-navigation {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #e1e5e9;
}

.bottom-nav-btn {
    padding: 12px 25px;
    background: #f5f7fa;
    color: #666;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.bottom-nav-btn:hover,
.bottom-nav-btn.primary {
    background: #667eea;
    color: white;
}

.bottom-nav-btn.primary {
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hexagrams-container,
    .hexagram-detail-container {
        padding: 15px;
    }

    .hexagrams-title {
        font-size: 2rem;
    }

    .hexagrams-grid {
        grid-template-columns: 1fr;
    }

    .hexagram-main-info {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .hexagram-symbol-large {
        font-size: 4rem;
    }

    .hexagram-title {
        font-size: 1.5rem;
    }

    .navigation-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .nav-btn {
        width: 100%;
        justify-content: center;
    }

    .bottom-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .bottom-nav-btn {
        width: 100%;
        text-align: center;
    }
}

/* 易经64卦介绍区域 */
.hexagrams-intro-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

.hexagrams-intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23e0e7ff" opacity="0.3"/></svg>');
    background-size: 50px 50px;
    opacity: 0.1;
    z-index: 0;
}

.hexagrams-intro-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hexagrams-intro-header {
    text-align: center;
    margin-bottom: 60px;
}

.hexagrams-intro-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hexagrams-intro-subtitle {
    font-size: 1.2rem;
    color: #4a5568;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.hexagrams-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-item {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 10px;
}

.feature-content p {
    color: #4a5568;
    line-height: 1.6;
}

.hexagrams-advantages,
.hexagrams-faq {
    margin-bottom: 60px;
}

.hexagrams-advantages h3,
.hexagrams-faq h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a202c;
    text-align: center;
    margin-bottom: 40px;
}

.advantages-list,
.faq-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.advantage-item,
.faq-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.05);
}

.advantage-item h4,
.faq-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 15px;
}

.advantage-item p,
.faq-item p {
    color: #4a5568;
    line-height: 1.6;
}

.hexagrams-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hexagrams-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="0.5" fill="%23ffffff" opacity="0.1"/></svg>');
    background-size: 30px 30px;
}

.hexagrams-cta .cta-content,
.hexagrams-cta .cta-tagline {
    position: relative;
    z-index: 1;
}

.hexagrams-cta h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hexagrams-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-btn-primary {
    background: white;
    color: #667eea;
    border: 2px solid white;
}

.cta-btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.cta-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.cta-tagline p {
    font-size: 1.1rem;
    opacity: 0.8;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hexagrams-intro-section {
        padding: 60px 0;
    }

    .hexagrams-intro-title {
        font-size: 2rem;
    }

    .hexagrams-intro-subtitle {
        font-size: 1rem;
    }

    .hexagrams-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-item {
        padding: 30px 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .advantages-list,
    .faq-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hexagrams-cta {
        padding: 40px 20px;
        margin: 0 20px;
    }

    .hexagrams-cta h3 {
        font-size: 1.6rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* 八卦页面样式 */
.bagua-diagram-section {
    margin-bottom: 60px;
}

.bagua-diagram-section .section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 20px;
}

.bagua-intro-text {
    text-align: center;
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.bagua-diagram-wrapper {
    margin-bottom: 60px;
}

.bagua-diagram-header {
    text-align: center;
    margin-bottom: 30px;
}

.bagua-diagram-header h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
}

.bagua-diagram-header p {
    color: #4a5568;
    font-size: 1rem;
    margin: 0;
}

.bagua-diagram {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.bagua-circle {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 3px solid #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bagua-position {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    border: 2px solid;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bagua-position[data-color] {
    border-color: attr(data-color);
}

.bagua-position .bagua-symbol[data-color] {
    color: attr(data-color);
}

.bagua-position:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.bagua-symbol {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.bagua-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.bagua-info {
    font-size: 0.7rem;
    color: #666;
    text-align: center;
    line-height: 1.2;
}

/* 八卦位置定位 */
.bagua-northwest { top: 20px; left: 20px; }
.bagua-north { top: 20px; left: 50%; transform: translateX(-50%); }
.bagua-northeast { top: 20px; right: 20px; }
.bagua-east { top: 50%; right: 20px; transform: translateY(-50%); }
.bagua-southeast { bottom: 20px; right: 20px; }
.bagua-south { bottom: 20px; left: 50%; transform: translateX(-50%); }
.bagua-southwest { bottom: 20px; left: 20px; }
.bagua-west { top: 50%; left: 20px; transform: translateY(-50%); }

.bagua-details-section {
    margin-bottom: 60px;
}

.bagua-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.bagua-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.bagua-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.bagua-card-header {
    padding: 30px 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
}

.bagua-card-header[data-bgcolor] {
    background: linear-gradient(135deg, attr(data-bgcolor) 0%, attr(data-bgcolor)aa 100%);
}

.bagua-symbol-large {
    font-size: 4rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.bagua-title h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.bagua-title p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.bagua-card-content {
    padding: 30px;
}

.bagua-properties {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.property-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.property-label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
}

.property-value {
    font-weight: 500;
    color: #2d3748;
    background: #f7fafc;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.property-value.wuxing-金 { background: linear-gradient(135deg, #FFD700, #FFA500); color: white; }
.property-value.wuxing-木 { background: linear-gradient(135deg, #228B22, #32CD32); color: white; }
.property-value.wuxing-水 { background: linear-gradient(135deg, #1E90FF, #4169E1); color: white; }
.property-value.wuxing-火 { background: linear-gradient(135deg, #FF4500, #FF6347); color: white; }
.property-value.wuxing-土 { background: linear-gradient(135deg, #8B4513, #A0522D); color: white; }

.bagua-description,
.bagua-modern-meaning {
    margin-bottom: 25px;
}

.bagua-description h4,
.bagua-modern-meaning h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 12px;
}

.bagua-description p,
.bagua-modern-meaning p {
    color: #4a5568;
    line-height: 1.6;
}

/* 八卦关系图 */
.bagua-relations-section {
    margin-bottom: 60px;
}

.relations-diagram {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.relations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.relation-item h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 15px;
    text-align: center;
}

.relation-item p {
    color: #4a5568;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1rem;
}

.relation-cycle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.cycle-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cycle-item.wood { background: linear-gradient(135deg, #228B22, #32CD32); }
.cycle-item.fire { background: linear-gradient(135deg, #FF4500, #FF6347); }
.cycle-item.earth { background: linear-gradient(135deg, #8B4513, #A0522D); }
.cycle-item.metal { background: linear-gradient(135deg, #FFD700, #FFA500); }
.cycle-item.water { background: linear-gradient(135deg, #1E90FF, #4169E1); }

.cycle-arrow {
    font-size: 1.5rem;
    color: #667eea;
    font-weight: bold;
}

/* 八卦应用 */
.bagua-applications-section {
    margin-bottom: 60px;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.application-item {
    background: white;
    padding: 30px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.application-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.application-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.application-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 12px;
}

.application-item p {
    color: #4a5568;
    line-height: 1.5;
}

/* 导航链接 */
.bagua-navigation {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
}

.nav-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-link {
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-link.primary {
    background: white;
    color: #667eea;
    border: 2px solid white;
}

.nav-link.primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.nav-link.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.nav-link.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 八卦页面响应式设计 */
@media (max-width: 768px) {
    .bagua-circle {
        width: 300px;
        height: 300px;
    }

    .bagua-position {
        width: 60px;
        height: 60px;
    }

    .bagua-symbol {
        font-size: 1.5rem;
    }

    .bagua-name {
        font-size: 0.8rem;
    }

    .bagua-info {
        font-size: 0.6rem;
    }

    .bagua-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bagua-card-header {
        padding: 20px 15px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .bagua-symbol-large {
        font-size: 3rem;
    }

    .bagua-title h3 {
        font-size: 1.5rem;
    }

    .bagua-properties {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .relations-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .relation-cycle {
        flex-direction: column;
        gap: 15px;
    }

    .cycle-arrow {
        transform: rotate(90deg);
    }

    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .nav-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* 纳干支页面样式 */
.nayin-intro-section {
    margin-bottom: 60px;
}

.nayin-intro-section .section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 30px;
}

.intro-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.intro-content > p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 40px;
}

.intro-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.intro-feature {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.intro-feature .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.intro-feature h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 10px;
}

.intro-feature p {
    color: #4a5568;
    line-height: 1.5;
}

/* 五行统计样式 */
.wuxing-stats-section {
    margin-bottom: 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-item {

    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 2px solid;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.stat-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
}

.stat-percentage {
    font-size: 0.9rem;
    color: #718096;
}

/* 纳音详细列表样式 */
.nayin-details-section {
    margin-bottom: 60px;
}

.nayin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.nayin-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.nayin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.nayin-card-header {
    padding: 30px 25px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nayin-name h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.nayin-tiangan {
    display: flex;
    gap: 8px;
}

.tiangan-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.nayin-wuxing {
    font-size: 1.8rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.nayin-card-content {
    padding: 30px 25px;
}

.nayin-characteristics,
.nayin-personality,
.nayin-career,
.nayin-health {
    margin-bottom: 20px;
}

.nayin-characteristics h4,
.nayin-personality h4,
.nayin-career h4,
.nayin-health h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nayin-characteristics h4::before { content: "✨"; }
.nayin-personality h4::before { content: "👤"; }
.nayin-career h4::before { content: "💼"; }
.nayin-health h4::before { content: "❤️"; }

.nayin-characteristics p,
.nayin-personality p,
.nayin-career p,
.nayin-health p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* 五行关系样式 */
.wuxing-relations-section {
    margin-bottom: 60px;
}

.relations-diagram {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.relations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.relation-item h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 15px;
    text-align: center;
}

.relation-item p {
    color: #4a5568;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1rem;
}

.relation-cycle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.cycle-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cycle-item.wood { background: linear-gradient(135deg, #228B22, #32CD32); }
.cycle-item.fire { background: linear-gradient(135deg, #FF4500, #FF6347); }
.cycle-item.earth { background: linear-gradient(135deg, #8B4513, #A0522D); }
.cycle-item.metal { background: linear-gradient(135deg, #FFD700, #FFA500); }
.cycle-item.water { background: linear-gradient(135deg, #1E90FF, #4169E1); }

.cycle-arrow {
    font-size: 1.5rem;
    color: #667eea;
    font-weight: bold;
}

.relation-desc {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    font-size: 0.9rem;
    color: #4a5568;
    text-align: center;
}

/* 应用指南样式 */
.application-guide-section {
    margin-bottom: 60px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.guide-item {
    background: white;
    padding: 30px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.guide-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.guide-item .guide-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.guide-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 12px;
}

.guide-item p {
    color: #4a5568;
    line-height: 1.5;
    margin: 0;
}

/* 导航链接样式 */
.navigation-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
}

.nav-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-link {
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-link.primary {
    background: white;
    color: #667eea;
    border: 2px solid white;
}

.nav-link.primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.nav-link.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.nav-link.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .intro-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .nayin-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nayin-card-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .nayin-name h3 {
        font-size: 1.4rem;
    }

    .nayin-wuxing {
        font-size: 1.4rem;
        padding: 6px 12px;
    }

    .relations-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .relation-cycle {
        flex-direction: column;
        gap: 15px;
    }

    .cycle-arrow {
        transform: rotate(90deg);
    }

    .guide-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .nav-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* 八卦区别说明样式 */
.bagua-difference-section {
    margin-top: 60px;
}

.difference-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.difference-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a202c;
    text-align: center;
    margin-bottom: 40px;
}

.difference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.difference-item {
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #e1e5e9;
    transition: all 0.3s ease;
}

.difference-item:hover {
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.1);
}

.difference-item h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a202c;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.difference-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.difference-point {
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.difference-point strong {
    color: #2d3748;
    font-weight: 600;
}

.difference-point:not(:last-child) {
    margin-bottom: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .bagua-intro-text {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .bagua-diagram-header h3 {
        font-size: 1.4rem;
    }

    .difference-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .difference-content {
        padding: 20px;
    }

    .difference-content h3 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .difference-item {
        padding: 20px;
    }

    .difference-item h4 {
        font-size: 1.2rem;
    }
}

/* 纳干支查询样式 */
.hexagram-query-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f2f5;
}

.query-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-group label {
    font-weight: 500;
    color: #1a1a1a;
    white-space: nowrap;
    font-size: 15px;
}

.layui-select {
    min-width: 220px;
    height: 42px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 15px;
    background: #fafbfc;
    transition: all 0.3s ease;
}

.layui-select:focus {
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

#query-btn {
    height: 42px;
    padding: 0 32px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

#query-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

/* 结果显示样式 */
.result-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f2f5;
}

.hexagram-info {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e8e8e8;
}

.hexagram-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
    margin-top: 20px;
}

.hexagram-symbol-large {
    font-size: 4.5rem;
    color: #262626;
    text-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hexagram-details h3 {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hexagram-details p {
    color: #666666;
    margin: 0;
    line-height: 1.7;
    font-size: 15px;
}

/* 纳干支样式 */
.na-gan-zhi-container {
    max-width: 900px;
    margin: 0 auto;
}

.na-gan-zhi-intro {
    text-align: center;
    color: #666666;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
}

.na-gan-zhi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.na-gan-zhi-item {
    background: #fafbfc;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.na-gan-zhi-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.na-gan-zhi-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #40a9ff;
}

.line-position {
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-size: 16px;
    display: block;
}

.ganzhi-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.tiangan, .dizhi {
    font-size: 1.8rem;
    font-weight: 600;
    color: #262626;
    padding: 8px 12px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    min-width: 50px;
}

.ganzhi-full {
    font-size: 1.4rem;
    color: #52c41a;
    font-weight: 600;
    margin-top: 8px;
    padding: 6px 12px;
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 6px;
    display: inline-block;
}

/* 纳干支规则说明样式 */
.nagan-rules-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f2f5;
}

.rules-content {
    max-width: 1000px;
    margin: 0 auto;
    margin-top: 20px;
}

.rule-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 35px;
}

.rule-example {
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f2f5 100%);
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rule-example::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.rule-example h4 {
    margin: 0 0 18px 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
}

.rule-example p {
    margin: 6px 0;
    line-height: 1.7;
    color: #666666;
    font-size: 15px;
}

.rule-description {
    background: #fafbfc;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    position: relative;
}

.rule-description::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px 0 0 2px;
}

.rule-description p {
    margin: 0 0 12px 0;
    line-height: 1.7;
    color: #595959;
    font-size: 15px;
    padding-left: 15px;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .hexagram-query-section,
    .result-section,
    .nagan-rules-section {
        padding: 20px;
    }

    .query-form {
        flex-direction: column;
        gap: 15px;
    }

    .form-group {
        width: 100%;
    }

    .layui-select {
        width: 100%;
        min-width: auto;
    }

    .hexagram-display {
        flex-direction: column;
        gap: 20px;
    }

    .hexagram-symbol-large {
        font-size: 3rem;
    }

    .hexagram-details h3 {
        font-size: 1.5rem;
    }

    .na-gan-zhi-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .na-gan-zhi-item {
        padding: 12px;
    }

    .tiangan, .dizhi {
        font-size: 1.3rem;
    }

    .ganzhi-full {
        font-size: 1.1rem;
    }

    .rule-examples {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 快速查询样式 */
.quick-query-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f2f5;
}

.quick-query-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 18px;
    max-width: 650px;
    margin: 0 auto;
    margin-top: 20px;
}

.quick-query-btn {
    background: #fafbfc;
    color: #262626;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 18px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.quick-query-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.quick-query-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #40a9ff;
    background: #ffffff;
}

.quick-query-btn:hover::before {
    transform: scaleX(1);
}

.quick-symbol {
    font-size: 2.2rem;
    margin-bottom: 6px;
    color: #595959;
    transition: color 0.3s ease;
}

.quick-query-btn:hover .quick-symbol {
    color: #667eea;
}

.quick-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1a1a1a;
}

/* 查看详情样式 */
.view-detail-section {
    text-align: center;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #e8e8e8;
}





/* 六亲样式 */
.liu-qin-container {
    max-width: 900px;
    margin: 0 auto;
}

.liu-qin-intro {
    text-align: center;
    color: #666666;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

.liu-qin-info {
    background: #f8fbfc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e8e8e8;
}

.gua-wuxing-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
}

.gua-wuxing-info .label {
    color: #666666;
    font-weight: 500;
}

.gua-wuxing-info .value {
    color: #262626;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.liu-qin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 25px;
}

.liu-qin-item {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.liu-qin-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #52c41a 0%, #73d13d 100%);
}

.liu-qin-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: #52c41a;
}

.line-position {
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 12px;
    font-size: 16px;
}

.dizhi-info {
    margin-bottom: 12px;
}

.dizhi {
    font-size: 1.6rem;
    font-weight: 600;
    color: #262626;
    margin-right: 8px;
}

.wuxing {
    color: #666666;
    font-size: 14px;
}

.relation {
    margin-top: 8px;
}

.relation-label {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
    min-width: 50px;
}

/* 六亲关系颜色 */
.relation-label[data-relation="父母"] { background: #e6f7ff; color: #1890ff; border: 1px solid #91d5ff; }
.relation-label[data-relation="子孙"] { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.relation-label[data-relation="官鬼"] { background: #fff2e8; color: #fa8c16; border: 1px solid #ffd591; }
.relation-label[data-relation="妻财"] { background: #f9f0ff; color: #722ed1; border: 1px solid #d3adf7; }
.relation-label[data-relation="兄弟"] { background: #f0f9ff; color: #13c2c2; border: 1px solid #87e8de; }

.relation-label {
    background: #f5f5f5;
    color: #666666;
    border: 1px solid #d9d9d9;
}

.liu-qin-legend {
    background: #fafbfc;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.legend-item:last-child {
    border-bottom: none;
}

.relation-type {
    font-weight: 600;
    color: #262626;
    min-width: 50px;
}

.relation-desc {
    color: #666666;
    font-size: 14px;
    font-style: italic;
}

/* 响应式样式优化 */
@media (max-width: 768px) {
    .hexagram-query-section,
    .result-section,
    .nagan-rules-section,
    .quick-query-section {
        padding: 25px 20px;
        margin-bottom: 25px;
        border-radius: 12px;
    }

    .query-form {
        flex-direction: column;
        gap: 18px;
    }

    .form-group {
        width: 100%;
        justify-content: center;
    }

    .layui-select {
        width: 100%;
        min-width: auto;
        font-size: 16px; /* 防止iOS缩放 */
    }

    .hexagram-display {
        flex-direction: column;
        gap: 25px;
    }

    .hexagram-symbol-large {
        font-size: 3.5rem;
    }

    .hexagram-details h3 {
        font-size: 1.8rem;
    }

    .na-gan-zhi-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 16px;
    }

    .na-gan-zhi-item {
        padding: 18px;
    }

    .tiangan, .dizhi {
        font-size: 1.6rem;
        padding: 6px 10px;
    }

    .ganzhi-full {
        font-size: 1.3rem;
    }

    .quick-query-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 14px;
    }

    .quick-query-btn {
        padding: 16px 10px;
    }

    .quick-symbol {
        font-size: 1.8rem;
    }

    .quick-name {
        font-size: 1rem;
    }

    .rule-examples {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .rule-example,
    .rule-description {
        padding: 20px;
    }

    .liu-qin-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 14px;
    }

    .liu-qin-item {
        padding: 16px;
    }

    .dizhi {
        font-size: 1.4rem;
    }

    .relation-label {
        font-size: 1.1rem;
        padding: 5px 10px;
    }

    .liu-qin-legend {
        padding: 16px;
    }

    .legend-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* 六亲规则说明样式 */
.liu-qin-rules-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f2f5;
}

.liu-qin-principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.principle-item {
    background: #fafbfc;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.principle-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: #40a9ff;
}

.principle-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.principle-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.principle-item p {
    color: #666666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* 六亲关系颜色样式 */
.relation-label.parents {
    background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
    color: #1890ff;
    border: 1px solid #91d5ff;
}

.relation-label.children {
    background: linear-gradient(135deg, #f6ffed 0%, #d9f7be 100%);
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.relation-label.official {
    background: linear-gradient(135deg, #fff2e8 0%, #ffd591 100%);
    color: #fa8c16;
    border: 1px solid #ffd591;
}

.relation-label.wealth {
    background: linear-gradient(135deg, #f9f0ff 0%, #d3adf7 100%);
    color: #722ed1;
    border: 1px solid #d3adf7;
}

.relation-label.siblings {
    background: linear-gradient(135deg, #f0f9ff 0%, #87e8de 100%);
    color: #13c2c2;
    border: 1px solid #87e8de;
}

/* 图例样式优化 */
.legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.legend-item:last-child {
    border-bottom: none;
}

.relation-type {
    font-weight: 600;
    color: #1a1a1a;
    min-width: 50px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 14px;
}

.relation-type.parents { background: #e6f7ff; color: #1890ff; }
.relation-type.children { background: #f6ffed; color: #52c41a; }
.relation-type.official { background: #fff2e8; color: #fa8c16; }
.relation-type.wealth { background: #f9f0ff; color: #722ed1; }
.relation-type.siblings { background: #f0f9ff; color: #13c2c2; }

/* 六神样式 */
.liushen-rules-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f2f5;
}

.liushen-principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.principle-item {
    background: #fafbfc;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.principle-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: #40a9ff;
}

.principle-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.principle-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.principle-item p {
    color: #666666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.tiangan-rules {
    background: #f8fbfc;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 25px;
}

.tiangan-rules h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-align: center;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.rule-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.tiangan-group {
    font-weight: 600;
    color: #1a1a1a;
}

.shen-result {
    color: #52c41a;
    font-weight: 500;
}

/* 查询表单样式优化 */
.form-row {
    display: flex;
    gap: 24px;
    align-items: end;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

/* 六神结果样式 */
.liushen-result {
    margin-top: 35px;
}

.liushen-container {
    max-width: 900px;
    margin: 0 auto;
}

.liushen-intro {
    text-align: center;
    color: #666666;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
}

.liushen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.liushen-item {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.liushen-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #52c41a 0%, #73d13d 100%);
}

.liushen-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #52c41a;
}

.line-position {
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-size: 16px;
}

.shen-info {
    margin-bottom: 12px;
}

.shen-name {
    font-size: 1.6rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 8px;
    display: block;
}

.shen-meaning {
    color: #666666;
    font-size: 14px;
    line-height: 1.5;
}

/* 六神颜色样式 */
.shen-name.qinglong { color: #52c41a; }
.shen-name.zhuque { color: #fa8c16; }
.shen-name.gouchen { color: #faad14; }
.shen-name.tengshe { color: #f5222d; }
.shen-name.baihu { color: #722ed1; }
.shen-name.xuanwu { color: #13c2c2; }

/* 日期信息样式 */
.day-info {
    margin-top: 20px;
    text-align: center;
}

.day-label {
    font-weight: 500;
    color: #666666;
    margin-right: 10px;
}

.day-value {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 18px;
}

/* 常用日期样式 */
.common-dates-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f2f5;
}

.dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 800px;
    margin-top: 20px;
    margin: 0 auto;
}

.date-item {
    background: #fafbfc;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.date-name {
    font-weight: 500;
    color: #666666;
    margin-bottom: 10px;
    display: block;
}

.date-tiangan {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
}

.quick-tiangan {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.tiangan-btn {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    background: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #595959;
}

.tiangan-btn:hover,
.tiangan-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 六亲页面移动端样式 */
@media (max-width: 768px) {
    .liu-qin-rules-section {
        padding: 25px 20px;
    }

    .liu-qin-principles {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .principle-item {
        padding: 20px;
    }

    .principle-icon {
        font-size: 2rem;
    }

    .legend-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    /* 六神移动端样式 */
    .liushen-rules-section,
    .common-dates-section {
        padding: 25px 20px;
    }

    .liushen-principles {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .rules-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-row {
        flex-direction: column;
        gap: 18px;
    }

    .form-row .form-group {
        min-width: auto;
        width: 100%;
    }

    .liushen-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }

    .liushen-item {
        padding: 18px;
    }

    .shen-name {
        font-size: 1.4rem;
    }

    .dates-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }

    .quick-tiangan {
        gap: 6px;
    }

    .tiangan-btn {
        padding: 6px 10px;
        font-size: 14px;
    }

    /* 安世应移动端样式 */
    .shiying-rules-section,
    .common-methods-section {
        padding: 25px 20px;
    }

    .shiying-principles {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .methods-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .shiying-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .shiying-item {
        padding: 20px;
    }

    .methods-explanation {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .method-explanation {
        padding: 20px;
    }
}

/* 安世应样式 */
.shiying-rules-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f2f5;
}

.shiying-principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.casting-methods {
    background: #f8fbfc;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 25px;
}

.casting-methods h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-align: center;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.method-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.method-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
}

.method-desc {
    color: #666666;
    font-size: 14px;
}

/* 安世应结果样式 */
.shiying-result {
    margin-top: 35px;
}

.shiying-container {
    max-width: 800px;
    margin: 0 auto;
}

.shiying-intro {
    text-align: center;
    color: #666666;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.shiying-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.shiying-item {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.shiying-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 12px 12px 0 0;
}

.shiying-item.shi-yao::before {
    background: linear-gradient(90deg, #1890ff 0%, #40a9ff 100%);
}

.shiying-item.ying-yao::before {
    background: linear-gradient(90deg, #52c41a 0%, #73d13d 100%);
}

.shiying-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #40a9ff;
}

.yao-type {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
    display: block;
}

.yao-position {
    font-weight: 500;
    color: #666666;
    margin-bottom: 12px;
    font-size: 16px;
}

.yao-meaning {
    color: #666666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.shiying-item.shi-yao .yao-type {
    color: #1890ff;
}

.shiying-item.ying-yao .yao-type {
    color: #52c41a;
}

/* 方法信息样式 */
.method-info {
    margin-top: 20px;
    text-align: center;
}

.method-label {
    font-weight: 500;
    color: #666666;
    margin-right: 10px;
}

.method-value {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 16px;
}

/* 起卦方法说明样式 */
.common-methods-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f2f5;
}

.methods-explanation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.method-explanation {
    background: #fafbfc;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 25px;
}

.method-explanation h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.method-explanation p {
    color: #666666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}