:root {
  --primary: #1a3a6b;
  --primary-light: #2756a8;
  --accent: #e8a020;
  --bg: #f5f7fa;
  --text: #2c2c2c;
  --text-light: #666;
  --border: #dde3ed;
  --white: #ffffff;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary-light); }

/* ─── Header ─── */
header {
  background: var(--primary);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  color: var(--primary);
}

.logo-text h1 { font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.logo-text p { font-size: 11px; opacity: 0.7; letter-spacing: 0.5px; }

nav { display: flex; gap: 4px; }

nav a {
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  transition: background 0.2s, color 0.2s;
}

nav a:hover, nav a.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.header-btn {
  background: var(--accent);
  color: var(--primary) !important;
  font-weight: 600;
  padding: 8px 16px !important;
}

.header-btn:hover { background: #f0b030 !important; }

/* ─── Hero ─── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0f2550 100%);
  color: var(--white);
  padding: 64px 24px;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h2 { font-size: 36px; font-weight: 700; line-height: 1.3; margin-bottom: 16px; }
.hero h2 span { color: var(--accent); }
.hero p { font-size: 16px; opacity: 0.85; margin-bottom: 28px; }

.hero-btns { display: flex; gap: 12px; }

.btn-primary {
  background: var(--accent);
  color: var(--primary);
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s;
}

.btn-primary:hover { background: #f0b030; color: var(--primary); }

.btn-outline {
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); color: var(--white); }

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
}

.stat-card .num { font-size: 36px; font-weight: 700; color: var(--accent); }
.stat-card .label { font-size: 13px; opacity: 0.75; margin-top: 4px; }

/* ─── Sections ─── */
.section { padding: 56px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 22px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.more-link {
  font-size: 13px;
  color: var(--primary-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.more-link:hover { color: var(--primary); }

/* ─── Card Grid ─── */
.card-grid { display: grid; gap: 20px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border-radius: 10px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.12); transform: translateY(-2px); }

.card-tag {
  display: inline-block;
  background: #eef2fa;
  color: var(--primary-light);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.card-tag.tax { background: #fff3e0; color: #c06000; }
.card-tag.audit { background: #e8f5e9; color: #2e7d32; }
.card-tag.policy { background: #f3e5f5; color: #6a1b9a; }
.card-tag.news { background: #e3f2fd; color: #1565c0; }
.card-tag.firm { background: #fce4ec; color: #880e4f; }

.card h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; line-height: 1.4; }
.card h3 a:hover { color: var(--primary-light); }
.card p { font-size: 13px; color: var(--text-light); line-height: 1.7; }
.card-meta { font-size: 12px; color: #999; margin-top: 14px; display: flex; gap: 16px; }

/* ─── News List ─── */
.news-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }

.news-main-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
}

.news-main-img {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255,255,255,0.3);
}

.news-main-body { padding: 24px; }
.news-main-body .card-tag { margin-bottom: 12px; }
.news-main-body h3 { font-size: 18px; margin-bottom: 12px; }
.news-main-body p { font-size: 14px; color: var(--text-light); }

.news-list { display: flex; flex-direction: column; gap: 12px; }

.news-item {
  background: var(--white);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}

.news-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }

.news-date {
  flex-shrink: 0;
  background: var(--primary);
  color: var(--white);
  border-radius: 6px;
  padding: 8px;
  text-align: center;
  font-size: 11px;
  line-height: 1.3;
  min-width: 44px;
}

.news-date .day { font-size: 20px; font-weight: 700; display: block; }

.news-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; line-height: 1.4; }
.news-item p { font-size: 12px; color: var(--text-light); }

/* ─── Community ─── */
.community-section { background: #eef2f9; }

.forum-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }

.thread-list { display: flex; flex-direction: column; gap: 2px; }

.thread-item {
  background: var(--white);
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.thread-item:first-child { border-radius: 10px 10px 0 0; }
.thread-item:last-child { border-radius: 0 0 10px 10px; border-bottom: none; }
.thread-item:hover { background: #f0f4ff; }

.thread-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.thread-body { flex: 1; min-width: 0; }
.thread-body h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-body p { font-size: 12px; color: var(--text-light); }
.thread-stats { font-size: 12px; color: #999; text-align: right; flex-shrink: 0; }
.thread-stats span { display: block; }

.hot-topics { background: var(--white); border-radius: 10px; padding: 20px; box-shadow: var(--card-shadow); border: 1px solid var(--border); }
.hot-topics h3 { font-size: 15px; font-weight: 700; margin-bottom: 16px; color: var(--primary); }

.hot-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.hot-item:last-child { border-bottom: none; }

.hot-rank {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--border);
  color: var(--text-light);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hot-rank.top { background: var(--accent); color: var(--white); }

/* ─── Services ─── */
.service-card {
  background: var(--white);
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  text-align: center;
}

.service-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.service-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--primary); }
.service-card p { font-size: 13px; color: var(--text-light); }

.service-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.service-tag { background: #eef2fa; color: var(--primary-light); font-size: 11px; padding: 3px 8px; border-radius: 3px; }

/* ─── CTA Banner ─── */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 48px 24px;
  text-align: center;
  color: var(--white);
}

.cta-section h2 { font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.cta-section p { font-size: 15px; opacity: 0.85; margin-bottom: 28px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; }

/* ─── Footer ─── */
footer {
  background: #0e1f3d;
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand { }
.footer-brand .logo-icon { margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.8; margin-top: 12px; }

footer h4 { color: var(--white); font-size: 14px; font-weight: 600; margin-bottom: 16px; }

footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
footer ul li a { font-size: 13px; color: rgba(255,255,255,0.6); transition: color 0.2s; }
footer ul li a:hover { color: var(--white); }

.footer-contact p { font-size: 13px; line-height: 2; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

/* ─── Breadcrumb ─── */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  font-size: 13px;
  color: var(--text-light);
}

.breadcrumb-inner { max-width: 1200px; margin: 0 auto; }
.breadcrumb a { color: var(--primary-light); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ─── Page Hero ─── */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1e4a8a 100%);
  color: var(--white);
  padding: 40px 24px;
}

.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.page-hero h2 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.page-hero p { opacity: 0.8; }

/* ─── Tag Filter ─── */
.tag-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }

.tag-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 13px;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.2s;
}

.tag-btn:hover, .tag-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ─── Community Post Form ─── */
.post-form {
  background: var(--white);
  border-radius: 10px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.post-form h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.post-form input, .post-form textarea, .post-form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.2s;
}

.post-form input:focus, .post-form textarea:focus {
  border-color: var(--primary-light);
}

.post-form textarea { height: 100px; resize: vertical; }
.post-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.submit-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.submit-btn:hover { background: var(--primary-light); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats { display: none; }
  .card-grid-3 { grid-template-columns: 1fr 1fr; }
  .news-layout { grid-template-columns: 1fr; }
  .forum-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav { display: none; }
}

@media (max-width: 600px) {
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h2 { font-size: 26px; }
  .hero-btns { flex-direction: column; }
}
