* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* 关键：让尺寸计算更直观 */
    -webkit-font-smoothing: antialiased; /* 优化字体渲染 */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* 将背景图设置在 body 上，作为整个页面的画布 */
    background: url(../image/背景1.png) no-repeat center center fixed;
    background-size: cover;
    
}

a {
    text-decoration: none;
    color: inherit; /* 链接默认继承父元素的颜色 */
}

ul {
    list-style: none; /* 移除列表的点 */
}


/* =================================
   2. 头部导航 (使用 Flexbox 现代化布局)
   ================================= */
.header {
    width: 100%;
    height: 70px;
    background-color: #98e1cf00;
/*    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);  阴影稍微调淡一点 */
    position: fixed; /* 固定在顶部 */
    top: 0;
    left: 0;
    z-index: 999;
}

.header-container {
    width: 100%;
    max-width: 1280px; /* 内容最大宽度 */
    height: 100%;
    margin: 0 auto;
    padding: 0 20px; /* 在窄屏幕下留出边距 */
    
    /* 核心：使用 Flexbox 布局 */
    display: flex;
    justify-content: space-between; /* 两端对齐：logo在左，导航在右 */
    align-items: center; /* 垂直居中 */
}

.logo {
    
    display: block;
    width: 80px; /* 设定一个你希望 Logo 显示的容器宽度 */
    height: 80px; /* 设定一个你希望 Logo 显示的容器高度 */
    /*background: url(../image/logo2.png) no-repeat center center; /* 简写：不重复，居中 */
    background-size: contain; /* 核心：让背景图片完整适应容器 */
    text-indent: -9999px;
    
}

.nav-links {
    display: flex; /* 让 li 水平排列 */
   
}

.nav-links li a {
    display: block;
    padding: 0 25px; /* 使用 padding 代替固定宽度，更灵活 */
    height: 70px;
    line-height: 70px;
    color: #fafafa;
    transition: all 0.2s ease;
    font-size: 1.5rem; /* 调整字体大小 */
    
}

/* 修复 Hover 效果，给一个不同的背景色 */
.nav-links li a:hover, .nav-links li a.active {
    background-color: rgba(255, 255, 255, 0.3);
}
.has-submenu {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 70px; /* 高度与header相同 */
    left: 0;
    background-color: rgba(6, 128, 93, 0.516);
    padding: 10px 0;
    min-width: 160px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

/* 子菜单项样式 */
.submenu a.v2 {
    display: block;
    padding: 10px 10px;
    color: #ffffff;
    font-size: 1.2rem;
    transition: background-color 0.2s ease;
}

.submenu a.v2:hover {
    background-color: #b2f7d590;
}

/* 箭头动画（可选） */
.icon-arrow {
    margin-left: 4px;
    border: solid white;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    transition: transform 0.3s;
}

.has-submenu:hover .icon-arrow {
    transform: rotate(-135deg);
}

/* 悬浮时显示子菜单 */
.has-submenu:hover .submenu {
    display: block;
}


/* =================================
   3. 主要内容与玻璃卡片 (解决居中问题)
   ================================= */
.main-content {
    /* 核心：使用 Flexbox 将内部的卡片居中 */
    display: flex;
    justify-content: center;
    align-items: center;

    /* 占据整个视口高度 */
    height: 100vh;
}

.glass-card {
    width: 90%; /* 在移动端更友好 */
    max-width:1200px;
    height: 400px;
    padding: 120px;
    color: rgb(0, 0, 0);
    text-align: center;
    font-size: 2.0rem;
    line-height: 1.6;
    
    /* 玻璃效果 (来自您的代码) */
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.comic-module {
  margin-top: 250px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.comic-container {
  display: flex;
  max-width: 1500px;
  background: #ffffff36;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* 左侧漫画图片区域 */
.comic-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  padding: 12px;
  width:60%;
  background-color: #f5f5f57a;
}

.comic-images img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.yidouquan-images img{
    width: 40%;
    display: flex;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* 右侧文字区域 */
.comic-text-box {
  width: 45%;
  height: 500px;
  padding: 20px;
  background-color: #1593614f; /* 明亮但不刺眼的黄白色背景 */
  color: #333;
  overflow-y: auto;
  font-size: 30px;
  line-height: 1.6;
  border-left: 1px solid #ddd;
}

.comic-text-box h2 {
  margin-top: 0;
  font-size: 35px;
}

/* 滚动条美化 */
.comic-text-box::-webkit-scrollbar {
  width: 6px;
}

.comic-text-box::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 3px;
}

/* ===============================
   额外：一张图模块样式
   =============================== */

/* 通视图模块样式，参考 comic-module 结构 */
.tongshi-module {
  margin-top: 80px; /* 拉近与上方模块距离 */
  display: flex;
  justify-content: center;
  width: 100%;
}

.tongshi-container {
  display: flex;
  max-width: 1500px;
  background: #ffffff36;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  
}

/* 左侧通视图图片区域（只有一张图，填满左侧） */
.tongshi-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  padding: 12px;
  width:57%;
  background-color: #f5f5f57a;
}

.tongshi-images img {
  height: 100%;
  max-width: 815px; /* 限制最大宽度 */
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.zhonglou-images img {
    display: flex;
  height: 200px;
  width: 40%; /* 限制最大宽度 */
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
/* 右侧文字区域，复用 comic-text-box 样式 */
.tongshi-text-box {
  width: 45%;
  height: 500px;
  padding: 20px;
  background-color: #1593614f; /* 明亮但不刺眼的黄白色背景 */
  color: #333;
  overflow-y: auto;
  font-size: 30px;
  line-height: 1.6;
  border-left: 1px solid #ddd;
}
.tongshi-text-box h2 {
  margin-top: 0;
  font-size: 35px;
}


/* =================================
   4. 动画效果
   ================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px); /* 增加一个从下往上的轻微移动效果 */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInText {
    /* 设置动画默认状态为透明，避免闪烁 */
    opacity: 0;
    /* fill-mode 保持动画结束时的状态 */
    animation: fadeIn 1.5s ease-out forwards;
    
}