/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

/* 全站渐变背景 */
body {
  background: linear-gradient(135deg, #272e3c 0%, #2e3141 100%);
     color: #f0f4f8;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  color: #333;
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(46, 49, 65, 0.8);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;  /* 关键：左右留呼吸空间 */
  padding: 0 40px; /* ← 左右各 40px，可根据喜好调整 */
}

.logo {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
}

/* 品牌区域：logo + 文字 */
.site-branding {
  display: flex;
  align-items: center; /* 垂直居中对齐 */
  gap: 8px; /* 控制 logo 和文字的间距（关键！） */
  text-decoration: none;
}

.logo-img {
  width: 50px;
  height: auto;
  display: block; /* 消除图片底部空白 */
}

.logo-text {
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
  white-space: nowrap; /* 防止文字换行 */
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: #EF5350;
}

.nav-links a.active {
    background-color: #FF6B35;
}





/* 主要内容区域 */
.container {
  max-width: 1400px; /* 防止 4K 屏文字行太长 */
  padding: 0 40px;
  margin: 0 auto;
  flex: 1;
}

.slider-container {
  height: 600px;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin-bottom: 3rem;
  /* ❌ 删除 max-width / padding / margin: auto */
  /* 它会自动继承 .container 的宽度 */
}
.slider {
    display: flex;
    width: 300%;
    height: 100%;
    animation: slide 15s infinite;
}

.slide {
    width: 33.333%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 2rem;
}

@keyframes slide {
    0%, 25% { transform: translateX(0); }
    33%, 58% { transform: translateX(-33.333%); }
    66%, 91% { transform: translateX(-66.666%); }
    100% { transform: translateX(0); }
}

/* 页脚样式 */
.footer {
        background-color: rgba(46, 49, 65, 0.8);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.record-info {
    font-size: 0.9rem;
    color: #95a5a6;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #34495e;
}


/* 页脚所有链接统一风格 */
.footer a,
.record-link,
.icp-link {
  color: #95a5a6;           /* 与页脚文字同色 */
  text-decoration: none;    /* 去掉下划线 */
  transition: color 0.2s;
}

.footer a:hover,
.record-link:hover,
.icp-link:hover {
  color: white;             /* 悬停变白，增强交互感 */
}

/* 关键：覆盖已访问链接的紫色 */
.footer a:visited,
.record-link:visited,
.icp-link:visited {
  color: #95a5a6;           /* 已访问也保持原色 */
}






















/* 网警备案链接样式 */
.record-link {
  display: inline-flex;
  align-items: center;
  color: #95a5a6;
  text-decoration: none;
  transition: color 0.3s;
  gap: 6px; /* 图标和文字间距 */
}

.record-link:hover {
  color: white;
}

.record-icon {
  width: 16px; /* 官方要求尺寸通常为 16x16 或 20x20 */
  height: auto;
  vertical-align: middle;
}




/* 通用内容样式 */

.content-section {
  background: rgba(255, 255, 255, 0.12);   /* 更透！ */
  backdrop-filter: blur(8px);               /* 模糊更强 */
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;                      /* 稍大圆角 */
  padding: 32px;
  margin: 24px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); /* 更深阴影 */

}
.content-section h1 {
    color: white;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid white;
}

.content-section h2 {
    color: white;
    margin: 1.5rem 0 1rem;
    text-align: center
}
.content-section ul {
  list-style-type: disc;
  margin: 1rem 0;
  padding-left: 1.5rem;
}
.content-section li {
  margin-bottom: 0.5rem;
}
/* 现代按钮样式 */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #FF6B35 ; 
  color: white !important;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid #FF6B35;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.btn:hover {
  background-color: #EF5350;
  border-color: #EF5350;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}


.about-section h2,
.about-section p {
  color: #ffffff;
}
.about-section p {
  color: #e0e6ef;
}


/* 三栏文本框布局样式 */
.flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px; 
}

.text-box {
    flex: 1;
    min-width: 0;
    padding: 20px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.text-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.text-box h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FF6B35;
    font-size: 1.2rem;
    font-weight: 600;
}

.text-box p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* 响应式：手机端单列 */
@media (max-width: 768px) {

/* ===== 手机端导航栏修复 ===== */
.nav-container {
    padding: 0 12px;
    display: flex !important;        /* ← 显式声明 */
    flex-direction: column !important;  /* ← 强制水平 */
    align-items: center;             /* 垂直居中 */
    height: auto !important;
  }

.logo-text {
  font-size: 0.95rem !important;
}

.nav-links {
  gap: 0.8rem !important;
  flex-wrap: wrap !important; /* 允许换行但优化布局 */
  justify-content: center !important;
      align-items: center !important; /* 强制垂直居中 */
}

.nav-links a {
  font-size: 0.9rem !important; /* 关键：加 !important */
  padding: 0.3rem 0.6rem !important;
  min-width: auto !important;
}

/* ===== 手机端内容区域修复 ===== */
.content-section {
  padding: 16px 12px !important;
}

.content-section h1 {
  font-size: 1.4rem !important;
  margin-bottom: 0.8rem !important;
}

.content-section h2 {
  font-size: 1.15rem !important;
  margin: 0.8rem 0 0.6rem !important;
}

.content-section p,
.content-section li {
  font-size: 0.92rem !important;
  line-height: 1.5 !important;
}
}
/* ===== 官方渠道模块优化 ===== */
.official-channels {
  gap: 24px; /* 增加卡片间距 */
  max-width: 800px; /* 限制总宽度，避免宽屏拉太开 */
  margin: 20px auto; /* 居中 */
  background-color: transparent !important; /* 移除灰色背景 */
  padding: 0 !important;
  box-shadow: none !important;
}

/* 使用简洁卡片 */
.simple-card {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1;
    max-width: 320px;
  min-width: 240px;
}
.simple-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.simple-card h3 {
  margin: 12px 0;
  font-size: 1.25rem;
}

.simple-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.9;
}
.simple-card .btn {
  margin-top: 8px; /* 如果 p 的 margin 不够，这里补足 */
}
/* 图标居中修复 */
.channel-icon {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 0;
}

/* 淘宝/小红书图标颜色 */
.taobao-icon { color: #FF6A00; }
.xiaohongshu-icon { color: #FF2442; }

