/* 教理教义页面专用样式 - 终极固定宽度版（1200px，完全移除响应式换行） */
/* ========== 重置 & 基础 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.page-doctrine {
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    width: 100%;
    overflow-x: hidden;
}

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

/* ========== 头部导航（fixed，100%宽，背景铺满）========== */
.page-doctrine .header {
    background: linear-gradient(135deg, #263544 0%, #1a2530 100%);
    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-doctrine .header.scrolled {
    background: rgba(38, 53, 68, 0.98);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    height: 60px;
}

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

.page-doctrine .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;
/*    margin-left: -200px;   /* 负值向左移动，正值向右 */

}

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

.page-doctrine .logo i {
    margin-right: 15px;
    font-size: 30px;
}

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

}

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

.page-doctrine .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-doctrine .nav-menu a:hover {
    color: white;
}

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


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

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

.page-doctrine .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-doctrine .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-doctrine .nav-menu .dropdown-menu li {
    margin: 0;
    width: 100%;
}

.page-doctrine .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-doctrine .nav-menu .dropdown-menu a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid #4da6ff;
    padding-left: 17px;
}

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

/* ========== 英雄区域（添加上边距，避免被fixed导航遮挡）========== */
.page-doctrine .hero-section {
    margin-top: 70px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('../images/daojiaojiaoyi.jpg') no-repeat center center/cover;
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 60px;
    min-height: 400px;
    display: flex;
    align-items: center;
    width: 100%;
}

.page-doctrine .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.page-doctrine .hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== 主要内容区域 ========== */
.main-content {
    padding-bottom: 60px;
}

.doctrine-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

/* ========== 教义章节 ========== */
.doctrine-section {
    position: relative;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.doctrine-section:last-child {
    border-bottom: none;
}

.section-number {
    position: absolute;
    left: -30px;
    top: -10px;
    width: 60px;
    height: 60px;
    background: #2c6e91;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(44, 110, 145, 0.3);
}

.section-content {
    position: relative;
}

.doctrine-section h2 {
    color: #2c6e91;
    font-size: 32px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e6f2ff;
    position: relative;
}

.doctrine-section h2::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: #2c6e91;
}

/* 图片浮动 */
.doctrine-image-box {
    margin: 20px 0;
}

.doctrine-image-box.left {
    float: left;
    width: 40%;
    margin-right: 30px;
}

.doctrine-image-box.right {
    float: right;
    width: 40%;
    margin-left: 30px;
}

.doctrine-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.doctrine-image:hover {
    transform: scale(1.02);
}

.image-caption {
    text-align: center;
    font-style: italic;
    color: #777;
    font-size: 14px;
    margin-top: 8px;
}

/* 文本样式 */
.doctrine-text {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

/* 引用块 */
.doctrine-quote {
    background: #f9f9f9;
    border-left: 4px solid #2c6e91;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.doctrine-quote p {
    font-size: 20px;
    color: #2c6e91;
    margin-bottom: 10px;
}

.doctrine-quote i {
    color: #4da6ff;
    margin-right: 10px;
}

.quote-author {
    text-align: right;
    font-size: 16px;
    color: #777;
}

/* 要点网格 */
.doctrine-points {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.point-item {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-top: 3px solid #2c6e91;
    text-align: center;
}

.point-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

.point-item h3 {
    color: #2c6e91;
    font-size: 20px;
    margin-bottom: 12px;
}

.point-item p {
    color: #555;
    line-height: 1.6;
    font-size: 15px;
}

/* 神仙网格 */
.taoist-gods h3,
.cultivation-methods h3 {
    color: #2c6e91;
    font-size: 24px;
    margin: 40px 0 25px;
    text-align: center;
}

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

.god-item {
    background: #f0f7ff;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.god-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

.god-item h4 {
    color: #2c6e91;
    font-size: 18px;
    margin-bottom: 10px;
}

.god-item p {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

/* 修炼方法 */
.methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.method-item {
    display: flex;
    align-items: flex-start;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.method-item:hover {
    background: #f0f7ff;
    transform: translateX(5px);
}

.method-icon {
    font-size: 28px;
    color: #2c6e91;
    margin-right: 15px;
    margin-top: 5px;
}

.method-content h4 {
    color: #2c6e91;
    font-size: 18px;
    margin-bottom: 8px;
}

.method-content p {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

/* 注释 */
.doctrine-note {
    background: #f0f7ff;
    border-left: 4px solid #4da6ff;
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.doctrine-note p {
    font-size: 17px;
    color: #444;
    display: flex;
    align-items: flex-start;
}

.doctrine-note i {
    color: #4da6ff;
    margin-right: 12px;
    font-size: 20px;
}

/* 总结区域 */
.doctrine-summary {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 40px;
    margin-top: 40px;
}

.doctrine-summary h2 {
    color: #2c6e91;
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

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

.summary-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.summary-item {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.summary-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

.summary-item h3 {
    color: #2c6e91;
    font-size: 20px;
    margin-bottom: 15px;
}

.summary-item p {
    color: #555;
    line-height: 1.7;
    font-size: 15px;
}

.conclusion {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-top: 30px;
}

/* ========== 页脚（宽度100%，背景铺满）========== */
.footer {
    background: linear-gradient(135deg, #263544 0%, #1a2530 100%);
    color: white;
    padding: 60px 0 30px;
    margin-top: 60px;
    border-top: 5px solid #2c6e91;
    width: 100%;
}

.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.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

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

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

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

.footer-links li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: #4da6ff;
    transform: translateX(5px);
}

.footer-links i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: #4da6ff;
    transform: translateY(-3px);
}

.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 ease;
    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);
}

/* ========== 页面加载动画 ========== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #263544;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    text-align: center;
}

.yin-yang-loader {
    font-size: 60px;
    color: white;
    margin-bottom: 20px;
    animation: spin 2s linear infinite;
}

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

.page-loader p {
    color: white;
    font-size: 18px;
    margin: 0;
}

/* ========== 清除浮动 ========== */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ========== 所有响应式媒体查询已彻底删除，手机端仅通过viewport缩放 ========== */
