/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft Yahei", sans-serif;
}

body {
  background-color: #f5f5f5;
  line-height: 1.6;
  background-image: url("http://111.170.155.156/bg.jpg"); /* 背景图（可选） */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* 页面主体容器 - 电脑端优化 */
.container {
  max-width: 1000px; /* 电脑端限制宽度，避免过宽 */
  margin: 30px auto;
  padding: 20px 30px;
  background: rgba(255, 255, 255, 0.95); /* 半透明背景，提升可读性 */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 页面标题 */
.page-title {
  text-align: center;
  font-size: 28px;
  color: #1a1a1a;
  margin: 10px 0 20px;
  font-weight: 700;
  border-bottom: 2px solid #f1c40f;
  padding-bottom: 10px;
}

/* 头部信息栏：执行时间左、当前日期右 */
.header-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0 25px;
  font-size: 16px;
}

.execute-time {
  color: #333;
  font-weight: 500;
}
.execute-time span {
  color: #e67e22;
  font-weight: 600;
}

.currentTime {
  color: #666;
}
.current-time span {
  color: #2c3e50;
  font-weight: 600;
}

/* 价格表格 - 电脑端样式 */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.price-table th {
  background: #1a1a1a;
  color: #f1c40f;
  padding: 18px 15px;
  font-size: 17px;
  text-align: center;
}

.price-table td {
  padding: 15px 12px;
  text-align: center;
  font-size: 16px;
  border-bottom: 1px solid #eee;
}

/* 奇偶行变色 + 悬停高亮 */
.price-table tr:nth-child(even) {
  background: #f9f9f9;
}
.price-table tr:hover {
  background: #f1f1f1;
  transition: background 0.3s ease;
}

.col-name {
  font-weight: 500;
  color: #333;
  text-align: left; /* 产品名称左对齐，更易读 */
  padding-left: 20px;
}
.col-kg, .col-jin {
  color: #e67e22;
  font-weight: 600;
}

/* 底部样式 */
.footer {
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a1a1a, #333);
  color: #fff;
  padding: 40px 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  border-top: 3px solid #f1c40f;
  margin-top: 30px;
}
.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.contact-info {
  font-size: 16px;
  line-height: 2.2;
  flex: 1;
  min-width: 300px;
}
.contact-info .icon {
  color: #f1c40f;
  font-size: 1.2em;
  margin-right: 8px;
}
.contact-info strong {
  color: #f1c40f;
  font-weight: 600;
}
.copyright {
  font-size: 16px;
  color: #ddd;
  font-weight: 500;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

/* 手机端适配（768px以下） */
@media (max-width: 768px) {
  /* 容器自适应，减少内边距 */
  .container {
    max-width: 100%;
    margin: 10px;
    padding: 15px 10px;
    border-radius: 8px;
  }

  /* 标题缩小 */
  .page-title {
    font-size: 22px;
    margin: 5px 0 15px;
  }

  /* 头部信息栏：手机端换行显示，避免挤压 */
  .header-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    margin: 10px 0 20px;
  }

  /* 表格内边距缩小，字体适配 */
  .price-table th {
    padding: 12px 8px;
    font-size: 15px;
  }
  .price-table td {
    padding: 10px 5px;
    font-size: 14px;
  }
  .col-name {
    padding-left: 10px;
  }

  /* 底部样式适配 */
  .footer {
    padding: 30px 15px;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .contact-info {
    font-size: 15px;
    line-height: 2.0;
  }
  .copyright {
    font-size: 14px;
    padding-top: 15px;
  }
}
/* 给body添加背景图样式 */
body {
  background-image: url("http://111.170.155.156/bg.jpg"); /* 图片路径 */
  background-repeat: no-repeat; /* 禁止重复 */
  background-size: cover; /* 覆盖整个页面 */
  background-position: center center; /* 居中显示 */
  background-attachment: fixed; /* 固定背景，滚动页面不移动 */
  /* 若背景图较浅，可添加背景色兜底 */
  background-color: #f5f5f5;
}

/* 若背景图在容器中显示，需给容器设置宽高 */
.bg-container {
  width: 100%;
  height: 500px; /* 必须设置高度，否则容器为0，背景图不显示 */
  background-image: url("http://111.170.155.156/bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
}