@charset "utf-8";
/* CSS Document - Sunny Yellow Style */

/* 定义全局变量 */
:root {
  --primary-color: #ffd700;
  --secondary-color: #ffec8b;
  --text-color: #b8860b;
  --bg-color: #fffacd;
  --white-color: #fff;
  --red-color: #ff4500;
  --blue-color: #4169e1;
  --green-color: #228b22;
  --yellow-color: #ffd700;
  --nav-bg-gradient: linear-gradient(#ffd700, #ffb90f, #ff8c00);
}
/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  word-break: break-all;
  word-wrap: break-word;
  box-sizing: border-box;
}

body {
  line-height: 1.5;
  font-size: 16px;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
}

/* 表单元素样式 */
input,
select,
button,
textarea {
  margin: 0;
  padding: 0;
  vertical-align: middle;
  font-size: 100%;
  color: inherit;
  border: 0;
  font-family: inherit;
  outline: none;
  resize: none;
}

input[type="text"] {
  -webkit-appearance: none;
  appearance: none;
}

/* 列表和图片样式 */
ol,
ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto; /* 保持图片比例 */
}

/* 链接和聚焦样式 */
a {
  text-decoration: none;
  color: inherit;
}

:focus {
  outline: 0;
}

/* 表格样式 */
table {
  border-collapse: collapse;
  width: 100%;
  font-size: inherit;
}

th,
td {
  border: 1px solid var(--primary-color);
  padding: 8px;
  text-align: center;
}

/* 页面布局样式 */
.page {
  max-width: 720px;
  margin: 0 auto;
  border-inline: 2px solid var(--primary-color);
  box-sizing: content-box;
  background: var(--white-color);
}

.box {
  padding: 0 2px;
}

/* 固定顶部样式 */
.topfix {
  padding: 5px 0;
  max-width: 720px;
  background: var(--white-color);
}

#topfix[data-fixed="fixed"] {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9;
  margin: auto;
  max-width: 730px;
  background: var(--white-color);
}

/* 导航栏样式 */
.nav {
  font-size: 16px;
}

.nav ul {
  display: flex;
  justify-content: space-between;
}

.nav ul li {
  width: 100%;
  box-sizing: border-box;
  padding: 0 1px;
}

.nav ul li a {
  display: block;
  height: 48px;
  line-height: 48px;
  text-align: center;
  color: var(--white-color);
  background: var(--nav-bg-gradient);
  font-weight: bold;
  transition: background 0.3s ease; /* 添加过渡效果 */
}

.nav ul li a:hover {
  background: var(--secondary-color);
}

/* 页脚样式 */
.footer {
  text-align: center;
  padding: 10px 20px;
}

/* 表格单元格样式 */
.header-cell {
  background: var(--nav-bg-gradient);
  height: 30px;
  color: var(--yellow-color);
  font-size: 18px;
  font-weight: bold;
}

.blue-text {
  color: var(--blue-color);
}

.red-text {
  color: var(--red-color);
}

.highlight {
  background-color: var(--yellow-color);
  color: var(--red-color);
}

.sub-header {
  background-color: var(--yellow-color);
  color: var(--red-color);
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  height: 40px;
}

.content-cell {
  background-color: var(--white-color);
  height: 40px;
}

.green-text {
  color: var(--green-color);
}

.red-min-text {
  color: var(--red-color);
  font-size: 12px;
}

/* 响应式样式 */
@media screen and (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .page {
    padding: 0;
    border: 0;
  }

  .nav ul li a {
    height: 40px;
    line-height: 30px;
    padding-top: 4px;
    font-size: 14px;
  }

  .nav ul li a span {
    display: block;
  }

  table {
    font-size: 14px;
  }

  th,
  td {
    padding: 4px;
  }

  .header-cell,
  .sub-header {
    font-size: 14px;
    height: auto;
    padding: 6px;
  }
}

/* 返回顶部按钮样式 */
.gotop {
  background: url(../images/top.png) center / contain no-repeat var(--red-color);
  position: fixed;
  right: 12px;
  bottom: 50px;
  z-index: 99;
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: opacity 0.3s ease; /* 添加过渡效果 */
}

.gotop:hover {
  opacity: 0.8; /* 鼠标悬停时半透明 */
}