:root {
  --gold: #d89a16;
  --gold-light: #f7c65a;
  --gold-soft: #fff7e3;
  --gold-dark: #93610a;
  --ink: #15233b;
  --muted: #6b7280;
  --line: #eadfca;
  --paper: #fffaf0;
  --green: #16865a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff8e8 0, #f6f1e5 280px, #f5f5f2 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(147, 97, 10, 0.18);
  background: rgba(255, 252, 244, 0.96);
  box-shadow: 0 8px 24px rgba(120, 82, 18, 0.08);
  backdrop-filter: blur(12px);
}

.header-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 78px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  min-width: max-content;
}

.home-rebrand-note {
  display: inline-flex;
  flex: 0 1 420px;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  max-width: 420px;
  border: 1px solid rgba(185, 115, 11, 0.28);
  border-radius: 999px;
  padding: 9px 11px;
  color: #8a3a00;
  background: linear-gradient(135deg, #fff3cf, #ffe7a8);
  box-shadow: 0 10px 22px rgba(112, 82, 28, 0.12);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.home-rebrand-note a {
  color: #c0392b;
  font-size: 15px;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.site-logo-img {
  display: block;
  width: auto;
  height: clamp(56px, 5.5vw, 75px);
  max-width: min(251px, 30vw);
  object-fit: contain;
}

.logo-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #b8730b, #f2bc43 55%, #ffe39c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 18px rgba(203, 139, 19, 0.24);
  font-size: 19px;
  font-weight: 900;
}

.logo strong,
.logo em {
  display: block;
}

.logo strong {
  color: #2d210f;
  font-size: 19px;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.logo em {
  color: var(--gold-dark);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.8px;
}

.nav-wrap {
  min-width: 0;
}

.nav-scroll {
  display: flex;
  justify-content: flex-end;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-scroll::-webkit-scrollbar {
  display: none;
}

.nav-scroll a {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 13px;
  color: #51360a;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s, background 0.2s;
}

.nav-scroll a:hover,
.nav-scroll .active {
  color: #fff;
  background: linear-gradient(135deg, #b8730b, #e8a929);
}

.notice-bar {
  border-bottom: 1px solid rgba(232, 209, 160, 0.75);
  background: rgba(255, 249, 234, 0.88);
}

.notice-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 40px;
  overflow: hidden;
  font-size: 14px;
}

.notice-inner strong {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 10px;
  color: #fff;
  background: linear-gradient(135deg, #b8730b, #e8a929);
}

.notice-inner a {
  min-width: 0;
  overflow: hidden;
  color: #57442a;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 310px;
  gap: 18px;
  padding: 20px 0 26px;
}

.quick-panel,
.focus-panel,
.market-card,
.flash-card,
.info-card,
.tool-card {
  border: 1px solid rgba(214, 188, 132, 0.22);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 238, 0.88));
  box-shadow: 0 18px 42px rgba(112, 82, 28, 0.10);
}

.quick-panel,
.focus-panel,
.market-card,
.flash-card {
  padding: 17px;
}

.panel-title,
.section-title,
.card-head,
.footer-main,
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-title h2,
.section-title h2,
.card-head h3 {
  margin: 0;
  color: #2d210f;
  font-size: 20px;
  line-height: 1.2;
}

.panel-title span,
.panel-title a,
.section-title a,
.card-head a {
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 700;
}

.quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.quick-links a {
  border: 1px solid rgba(218, 190, 130, 0.45);
  border-radius: 10px;
  padding: 12px 10px;
  background: linear-gradient(180deg, #fffdf7, #fff7e5);
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.quick-links a:hover {
  color: var(--gold-dark);
  background: #fff1c7;
  box-shadow: 0 10px 24px rgba(112, 82, 28, 0.10);
  transform: translateY(-2px);
}

.quick-links strong,
.quick-links span {
  display: block;
}

.quick-links strong {
  color: #2d210f;
  font-size: 16px;
}

.quick-links span {
  color: #8a7454;
  font-size: 12px;
}

.hot-tags {
  margin-top: 18px;
  padding-top: 16px;
}

.hot-tags h3 {
  margin: 0 0 10px;
  color: #2d210f;
  font-size: 16px;
}

.hot-tags a {
  display: inline-block;
  margin: 0 6px 8px 0;
  border-radius: 999px;
  padding: 5px 10px;
  color: #7d6949;
  background: var(--gold-soft);
  font-size: 12px;
}

.focus-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 224, 0.88));
}

.focus-panel::before {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(247, 198, 90, 0.22);
  content: "";
}

.focus-slider {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #1f2c44;
  box-shadow: 0 22px 42px rgba(31, 44, 68, 0.20);
}

.focus-slider-track {
  position: relative;
  aspect-ratio: 840 / 500;
  min-height: 300px;
}

.focus-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

.focus-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.focus-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.focus-slide::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 28, 45, 0.86) 0%, rgba(31, 44, 68, 0.58) 48%, rgba(31, 44, 68, 0.18) 100%);
  content: "";
}

.focus-slide-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 4vw, 44px);
  color: #fff;
}

.focus-slide-content span {
  width: fit-content;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 5px 13px;
  color: #fff4cf;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 900;
}

.focus-slide-content h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.15;
}

.focus-slide-content p {
  max-width: 640px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
}

.focus-slider-controls {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.focus-slider-btn,
.focus-slider-dot {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.focus-slider-btn {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.focus-slider-dots {
  display: flex;
  gap: 7px;
}

.focus-slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  padding: 0;
}

.focus-slider-dot.is-active {
  width: 24px;
  background: var(--gold-light);
}

.focus-slider-btn:hover,
.focus-slider-btn:focus-visible,
.focus-slider-dot:hover,
.focus-slider-dot:focus-visible {
  outline: none;
  background: rgba(247, 198, 90, 0.88);
}

.headline-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.58);
}

.headline-list a {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 12px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(240, 228, 202, 0.28);
}

.headline-list a:last-child {
  border-bottom: 0;
}

.headline-list strong {
  color: var(--gold-dark);
}

.headline-list span {
  min-width: 0;
  overflow: hidden;
  color: #3c3326;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.focus-cards a {
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 241, 199, 0.82));
  box-shadow: inset 0 0 0 1px rgba(218, 190, 130, 0.22), 0 12px 24px rgba(112, 82, 28, 0.08);
}

.focus-cards b,
.focus-cards span {
  display: block;
}

.focus-cards b {
  color: #2d210f;
  font-size: 17px;
}

.focus-cards span {
  margin-top: 6px;
  color: #76654d;
  font-size: 14px;
}

.right-panel {
  display: grid;
  gap: 18px;
  align-content: start;
}

.market-list,
.flash-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.market-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 249, 234, 0.66);
  font-size: 14px;
}

.market-list li:last-child,
.flash-list li:last-child {
  border-bottom: 0;
}

.market-list span {
  color: #6d5e47;
}

.market-list strong {
  color: #2d210f;
}

.market-list em {
  min-width: 58px;
  color: #837154;
  font-style: normal;
  text-align: right;
}

.market-list .up,
.market-list .up + em {
  color: #b46c00;
}

.market-list .down,
.market-list .down + em {
  color: var(--green);
}

.market-list .flat,
.market-list .flat + em {
  color: #837154;
}

.flash-list li {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 10px;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 249, 234, 0.58);
  font-size: 14px;
}

.flash-list time {
  color: var(--gold-dark);
  font-weight: 800;
}

.flash-list a {
  color: #4a3c27;
}

.info-section {
  padding: 8px 0 34px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 16px;
}

.info-card {
  padding: 18px;
}

.card-head {
  padding-bottom: 12px;
}

.card-head h3 {
  position: relative;
  padding-left: 12px;
  font-size: 19px;
}

.card-head h3::before {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f5c559, #a86e09);
  content: "";
}

.top-story {
  display: block;
  margin: 14px 0 10px;
  color: #2d210f;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
}

.info-card li {
  position: relative;
  margin-top: 6px;
  border-radius: 10px;
  padding: 8px 10px 8px 18px;
  color: #665944;
  background: rgba(255, 249, 234, 0.48);
  font-size: 14px;
}

.info-card li::before {
  position: absolute;
  top: 18px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.tools-section {
  padding: 38px 0 46px;
  background: radial-gradient(circle at 12% 0, rgba(255, 215, 128, 0.22), transparent 28%), linear-gradient(135deg, #1f2c44, #3a2c14 62%, #6d4709);
}

.section-title.light h2,
.section-title.light a {
  color: #fff7da;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.tool-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 18px;
  border-color: rgba(255, 220, 142, 0.22);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  transition: transform 0.2s, background 0.2s;
}

.tool-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 244, 211, 0.14);
}

.tool-icon {
  display: grid;
  grid-row: span 2;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.tool-icon.red { background: linear-gradient(135deg, #b8730b, #f2bc43); }
.tool-icon.blue { background: linear-gradient(135deg, #36506f, #8eb3d9); }
.tool-icon.green { background: linear-gradient(135deg, #16865a, #67c99a); }
.tool-icon.gold { background: linear-gradient(135deg, #9b650d, #ffd36a); }
.tool-icon.purple { background: linear-gradient(135deg, #6d5895, #b9a3e3); }
.tool-icon.orange { background: linear-gradient(135deg, #bd6b00, #ffc247); }
.tool-icon.cyan { background: linear-gradient(135deg, #28737d, #6fd2c7); }
.tool-icon.navy { background: linear-gradient(135deg, #1f2c44, #536a8e); }

.tool-card strong,
.tool-card em {
  display: block;
}

.tool-card strong {
  color: #fff7da;
  font-size: 16px;
}

.tool-card em {
  color: rgba(255, 247, 218, 0.7);
  font-size: 13px;
  font-style: normal;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
  padding: 24px 0 38px;
}

.page-main,
.article-detail,
.static-page,
.error-page,
.tools-page,
.tool-form-card,
.tool-result-card {
  border: 1px solid rgba(214, 188, 132, 0.62);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(112, 82, 28, 0.07);
}

.page-main,
.article-detail,
.static-page,
.error-page,
.tools-page {
  padding: 22px;
}

.page-side {
  display: grid;
  align-content: start;
  gap: 18px;
}

.page-hero {
  border-radius: 14px;
  padding: 28px;
  color: #fff;
  background: radial-gradient(circle at 80% 0, rgba(255, 255, 255, 0.22), transparent 25%), linear-gradient(135deg, #1f2c44, #9b650d 68%, #f3bc44);
}

.page-hero span {
  display: inline-block;
  margin-bottom: 8px;
  color: #fff1bd;
  font-size: 13px;
  font-weight: 800;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.18;
}

.page-hero p {
  max-width: 720px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.article-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.article-item a {
  display: block;
  border: 1px solid #f0e4ca;
  border-radius: 13px;
  padding: 18px;
  background: #fffdf8;
  transition: transform 0.2s, border-color 0.2s;
}

.article-item a:hover {
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.article-item span {
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 800;
}

.article-item h3 {
  margin: 6px 0;
  color: #2d210f;
  font-size: 21px;
  line-height: 1.35;
}

.article-item p {
  margin: 0;
  color: #665944;
}

.article-item em,
.article-meta,
.breadcrumb,
.muted-text {
  color: #8a7454;
  font-size: 13px;
  font-style: normal;
}

.article-item em {
  display: block;
  margin-top: 10px;
}

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

.pagination a,
.gold-btn {
  border-radius: 999px;
  padding: 8px 16px;
  color: #fff;
  background: linear-gradient(135deg, #b8730b, #e8a929);
  font-weight: 800;
}

.pagination span {
  color: #7d6949;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--gold-dark);
}

.article-detail h1,
.static-page h1,
.error-page h1 {
  margin: 0;
  color: #2d210f;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.22;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0e4ca;
}

.article-summary {
  margin: 18px 0;
  border-left: 4px solid var(--gold);
  padding: 12px 16px;
  color: #5a4930;
  background: var(--gold-soft);
  font-weight: 700;
}

.article-content {
  overflow-x: auto;
  color: #3d3427;
  font-size: 16px;
  line-height: 1.9;
  word-break: break-word;
}

.article-content p,
.article-content div,
.article-content .ace-line {
  margin: 0 0 16px;
}

.article-content h2,
.article-content h3 {
  margin: 26px 0 12px;
  color: #2d210f;
  line-height: 1.45;
}

.article-content h2 {
  font-size: 24px;
}

.article-content h3 {
  font-size: 20px;
}

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

.article-content li {
  margin: 6px 0;
  list-style-position: outside;
}

.article-content ul li {
  list-style-type: disc;
}

.article-content ol li {
  list-style-type: decimal;
}

.article-content blockquote {
  margin: 18px 0;
  border-left: 4px solid var(--gold);
  padding: 12px 16px;
  color: #5a4930;
  background: var(--gold-soft);
}

.article-content a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-content strong,
.article-content b {
  color: #2d210f;
  font-weight: 800;
}

.article-content table {
  display: table;
  width: 100%;
  max-width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  color: #3d3427;
  font-size: 15px;
  line-height: 1.65;
}

.article-content th,
.article-content td {
  border: 1px solid #ead9b8;
  padding: 10px 12px;
  vertical-align: top;
}

.article-content th {
  color: #2d210f;
  background: #fff4d6;
  font-weight: 800;
}

.article-content table div,
.article-content table .ace-line {
  margin: 0;
}

.article-content img {
  max-width: 100%;
  height: auto;
}

.risk-box {
  margin-top: 18px;
  border: 1px solid #efdcae;
  border-radius: 12px;
  padding: 13px 15px;
  color: #745728;
  background: #fff7df;
  font-size: 14px;
}

.risk-box.compact {
  margin-top: 16px;
  font-size: 13px;
}

.guess-card {
  margin-top: 20px;
  border: 1px solid #f0e4ca;
  border-radius: 14px;
  padding: 18px;
  background: #fffdf8;
}

.guess-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.guess-links a {
  display: grid;
  gap: 6px;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff7e3;
  transition: background 0.2s, transform 0.2s;
}

.guess-links a:hover {
  background: #ffe8ab;
  transform: translateY(-1px);
}

.guess-links strong {
  color: #2d210f;
  line-height: 1.45;
}

.guess-links span {
  color: #8a7657;
  font-size: 13px;
}

.related-card ul {
  margin-top: 10px;
}

.flash-timeline {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.flash-timeline li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  border: 1px solid #f0e4ca;
  border-radius: 13px;
  padding: 16px;
  background: #fffdf8;
}

.flash-timeline time {
  color: var(--gold-dark);
  font-weight: 800;
}

.flash-timeline h3 {
  margin: 0;
  color: #2d210f;
  font-size: 18px;
}

.flash-timeline p {
  margin: 8px 0;
  color: #665944;
}

.flash-timeline span {
  color: #8a7454;
  font-size: 13px;
}

.tools-page,
.tool-detail-page {
  padding-top: 24px;
  padding-bottom: 38px;
}

.tools-grid-page {
  margin-top: 18px;
}

.tool-detail-grid {
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  min-width: 0;
}

.tool-form-card,
.tool-result-card {
  min-width: 0;
  padding: 22px;
}

.tool-result-card {
  scroll-margin-top: 16px;
}

.tool-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.tool-heading h1 {
  margin: 0;
  color: #2d210f;
  font-size: 30px;
}

.tool-heading p {
  margin: 5px 0 0;
  color: #76654d;
}

.tool-form {
  display: grid;
  gap: 14px;
}

.tool-form label {
  display: grid;
  gap: 7px;
  color: #5e4c32;
  font-weight: 700;
}

.tool-form input,
.tool-form select {
  width: 100%;
  border: 1px solid #e5d2a8;
  border-radius: 10px;
  padding: 11px 12px;
  color: #2d210f;
  background: #fffdf8;
  font: inherit;
}

.tool-form button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: #fff;
  background: linear-gradient(135deg, #b8730b, #e8a929);
  cursor: pointer;
  font-weight: 900;
}

.tool-result-card h2 {
  margin: 0 0 14px;
  color: #2d210f;
}

.result-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 0;
}

.result-list dt {
  margin: 0;
  color: #7d6949;
  font-size: 12px;
  font-weight: 700;
}

.result-list dd {
  margin: -6px 0 0;
  color: #2d210f;
  font-size: 15px;
  font-weight: 900;
}

.result-list dt,
.result-list dd {
  min-width: 0;
}

.result-list dt:nth-of-type(odd),
.result-list dd:nth-of-type(odd) {
  grid-column: 1;
}

.result-list dt:nth-of-type(even),
.result-list dd:nth-of-type(even) {
  grid-column: 2;
}

.result-list dd:nth-of-type(odd),
.result-list dd:nth-of-type(even) {
  padding-bottom: 10px;
  border-bottom: 1px dashed #eadfca;
}

.form-error {
  border-radius: 10px;
  padding: 12px;
  color: #8a3a00;
  background: #fff0d0;
  font-weight: 800;
}

.error-page {
  margin-top: 28px;
  margin-bottom: 42px;
  text-align: center;
}

.error-page strong {
  color: var(--gold);
  font-size: 72px;
  line-height: 1;
}

.error-page p {
  color: #665944;
}

.site-footer {
  color: #c9baa0;
  background: #1f2c44;
}

.footer-main {
  align-items: flex-start;
  padding: 34px 0 24px;
}

.footer-brand {
  max-width: 430px;
}

.footer-logo {
  display: flex;
  align-items: center;
  color: #fff7da;
}

.footer-logo-img {
  display: block;
  width: auto;
  height: clamp(61px, 5.8vw, 79px);
  max-width: min(259px, 100%);
  object-fit: contain;
}

.footer-brand p {
  margin: 12px 0 0;
  color: #d9ccb5;
  font-size: 14px;
}

.risk-note {
  color: #bfae8f !important;
}

.footer-links h3 {
  margin: 0 0 12px;
  color: #fff7da;
  font-size: 16px;
}

.footer-links div {
  display: grid;
  grid-template-columns: repeat(2, minmax(72px, 1fr));
  gap: 8px 18px;
}

.footer-links a,
.friend-links a {
  color: #d9ccb5;
  font-size: 14px;
}

.footer-links a:hover,
.friend-links a:hover {
  color: var(--gold-light);
}

.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  border-top: 1px solid rgba(255, 229, 174, 0.12);
  padding: 18px 0;
  font-size: 14px;
}

.friend-links strong {
  color: #fff7da;
}

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

a,
button,
input,
textarea,
select {
  transition: color 0.18s, background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.focus-slide-content h1 a:hover,
.headline-list a:hover span,
.focus-cards a:hover span,
.article-item a:hover h3,
.top-story:hover,
.info-card li a:hover,
.flash-list a:hover,
.flash-timeline li:hover h3,
.breadcrumb a:hover {
  color: var(--gold-dark);
  text-decoration: underline;
  text-decoration-color: var(--gold-light);
  text-underline-offset: 4px;
}

.quick-panel:hover,
.market-card:hover,
.flash-card:hover,
.info-card:hover,
.article-item a:hover,
.tool-form-card:hover,
.tool-result-card:hover {
  border-color: rgba(216, 154, 22, 0.28);
  box-shadow: 0 22px 48px rgba(112, 82, 28, 0.14);
  transform: translateY(-1px);
}

.focus-panel:hover {
  box-shadow: 0 24px 54px rgba(112, 82, 28, 0.13);
}

.tool-form input:focus,
.tool-form select:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.admin-filter-form input:focus,
.admin-filter-form select:focus,
.admin-rich-editor:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(216, 154, 22, 0.15);
}

.tools-page .tool-card {
  border-color: rgba(216, 154, 22, 0.28);
  background: linear-gradient(180deg, #fffdf8, #fff4d6);
  box-shadow: 0 12px 28px rgba(112, 82, 28, 0.08);
}

.tools-page .tool-card:hover {
  border-color: var(--gold);
  background: #fff8e7;
  box-shadow: 0 20px 42px rgba(112, 82, 28, 0.16);
}

.tools-page .tool-card strong {
  color: #2d210f;
}

.tools-page .tool-card em {
  color: #76654d;
}

.tools-hub-page {
  display: grid;
  gap: 24px;
}

.tools-hub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: stretch;
  border-radius: 18px;
  padding: clamp(24px, 4vw, 38px);
  color: #fff;
  background: radial-gradient(circle at 78% 10%, rgba(255, 255, 255, 0.22), transparent 26%), linear-gradient(135deg, #1f2c44, #604111 58%, #c58412);
  box-shadow: 0 20px 46px rgba(112, 82, 28, 0.14);
}

.tools-hub-hero span,
.tool-detail-hero em,
.tool-feature-card em {
  color: #fff1bd;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.tools-hub-hero h1 {
  max-width: 760px;
  margin: 8px 0 0;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.12;
}

.tools-hub-hero p {
  max-width: 720px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.tools-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tools-hero-actions a {
  border: 1px solid rgba(255, 241, 189, 0.42);
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff7da;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.tools-hero-actions a:hover {
  color: #2d210f;
  background: #f7c65a;
}

.tools-hero-panel {
  display: grid;
  align-content: center;
  border: 1px solid rgba(255, 241, 189, 0.28);
  border-radius: 18px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.tools-hero-panel strong,
.stat-card strong {
  display: block;
  line-height: 1;
}

.tools-hero-panel strong {
  color: #fff7da;
  font-size: 58px;
}

.tools-hero-panel p {
  margin-top: 10px;
  font-size: 14px;
}

.tools-featured,
.tools-catalog,
.tool-info-card {
  border: 1px solid rgba(214, 188, 132, 0.42);
  border-radius: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(112, 82, 28, 0.06);
}

.tools-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.tool-feature-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  border: 1px solid #eadfca;
  border-radius: 16px;
  padding: 17px;
  background: linear-gradient(145deg, #fffdf8, #fff4d6);
}

.tool-feature-card:hover,
.related-tools-grid a:hover {
  border-color: var(--gold-light);
  box-shadow: 0 16px 34px rgba(112, 82, 28, 0.13);
  transform: translateY(-2px);
}

.tool-feature-card em {
  color: var(--gold-dark);
}

.tool-feature-card strong,
.tool-feature-card p {
  display: block;
}

.tool-feature-card strong {
  margin-top: 4px;
  color: #2d210f;
  font-size: 19px;
}

.tool-feature-card p {
  margin: 7px 0 0;
  color: #76654d;
  font-size: 14px;
}

.tools-catalog {
  display: grid;
  gap: 20px;
}

.tool-group-block {
  display: grid;
  gap: 14px;
}

.tool-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #f0e4ca;
  padding-bottom: 10px;
}

.tool-group-head h3,
.tool-card-title h2,
.tool-info-card h2 {
  margin: 0;
  color: #2d210f;
}

.tool-group-head span,
.tool-card-title p {
  color: #8a7454;
  font-size: 13px;
}

.tools-page .tool-card {
  align-items: start;
}

.tool-card-tags {
  display: flex;
  grid-column: 2;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.tool-card-tags b,
.tool-highlight-list span {
  border-radius: 999px;
  padding: 4px 9px;
  color: #7a510b;
  background: #fff0c2;
  font-size: 12px;
  font-weight: 800;
}

.tool-detail-hero {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-width: 0;
  margin-bottom: 20px;
  border-radius: 18px;
  padding: 26px;
  color: #fff;
  background: radial-gradient(circle at 82% 0, rgba(255, 255, 255, 0.18), transparent 28%), linear-gradient(135deg, #1f2c44, #9b650d 68%, #f3bc44);
}

.tool-detail-hero .tool-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  font-size: 28px;
}

.tool-detail-hero h1 {
  margin: 4px 0 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
}

.tool-detail-hero p {
  max-width: 820px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.tool-highlight-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tool-card-title {
  margin-bottom: 18px;
}

.tool-card-title p {
  margin: 6px 0 0;
}

.tool-form small {
  color: #92764b;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
}

.tool-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 20px;
  margin-top: 20px;
}

.tool-info-card ul {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.tool-info-card li {
  position: relative;
  padding-left: 18px;
  color: #665944;
}

.tool-info-card li::before {
  position: absolute;
  top: 10px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.related-tools-grid a {
  display: grid;
  gap: 8px;
  border: 1px solid #f0e4ca;
  border-radius: 14px;
  padding: 14px;
  background: #fffdf8;
}

.related-tools-grid .tool-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 18px;
}

.related-tools-grid strong,
.related-tools-grid em {
  display: block;
}

.related-tools-grid strong {
  color: #2d210f;
  line-height: 1.35;
}

.related-tools-grid em {
  color: #8a7454;
  font-size: 12px;
  font-style: normal;
}

.result-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  min-width: 0;
  border: 1px solid #f0e4ca;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, #fffdf8, #fff7e3);
}

.stat-card span,
.stat-card em {
  display: block;
  color: #8a7454;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.stat-card strong {
  overflow-wrap: anywhere;
  margin: 8px 0 5px;
  color: #2d210f;
  font-size: clamp(20px, 2.2vw, 27px);
}

.stat-card.primary {
  border-color: rgba(216, 154, 22, 0.36);
  background: linear-gradient(135deg, #fff4d6, #ffe7a8);
}

.stat-card.success strong {
  color: #16865a;
}

.stat-card.danger strong {
  color: #8a3a00;
}

.tool-table-wrap {
  max-height: 360px;
  margin-top: 16px;
  overflow: auto;
  border: 1px solid #f0e4ca;
  border-radius: 14px;
  background: #fffdf8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.tool-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 13px;
}

.tool-table th,
.tool-table td {
  border-bottom: 1px solid #f0e4ca;
  padding: 9px 10px;
  text-align: left;
  white-space: nowrap;
}

.tool-table th {
  position: sticky;
  top: 0;
  color: #6d4c13;
  background: #fff4d6;
  font-weight: 900;
}

.tool-table tr:last-child td {
  border-bottom: 0;
}

.tool-table tr.is-active td {
  color: #2d210f;
  background: #fff0c2;
  font-weight: 900;
}

.allocation-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.allocation-list div {
  position: relative;
  overflow: hidden;
  border: 1px solid #f0e4ca;
  border-radius: 12px;
  padding: 11px 12px;
  background: #fffdf8;
}

.allocation-list span,
.allocation-list strong {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.allocation-list span {
  color: #6d5e47;
  font-size: 13px;
  font-weight: 800;
}

.allocation-list strong {
  margin-top: 4px;
  color: #2d210f;
}

.allocation-list em {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, rgba(247, 198, 90, 0.34), rgba(247, 198, 90, 0.06));
}

.admin-body {
  min-height: 100vh;
  background: #f4efe3;
}

.admin-shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  padding: 22px 18px;
  color: #fff7da;
  background: linear-gradient(180deg, #1f2c44, #3a2c14);
}

.admin-logo {
  display: block;
  margin-bottom: 22px;
  color: #fff7da;
  font-size: 19px;
  font-weight: 900;
}

.admin-sidebar-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 79px;
  object-fit: contain;
  object-position: left center;
}

.admin-sidebar nav {
  display: grid;
  gap: 7px;
}

.admin-sidebar nav a {
  border-radius: 10px;
  padding: 10px 12px;
  color: #e7dbc1;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
  color: #1f2c44;
  background: #f7c65a;
}

.admin-main {
  min-width: 0;
  padding: 22px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  border: 1px solid rgba(214, 188, 132, 0.62);
  border-radius: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.92);
}

.admin-topbar > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-topbar form,
.admin-row-actions form {
  display: inline;
}

.admin-topbar button,
.admin-row-actions button,
.admin-sync-card button,
.admin-btn,
.admin-actions button,
.admin-login button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  background: linear-gradient(135deg, #b8730b, #e8a929);
  cursor: pointer;
  font-weight: 800;
}

.admin-panel,
.admin-login form {
  border: 1px solid rgba(214, 188, 132, 0.62);
  border-radius: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(112, 82, 28, 0.08);
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-section-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.admin-section-head h1,
.admin-panel h2 {
  margin: 0;
  color: #2d210f;
}

.admin-sync-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border: 1px solid #efe1c2;
  border-radius: 14px;
  padding: 14px;
  background: #fffaf0;
}

.admin-sync-card > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: #5e4c32;
}

.admin-sync-card strong {
  color: #2d210f;
}

.admin-sync-error {
  color: #8a3a00;
  font-weight: 800;
}

.admin-sync-card button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.admin-filter-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) minmax(150px, 1fr) minmax(130px, 0.8fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
  border: 1px solid #efe1c2;
  border-radius: 14px;
  padding: 14px;
  background: #fffaf0;
}

.admin-filter-form label {
  display: grid;
  gap: 6px;
  color: #5e4c32;
}

.admin-filter-form label > span {
  font-weight: 800;
}

.admin-filter-form input,
.admin-filter-form select {
  width: 100%;
  border: 1px solid #e5d2a8;
  border-radius: 10px;
  padding: 9px 11px;
  color: #2d210f;
  background: #fffdf8;
  font: inherit;
}

.admin-filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-filter-actions button {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  color: #fff;
  background: linear-gradient(135deg, #b8730b, #e8a929);
  cursor: pointer;
  font-weight: 800;
}

.admin-empty {
  color: #92764b;
  text-align: center;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #efe1c2;
  padding: 11px 10px;
  text-align: left;
}

.admin-table th {
  color: #6d4c13;
  background: #fff7e3;
}

.admin-row-actions {
  white-space: nowrap;
}

.admin-row-actions a,
.admin-link,
.admin-table-link {
  color: var(--gold-dark);
  font-weight: 800;
}

.admin-table-link:hover {
  text-decoration: underline;
}

.admin-row-actions button {
  margin-left: 8px;
  padding: 6px 10px;
  background: #8a3a00;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: #5e4c32;
}

.admin-form label > span {
  font-weight: 800;
}

.admin-field-help {
  color: #8a7657;
  font-size: 13px;
  line-height: 1.6;
}

.admin-form input,
.admin-form textarea,
.admin-form select,
.admin-rich-editor {
  width: 100%;
  border: 1px solid #e5d2a8;
  border-radius: 10px;
  padding: 10px 12px;
  color: #2d210f;
  background: #fffdf8;
  font: inherit;
}

.admin-field-full,
.admin-actions {
  grid-column: 1 / -1;
}

.admin-rich-editor {
  min-height: 420px;
  max-height: 720px;
  overflow: auto;
  background: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
}

.admin-rich-editor:empty::before {
  color: #a58b60;
  content: '在这里编辑正文内容';
}

.admin-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.admin-editor-toolbar button {
  border: 1px solid #e5d2a8;
  border-radius: 8px;
  padding: 6px 10px;
  color: #5d4314;
  background: #fff7e3;
  cursor: pointer;
}

.admin-editor-toolbar button:hover,
.admin-editor-toolbar button.is-active {
  border-color: var(--gold);
  color: #2d210f;
  background: #ffe7a8;
}

.admin-alert {
  margin-bottom: 14px;
  border-radius: 10px;
  padding: 11px 13px;
  color: #8a3a00;
  background: #fff0d0;
  font-weight: 800;
}

.admin-alert.success {
  color: #1d6849;
  background: #e8f7ef;
}

.admin-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.admin-cards div {
  border-radius: 14px;
  padding: 18px;
  color: #2d210f;
  background: linear-gradient(180deg, #fffdf8, #fff4d6);
  box-shadow: 0 12px 28px rgba(112, 82, 28, 0.08);
}

.admin-cards strong,
.admin-cards span {
  display: block;
}

.admin-cards strong {
  font-size: 28px;
}

.admin-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.admin-simple-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #efe1c2;
  padding: 10px 0;
}

.admin-simple-list a:hover {
  color: var(--gold-dark);
}

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

.admin-pagination a {
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  background: linear-gradient(135deg, #b8730b, #e8a929);
  font-weight: 800;
}

.admin-login {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 20px;
}

.admin-login form {
  width: min(420px, 100%);
}

.admin-login-logo {
  display: block;
  width: auto;
  height: clamp(76px, 9vw, 101px);
  max-width: 100%;
  margin: 0 auto 14px;
  object-fit: contain;
}

.admin-login h1 {
  margin: 0 0 20px;
  text-align: center;
}

.admin-login label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.admin-login input {
  border: 1px solid #e5d2a8;
  border-radius: 10px;
  padding: 11px 12px;
}

.admin-login button {
  width: 100%;
  margin-top: 6px;
  padding: 11px;
}

.admin-login a {
  display: block;
  margin-top: 14px;
  color: var(--gold-dark);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .focus-slide {
    transition: none;
  }
}

@media (max-width: 1080px) {
  .header-nav {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 9px 0;
  }

  .header-brand {
    flex-wrap: wrap;
  }

  .home-rebrand-note {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .site-logo-img {
    height: 79px;
    max-width: min(270px, 92vw);
  }

  .nav-scroll {
    justify-content: flex-start;
  }

  .home-layout {
    grid-template-columns: 220px 1fr;
  }

  .right-panel {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, 1fr);
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tools-hub-hero,
  .tools-featured-grid,
  .tool-info-grid {
    grid-template-columns: 1fr;
  }

  .tool-detail-grid {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .tools-hero-panel {
    align-content: start;
  }

  .related-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-sidebar nav {
    grid-template-columns: repeat(4, 1fr);
  }

  .admin-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1200px);
  }

  .site-header {
    position: static;
  }

  .header-nav {
    min-height: auto;
    padding: 10px 0 8px;
  }

  .site-logo-img {
    height: 62px;
    max-width: min(220px, 82vw);
  }

  .logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 18px;
  }

  .logo strong {
    font-size: 18px;
  }

  .nav-scroll {
    gap: 6px;
    padding-bottom: 2px;
  }

  .nav-scroll a {
    padding: 7px 12px;
    background: #fff4d4;
    font-size: 14px;
  }

  .notice-bar,
  .quick-panel {
    display: none;
  }

  .notice-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding: 9px 0;
  }

  .notice-inner a:nth-of-type(2) {
    display: none;
  }

  .home-layout,
  .right-panel,
  .info-grid,
  .tools-grid,
  .focus-cards,
  .guess-links,
  .footer-main,
  .page-layout,
  .tool-detail-grid,
  .tools-hub-hero,
  .tools-featured-grid,
  .tool-info-grid,
  .related-tools-grid,
  .flash-timeline li,
  .admin-form,
  .admin-filter-form,
  .admin-grid-two {
    grid-template-columns: 1fr;
  }

  .admin-sidebar nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-sync-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-layout {
    gap: 14px;
    padding-top: 14px;
  }

  .quick-panel,
  .focus-panel,
  .market-card,
  .flash-card,
  .info-card {
    padding: 15px;
  }

  .quick-links {
    grid-template-columns: repeat(4, minmax(78px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .quick-links a {
    min-width: 78px;
    padding: 10px 8px;
  }

  .quick-links span,
  .hot-tags {
    display: none;
  }

  .focus-slider-track {
    min-height: 260px;
  }

  .focus-slide-content {
    padding: 24px;
  }

  .focus-slide-content h1 {
    font-size: 30px;
  }

  .focus-slider-controls {
    right: 14px;
    bottom: 12px;
  }

  .headline-list a,
  .market-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .headline-list span {
    white-space: normal;
  }

  .market-list em {
    text-align: left;
  }

  .footer-main {
    gap: 24px;
    padding-top: 28px;
  }

  .footer-bottom .container {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .tools-hub-page,
  .tools-featured,
  .tools-catalog,
  .tool-form-card,
  .tool-result-card,
  .tool-info-card {
    padding: 16px;
  }

  .tool-detail-grid,
  .tools-featured-grid,
  .tool-info-grid {
    gap: 14px;
  }

  .tools-hub-hero,
  .tool-detail-hero {
    padding: 20px;
  }

  .tool-detail-hero {
    grid-template-columns: 54px 1fr;
    gap: 13px;
  }

  .tool-detail-hero .tool-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    font-size: 22px;
  }

  .result-summary {
    grid-template-columns: 1fr;
  }

  .result-list dt:nth-of-type(odd),
  .result-list dd:nth-of-type(odd),
  .result-list dt:nth-of-type(even),
  .result-list dd:nth-of-type(even) {
    grid-column: 1;
  }

  .tool-table-wrap {
    width: 100%;
    max-width: 100%;
    max-height: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tool-table {
    min-width: 460px;
  }

  .tool-form input,
  .tool-form select,
  .tool-form button {
    min-height: 44px;
  }

  .tool-detail-page,
  .tool-detail-hero,
  .tool-form-card,
  .tool-result-card,
  .tool-info-card,
  .stat-card,
  .result-list,
  .allocation-list div {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .tool-table th,
  .tool-table td {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .result-list {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .result-list dd {
    padding-bottom: 8px;
    border-bottom: 1px dashed #eadfca;
  }

  .tools-hub-page,
  .tool-form-card,
  .tool-result-card,
  .tool-info-card {
    padding: 14px;
  }

  .tool-detail-page {
    width: min(100% - 20px, 1200px);
    padding-top: 16px;
  }

  .tool-table {
    min-width: 420px;
    font-size: 12px;
  }

  .tool-table th,
  .tool-table td {
    padding: 8px;
  }

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

  .stat-card {
    padding: 12px;
  }

  .stat-card strong {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 20px, 1200px);
  }

  .header-nav {
    gap: 7px;
  }

  .header-brand {
    gap: 8px;
  }

  .home-rebrand-note {
    padding: 8px 12px;
    font-size: 13px;
  }

  .home-rebrand-note a {
    font-size: 14px;
  }

  .site-logo-img {
    height: 56px;
    max-width: min(198px, 82vw);
  }

  .footer-logo-img {
    height: 63px;
  }

  .admin-login-logo {
    height: 79px;
  }

  .nav-scroll a {
    padding: 6px 10px;
    font-size: 13px;
  }

  .panel-title h2,
  .section-title h2 {
    font-size: 18px;
  }

  .quick-links {
    grid-template-columns: repeat(4, 76px);
  }

  .focus-slider-track {
    min-height: 230px;
  }

  .focus-slide-content {
    padding: 20px;
  }

  .focus-slide-content h1 {
    font-size: 25px;
  }

  .focus-slide-content p {
    font-size: 14px;
  }

  .focus-slider-btn {
    width: 30px;
    height: 30px;
  }

  .tool-card {
    grid-template-columns: 46px 1fr;
    padding: 15px;
  }

  .tool-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 19px;
  }

  .footer-links div {
    grid-template-columns: 1fr 1fr;
  }
}
