/* ===================================
   920自驾旅游 - 旅游详情页样式
   包含：详情页布局、行程样式、导航样式
   =================================== */

/* 添加爱加公路体字体 */
@font-face {
    font-family: 'AiJiaGongLuTi';
    src: url('ziti/aijiagongluti.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 旅游详情页专用变量 */
:root {
    --detail-primary-color: #1a2161;
    --detail-secondary-color: #c8a259;
    --detail-text-color: #2d3142;
    --detail-text-light: #5c6378;
    --detail-background: #f7f7f7;
    --detail-card-bg: #ffffff;
    --detail-shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --detail-shadow-md: 0 6px 24px rgba(0,0,0,0.08);
    --detail-shadow-lg: 0 10px 32px rgba(0,0,0,0.12);
    --detail-radius-sm: 8px;
    --detail-radius-md: 16px;
    --detail-radius-lg: 24px;
    --detail-accent-color: #c41e3a;
    --detail-highlight-yellow: #FFD60A;
}

/* 导航菜单样式 */
.page-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 15px 0;
    box-shadow: var(--detail-shadow-sm);
    margin-bottom: 20px;
}

.nav-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 60px; /* 整个导航菜单会向右偏移 */
}

.nav-links li {
    margin: 0 14px; /* 导航间距*/
}

.nav-links a {
    text-decoration: none;
    color: var(--detail-text-color);
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--detail-accent-color);
}

.nav-links a.active {
    color: var(--detail-accent-color);
}

.nav-links a.active:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--detail-accent-color);
}

/* 返回首页按钮 */
.home-button {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.home-button:hover {
    transform: translateY(-50%) scale(1.1);
}

.home-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 行程样式 */
.day-section {
    margin: 10px 0 10px;
    padding: 0;
    background: #fff;
    border-bottom: 1px dotted #ddd;
    position: relative;
}

@media (min-width: 769px) and (max-width: 1200px) {
    .day-section {
        margin: 15px 0;
    }
}

/* 日期圆形标签 */
.day-circle {
    position: absolute;
    left: 0;
    top: 15px;
    width: 45px;
    height: 45px;
    background-color: var(--detail-highlight-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: #333;
}

/* 行程内容容器 */
.day-content {
    padding: 15px 0 20px 60px;
    text-align: left;
}

/* 行程标题 */
.day-title-new {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
    padding-right: 20px;
    padding-bottom: 8px;
    border-bottom: 1px dotted #eee;
    text-align: left;
}

/* 行程信息项 */
.info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    text-align: left;
}

.info-icon {
    flex-shrink: 0;
    width: 16px;
    height: 20px;
    margin-right: 4px;
    color: #999;
    text-align: center;
}

.info-text {
    flex: 1;
}



/* 页面各部分样式 */
.section {
    padding-top: 60px;
    margin-top: -60px;
    scroll-margin-top: 80px;
}

/* 详情页专用body样式 */
.travel-detail-page {
    font-family: 'Noto Sans SC', Arial, sans-serif;
    background: var(--detail-background);
    color: var(--detail-text-color);
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.8;
    font-weight: 400;
    letter-spacing: 0.02em;
    padding-top: 60px;
}

.container {
    max-width: 1180px;
    margin: 30px auto;
    background: var(--detail-card-bg);
    border-radius: var(--detail-radius-lg);
    box-shadow: var(--detail-shadow-md);
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 3px;
    background: var(--detail-secondary-color);
}

.container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 3px;
    background: var(--detail-secondary-color);
}

/* 标题样式 */
h2 {
    font-family: 'AiJiaGongLuTi', 'Noto Serif SC', serif !important;
    font-size: 1.8rem !important;
    margin: 20px 0 10px;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--detail-secondary-color);
    color: #c41e3a !important;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -webkit-text-stroke: 0.2px;
}

h1 {
    font-family: 'AiJiaGongLuTi', 'Noto Serif SC', serif !important;
    font-size: 28px !important;
    color: var(--detail-text-color);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -webkit-text-stroke: 0.2px;
    text-align: center;
}

h2::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--detail-secondary-color);
    border-radius: 2px;
}

h2.text-center {
    display: block;
    width: 100%;
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
}

h3 {
    font-family: 'AiJiaGongLuTi', 'Noto Serif SC', serif !important;
    font-size: 1.8rem !important;
    color: #000000 !important;
    margin: 25px 0 15px;
    position: relative;
    padding-left: 16px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -webkit-text-stroke: 0.2px;
}

h3:before {
    content: "";
    position: absolute;
    width: 4px;
    height: 80%;
    background: var(--detail-secondary-color);
    left: 0;
    top: 10%;
    border-radius: 2px;
}

h3.text-center {
    display: block;
    width: 100%;
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
}

.info-card h4 {
    font-size: 1.3rem;
    margin-bottom: 18px;
    color: var(--detail-primary-color);
    position: relative;
    padding-bottom: 12px;
}

.info-card h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--detail-secondary-color);
}

h4.text-center {
    display: block;
    width: 100%;
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
}

/* 区块标题样式 */
.section-heading {
    text-align: center;
    position: relative;
    margin-bottom: 15px;
    width: 100%;
}

.section-heading h2 {
    font-family: 'AiJiaGongLuTi', 'Noto Serif SC', serif !important;
    display: inline-block;
    margin: 0;
    padding-bottom: 8px;
    border-bottom: none;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -webkit-text-stroke: 0.2px;
    font-size: 1.6rem !important;
    color: #c41e3a !important;
}

.section-heading h2::before {
    display: none;
}

.section-heading::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--detail-secondary-color);
    border-radius: 2px;
}

/* 特定区域标题居中 */
#detailed-itinerary {
    text-align: center;
    width: 100%;
    display: block;
}

.day-card > h2 {
    display: block;
    width: 100%;
    text-align: center;
}

/* 段落和内容样式 */
p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: var(--detail-text-color);
}

.highlight-box {
    background: linear-gradient(to right, rgba(200, 162, 89, 0.07), rgba(200, 162, 89, 0.03));
    border-radius: var(--detail-radius-md);
    padding: 25px 30px;
    margin: 25px 0;
    box-shadow: var(--detail-shadow-sm);
    border-left: 4px solid var(--detail-secondary-color);
    position: relative;
}

.highlight-box::after {
    content: "";
    position: absolute;
    right: 30px;
    top: 15px;
    width: 40px;
    height: 40px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23c8a259" width="24px" height="24px"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
}

.price-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--detail-secondary-color), darken(var(--detail-secondary-color), 10%));
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--detail-radius-sm);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 8px 0;
    box-shadow: 0 2px 10px rgba(200, 162, 89, 0.3);
}

.notice {
    background: #fff9eb;
    border-left: 4px solid var(--detail-secondary-color);
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: var(--detail-radius-sm);
    font-size: 0.95rem;
}

.divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--detail-secondary-color), transparent);
    margin: 50px 0 40px;
    opacity: 0.5;
}

ul, ol {
    margin: 0 0 20px 25px;
    padding: 0;
}

li {
    margin-bottom: 10px;
    line-height: 1.7;
}





#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--detail-primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    box-shadow: var(--detail-shadow-md);
    z-index: 1000;
    display: none;
}

#backToTop:hover {
    opacity: 1;
    transform: translateY(-3px);
}

#backToTop i {
    font-size: 0.9rem;
}

.footer {
    text-align: center;
    color: var(--detail-text-light);
    margin-top: 40px;
    padding: 20px 0;
    font-size: 0.95rem;
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05), transparent);
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

/* 页面顶部主图片 */
body > img:first-of-type {
    width: 100%;
    object-fit: contain;
    border-radius: 0;
    margin: 0 auto 20px auto;
    box-shadow: var(--detail-shadow-sm);
}

/* 行程图片 */
.day-section > img {
    margin-top: 5px;
    margin-bottom: 10px;
    box-shadow: var(--detail-shadow-sm);
    transition: transform 0.3s ease;
}

.day-section > img:hover {
    transform: scale(1.02);
}





/* 图标样式修正 */
.info-icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* 全局居中样式 */
.text-center, .text-center * {
    text-align: center !important;
}

/* 联系信息居中 */
.section-heading + div {
    text-align: center;
}

.section-heading + div > div {
    text-align: center;
    margin: 0 auto;
}

/* 景点标签样式 */
.spot-tags {
    margin-top: 5px;
}

.spot-tag {
    display: inline-block;
    background-color: #f8f8f8;
    border-radius: 20px;
    padding: 4px 12px;
    margin: 0 5px 5px 0;
    font-size: 12px;
    color: #666;
    border: 1px solid #eee;
}

.spot-tag.highlight {
    background-color: #FFF5D0;
    border: 1px solid #FFD60A;
    color: #333;
}

/* 联系电话样式 */
.tel-link {
    color: #1a2161;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #1a2161;
    border-radius: 20px;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.tel-link:hover {
    background-color: #1a2161;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.tel-link::before {
    content: "\f095";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 8px;
}

/* 图标列表样式 */
.icon-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.icon-list li {
    position: relative;
    padding: 12px 0 12px 35px;
    margin: 8px 0;
    line-height: 1.6;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.icon-list li:last-child {
    border-bottom: none;
}

.icon-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 15px;
    color: #1a2161;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 40px 25px;
        margin: 20px 15px;
        border-radius: var(--detail-radius-md);
    }

    h2 {
        font-size: 1.5rem !important;
    }

    .nav-links {
        padding-left: 20px;
    }

    .nav-links li {
        margin: 0 8px;
    }

    .nav-links a {
        font-size: 1rem;
    }

    /* 平板端图片间距优化 */
    img {
        margin: 5px auto !important;
    }

    .day-section > img {
        margin-top: 2px !important;
        margin-bottom: 8px !important;
    }
}

@media (max-width: 480px) {
    .day-circle {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .day-content {
        padding: 15px 0 20px 45px;
    }

    .container {
        padding: 20px 15px;
    }

    /* 移动端图片间距优化 */
    img {
        margin: 3px auto !important;
    }

    .day-section > img {
        margin-top: 1px !important;
        margin-bottom: 5px !important;
    }
}
