* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
}
body {
  color: #333;
  background-color: #F5F7FA;
  line-height: 1.5;
  padding-top: 70px;
}
a { text-decoration: none; color: inherit; }
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

.global-header {
  width: 100%;
  height: 70px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  background-color: #CA7440;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.header-wrapper {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}
.header-logo img {
  width: 120px;
  height: auto;
  max-height: 60px;
  margin-right: 10px;
}
.header-brand-text {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}
.header-brand-short { display: none; color: #fff; font-size: 16px; font-weight: 700; }
.header-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}
.header-nav a {
  color: #fff;
  font-size: 15px;
  padding: 8px 0;
  position: relative;
  white-space: nowrap;
}
.header-nav a:hover { color: #000000f5; }
.header-nav a.active { color: #0F4C81; font-weight: 600; }
.header-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
}
.header-nav a:hover::after { width: 100%; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-link {
  color: #fff;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.header-link:hover { color: #0f4c81; }
.header-account {
  position: relative;
}
.header-account > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.header-account > summary::-webkit-details-marker { display: none; }
.header-account > summary::marker { content: ""; }
.header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0F4C81;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  line-height: 1;
}
.header-account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 148px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  padding: 4px 0 6px;
  z-index: 20;
}
.header-account-code {
  padding: 8px 16px 10px;
  color: #999;
  font-size: 13px;
  border-bottom: 1px solid #eee;
}
.header-account-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: #333;
}
.header-account-menu a:hover { background: #f6f7f9; }
.header-account-menu a.logout { color: #e53935; }
.header-btn {
  padding: 6px 14px;
  background-color: #0f4c81;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
}
.header-btn:hover { background-color: #0a3a66; }
.header-btn--ghost {
  background: #fff;
  color: #0F4C81;
}
.header-btn--ghost:hover { background: #fff8f2; color: #0a3a66; }

.banner-carousel {
  position: relative;
  height: 420px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background: #0F4C81;
}
.banner-track {
  display: flex;
  height: 100%;
  width: 300%;
  transition: transform 0.65s ease-in-out;
}
.banner-slide {
  flex: 0 0 33.333333%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-slide--welcome {
  background: linear-gradient(135deg, rgba(47, 111, 207, 0.92) 0%, rgba(15, 76, 129, 0.94) 100%);
}
.banner-slide--relaunch {
  background-color: #0a2f4a;
  background-image: linear-gradient(
    115deg,
    rgba(10, 47, 74, 0.88) 0%,
    rgba(15, 76, 129, 0.55) 48%,
    rgba(8, 36, 58, 0.9) 100%
  ), url("/images/banner-layout-wide.jpg");
  background-size: cover;
  background-position: center;
}
.banner-content { position: relative; z-index: 2; padding: 0 20px; max-width: 900px; }
.banner-content h1 {
  font-size: 36px;
  margin-bottom: 12px;
  line-height: 1.3;
  font-weight: 700;
}
.banner-content h1.banner-subline {
  color: #f1bf18;
  font-size: 22px;
  margin-bottom: 20px;
}
.banner-content p {
  font-size: 18px;
  margin-bottom: 28px;
  line-height: 1.6;
  opacity: 0.95;
}
.banner-btn {
  display: inline-block;
  padding: 14px 36px;
  background-color: #FF7F24;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 500;
  margin: 0 6px 8px;
}
.banner-btn:hover {
  background-color: #E67018;
}
.banner-btn--ghost {
  background-color: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.55);
}
.banner-dots {
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 4;
}
.banner-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.65);
  background: transparent;
  cursor: pointer;
}
.banner-dot.is-active {
  background: #FF7F24;
  border-color: #FF7F24;
}

.page-block { padding: 48px 0 24px; }
.section-title h2 {
  font-size: 24px;
  color: #0F4C81;
  padding-bottom: 8px;
  position: relative;
  margin-bottom: 24px;
}
.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 60px; height: 3px;
  background-color: #0F4C81;
}
.lead { color: #555; font-size: 16px; margin-bottom: 28px; max-width: 720px; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.card h3 { color: #0F4C81; margin-bottom: 10px; font-size: 18px; }
.card p { color: #666; font-size: 14px; }
.card .price {
  font-size: 28px;
  color: #FF7F24;
  font-weight: 700;
  margin: 12px 0;
}
.card .muted { font-size: 13px; color: #888; }
.auth-box {
  max-width: 420px;
  margin: 40px auto 60px;
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.auth-box h1 { font-size: 20px; color: #0F4C81; margin-bottom: 8px; }
.auth-box .hint { font-size: 13px; color: #666; margin-bottom: 20px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; color: #555; margin-bottom: 4px; }
.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}
.err { background: #fee; color: #c00; padding: 10px; border-radius: 4px; margin-bottom: 14px; font-size: 14px; }
.ok { background: #e8f6e8; color: #1a6b1a; padding: 10px; border-radius: 4px; margin-bottom: 14px; font-size: 14px; }
.form-code { display: flex; gap: 8px; align-items: stretch; }
.form-code input { flex: 1; min-width: 0; }
.btn-code {
  background: #0F4C81;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0 12px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-code:hover { background: #0a3a66; }
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
  margin: 0;
}
.forum-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.forum-toolbar .section-title h2 { margin-bottom: 0; }
.forum-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.forum-cat {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 16px;
  background: #fff;
  color: #0F4C81;
  font-size: 12px;
  border: 1px solid #d7e3ef;
}
.forum-cat:hover,
.forum-cat.is-active {
  background: #0F4C81;
  color: #fff;
  border-color: #0F4C81;
}
.topic-list {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  overflow: hidden;
}
.topic-head,
.topic-row {
  display: grid;
  grid-template-columns: 1fr 72px 140px;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
}
.topic-head {
  font-size: 12px;
  color: #888;
  background: #f7f9fc;
  border-bottom: 1px solid #eee;
}
.topic-row {
  border-bottom: 1px solid #f0f0f0;
  color: inherit;
}
.topic-row:last-child { border-bottom: none; }
.topic-row:hover { background: #fafbfd; }
.topic-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.topic-cat {
  display: inline-block;
  width: fit-content;
  font-size: 12px;
  color: #0F4C81;
  background: #eef4fa;
  padding: 1px 8px;
  border-radius: 10px;
}
.topic-title { font-size: 16px; color: #222; font-weight: 600; }
.topic-author { font-size: 12px; color: #888; }
.topic-meta-col { font-size: 13px; color: #666; text-align: right; }
.pager {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  font-size: 14px;
  color: #555;
}
.pager a { color: #0F4C81; }
.muted-line { color: #888; font-size: 13px; margin-bottom: 20px; }
.post-list { display: flex; flex-direction: column; gap: 14px; }
.post-item { padding: 20px 24px; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  color: #666;
}
.post-op {
  font-size: 12px;
  color: #fff;
  background: #FF7F24;
  border-radius: 10px;
  padding: 1px 8px;
}
.post-floor { color: #999; }
.post-time { margin-left: auto; color: #999; }
.post-body {
  white-space: pre-wrap;
  word-break: break-word;
  color: #333;
  font-size: 15px;
  line-height: 1.7;
}
.forum-form { max-width: 760px; }
.notice {
  background: #fff8e6;
  border: 1px solid #f1bf18;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

.global-footer {
  width: 100%;
  background-color: #0F4C81;
  color: #fff;
  padding: 40px 0 20px;
  margin-top: 48px;
}
.footer-wrapper { padding: 0 28px; }
.footer-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}
.global-footer .footer-logo img { width: 100px; height: auto; margin-bottom: 8px; }
.footer-info { font-size: 14px; }
.footer-disclaimer { font-size: 12px; color: #E0E8F0; max-width: 900px; line-height: 1.5; }
.footer-copyright {
  font-size: 12px;
  color: #C9D6E4;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
  width: 100%;
  margin-top: 8px;
}
.footer-content a { color: #f1bf18; }

@media (max-width: 900px) {
  .header-brand-text { display: none; }
  .header-brand-short { display: inline; }
  .header-nav { gap: 12px; }
  .header-nav a { font-size: 13px; }
  .banner-content h1 { font-size: 26px; }
}
@media (max-width: 640px) {
  .header-logo img { width: 88px; margin-right: 6px; }
  .header-wrapper { padding: 0 12px; gap: 8px; }
  .header-nav {
    gap: 10px;
    max-width: 42vw;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .topic-head { display: none; }
  .topic-head,
  .topic-row {
    grid-template-columns: 1fr;
  }
  .topic-meta-col { text-align: left; }
  .topic-meta-col--wide { color: #999; font-size: 12px; }
}
