/* 道教首页（道枢）专用样式 - 固定宽度1200px，viewport缩放，无media */
/* ========== 重置 & 基础 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.page-index {
    font-family: 'Microsoft YaHei', 'SimHei', 'Noto Sans SC', sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #f9fafc;
    width: 100%;
    overflow-x: hidden;
    padding-top: 0 !important;
}

/* ========== 固定宽度容器 ========== */
.container,
.header-content,
.footer-content,
.copyright {
    width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 头部导航（半透明悬浮，固定）========== */
.page-index .header {
    background: rgba(38, 53, 68, 0.85);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    height: 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index .header.scrolled {
    background: rgba(38, 53, 68, 0.98);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    height: 60px;
}

.page-index .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-index .logo {
    font-size: 28px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.page-index .logo:hover {
    color: #4da6ff;
    transform: translateY(-2px);
}

.page-index .logo i {
    margin-right: 15px;
    font-size: 30px;
    color: #4da6ff; /* 太极图标蓝色 */
}

/* 导航菜单 -  */
.page-index .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
/*    margin-right: -600px;   负值向右移动（因为父容器右边缘是固定宽度） */

}

.page-index .nav-menu li {
    margin-left: 25px;
    position: relative;
}

.page-index .nav-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 18px;
    transition: all 0.3s ease;
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.page-index .nav-menu a:hover {
    color: white;
}

.page-index .nav-menu a.active {
    color: white;
    position: relative;
}


.page-index .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #4da6ff;
    transition: width 0.3s ease;
}

.page-index .nav-menu a:hover::after {
    width: 100%;
}

.page-index .nav-menu a.active::after {
    width: 100%;
}

/* 下拉菜单箭头 */
.dropdown-icon {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* 下拉菜单容器 */
.page-index .nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(38, 53, 68, 0.98);
    backdrop-filter: blur(10px);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index .nav-menu .dropdown-menu li {
    margin: 0;
    width: 100%;
}

.page-index .nav-menu .dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    border-left: 3px solid transparent;
    white-space: nowrap;
    font-weight: 400;
    transition: all 0.3s ease;
    text-align: left;
}

.page-index .nav-menu .dropdown-menu a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid #4da6ff;
    padding-left: 17px;
}

.page-index .nav-menu .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* 移动端按钮 - 永远隐藏 */
.page-index .mobile-menu-btn {
    display: none !important;
}

/* ========== 按钮样式 ========== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #2c6e91 0%, #4da6ff 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(44, 110, 145, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 110, 145, 0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-3px);
}

/* ========== 英雄区域（全屏，无白条）========== */
.page-index .hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
    width: 100%;
}

.page-index .hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.page-index .hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
    filter: brightness(1.2);
    animation: subtleZoom 20s infinite alternate ease-in-out;
}

.page-index .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(38,53,68,0.75) 0%, rgba(0,0,0,0.55) 100%);
    z-index: 2;
}

.page-index .hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
}

.page-index .hero-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.5);
    white-space: nowrap;
}

.page-index .hero-sub {
    font-size: 3rem;
    font-weight: 300;
    color: rgba(255,255,255,0.9);
    margin-left: 15px;
}

.page-index .hero-subtitle {
    font-size: 1.6rem;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 4px;
}

.page-index .hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-index .scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 28px;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 3;
}

@keyframes subtleZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

@keyframes bounce {
    0%,20%,50%,80%,100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========== 通用板块样式 ========== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: #1a4d6e;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #2c6e91;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    font-style: italic;
}

/* ========== 板块一：道之枢要 ========== */
.essence-section {
    background: white;
}

.essence-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 25px;
    align-items: stretch;
}

.essence-card {
    background: #f8fbff;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    border-top: 3px solid #2c6e91;
    text-align: center;
}

.essence-card-full {
    grid-column: span 4; /* 单独一行放大展示“道” */
    background: linear-gradient(145deg, #f0f7ff, white);
    border-top-width: 5px;
    border-top-color: #4da6ff;
    padding: 40px 30px;
}

.essence-icon {
    font-size: 48px;
    color: #2c6e91;
    margin-bottom: 20px;
}

.essence-card h3 {
    font-size: 1.8rem;
    color: #1a4d6e;
    margin-bottom: 15px;
}

.essence-card p {
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
}

.essence-quote {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed #b0d4f0;
    color: #1a4d6e;
    font-style: italic;
    font-size: 1.1rem;
}

.essence-footnote {
    margin-top: 40px;
    text-align: right;
    color: #777;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* ========== 板块二：四大教义 ========== */
.doctrine-section {
    background: #f0f7fc;
}

.doctrine-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.doctrine-card {
    background: white;
    padding: 35px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    position: relative;
    transition: transform 0.3s;
}

.doctrine-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(44,110,145,0.08);
}

.doctrine-num {
    position: absolute;
    top: -15px;
    left: 25px;
    width: 45px;
    height: 45px;
    background: #2c6e91;
    color: white;
    font-size: 1.6rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 12px rgba(44,110,145,0.3);
}

.doctrine-card h3 {
    font-size: 1.4rem;
    color: #1a4d6e;
    margin: 20px 0 15px;
    padding-left: 15px;
}

.doctrine-card p {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

/* ========== 板块三：历史脉络（优化版，彻底解决遮挡）========== */
/* ========== 板块三：历史脉络（优化版，彻底解决遮挡）========== */
/* ========== 板块三：历史脉络（优化版，彻底解决遮挡）========== */
.history-section {
    background: white;
}

.timeline-compact {
    max-width: 1000px;
    margin: 0 auto 40px;
    border-left: 4px solid #2c6e91;
    padding: 10px 0 10px 50px;
}

/* 使用更具体的选择器覆盖所有 :nth-child 影响 */
.history-section .timeline-compact .timeline-item {
    display: flex !important;
    align-items: flex-start !important;
    margin-bottom: 30px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px dashed #eee !important;
    position: static !important;
    justify-content: flex-start !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

/* 覆盖所有奇偶伪类 */
.history-section .timeline-compact .timeline-item:nth-child(odd),
.history-section .timeline-compact .timeline-item:nth-child(even) {
    padding-left: 0 !important;
    padding-right: 0 !important;
    justify-content: flex-start !important;
}

.history-section .timeline-compact .timeline-year {
    font-weight: 700 !important;
    color: #1a4d6e !important;
    font-size: 1.2rem !important;
    width: 160px !important;
    flex-shrink: 0 !important;
    line-height: 1.6 !important;
    position: relative !important;  /* 保留相对定位用于伪元素 */
    padding-left: 15px !important;
    white-space: nowrap !important;
    background: none !important;
    border-radius: 0 !important;
    height: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    display: block !important;
    text-align: left !important;
    margin: 0 !important;
}

/* 覆盖奇偶项中对 .timeline-year 的特殊定位 */
.history-section .timeline-compact .timeline-item:nth-child(odd) .timeline-year,
.history-section .timeline-compact .timeline-item:nth-child(even) .timeline-year {
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    position: relative !important;
}

.history-section .timeline-compact .timeline-year::before {
    content: '●' !important;
    color: #4da6ff !important;
    font-size: 1.3rem !important;
    position: absolute !important;
    left: -12px !important;
    top: 0 !important;
}

.history-section .timeline-compact .timeline-desc {
    color: #555 !important;
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
    flex: 1 !important;
    word-break: break-word !important;
    padding-right: 15px !important;
}

.history-image-box {
    text-align: center;
    margin-top: 50px;
    width: 100%;          /* 确保父容器占满可用宽度 */
    overflow: hidden;     /* 可选，防止内容溢出 */
}

.history-illustration {
    max-width: 100%;      /* 限制图片最大宽度为父容器宽度 */
    height: auto;         /* 高度自适应，保持原始比例 */
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: inline-block; /* 可选，让图片在父容器内居中 */
}
/* ========== 板块四：文化贡献 ========== */
.culture-section {
    background: #f8f9fa;
}

.culture-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.culture-item {
    text-align: center;
    padding: 25px 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    transition: all 0.2s;
}

.culture-item:hover {
    background: #fff;
    box-shadow: 0 12px 28px rgba(44,110,145,0.08);
}

.culture-icon {
    font-size: 42px;
    color: #2c6e91;
    margin-bottom: 15px;
}

.culture-item h4 {
    font-size: 1.2rem;
    color: #1a4d6e;
    margin-bottom: 12px;
}

.culture-item p {
    color: #666;
    line-height: 1.6;
    font-size: 0.98rem;
}

.culture-quote {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 35px;
    background: #e6f0fa;
    border-radius: 50px;
    color: #1a4d6e;
    font-size: 1.2rem;
    font-style: italic;
    text-align: center;
    border-left: 6px solid #4da6ff;
}

/* ========== 板块五：当代价值与世界传播 ========== */
.modern-section {
    background: white;
}

.modern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-bottom: 50px;
}

.modern-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    transition: all 0.3s;
    border: 1px solid #eee;
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 35px rgba(44,110,145,0.12);
    border-color: #b8d9f0;
}

.modern-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.modern-card h3 {
    font-size: 1.3rem;
    color: #1a4d6e;
    margin: 20px 20px 10px;
}

.modern-card p {
    color: #555;
    line-height: 1.7;
    margin: 0 20px 25px;
    font-size: 0.98rem;
}

.modern-stats {
    display: flex;
    justify-content: space-around;
    background: #f0f7fc;
    padding: 35px 20px;
    border-radius: 60px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.6rem;
    font-weight: 700;
    color: #1a4d6e;
    line-height: 1;
}

.stat-label {
    color: #666;
    font-size: 1.1rem;
    margin-top: 8px;
}

/* ========== 结语板块 ========== */
.summary-section {
    background: linear-gradient(145deg, #1a3340, #1e3a47);
    color: white;
    padding: 90px 0;
}

.summary-box {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.summary-yinyang {
    font-size: 70px;
    color: rgba(255,255,255,0.2);
    margin-bottom: 25px;
}

.summary-box h2 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 30px;
    font-weight: 500;
}

.summary-box p {
    font-size: 1.2rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.9);
    margin-bottom: 35px;
}

.summary-footer {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
    margin-top: 20px;
}

/* ========== 页脚（固定四列）========== */
.footer {
    background: linear-gradient(135deg, #263544 0%, #1a2530 100%);
    color: white;
    padding: 60px 0 30px;
    border-top: 5px solid #2c6e91;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.footer-section h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #4da6ff;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo i {
    margin-right: 12px;
    color: #4da6ff;
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.footer-links a:hover {
    color: white;
    padding-left: 6px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 0;
}

/* ========== 返回顶部按钮 ========== */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2c6e91 0%, #4da6ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 2000;
    box-shadow: 0 5px 15px rgba(44,110,145,0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(44,110,145,0.4);
}

/* ========== 动画 ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

.index-main {
    animation: fadeIn 0.9s ease;
}

/* ========== 无任何媒体查询，完全依赖viewport缩放 ========== */

