:root {
  --web-bg: #f4f7f5;
  --web-text: #0f172a;
  --web-line: #dbe4dd;
}

* {
  box-sizing: border-box;
}

[x-cloak] {
  display: none !important;
}

body.web-body {
  margin: 0;
  color: var(--web-text);
  background:
    radial-gradient(1400px 600px at 0% -10%, rgba(16, 185, 129, 0.12), transparent 55%),
    radial-gradient(1000px 520px at 100% -20%, rgba(34, 197, 94, 0.1), transparent 60%),
    var(--web-bg);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.hero-layer {
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(148, 163, 184, 0.08)),
    #f8faf9;
}

.btn-primary {
  border: 1px solid #047857;
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  border-radius: 10px;
  padding: 0.62rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  filter: brightness(0.95);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-lite {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #334155;
  border-radius: 10px;
  padding: 0.56rem 0.95rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-lite:hover {
  background: #f8fafc;
}

.field-col {
  display: grid;
  gap: 0.42rem;
}

.field-col > span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

.field-input {
  width: 100%;
  border: 1px solid var(--web-line);
  border-radius: 10px;
  background: #fff;
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem;
  color: #0f172a;
  outline: none;
}

.field-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.qty-btn {
  width: 1.55rem;
  height: 1.55rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
}

.qty-btn:hover {
  background: #f8fafc;
}

.web-toast {
  position: fixed;
  top: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  min-width: 260px;
  max-width: min(92vw, 580px);
  border-radius: 12px;
  border: 1px solid;
  padding: 0.62rem 0.9rem;
  font-size: 0.875rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  text-align: center;
}

.web-toast-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.web-toast-error {
  border-color: #fecaca;
  background: #fff1f2;
  color: #be123c;
}

.article-rich-text {
  color: #1e293b;
  font-size: 1rem;
  line-height: 1.95;
  word-break: break-word;
}

.article-rich-text > *:first-child {
  margin-top: 0;
}

.article-rich-text > *:last-child {
  margin-bottom: 0;
}

.article-rich-text p {
  margin: 0 0 1.1rem;
}

.article-rich-text h1,
.article-rich-text h2,
.article-rich-text h3 {
  margin: 2rem 0 1rem;
  color: #0f172a;
  font-weight: 700;
  line-height: 1.35;
}

.article-rich-text h1 {
  font-size: 1.75rem;
}

.article-rich-text h2 {
  font-size: 1.45rem;
}

.article-rich-text h3 {
  font-size: 1.2rem;
}

.article-rich-text ul,
.article-rich-text ol {
  margin: 0 0 1.2rem 1.25rem;
  padding: 0;
}

.article-rich-text li {
  margin: 0.35rem 0;
}

.article-rich-text img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 1.5rem auto;
  display: block;
}

.article-rich-text blockquote {
  margin: 1.5rem 0;
  border-left: 4px solid #10b981;
  border-radius: 0 12px 12px 0;
  background: #f0fdf4;
  padding: 1rem 1.25rem;
  color: #334155;
}

.article-rich-text a {
  color: #047857;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-detail-page {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
  padding: 30px 0 56px;
}

.news-detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-bottom: 18px;
  font-size: 13px;
  color: #64748b;
}

.news-detail-breadcrumb a {
  color: #475569;
  text-decoration: none;
}

.news-detail-breadcrumb a:hover {
  color: #047857;
}

.news-detail-breadcrumb strong {
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-detail-state {
  border: 1px solid #dbe4dd;
  border-radius: 18px;
  background: #fff;
  padding: 64px 24px;
  color: #64748b;
  text-align: center;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.news-detail-state-error {
  border-color: #fecaca;
  background: #fff1f2;
  color: #be123c;
}

.news-detail-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(4, 120, 87, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(640px 240px at 8% 0%, rgba(16, 185, 129, 0.16), transparent 62%),
    linear-gradient(135deg, #ffffff 0%, #f8fbf9 54%, #eef8f2 100%);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.news-detail-hero::after {
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  content: "";
}

.news-detail-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 52px 56px;
}

.news-detail-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-detail-kicker span {
  border-radius: 999px;
  background: #047857;
  padding: 5px 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.news-detail-kicker em {
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.news-detail-hero h1 {
  margin: 20px 0 0;
  color: #061526;
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.news-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 24px;
  color: #64748b;
  font-size: 13px;
}

.news-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.news-detail-meta i {
  color: #059669;
  font-size: 15px;
}

.news-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
  margin-top: 28px;
}

.news-detail-article {
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #fff;
  padding: 48px 56px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.news-detail-aside {
  position: sticky;
  top: 92px;
}

.news-detail-side-card {
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  padding: 22px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}

.news-detail-side-card h2 {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
}

.news-detail-side-card dl {
  margin: 16px 0 0;
}

.news-detail-side-card dl div {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid #eef2f7;
  padding: 12px 0;
}

.news-detail-side-card dl div:first-child {
  padding-top: 0;
}

.news-detail-side-card dt {
  color: #94a3b8;
  font-size: 12px;
}

.news-detail-side-card dd {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
}

.news-detail-side-section {
  border-top: 1px solid #eef2f7;
  margin-top: 18px;
  padding-top: 18px;
}

.news-detail-side-section p {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
}

.news-detail-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.news-detail-chip {
  border-radius: 999px;
  background: #f1f5f9;
  padding: 5px 10px;
  color: #475569;
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
}

.news-detail-chip.is-green {
  background: #ecfdf5;
  color: #047857;
}

.news-detail-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 1px solid #dbe4dd;
  border-radius: 14px;
  margin-top: 22px;
  background: #f8fafc;
  padding: 12px 14px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s ease;
}

.news-detail-back:hover {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

@media (max-width: 960px) {
  .news-detail-layout {
    grid-template-columns: 1fr;
  }

  .news-detail-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .news-detail-page {
    width: min(100% - 24px, 1120px);
    padding-top: 22px;
  }

  .news-detail-hero-inner {
    padding: 34px 24px;
  }

  .news-detail-article {
    padding: 28px 22px;
  }
}
