:root {
  --orange: #ff8a36;
  --orange-deep: #f57b22;
  --bg: #f5f5f5;
  --line: #e7e7e7;
  --text: #1f2732;
  --muted: #7d8694;
  --blue: #2f66d8;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

.container {
  width: min(1240px, 94vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #e1e1e1;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 78px;
}

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

.logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ff8b0a;
  color: #fff;
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
}

.brand-text {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: .2px;
  transform: scale(.48);
  transform-origin: left center;
  width: 200px;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 14px;
  margin-right: auto;
}

.main-nav a {
  padding: 14px 22px;
  border-bottom: 3px solid transparent;
  color: #313640;
}

.main-nav a.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.auth-actions {
  display: flex;
  gap: 10px;
}

.btn {
  min-width: 76px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--orange);
  background: #fff;
  color: var(--orange);
  font-size: 23px;
  transform: scale(.58);
  transform-origin: center;
}

.btn-fill {
  background: var(--orange);
  color: #fff;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1600px 460px at 55% 96%, #8eaac6 0%, #98adc7 15%, #e8e3db 58%, #efede8 100%),
    linear-gradient(to bottom, #f2f3f5 0%, #e7dfd5 60%, #9cb5cf 100%);
}

.hero-inner {
  position: relative;
  text-align: center;
  padding-top: 130px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 58px);
  color: #1f355d;
  letter-spacing: 1px;
}

.hero .dot { color: var(--orange); }

.hero p {
  margin: 12px 0 44px;
  font-size: 20px;
  transform: none;
  color: #5e5e5e;
}

.search-box {
  width: min(760px, 78vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.search-box input {
  flex: 1;
  height: 52px;
  border: none;
  border-radius: 26px 0 0 26px;
  padding: 0 22px;
  background: #f2f2f2;
  outline: none;
  font-size: 18px;
  transform: none;
}

.search-box input::placeholder {
  font-size: 18px;
}

.search-box button {
  width: 140px;
  height: 52px;
  border: none;
  border-radius: 0 26px 26px 0;
  background: var(--orange);
  color: #fff;
  font-size: 18px;
  transform: none;
  cursor: pointer;
}

.hot-keywords {
  width: min(760px, 78vw);
  margin: 22px auto 0;
  color: #646d78;
  font-size: 15px;
  line-height: 1.9;
  transform: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
}

.hot-label {
  white-space: nowrap;
}

.hot-keywords-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  max-width: 620px;
}

.hot-keywords a {
  white-space: nowrap;
}

.banner-card {
  width: min(1020px, 88vw);
  margin: 45px auto 0;
  padding: 26px 34px;
  border-radius: 2px;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(90deg, #2dbf8d, #ff8700 56%);
}

.banner-card-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.banner-card h3 {
  margin: 0 0 10px;
  font-size: 46px;
  transform: scale(.48);
  transform-origin: center center;
}

.banner-card p {
  margin: 0;
  font-size: 32px;
  color: #f7ff9d;
  transform: scale(.5);
  transform-origin: center center;
}

.banner-card button {
  border: none;
  color: #fff;
  background: #ff2a2a;
  border-radius: 20px;
  padding: 9px 18px;
}

.news-section {
  background: #efefef;
  padding: 38px 0 46px;
}

.news-section h2 {
  text-align: center;
  margin: 14px 0 36px;
  font-size: 52px;
  transform: scale(.46);
}

.news-empty {
  height: 66px;
  background: #e6e6e6;
  color: var(--orange);
  display: grid;
  place-items: center;
  font-size: 28px;
  transform: scale(.52);
}

.mini-search {
  margin-left: auto;
  width: 300px;
  height: 40px;
  display: flex;
  border-radius: 20px;
  background: #ececec;
  overflow: hidden;
}

.mini-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0 20px;
  outline: none;
}

.mini-search button {
  width: 46px;
  border: none;
  background: transparent;
  font-size: 32px;
}

.page-tree { padding: 24px 0 50px; }

.page-tree h1 {
  margin: 0 0 14px;
  font-size: 30px;
}

.tree-panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px;
}

.tree {
  margin: 0;
  padding-left: 10px;
  color: rgba(0, 0, 0, 0.85);
    font-size: 14px;
    font-variant: tabular-nums;
    line-height: 1.5715;
    list-style: none;
    font-feature-settings: 'tnum';
}

.tree ul {
  margin: 10px 0 10px 28px;
  padding-left: 12px;
  border-left: 1px solid #d8d8d8;
}

.tree li {
  list-style: none;
  margin: 8px 0;
  line-height: 26.55px;
}

.tree a { color: #1f2732; }

.tree .tree-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tree .tree-code {
  color: var(--orange);
}

.tree .tree-name {
  color: #1f2732;
}

.tree .tree-link:hover .tree-code {
  color: var(--orange-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.tree .tag {
  color: var(--orange);
  margin-left: 6px;
  cursor: pointer;
  user-select: none;
}

.note-popup {
  position: absolute;
  z-index: 50;
  min-width: 360px;
  max-width: min(760px, calc(100vw - 24px));
  max-height: min(70vh, 640px);
  overflow: auto;
  padding: 10px 14px;
  border: 1px solid #ececec;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 32, 52, 0.12);
  color: #1f2732;
  line-height: 1.5;
  font-size: 14px;
  white-space: pre-wrap;
}

.note-popup[hidden] {
  display: none;
}

.note-popup .note-kind {
  color: var(--orange);
  margin-right: 8px;
  white-space: nowrap;
}

.toggle {
  width: 14px;
  height: 14px;
  border: 1px solid #d2d2d2;
  background: #f6f6f6;
  color: #7a7a7a;
  font-size: 11px;
  line-height: 11px;
  margin-right: 8px;
  padding: 0;
  vertical-align: middle;
}

.detail-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  padding: 20px 0 40px;
}

.left-card h3,
.left-item,
.card,
.result-count,
.ad-strip {
  background: #fff;
  border: 1px solid var(--line);
}

.left-card h3 {
  margin: 0;
  padding: 24px 18px;
  font-weight: 500;
}

.left-item {
  padding: 22px 18px;
  border-top: none;
}

.left-item a { color: #2f66d8; }

.left-item p { margin: 6px 0 0; }

.right-content { display: grid; gap: 12px; }

.card { padding: 18px 20px; }

.code-head h1 {
  margin: 0;
  color: var(--orange);
  font-size: 46px;
  transform: scale(.52);
  transform-origin: left center;
}

.code-head p { margin-top: -8px; }

.ad-strip {
  background: linear-gradient(90deg, #0f0f12, #383838);
  color: #fff;
  padding: 14px 20px;
  font-size: 36px;
  transform: scale(.52);
  transform-origin: left center;
  height: 78px;
}

.result-count {
  text-align: right;
}

.result-count span { color: var(--orange); }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-top h2 {
  margin: 0;
  font-size: 48px;
  transform: scale(.56);
  transform-origin: left center;
}

.card-top span { color: #2f66d8; }
.code-link {
  color: inherit;
}

.code-link:hover span {
  color: #1f4fb8;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.meta-links a { margin-left: 24px; color: #262d38; }

.tax-grid {
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tax-grid > div {
  border: 1px solid #d6d6d6;
  text-align: center;
  padding: 15px 10px;
}

.tax-grid strong {
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
}

.tax-grid span {
  color: #374255;
}

.card-actions {
  display: flex;
  gap: 10px;
}

.card-actions button {
  width: 120px;
  height: 34px;
  border: 1px solid #3f6fdd;
  color: #2f66d8;
  background: #fff;
}

.site-footer {
  margin-top: 24px;
  color: #e9edf5;
  background:
    linear-gradient(120deg, rgba(255, 138, 54, 0.1), rgba(47, 102, 216, 0.08)),
    #1d2533;
  border-top: 3px solid var(--orange);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
  padding: 34px 0 28px;
}

.footer-col h3 {
  margin: 0 0 14px;
  font-size: 18px;
  color: #fff;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin: 8px 0;
  line-height: 1.7;
  color: #c7d1e2;
}

.footer-col a {
  color: #dce5f4;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--orange);
}

.footer-notice li {
  position: relative;
  padding-left: 14px;
}

.footer-notice li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 0;
  color: #b6c1d1;
  font-size: 13px;
}

.news-page {
  padding: 26px 0 38px;
}

.news-head {
  background: #fff;
  border: 1px solid var(--line);
  padding: 26px 24px;
}

.news-head h1 {
  margin: 0;
  color: #1f355d;
  font-size: 32px;
}

.news-head p {
  margin: 10px 0 0;
  color: #667085;
}

.news-tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.news-tags a {
  padding: 6px 14px;
  border-radius: 14px;
  border: 1px solid #e8edf4;
  color: #526074;
  background: #f6f8fb;
}

.news-tags a.active {
  border-color: #ffd7b7;
  color: var(--orange-deep);
  background: #fff4ea;
}

.featured-news {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px;
}

.featured-cover {
  min-height: 210px;
  background:
    linear-gradient(140deg, rgba(47, 102, 216, 0.88), rgba(24, 41, 71, 0.9)),
    linear-gradient(90deg, #ffb06f, #ff8a36);
  border-radius: 10px;
  display: block;
  position: relative;
  overflow: hidden;
}

.featured-cover::after {
  content: "海关数据洞察";
  position: absolute;
  left: 14px;
  bottom: 14px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.featured-body .label {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff1e6;
  color: var(--orange-deep);
  font-size: 12px;
}

.featured-body h2 {
  margin: 12px 0 10px;
  line-height: 1.4;
  font-size: 28px;
}

.featured-body h2 a {
  color: #1f2732;
}

.featured-body p {
  margin: 0;
  color: #4f5d70;
  line-height: 1.8;
}

.featured-body .meta {
  margin-top: 14px;
  color: #8a95a5;
  font-size: 13px;
}

.news-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.news-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
}

.news-card .thumb {
  border-radius: 8px;
  display: block;
  min-height: 108px;
}

.thumb-1 { background: linear-gradient(130deg, #23375f, #2f66d8); }
.thumb-2 { background: linear-gradient(130deg, #ff9e4d, #ffd18a); }
.thumb-3 { background: linear-gradient(130deg, #1f7f8f, #69b5c2); }
.thumb-4 { background: linear-gradient(130deg, #6b7182, #a4acbf); }

.news-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.45;
}

.news-card h3 a { color: #1f2732; }

.news-card p {
  margin: 0;
  color: #59677a;
  line-height: 1.65;
  font-size: 14px;
}

.news-card span {
  display: inline-block;
  margin-top: 10px;
  color: #8b96a6;
  font-size: 12px;
}

.news-pagination {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.news-pagination a {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #dde3eb;
  background: #fff;
  color: #445066;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.news-pagination a.active {
  border-color: var(--orange);
  color: var(--orange-deep);
  background: #fff4ea;
}

.article-page {
  padding: 22px 0 40px;
}

.breadcrumb {
  color: #768296;
  margin-bottom: 12px;
}

.breadcrumb a { color: #5b6880; }

.article-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px 26px 28px;
}

.article-head h1 {
  margin: 0;
  line-height: 1.4;
  color: #1f355d;
  font-size: 36px;
}

.article-meta {
  margin-top: 12px;
  color: #8b96a6;
  font-size: 13px;
}

.article-head .lead {
  margin-top: 14px;
  color: #4d5a6e;
  line-height: 1.8;
}

.news-cover {
  margin: 20px 0;
  height: 320px;
  border-radius: 12px;
  background:
    radial-gradient(60% 80% at 18% 15%, rgba(255, 255, 255, 0.3), transparent 56%),
    linear-gradient(135deg, #1f355d 0%, #2f66d8 45%, #ff8a36 100%);
}

.article-content h2 {
  margin: 28px 0 10px;
  color: #1f355d;
  font-size: 24px;
}

.article-content p {
  margin: 0 0 12px;
  color: #2f3a4a;
  line-height: 1.9;
}

.article-content ul {
  margin: 0;
  padding-left: 18px;
}

.article-content li {
  margin: 8px 0;
  line-height: 1.75;
  color: #2f3a4a;
}

.figure-row {
  margin: 14px 0 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.figure-row figure {
  margin: 0;
}

.fig {
  height: 170px;
  border-radius: 8px;
}

.fig-a { background: linear-gradient(130deg, #274983, #3a7deb); }
.fig-b { background: linear-gradient(130deg, #ff9d4c, #ffc57d); }

.figure-row figcaption {
  margin-top: 8px;
  color: #73809a;
  font-size: 12px;
}

.article-content blockquote {
  margin: 14px 0;
  border-left: 4px solid var(--orange);
  background: #fff7f0;
  color: #5a4637;
  padding: 12px 14px;
}

.search-page {
  padding: 24px 0 40px;
}

.search-head-panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px 22px;
}

.search-head-panel h1 {
  margin: 0 0 14px;
  color: #1f355d;
}

.search-box-page {
  width: min(860px, 100%);
  margin: 0;
}

.search-meta {
  margin: 12px 0 0;
  color: #667085;
}

.search-results {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.search-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px 18px;
}

.search-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-card-head h3 {
  margin: 0;
  color: var(--blue);
  font-size: 24px;
}

.search-code-link {
  color: var(--blue);
}

.search-code-link:hover {
  color: #1f4fb8;
  text-decoration: underline;
}

.search-status {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #eef3ff;
  color: #2f66d8;
}

.search-status.expired {
  background: #fff1ea;
  color: #ea6a1d;
}

.search-name {
  margin: 8px 0 10px;
  color: #1f2732;
  font-size: 18px;
}

.search-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 10px;
  background: #f5f7fb;
  border: 1px solid #e6ebf2;
  color: #4f5d70;
  font-size: 13px;
}

.search-empty {
  background: #fff;
  border: 1px solid var(--line);
  color: #667085;
  padding: 18px;
}

.search-pagination {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.search-pagination a,
.search-pagination .disabled,
.search-pagination .pager-ellipsis {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #dde3eb;
  border-radius: 4px;
  background: #fff;
  color: #445066;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.search-pagination a:hover {
  border-color: #cbd5e3;
  background: #f8fafc;
}

.search-pagination a.active {
  border-color: var(--orange);
  color: var(--orange-deep);
  background: #fff4ea;
}

.search-pagination .pager-nav {
  padding: 0 14px;
}

.search-pagination .disabled {
  color: #a2acba;
  background: #f5f7fb;
  border-color: #e5eaf2;
  cursor: not-allowed;
}

.search-pagination .pager-ellipsis {
  min-width: 26px;
  padding: 0 4px;
  border: 0;
  background: transparent;
}

.hs-detail-page {
  padding: 20px 0 40px;
}

.hs-breadcrumb {
  margin-bottom: 12px;
}

.hs-breadcrumb span {
  color: #1f355d;
}

.hs-detail-hero {
  background: linear-gradient(120deg, #ffffff, #fff6ef);
  border: 1px solid #f3e2d4;
  padding: 20px 22px;
  margin-bottom: 12px;
}

.hs-hero-main {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
  align-items: start;
}

.hs-hero-left {
  min-width: 0;
}

.hs-hero-right {
  background: #fff;
  border: 1px solid #e6edf6;
  padding: 12px;
}

.hs-hero-right h2 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #1f355d;
}

.hs-code-chip {
  display: inline-block;
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  color: #c95d0e;
  background: #fff1e4;
  font-size: 12px;
}

.hs-detail-hero h1 {
  margin: 12px 0 10px;
  color: #1f355d;
  font-size: 18px;
  line-height: 1.35;
}

.hs-subtitle {
  margin: 0 0 10px;
  color: #6b7788;
  font-size: 12px;
}

.hs-path {
  color: #2b3f60;
  line-height: 1.8;
}

.hs-path-card {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.hs-path-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.hs-path-label {
  height: 32px;
  min-width: 73px;
  padding: 0 12px;
  border: 1px solid #d8dee8;
  background: #f5f7fb;
  color: #636f82;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  white-space: nowrap;
}

.hs-path-value {
  color: #243a5d;
  font-size: 14px;
  font-weight: 500;
  transform: none;
  margin-left: 0;
  line-height: 1.6;
  word-break: break-word;
}

.hs-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.hs-panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px 18px;
}

.hs-panel h2 {
  margin: 0 0 12px;
  font-size: 14px;
  color: #1f355d;
}

.hs-table {
  width: 100%;
  border-collapse: collapse;
}

.hs-table th,
.hs-table td {
  border-bottom: 1px solid #edf1f5;
  padding: 10px 4px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.hs-table th {
  width: 130px;
  color: #607086;
  font-weight: 600;
}

.hs-list {
  margin: 0;
  padding-left: 18px;
  color: #2f3a4a;
}

.hs-list li {
  margin: 8px 0;
  line-height: 1.7;
  font-size: 14px;
}

.hs-list strong {
  color: var(--orange-deep);
}

.hs-article h3 {
  margin: 14px 0 8px;
  color: #1f355d;
  font-size: 14px;
}

.hs-article p {
  margin: 0 0 10px;
  color: #2f3a4a;
  line-height: 1.85;
  font-size: 14px;
}

.hs-declare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 12px;
  border: 1px solid #dfe6f0;
}

.hs-declare-table td {
  border-bottom: 1px solid #e8edf4;
  padding: 10px 12px;
  font-size: 14px;
  color: #243a5d;
}

.hs-declare-table tr:nth-child(odd) td {
  background: #f7f9fc;
}

.hs-declare-table td.order {
  width: 64px;
  color: #4d5d73;
}

.hs-declare-table td.name {
  font-size: 14px;
  line-height: 1.4;
  text-align: right;
  padding-right: 18px;
}

.hs-links a {
  margin-right: 14px;
  color: #2f66d8;
}

.hs-links .hs-related-item {
  display: block;
  margin: 0 0 8px;
  line-height: 1.7;
  font-size: 14px;
}

.hs-links-top {
  margin: 0;
}

.hs-links-top .hs-related-item:last-child {
  margin-bottom: 0;
}

.hs-rate-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #dfe6f0;
}

.hs-rate-table td {
  border-bottom: 1px solid #e8edf4;
  padding: 10px 12px;
  font-size: 14px;
}

.hs-rate-table tr:nth-child(odd) td {
  background: #f7f9fc;
}

.hs-rate-table td.k {
  width: 140px;
  color: #233b60;
  white-space: nowrap;
}

.hs-rate-table td.v {
  color: #1f2732;
  text-align: right;
}

.hs-rate-table td.v.left {
  text-align: left;
}

@media (max-width: 960px) {
  .nav-wrap {
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 0;
  }

  .main-nav {
    order: 3;
    width: 100%;
    margin-right: 0;
  }

  .mini-search {
    width: 100%;
    order: 4;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .tax-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px 0 20px;
  }

  .featured-news {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .article-head h1 {
    font-size: 28px;
  }

  .news-cover {
    height: 230px;
  }

  .figure-row {
    grid-template-columns: 1fr;
  }

  .search-card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .hs-detail-hero h1 {
    font-size: 26px;
  }

  .hs-info-grid {
    grid-template-columns: 1fr;
  }

  .hs-hero-main {
    grid-template-columns: 1fr;
  }

  .hs-path-card {
    width: 100%;
  }

  .hs-path-value {
    margin-left: 0;
    transform: none;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100%, 94vw);
  }

  .site-header {
    position: static;
  }

  .nav-wrap {
    min-height: auto;
    gap: 10px;
    padding: 10px 0;
  }

  .brand-text {
    width: auto;
    font-size: 30px;
    transform: none;
  }

  .logo {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .main-nav {
    width: 100%;
    gap: 6px;
  }

  .main-nav a {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    font-size: 15px;
    border-bottom-width: 2px;
  }

  .home-page .main-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  .home-page .main-nav a {
    white-space: nowrap;
    padding: 8px 4px;
    font-size: 13px;
    line-height: 1.2;
    border-bottom-width: 2px;
  }

  .auth-actions {
    display: none;
  }

  .hero {
    min-height: 560px;
  }

  .hero-inner {
    padding-top: 82px;
  }

  .hero h1 {
    font-size: 42px;
    line-height: 1.2;
  }

  .home-page .hero-inner {
    padding-top: 72px;
  }

  .home-page .hero h1 {
    margin: 0 auto;
    max-width: 340px;
    font-size: 34px;
    line-height: 1.12;
    letter-spacing: 0;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .home-page .hero .dot {
    display: block;
  }

  .home-page .hero p {
    margin-top: 12px;
    font-size: 16px;
  }

  .hero p {
    margin: 10px 0 22px;
    font-size: 18px;
  }

  .search-box,
  .hot-keywords {
    width: 100%;
  }

  .search-box input {
    height: 46px;
    border-radius: 23px 0 0 23px;
    padding: 0 14px;
    font-size: 14px;
  }

  .search-box input::placeholder {
    font-size: 14px;
  }

  .search-box button {
    width: 110px;
    height: 46px;
    border-radius: 0 23px 23px 0;
    font-size: 14px;
  }

  .hot-keywords {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.8;
    justify-content: flex-start;
    gap: 6px;
  }

  .hot-keywords-list {
    max-width: none;
  }

  .tree-panel {
    padding: 12px;
  }

  .tree {
    font-size: 13px;
    line-height: 1.5;
  }

  .tree ul {
    margin: 8px 0 8px 18px;
    padding-left: 10px;
  }

  .detail-layout {
    gap: 12px;
    padding-top: 12px;
  }

  .left-item {
    padding: 14px 12px;
  }

  .card {
    padding: 14px 12px;
  }

  .code-head h1 {
    font-size: 34px;
    transform: none;
  }

  .card-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .card-top h2 {
    font-size: 38px;
    transform: none;
  }

  .meta-links a {
    margin-left: 0;
    margin-right: 14px;
  }

  .tax-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .card-actions {
    flex-wrap: wrap;
  }

  .card-actions button {
    width: calc(50% - 5px);
  }

  .news-head {
    padding: 18px 14px;
  }

  .featured-news,
  .news-card {
    padding: 12px;
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .hs-detail-page {
    padding: 12px 0 24px;
  }

  .hs-detail-hero {
    padding: 14px 12px;
  }

  .hs-hero-main {
    gap: 12px;
  }

  .hs-hero-right {
    padding: 10px;
  }

  .hs-hero-right h2 {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .hs-detail-hero h1 {
    font-size: 18px;
    line-height: 1.45;
    word-break: break-word;
  }

  .hs-subtitle,
  .hs-path {
    font-size: 14px;
    line-height: 1.7;
  }

  .hs-path-card {
    width: 100%;
    padding: 0;
  }

  .hs-path-item {
    display: flex;
    gap: 8px;
    padding: 0;
  }

  .hs-path-label {
    height: 26px;
    min-width: 80px;
    font-size: 13px;
    padding: 0 8px;
  }

  .hs-path-value {
    font-size: 14px;
    line-height: 1.6;
  }

  .hs-panel {
    padding: 12px;
  }

  .hs-panel h2 {
    font-size: 14px;
  }

  .hs-table th {
    width: 92px;
    font-size: 14px;
  }

  .hs-table td {
    font-size: 14px;
  }

  .hs-declare-table td.name {
    font-size: 14px;
    text-align: right;
  }
}
