/* 黄果魔改短剧：原创响应式样式 */
:root {
  --ink:#30201b;
  --muted:#78675d;
  --gold:#f6b91c;
  --cream:#fff9ee;
  --line:#eadfce;
  --brown:#422b25;
  --white:#fff;
  --shadow:0 14px 40px rgba(74,44,16,.09)}

* {
  box-sizing:border-box}

html {
  scroll-behavior:smooth}

body {
  margin:0;
  background:#fbf8f2;
  color:var(--ink);
  font:16px/1.7 system-ui,-apple-system,"Microsoft YaHei",sans-serif}

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

img {
  display:block;
  width:100%;
  object-fit:cover}

button,input {
  font:inherit}

.wrap {
  width:min(1160px,calc(100% - 36px));
  margin:auto}

.top {
  background:white;
  border-bottom:1px solid var(--line);
  position:relative;
  z-index:2}

.nav {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:78px}

.brand {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:22px;
  font-weight:900;
  white-space:nowrap}

.brand-icon {
  background:var(--gold);
  width:40px;
  height:40px;
  border-radius:50% 45% 50% 45%;
  display:grid;
  place-items:center;
  font-size:23px}

.navlinks {
  display:flex;
  gap:24px;
  align-items:center;
  flex-wrap:wrap}

.navlinks a {
  font-weight:700;
  font-size:14px}

.navlinks a:hover,.more:hover {
  color:#b47500}

.hero {
  background:#3b2b20;
  position:relative;
  overflow:hidden;
  min-height:365px;
  display:flex;
  align-items:center}

.hero>img {
  position:absolute;
  inset:0;
  height:100%;
  opacity:.72}

.hero:after {
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(36,21,14,.88),rgba(36,21,14,.35) 60%,rgba(36,21,14,.04))}

.hero-inner {
  position:relative;
  z-index:1;
  color:white;
  padding:65px 0;
  max-width:1160px;
  width:calc(100% - 36px);
  margin:auto}

.eyebrow {
  color:#ffdc83;
  letter-spacing:.2em;
  font-size:13px;
  font-weight:800}

.hero h1 {
  font-size:clamp(30px,4.2vw,52px);
  line-height:1.22;
  max-width:750px;
  margin:14px 0}

.hero p {
  max-width:650px;
  font-size:16px}

.btn {
  display:inline-block;
  background:var(--gold);
  padding:11px 24px;
  border-radius:999px;
  font-weight:800;
  margin-top:14px}

.quick {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin:26px auto 38px}

.quick a {
  background:white;
  border:1px solid var(--line);
  border-radius:16px;
  padding:19px;
  box-shadow:var(--shadow);
  font-weight:800}

.quick span {
  display:block;
  font-weight:400;
  font-size:13px;
  color:var(--muted)}

.section {
  margin:44px auto}

.section-head {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:15px;
  margin-bottom:18px}

.section-head h2 {
  margin:0;
  font-size:27px;
  line-height:1.4}

.section-head p {
  margin:3px 0 0;
  color:var(--muted);
  font-size:14px}

.more {
  font-weight:700;
  font-size:14px}

.layout {
  display:grid;
  grid-template-columns:1.7fr 1fr;
  gap:20px}

.feature {
  position:relative;
  border-radius:20px;
  overflow:hidden;
  min-height:310px;
  background:#2b1e18}

.feature img {
  height:100%;
  position:absolute;
  inset:0}

.feature:after {
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(0deg,rgba(18,10,7,.9),transparent 70%)}

.feature-content {
  position:absolute;
  z-index:1;
  bottom:20px;
  left:24px;
  right:24px;
  color:white}

.feature h3 {
  font-size:25px;
  margin:6px 0}

.panel {
  background:white;
  border:1px solid var(--line);
  border-radius:20px;
  padding:22px}

.panel h3 {
  margin:0 0 14px;
  font-size:20px}

.mini {
  display:flex;
  gap:13px;
  align-items:center;
  padding:12px 0;
  border-top:1px solid var(--line)}

.mini img {
  width:100px;
  height:67px;
  border-radius:9px}

.mini strong {
  display:block;
  line-height:1.4}

.mini small {
  color:var(--muted)}

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

.card {
  border:1px solid var(--line);
  border-radius:17px;
  background:white;
  overflow:hidden;
  transition:transform .2s,box-shadow .2s}

.card:hover {
  transform:translateY(-3px);
  box-shadow:var(--shadow)}

.card img {
  height:180px}

.card-body {
  padding:16px 18px 20px}

.tag {
  color:#9c6500;
  background:#fff2cb;
  padding:3px 9px;
  border-radius:30px;
  font-size:12px;
  font-weight:700}

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

.card p {
  color:var(--muted);
  font-size:14px;
  margin:0}

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

.editorial a {
  display:flex;
  gap:14px;
  align-items:center;
  background:white;
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  padding:10px}

.editorial img {
  width:42%;
  height:130px;
  border-radius:10px}

.editorial h3 {
  font-size:18px;
  line-height:1.4;
  margin:0}

.editorial p {
  font-size:13px;
  color:var(--muted);
  margin:7px 0 0}

.about {
  background:#fff4db;
  border:1px solid #f1dbad;
  border-radius:20px;
  padding:30px 34px;
  margin:44px auto 65px}

.about h2 {
  margin-top:0}

.footer {
  background:var(--brown);
  color:#fff2dc;
  padding:38px 0 20px}

.footer-main {
  display:flex;
  justify-content:space-between;
  gap:30px}

.footer p,.footer a {
  color:#e7d3bd;
  font-size:13px}

.footer-links {
  display:flex;
  gap:20px;
  flex-wrap:wrap}

.copyright {
  border-top:1px solid #775c50;
  margin-top:25px;
  padding-top:18px;
  font-size:12px;
  color:#ddc8b8}

.breadcrumb {
  font-size:13px;
  color:var(--muted);
  padding:22px 0}

.article {
  display:grid;
  grid-template-columns:minmax(0,1fr) 285px;
  gap:28px;
  margin-bottom:60px}

.article main {
  background:white;
  border:1px solid var(--line);
  padding:32px;
  border-radius:20px}

.article h1 {
  font-size:34px;
  line-height:1.35;
  margin:0 0 12px}

.article h2 {
  font-size:23px;
  margin:35px 0 10px;
  border-left:5px solid var(--gold);
  padding-left:13px}

.article p {
  color:#51433b}

.article .cover {
  height:330px;
  border-radius:14px;
  margin:22px 0}

.article aside {
  align-self:start}

.article aside a {
  display:block;
  border-top:1px solid var(--line);
  padding:12px 0}

.notice {
  font-size:13px;
  color:var(--muted);
  background:#fff9ee;
  padding:14px;
  border-radius:10px}

.search {
  border:1px solid var(--line);
  border-radius:99px;
  padding:7px 12px;
  width:210px;
  max-width:100%}

.search input {
  border:0;
  outline:0;
  width:100%;
  font-size:13px}

@media(max-width:950px) {
  .nav {
  flex-wrap:wrap;
  padding:13px 0}

.navlinks {
  order:3;
  width:100%;
  justify-content:space-between;
  gap:12px}

.layout,.article {
  grid-template-columns:1fr}

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

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

.editorial {
  grid-template-columns:1fr}

.article aside {
  display:none}
}

@media(max-width:560px) {
  .wrap {
  width:calc(100% - 26px)}

.navlinks {
  overflow:auto;
  flex-wrap:nowrap;
  justify-content:start;
  white-space:nowrap}

.search {
  display:none}

.hero {
  min-height:390px}

.hero-inner {
  padding:44px 0}

.quick {
  gap:8px}

.quick a {
  padding:12px;
  font-size:14px}

.cards {
  grid-template-columns:1fr}

.card img {
  height:220px}

.feature {
  min-height:260px}

.section-head h2 {
  font-size:23px}

.footer-main {
  flex-direction:column}

.article main {
  padding:19px}

.article h1 {
  font-size:27px}

.article .cover {
  height:210px}
}


/* Layout stability and accessibility */
html { overflow-x: clip; }
body { overflow-wrap: break-word; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid #a46a00; outline-offset: 3px; }
.layout > *, .cards > *, .editorial > *, .article > * { min-width: 0; }
@media (max-width: 560px) {
  .brand { font-size: 18px; }
  .hero h1 { font-size: clamp(28px, 8vw, 38px); }
  .mini img { flex: 0 0 90px; }
  .panel { padding: 16px; }
  .about { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
