/* =============== 通用设置 =============== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.7;
  font-size: 15px;
}

body {
  padding-top: 40px; /* 为固定 header 留出空间 */
  padding-bottom: 60px; /* 为底部浮动按钮留出空间 */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
  margin: 8px auto; /* 统一图片间距，居中 */
}

a {
  color: #e6001c;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #095f8a;
}

/* 页面居中容器 */
.body-a,
main {
  width: 1000px;
  max-width: 100%;
  margin: 0 auto;
  padding: 8px 10px;
  box-sizing: border-box;
}

/* =============== 顶部标题区 =============== */
header {
  background: #e6001c;
  color: #fff;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  padding: 8px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 让第一个模块无缝衔接 header */
main > section:first-of-type,
section.body-a:first-of-type {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 顶部 banner 全宽 */
section.body-a:first-of-type {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

section.body-a:first-of-type img {
  width: 100%;
  margin: 0;
  display: block;
}

/* =============== 模块标题条 =============== */
.dh {
  background: #1b8d36;
  color: #fff;
  padding: 8px 12px;
  font-weight: bold;
  border-radius: 3px;
  margin: 15px 0 8px 0;
  font-size: 17px;
  line-height: 1.4;
}

.dh a {
  color: #fff;
  text-decoration: none;
}

/* =============== 正文内容 =============== */
p {
  margin: 0 0 0.8em;
  text-align: justify;
  word-break: break-word;
}

strong {
  color: #000;
  font-weight: bold;
}

ul, ol {
  margin: 8px 0;
  padding: 0 0 0 20px;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul li {
  padding: 8px 0;
  border-bottom: 1px dashed #ddd;
  line-height: 1.6;
}

ul li:last-child {
  border-bottom: none;
}

/* =============== 表格样式 =============== */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0;
  font-size: 15px;
  background: #fff;
}

th, td {
  border: 1px solid #ddd;
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f8f8f8;
  text-align: center;
  font-weight: bold;
  width: 30%;
}

/* =============== 警示条 =============== */
.alert-red {
  background: #e6001c;
  color: #fff;
  text-align: center;
  padding: 12px;
  font-weight: bold;
  font-size: 16px;
  margin: 15px 0;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* =============== 价格套餐模块 =============== */
.package-box {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin: 15px 0;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: #fafafa;
  transition: all 0.3s ease;
}

.package-box:hover {
  border-color: #e6001c;
  box-shadow: 0 4px 10px rgba(230, 0, 28, 0.1);
}

.package-box img {
  width: 140px;
  height: auto;
  flex: 0 0 140px;
  margin-right: 15px;
  border-radius: 4px;
}

.package-info {
  flex: 1;
  min-width: 200px;
}

.package-info p {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.package-price {
  background: #e6001c;
  color: #fff;
  text-align: center;
  padding: 10px 15px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 4px;
  min-width: 100px;
}

.package-price small {
  font-size: 13px;
  display: block;
  margin-top: 4px;
  font-weight: normal;
  opacity: 0.9;
}

/* =============== 页脚区 =============== */
footer {
  background: #d91b1b;
  color: #fff;
  text-align: center;
  padding: 15px 10px;
  font-size: 14px;
  margin-top: 30px;
  line-height: 1.6;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

footer a:hover {
  color: #ffff99;
}

/* =============== 底部浮动按钮条 =============== */
#bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  z-index: 999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

#bottomnav a {
  flex: 1;
  padding: 14px 0;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

#bottomnav a:hover {
  opacity: 0.9;
}

#bottomnav .btn-home   { background: #008000; } /* 绿色 - 首页 */
#bottomnav .btn-order  { background: #e6001c; } /* 红色 - 下单 */
#bottomnav .btn-phone  { background: #0066cc; } /* 深蓝 - 电话 */

/* =============== 响应式优化 =============== */
@media (max-width: 768px) {
  .body-a, main {
    width: 96%;
    padding: 8px;
  }

  header {
    font-size: 18px;
    padding: 6px 0;
  }

  .dh {
    font-size: 16px;
    padding: 6px 10px;
  }

  .package-box {
    flex-direction: column;
    text-align: center;
  }

  .package-box img {
    margin: 0 auto 10px;
    width: 120px;
    flex: 0 0 120px;
  }

  .package-price {
    margin-top: 10px;
    width: 100%;
  }

  #bottomnav a {
    font-size: 14px;
    padding: 12px 0;
  }

  th, td {
    padding: 8px 6px;
    font-size: 14px;
  }

  th {
    width: 35%;
  }
}

@media (max-width: 480px) {
  header {
    font-size: 16px;
  }

  .dh {
    font-size: 15px;
  }

  .package-info p {
    font-size: 15px;
  }

  .package-price {
    font-size: 16px;
  }

  #bottomnav a {
    font-size: 13px;
    padding: 10px 0;
  }
}

/* =============== 兼容性补丁 =============== */
::selection {
  background: #e6001c;
  color: #fff;
}

::-moz-selection {
  background: #e6001c;
  color: #fff;
}








.search-box {
  text-align: right;
  margin: 5px 0 15px;
}

.search-box form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.search-box input[type="text"] {
  width: 180px;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.3s;
}

.search-box input[type="text"]:focus {
  border-color: #e6001c;
}

.search-box button,
.search-box input[type="submit"] {
  padding: 6px 12px;
  background: #e6001c;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.search-box button:hover,
.search-box input[type="submit"]:hover {
  background: #c10016;
}

/* 手机端优化 */
@media (max-width: 768px) {
  .search-box {
    text-align: left;
    margin-bottom: 10px;
  }
  .search-box input[type="text"] {
    width: 65%;
  }
  .search-box button {
    padding: 6px 8px;
    font-size: 13px;
  }
}
