:root {
  --green: #1f7a42;
  --deep: #163f2a;
  --mint: #eaf7ee;
  --gold: #d99d34;
  --coral: #ee6c4d;
  --blue: #5f85f6;
  --ink: #183326;
  --muted: #6f7f76;
  --line: rgba(31, 122, 66, 0.12);
  --panel: rgba(255, 255, 255, 0.86);
  --paper: #fffdf8;
  --shadow: 0 18px 50px rgba(37, 77, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei",
    sans-serif;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 231, 177, 0.45), transparent 28rem),
    linear-gradient(135deg, #fffaf0 0%, #f6fbf3 48%, #fff9ec 100%);
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

.ambient {
  position: fixed;
  inset: auto 0 0;
  height: 160px;
  background:
    linear-gradient(180deg, transparent, rgba(164, 200, 154, 0.3)),
    linear-gradient(135deg, rgba(31, 122, 66, 0.12), rgba(217, 157, 52, 0.12));
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(360px, 560px) minmax(260px, 340px);
  gap: 28px;
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  padding: 38px 0 56px;
  align-items: start;
}

.brand-panel,
.side-panel {
  position: sticky;
  top: 28px;
}

.logo-block {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 16px;
  align-items: center;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 18px;
  color: #fff;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(145deg, #1a6b3a, #2d9255);
  box-shadow: 0 18px 36px rgba(31, 122, 66, 0.24);
}

.logo-block h1 {
  margin: 0;
  color: var(--deep);
  font-size: 40px;
  line-height: 1.06;
  font-weight: 900;
}

.logo-block p {
  margin: 14px 0 0;
  color: #263b2f;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 650;
}

.brand-card,
.phone-card,
.panel,
.hero,
.ad-grid article {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand-card {
  margin-top: 30px;
  padding: 22px;
  border-radius: 20px;
}

.brand-card span,
.section-head span,
.detail-meta span,
.answer-card span,
.ad-grid span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-card strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.brand-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.mini-stats div,
.board-grid div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  padding: 14px 10px;
  text-align: center;
}

.mini-stats strong,
.board-grid strong {
  display: block;
  color: var(--deep);
  font-size: 18px;
  line-height: 1.2;
}

.mini-stats span,
.board-grid span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.app-shell {
  overflow: hidden;
  border: 1px solid rgba(23, 64, 42, 0.12);
  border-radius: 30px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 28px 80px rgba(40, 65, 49, 0.18);
  padding: 20px;
}

.topbar,
.section-head,
.detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.eyebrow {
  color: var(--muted);
  font-size: 13px;
}

.topbar h2,
.section-head h3 {
  margin: 2px 0 0;
  color: var(--deep);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 850;
}

.ghost-btn,
.section-head button,
.tabs button,
.detail-meta button,
.close-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--deep);
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 750;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 18px;
}

.search-row input,
form input,
form textarea,
form select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  color: var(--ink);
  background: #fff;
}

.search-row input {
  height: 46px;
  padding: 0 16px;
}

.search-row button,
.hero-copy button,
form button,
.primary-wide {
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green), #2c8f50);
  color: #fff;
  padding: 0 18px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(31, 122, 66, 0.22);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  margin-top: 16px;
  border-radius: 22px;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 57, 34, 0.84), rgba(16, 57, 34, 0.2));
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(350px, 76%);
  padding: 24px;
  color: #fff;
}

.hero-copy span {
  font-size: 13px;
  font-weight: 800;
  color: #e9f7dc;
}

.hero-copy h3 {
  margin: 10px 0 8px;
  font-size: 24px;
  line-height: 1.28;
}

.hero-copy p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
}

.hero-copy button {
  min-height: 38px;
  background: rgba(15, 78, 40, 0.92);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.quick-actions button {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  padding: 12px 4px;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(42, 78, 53, 0.08);
}

.quick-actions b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  background: var(--green);
  box-shadow: 10px 0 0 rgba(31, 122, 66, 0.14);
}

.quick-actions button:nth-child(2) b {
  background: var(--coral);
  box-shadow: 10px 0 0 rgba(238, 108, 77, 0.16);
}

.quick-actions button:nth-child(3) b {
  background: #b69a2e;
  box-shadow: 10px 0 0 rgba(182, 154, 46, 0.16);
}

.quick-actions button:nth-child(4) b {
  background: var(--blue);
  box-shadow: 10px 0 0 rgba(95, 133, 246, 0.16);
}

.quick-actions span {
  width: 100%;
  color: #30443a;
  font-size: 12px;
  font-weight: 750;
  text-align: center;
  white-space: nowrap;
}

.panel,
.phone-card {
  border-radius: 20px;
  padding: 18px;
}

.panel + .panel,
.phone-card + .phone-card {
  margin-top: 18px;
}

.daily-list ol {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.daily-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: center;
  border-radius: 14px;
  padding: 10px;
  background: #fff;
}

.daily-list i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  background: var(--gold);
}

.daily-list button {
  width: 100%;
  overflow: hidden;
  color: var(--ink);
  background: transparent;
  font-weight: 750;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.ad-grid article {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
}

.ad-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ad-grid div {
  padding: 10px;
}

.ad-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.category-grid button {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 82px;
  border-radius: 16px;
  color: var(--deep);
  background: #f1faef;
  font-weight: 800;
}

.category-grid button:nth-child(3n + 2) {
  background: #fff5df;
}

.category-grid button:nth-child(3n) {
  background: #fff0ef;
}

.category-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 14px 0;
  border: 1px solid rgba(217, 157, 52, 0.2);
  border-radius: 999px;
  background: rgba(255, 248, 225, 0.9);
  padding: 4px;
}

.tabs button {
  border: 0;
  background: transparent;
  color: #6d745e;
  padding: 9px 6px;
  text-align: center;
}

.tabs button.active {
  background: #fff;
  color: var(--green);
  box-shadow: 0 6px 16px rgba(47, 89, 58, 0.08);
}

.article-list,
.compact-list {
  display: grid;
  gap: 10px;
}

.article-card,
.compact-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 13px;
}

.article-card h4,
.compact-item h4 {
  overflow: hidden;
  margin: 0;
  color: #213a2d;
  font-size: 15px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}

.tag-row span {
  border-radius: 999px;
  background: var(--mint);
  color: var(--green);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}

.heat {
  min-width: 58px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 850;
  text-align: right;
}

.side-panel {
  display: grid;
  gap: 18px;
}

.compact-item {
  grid-template-columns: 54px 1fr;
}

.compact-thumb {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--mint);
  font-size: 22px;
}

.compact-item span {
  color: var(--muted);
  font-size: 12px;
}

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

form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

form label {
  display: grid;
  gap: 7px;
  color: #395448;
  font-size: 13px;
  font-weight: 800;
}

form input,
form select {
  height: 44px;
  padding: 0 12px;
}

form textarea {
  min-height: 82px;
  resize: vertical;
  padding: 12px;
}

form button,
.primary-wide {
  min-height: 46px;
}

.submit-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.detail-mask {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 20px;
  background: rgba(14, 37, 25, 0.38);
}

.detail-mask[hidden] {
  display: none !important;
}

.detail-sheet {
  position: relative;
  overflow: auto;
  width: min(640px, 100%);
  max-height: min(86vh, 820px);
  border-radius: 28px;
  background: var(--paper);
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
}

.detail-sheet .detail-meta {
  min-height: 42px;
  padding-right: 58px;
}

.detail-sheet .detail-meta button {
  min-width: 74px;
}

.detail-sheet h2 {
  margin: 10px 0 8px;
  color: var(--deep);
  font-size: 26px;
  line-height: 1.35;
}

.detail-sheet h3 {
  margin: 22px 0 10px;
  color: var(--deep);
  font-size: 17px;
}

.detail-sheet p {
  color: #344b3d;
  line-height: 1.78;
}

.close-btn {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--deep);
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(31, 122, 66, 0.1);
}

.answer-card {
  border-radius: 18px;
  background: #fff8df;
  padding: 16px;
}

.answer-card p {
  margin: 8px 0 0;
}

.read-limit {
  color: var(--muted);
  font-size: 13px;
}

.source-link {
  display: inline-flex;
  margin: 0 8px 8px 0;
  border-radius: 999px;
  background: #eef7f0;
  color: var(--green);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.primary-wide {
  width: 100%;
  margin-top: 20px;
}

@media (max-width: 1060px) {
  .page {
    grid-template-columns: 1fr;
    width: min(760px, calc(100% - 24px));
    padding-top: 22px;
  }

  .brand-panel,
  .side-panel {
    position: static;
  }

  .brand-panel {
    display: grid;
    grid-template-columns: 1fr;
  }

  .logo-block {
    grid-template-columns: 62px 1fr;
  }

  .logo-mark {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    font-size: 34px;
  }

  .logo-block h1 {
    font-size: 30px;
  }

  .logo-block p {
    margin-top: 8px;
    font-size: 15px;
  }

  .brand-card {
    display: none;
  }
}

@media (max-width: 620px) {
  .page {
    width: 100%;
    padding: 12px 10px 34px;
  }

  .app-shell {
    border-radius: 24px;
    padding: 14px;
  }

  .topbar h2,
  .section-head h3 {
    font-size: 21px;
  }

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

  .search-row button {
    min-height: 42px;
  }

  .hero {
    min-height: 190px;
  }

  .hero-copy {
    width: 88%;
    padding: 20px;
  }

  .hero-copy h3 {
    font-size: 21px;
  }

  .quick-actions,
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .quick-actions button {
    min-height: 74px;
  }

  .quick-actions b {
    width: 32px;
    height: 32px;
  }

  .category-grid button {
    min-height: 74px;
    font-size: 13px;
  }

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

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

  .heat {
    text-align: left;
  }

  .detail-mask {
    padding: 0;
  }

  .detail-sheet {
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
  }
}
