/* ribenmvhd.cn — original editorial design */
:root {
  --ink: #1e3039;
  --muted: #66757d;
  --rose: #bf5b75;
  --rose-soft: #f5e7eb;
  --paper: #fbfaf8;
  --line: #e6e2df;
  --teal: #315d66;
  --radius: 17px;
  --shadow: 0 18px 46px rgba(32, 42, 46, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.75 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--rose); }
img { display: block; width: 100%; height: auto; }
.container { width: min(1160px, calc(100% - 44px)); margin-inline: auto; }
.skip { position: absolute; left: -1000px; top: 0; padding: 12px; background: white; z-index: 200; }
.skip:focus { left: 12px; }
.topline { height: 5px; background: linear-gradient(90deg, #294e58 0%, #ba617b 52%, #e8c6ad 100%); }
.header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 84px; display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; color: #fff; background: var(--rose); border-radius: 12px 12px 12px 3px; font-size: 23px; }
.brand-name { display: block; font-weight: 850; font-size: 23px; line-height: 1.3; letter-spacing: .04em; }
.brand-small { display: block; font-size: 11px; color: var(--muted); letter-spacing: .12em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(12px, 1.8vw, 30px); font-size: 14px; font-weight: 650; }
.nav a { padding: 10px 0; border-bottom: 2px solid transparent; }
.nav a[aria-current='page'], .nav a:hover { color: var(--rose); border-color: var(--rose); }
.nav .nav-cta { border: 1px solid #d9c5c9; border-radius: 99px; padding: 7px 16px; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-weight: 800; font-size: 11px; color: var(--rose); }
.hero { margin-top: 26px; display: grid; grid-template-columns: .90fr 1.10fr; min-height: 420px; overflow: hidden; background: #f3eced; border-radius: 23px; box-shadow: var(--shadow); }
.hero-copy { padding: clamp(28px, 5vw, 58px); display: flex; flex-direction: column; justify-content: center; align-items: start; }
.hero h1 { font-size: clamp(28px, 3.3vw, 44px); line-height: 1.34; letter-spacing: -.035em; margin: 16px 0 17px; }
.hero p { font-size: 15px; color: #596870; max-width: 430px; margin: 0 0 25px; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: 52% center; }
.hero .button { display: inline-block; background: var(--teal); color: #fff; border-radius: 6px; padding: 11px 20px; font-weight: 700; font-size: 14px; }
.hero .button:hover { background: #173e47; }
.ribbon { display: flex; align-items: center; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.ribbon strong { color: var(--ink); }
.section { margin-block: 64px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(23px, 2.5vw, 31px); margin: 4px 0 0; letter-spacing: -.025em; }
.section-head p { max-width: 480px; color: var(--muted); font-size: 14px; margin: 0; }
.feature-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 25px; }
.feature-large { position: relative; background: var(--ink); min-height: 390px; overflow: hidden; border-radius: var(--radius); }
.feature-large img { height: 100%; object-fit: cover; }
.feature-large:after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(16,28,35,.92)); pointer-events: none; }
.feature-overlay { position: absolute; bottom: 27px; left: 30px; right: 30px; color: #fff; z-index: 1; }
.feature-overlay h3 { font-size: 27px; line-height: 1.4; margin: 8px 0; }
.feature-overlay p { margin: 0; color: #f5e7e9; font-size: 14px; }
.feature-side { display: grid; grid-template-rows: repeat(2, 1fr); gap: 18px; }
.feature-side a { display: grid; grid-template-columns: 43% 1fr; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.feature-side img { height: 100%; min-height: 172px; object-fit: cover; }
.feature-side .side-copy { align-self: center; padding: 20px; }
.feature-side h3 { font-size: 20px; line-height: 1.5; margin: 7px 0; }
.feature-side p { color: var(--muted); margin: 0; font-size: 13px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 19px; }
.card { min-width: 0; display: block; background: #fff; border: 1px solid var(--line); overflow: hidden; border-radius: var(--radius); transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { width: 100%; height: 170px; object-fit: cover; }
.card-body { padding: 18px; }
.card h3 { font-size: 18px; margin: 7px 0; line-height: 1.48; }
.card p { margin: 0; font-size: 13px; color: var(--muted); }
.ink-section { background: #223d45; color: #fff; padding: 53px 0; margin-top: 70px; }
.ink-section .eyebrow { color: #f0b2c1; }
.ink-section h2 { margin: 6px 0 18px; line-height: 1.5; }
.ink-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 26px; }
.ink-grid article { border-top: 1px solid #789098; padding-top: 18px; }
.ink-grid p { font-size: 14px; color: #d2dcdf; margin: 8px 0 0; }
.footer { background: #192d34; color: #dbe4e6; padding: 38px 0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; align-items: center; }
.footer small { color: #aabcc2; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin: 28px 0; }
.breadcrumb a { color: var(--teal); }
.article-shell { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; margin-top: 26px; margin-bottom: 70px; }
.article-kicker { color: var(--rose); font-weight: 800; font-size: 13px; letter-spacing: .08em; }
.article-main h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.35; margin: 12px 0 16px; }
.article-lead { font-size: 18px; color: #5a6c74; line-height: 1.9; border-left: 3px solid var(--rose); padding-left: 20px; }
.article-hero { aspect-ratio: 16/8.5; object-fit: cover; border-radius: var(--radius); margin: 24px 0 34px; }
.prose { color: #344a54; font-size: 16px; }
.prose h2 { color: var(--ink); font-size: 25px; margin: 36px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.prose p { margin: 0 0 20px; }
.sidebar { border-left: 1px solid var(--line); padding-left: 27px; }
.sidebar h2 { font-size: 19px; margin: 0 0 14px; }
.sidebar a { display: block; padding: 15px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.note { background: #f4e9eb; border-radius: 12px; padding: 18px 21px; font-size: 14px; color: #594952; }
.related { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.related a { border: 1px solid var(--line); background: white; padding: 15px; border-radius: 9px; font-size: 14px; }
@media (max-width: 960px) {
  .header-inner { align-items: flex-start; padding: 19px 0; flex-direction: column; gap: 12px; }
  .hero { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-shell { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .sidebar { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1160px); }
  .header-inner { min-height: unset; }
  .brand-name { font-size: 21px; }
  .nav { gap: 8px 17px; font-size: 13px; }
  .hero { margin-top: 15px; grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding: 29px 24px; }
  .hero h1 { font-size: 29px; overflow-wrap: anywhere; }
  .hero img { height: 240px; object-position: center 42%; }
  .feature-layout, .ink-grid, .related { grid-template-columns: 1fr; }
  .feature-large { min-height: 320px; }
  .feature-side a { grid-template-columns: 37% 1fr; }
  .feature-side img { min-height: 140px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card img { height: 122px; }
  .card-body { padding: 12px; }
  .card h3 { font-size: 15px; }
  .card p { font-size: 12px; }
  .section { margin-block: 43px; }
  .section-head { display: block; }
  .section-head p { margin-top: 7px; }
  .article-main h1 { overflow-wrap: anywhere; }
  .article-shell { gap: 30px; }
  .feature-overlay h3 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { transition: none; } }

/* 2026-11-23 layout hardening: intrinsic sizing, accessibility, mobile navigation */
html { -webkit-text-size-adjust: 100%; }
body { min-width: 320px; overflow-wrap: break-word; }
main, .header, .footer { min-width: 0; }
.container, .hero-copy, .section-head > div, .feature-layout > *, .feature-side > *, .feature-side .side-copy, .article-main { min-width: 0; }
.hero-copy, .feature-overlay, .side-copy, .card-body, .prose { overflow-wrap: break-word; }
.nav a:focus-visible, .button:focus-visible, .card:focus-visible, .feature-large:focus-visible, .feature-side a:focus-visible, .footer a:focus-visible { outline: 3px solid #a43e61; outline-offset: 3px; }
.feature-side a { min-height: 0; }
.feature-side h3, .feature-overlay h3, .card h3 { text-wrap: pretty; }
.article-main, .prose { min-width: 0; }
@media (max-width: 960px) {
  .header-inner { gap: 10px; }
  .nav { width: 100%; }
  .feature-layout { grid-template-columns: minmax(0, 1fr); }
  .feature-large { height: 380px; }
  .feature-side { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .feature-side a { display: block; }
  .feature-side img { height: 155px; min-height: 0; }
}
@media (max-width: 680px) {
  .header-inner { padding-block: 14px 0; }
  .nav { display: flex; flex-wrap: nowrap; gap: 20px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .nav a { flex: 0 0 auto; white-space: nowrap; }
  .hero { min-height: 0; border-radius: 15px; }
  .hero-copy { align-items: flex-start; }
  .hero h1 { font-size: clamp(25px, 7vw, 32px); line-height: 1.42; }
  .feature-side { grid-template-columns: minmax(0, 1fr); }
  .feature-side a { display: grid; grid-template-columns: 38% minmax(0, 1fr); }
  .feature-side img { height: 100%; min-height: 132px; }
  .card img { height: auto; aspect-ratio: 1.45; }
  .card-body p { overflow-wrap: anywhere; }
  .section-head h2 { line-height: 1.4; }
  .article-lead { font-size: 16px; }
  .prose h2 { font-size: 22px; }
}
@media (max-width: 390px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { display: grid; grid-template-columns: 38% minmax(0,1fr); }
  .card img { height: 100%; min-height: 138px; aspect-ratio: auto; }
  .feature-overlay { inset-inline: 18px; bottom: 18px; }
  .feature-overlay h3 { font-size: 20px; }
}
