/* 全局样式 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #c7282d;
    --secondary-color: #e54b4b;
    --accent-color: #860012;
    --light-color: #fff1f1;
    --dark-color: #333;
    --text-color: #333;
    --background-color: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-weight: 500;
}

.btn:hover {
    background-color: var(--accent-color);
}

/* 导航栏 */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 10vh;
    width: 90%;
    margin: 0 auto;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    justify-content: space-around;
    width: 60%;
}

.nav-links a {
    padding: 1rem;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 70%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* 轮播图样式 */
.hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-slide.active {
    opacity: 1;
}

/* 轮播控制按钮 */
.slider-controls {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 2;
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 轮播指示器 */
.slider-indicators {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 2;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background: white;
}

/* 红色景点快速导航 */
.sites-nav {
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
    position: relative;
    z-index: 10;
    margin-top: -2rem;
}

.sites-nav-wrapper {
    display: flex;
    justify-content: space-between;
    overflow-x: auto;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.sites-nav-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.site-nav-item {
    flex: 0 0 auto;
    text-align: center;
    padding: 0.5rem 1rem;
    min-width: 120px;
    transition: all 0.3s;
    border-radius: 8px;
}

.site-nav-item a {
    display: block;
    text-decoration: none;
    color: var(--dark-color);
}

.site-nav-item a.disabled {
    cursor: default;
}

.site-nav-item.active {
    background-color: var(--light-color);
}

.site-nav-item.active a {
    color: var(--primary-color);
}

.site-nav-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.site-nav-name {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.site-nav-status {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 500;
}

.site-nav-status.coming-soon {
    color: #888;
    font-style: italic;
}

@media screen and (max-width: 768px) {
    .sites-nav {
        margin-top: -1rem;
    }
    
    .sites-nav-wrapper {
        padding: 0.5rem 0;
        justify-content: flex-start;
    }
    
    .site-nav-item {
        min-width: 100px;
        padding: 0.5rem;
    }
    
    .site-nav-icon {
        font-size: 1.5rem;
    }
    
    .site-nav-name {
        font-size: 0.8rem;
    }
}

/* 简介部分 */
.intro {
    background-color: var(--light-color);
    padding: 4rem 0;
    text-align: center;
}

.intro h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.intro p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* 特色板块 */
.features {
    padding: 4rem 0;
    text-align: center;
}

.features h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
}

.feature-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -2px;
    left: 0;
    transition: width 0.3s;
}

.feature-link:hover::after {
    width: 100%;
}

/* 红色景点展示区域 */
.red-sites {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.red-sites h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.section-desc {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.site-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.site-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.site-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.site-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.site-card:hover .site-img img {
    transform: scale(1.1);
}

.site-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.site-content {
    padding: 1.5rem;
}

.site-content h3 {
    margin-bottom: 0.8rem;
    color: var(--dark-color);
}

.site-content p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.site-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
}

.site-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -2px;
    left: 0;
    transition: width 0.3s;
}

.site-link:hover::after {
    width: 100%;
}

.site-link.coming-soon {
    color: #888;
    cursor: default;
}

.site-link.coming-soon::after {
    display: none;
}

.site-card.current {
    border: 2px solid var(--primary-color);
}

.site-card.more-sites {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #fff1f1 0%, #fff 100%);
}

.more-content {
    padding: 2rem;
    text-align: center;
}

.more-content i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.coming-soon-text {
    display: inline-block;
    margin-top: 1rem;
    background-color: #f5f5f5;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #777;
}

/* 画廊部分 */
.gallery {
    background-color: var(--light-color);
    padding: 4rem 0;
}

.gallery h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(199, 40, 45, 0.8);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

.gallery-note {
    text-align: center;
    margin-top: 2rem;
    font-style: italic;
    opacity: 0.7;
}

/* 页脚 */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--light-color);
}

.footer-section.links ul li {
    margin-bottom: 0.5rem;
}

.footer-section.links a:hover {
    color: var(--secondary-color);
}

.footer-section.contact i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .nav-links {
        width: 70%;
    }
}

@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .nav-links {
        position: absolute;
        right: 0;
        height: 90vh;
        top: 10vh;
        background-color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 10;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links li {
        opacity: 0;
    }
    
    .burger {
        display: block;
    }
    
    .hero-content {
        max-width: 800px;
        padding: 2rem;
        position: relative;
        z-index: 5;
        text-align: center; /* 确保文本居中 */
        margin: 0 auto; /* 让整个内容块居中 */
    }
}

.nav-active {
    transform: translateX(0%);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    position: relative;
    z-index: 5;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: white;
}

.banner-section {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: white;
}

/* 资源库页面的灰色横幅部分 */
.resources-banner {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  padding: 60px 0;
  text-align: center;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.resources-banner h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.resources-banner p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 线上导览页面的横幅部分 */
.tour-banner {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  padding: 60px 0;
  text-align: center;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tour-banner h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.tour-banner p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* AR体验页面的横幅部分 */
.ar-banner {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  padding: 60px 0;
  text-align: center;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ar-banner h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.ar-banner p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 关于项目页面的横幅部分 */
.about-banner {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  padding: 60px 0;
  text-align: center;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-banner h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.about-banner p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.project-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.project-text {
    flex: 1;
    min-width: 300px;
}

.project-image-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .project-content {
        flex-direction: column;
    }
    
    .project-image-container {
        margin-top: 20px;
    }
}

/* 导览点信息样式 */
.tour-spot-info {
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.active-spot {
  flex: 1;
  min-width: 300px;
  padding: 15px;
  background-color: #d32f2f;
  color: white;
  border-radius: 8px;
}

.active-spot h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.coming-soon-spots {
  flex: 1;
  min-width: 300px;
  padding: 15px;
  background-color: #757575;
  color: white;
  border-radius: 8px;
}

.coming-soon-spots h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}