/* EasyDecide editorial guides — shared with NW chrome (cards-nw.css) */
.ed-art {
  --art-forest: #00875a;
  --art-deep: #0f2f22;
  --art-ink: #1a1f1c;
  --art-mute: #5b6560;
  --art-mint: #e8f3ec;
  --art-line: #e3eae6;
  --art-max: 1180px;
  background: #f7faf8;
}
.ed-art-wrap {
  max-width: var(--art-max);
  margin: 0 auto;
  padding: 0 22px;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
@media (min-width: 900px) {
  .ed-art-wrap { padding: 0 32px; }
}
@media (max-width: 899px) {
  .ed-art-wrap {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
}

.ed-art-hero {
  background: linear-gradient(165deg, #12382a 0%, #1a5c42 48%, #0f766e 100%);
  color: #fff;
  padding: 28px 0 56px;
}
.ed-art-hero__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
  font-size: .9rem;
  font-weight: 700;
  opacity: .92;
}
.ed-art-hero__row a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ed-art-crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ed-art-crumb a { text-decoration: none; opacity: .9; }
.ed-art-crumb a:hover { opacity: 1; text-decoration: underline; }
.ed-art-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.15;
  max-width: 18ch;
  color: #fff;
}
.ed-art-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.ed-art-byline a { color: #d7f5e6; text-decoration: underline; text-underline-offset: 2px; }
.ed-art-avatars {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #c6f04a;
  color: #12382a;
  font-weight: 900;
  font-size: .8rem;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.ed-art-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-art-badges span {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .8rem;
  font-weight: 800;
}
.ed-art-lead {
  margin: 0;
  max-width: 62ch;
  font-size: 1.08rem;
  line-height: 1.65;
  font-weight: 600;
  opacity: .95;
}

.ed-art-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  margin-top: -28px;
  padding-bottom: 72px;
  width: 100%;
  /* 勿写 max-width:100%：与 .ed-art-wrap 同元素时会冲掉 --art-max，导致正文贴满左右 */
  min-width: 0;
  box-sizing: border-box;
}
.ed-art-wrap.ed-art-layout {
  max-width: var(--art-max);
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 980px) {
  .ed-art-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    gap: 36px;
    align-items: start;
  }
}

.ed-art-panel {
  background: #fff;
  border: 1px solid var(--art-line);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(16, 40, 28, .08);
  padding: 28px 22px 36px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}
@media (min-width: 700px) {
  .ed-art-panel { padding: 36px 40px 44px; }
}
.ed-art-panel h2 {
  margin: 28px 0 12px;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--art-deep);
}
.ed-art-panel h2:first-child { margin-top: 0; }
.ed-art-panel h3 {
  margin: 20px 0 8px;
  font-size: 1.12rem;
  font-weight: 900;
}
.ed-art-panel p,
.ed-art-panel li {
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
  color: #5c6b64;
}
.ed-art-panel p { margin: 0 0 14px; }
.ed-art-panel p b,
.ed-art-panel p strong,
.ed-art-panel li b,
.ed-art-panel li strong {
  font-weight: 700;
  color: #0a100d;
}
.ed-art-quote {
  margin: 8px 0 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f4faf6;
  border-left: 4px solid #174a35;
  font-weight: 800;
  color: #0a100d;
}
.ed-art-panel blockquote {
  margin: 16px 0 20px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: .95rem;
  font-weight: 600;
}
.ed-art-fine {
  font-size: .92rem !important;
  color: #64748b !important;
  font-weight: 600 !important;
}
.ed-art-cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 18px;
}
@media (max-width: 720px) {
  .ed-art-cases { grid-template-columns: 1fr; }
}
.ed-art-case {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--art-line);
  background: #fff;
  text-decoration: none !important;
  box-shadow: 0 8px 22px rgba(10, 16, 13, .06);
  color: inherit;
}
.ed-art-case:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(10, 16, 13, .1);
}
.ed-art-case img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  background: #eef4f0;
  display: block;
}
.ed-art-case__body {
  padding: 12px 14px 14px;
}
.ed-art-case__body b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #0a100d;
  line-height: 1.4;
  margin-bottom: 6px;
}
.ed-art-case__body em {
  display: block;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: var(--art-mute);
  line-height: 1.55;
}
.ed-art-panel ul, .ed-art-panel ol { margin: 0 0 16px; padding-left: 1.2em; }
.ed-art-panel li { margin: 0 0 8px; }
.ed-art-panel a {
  color: #0f766e;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ed-art-callout {
  margin: 20px 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--art-mint);
  border: 1px solid #cfe6d9;
}
.ed-art-callout strong { color: var(--art-forest); }

.ed-art-tool {
  margin: 22px 0 8px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #c9ddd3;
  background: linear-gradient(180deg, #f4fbf7, #fff);
}
.ed-art-tool h3 { margin-top: 0; }
.ed-art-fields {
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) {
  .ed-art-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ed-art-field label {
  display: block;
  margin-bottom: 6px;
  font-size: .88rem;
  font-weight: 800;
  color: var(--art-mute);
}
.ed-art-field input,
.ed-art-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #c9d5cf;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
  background: #fff;
}
.ed-art-result {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #12382a;
  color: #fff;
  font-weight: 800;
  line-height: 1.45;
}
.ed-art-result b { color: #c6f04a; font-size: 1.2rem; }
.ed-art-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}
.ed-art-chip {
  border: 1px solid #c9d5cf;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
  color: #174a35;
}
.ed-art-chip:hover,
.ed-art-chip.is-on {
  background: var(--art-mint);
  border-color: #8fbfa5;
}

.ed-art-check {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ed-art-check li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--art-line);
  cursor: pointer;
}
.ed-art-check input {
  margin-top: 5px;
  width: 18px;
  height: 18px;
  accent-color: var(--art-forest);
}
.ed-art-check.is-done span { text-decoration: line-through; color: var(--art-mute); }

.ed-art-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.ed-art-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 900;
  font-size: .95rem;
  text-decoration: none !important;
}
.ed-art-btn--solid { background: #174a35; color: #fff !important; }
.ed-art-btn--ghost {
  background: #fff;
  color: #174a35 !important;
  border: 1px solid rgba(23, 74, 53, .28);
}

.ed-art-side {
  position: sticky;
  top: 80px;
  min-width: 0;
  max-width: 100%;
}
.ed-art-side__card {
  background: #fff;
  border: 1px solid var(--art-line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(16, 40, 28, .08);
}
.ed-art-side__card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 900;
}
.ed-art-side__card p {
  margin: 0 0 12px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--art-mute);
  line-height: 1.55;
}
.ed-art-side__card ul {
  margin: 0 0 14px;
  padding-left: 1.1em;
  font-size: .92rem;
  font-weight: 700;
  color: #24302b;
}
.ed-art-side__card li { margin: 0 0 6px; }
.ed-art-foot {
  border-top: 1px solid var(--art-line);
  background: #fff;
  padding: 22px 0 40px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--art-mute);
}

/* Ask AI page */
.ed-askpage-box {
  display: grid;
  gap: 10px;
}
.ed-askpage-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.ed-askpage-row input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  min-height: 52px;
  border: 1px solid #c9d5cf;
  border-radius: 14px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
}
.ed-askpage-row button {
  flex: 0 0 auto;
  min-width: 52px;
  width: 52px;
  border: 0;
  border-radius: 14px;
  background: #174a35;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.ed-askpage-answer {
  margin-top: 14px;
  padding: 18px;
  border-radius: 14px;
  background: #f0f7f3;
  border: 1px solid #cfe6d9;
  display: none;
}
.ed-askpage-answer.is-on { display: block; }
.ed-askpage-answer h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 900; }
.ed-askpage-answer p { margin: 0 0 10px; }

/* 手机端：防止提问行/芯片把白卡片撑出右缘 */
@media (max-width: 979px) {
  .ed-art-hero__row {
    gap: 10px;
    flex-wrap: wrap;
  }
  .ed-art-panel {
    padding: 24px 16px 32px;
  }
  .ed-art-chips {
    max-width: 100%;
  }
  .ed-art-chip {
    max-width: 100%;
    white-space: normal;
    text-align: left;
  }
  .ed-art-cta {
    flex-wrap: wrap;
  }
  .ed-art-btn {
    max-width: 100%;
  }
}
