/* 全局基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    "PingFang SC",
    Arial,
    sans-serif;
  background: #f7f7f7;
  color: #333;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font-family: inherit;
}

button {
  cursor: pointer;
  border: none;
}

.container {
  width: 1180px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
}

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #ff6b35;
}

.logo-icon {
  font-size: 30px;
}

.logo-text {
  font-size: 23px;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  color: #444;
}

.nav-menu a {
  position: relative;
  padding: 22px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #ff6b35;
}

.nav-menu a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 22px;
  height: 3px;
  border-radius: 99px;
  background: #ff6b35;
  transform: translateX(-50%);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-link {
  font-size: 14px;
  color: #555;
}

.login-link:hover {
  color: #ff6b35;
}

.register-btn {
  padding: 8px 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff6b35, #ff9f43);
  font-size: 14px;
}

/* 通用按钮 */
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6b35, #ff9f43);
  color: #fff;
  font-size: 14px;
  transition: 0.2s;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(255, 107, 53, 0.28);
}

.light-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  background: #fff4ed;
  color: #ff6b35;
  font-size: 14px;
}

.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #ff9f43;
  background: #fff;
  color: #ff6b35;
  font-size: 13px;
}

/* 标题 */
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title-row h2 {
  font-size: 24px;
  color: #222;
}

.section-title-row a {
  color: #ff6b35;
  font-size: 14px;
}

/* 登录弹窗 */
.modal-mask {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  background: rgba(0, 0, 0, 0.42);
}

.modal-mask.show {
  display: flex;
}

.login-modal {
  position: relative;
  width: 390px;
  max-width: calc(100% - 40px);
  padding: 34px 30px 28px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  text-align: center;
}

.login-modal h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.login-modal p {
  color: #666;
  font-size: 15px;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  font-size: 26px;
  color: #999;
}

.modal-close:hover {
  color: #ff6b35;
}

/* 页脚 */
.site-footer {
  margin-top: 50px;
  padding: 30px 0;
  color: #888;
  background: #fff;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 14px;
}

/* 响应式 */
@media (max-width: 900px) {
  .nav-menu {
    display: none;
  }

  .header-inner {
    height: 62px;
  }

  .logo-text {
    font-size: 20px;
  }
}
.site-footer a {

  color: #888;

}

.site-footer a:hover {

  color: #ff6b35;

}

.footer-note {

  margin-top: 4px;

}
/* 手机端通用适配 */
@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header {
    position: sticky;
    top: 0;
  }

  .header-inner {
    height: auto;
    min-height: 62px;
    align-items: center;
    gap: 12px;
  }

  .logo-text {
    font-size: 20px;
  }

  .logo-icon {
    font-size: 26px;
  }

  .nav-menu {
    display: none;
  }

  .header-actions {
    flex-shrink: 0;
  }

  .login-link {
    font-size: 14px;
  }

  .register-btn {
    padding: 7px 14px;
    font-size: 13px;
  }

  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
    font-size: 12px;
  }
}