:root {
  --paper: #fffaf5;
  --paper-2: #fff1e7;
  --ink: #263338;
  --muted: #758184;
  --line: #eaded5;
  --coral: #f47761;
  --coral-dark: #db5d4d;
  --mint: #9ecfbe;
  --yellow: #f7c96c;
  --navy: #263e48;
  --shadow: 0 18px 50px rgba(69, 44, 36, .1);
  --radius: 14px;
  font-family: Inter, "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,250,245,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.nav-inner { width: min(1240px, calc(100% - 36px)); min-height: 78px; margin: auto; display: grid; grid-template-columns: auto 1fr auto auto; gap: 28px; align-items: center; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 10px; min-width: max-content; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: #fffaf5; background: var(--coral); border-radius: 50% 50% 45% 45%; box-shadow: 0 8px 18px rgba(244,119,97,.25); font-weight: 950; }
.brand b { display: block; font-size: 1.1rem; letter-spacing: .01em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: .72rem; }
.main-nav { display: flex; justify-content: center; gap: 5px; }
.main-nav a, .topic-nav a { padding: 9px 14px; color: var(--muted); border: 1px solid transparent; border-radius: 99px; font-size: .86rem; font-weight: 800; transition: .2s ease; }
.main-nav a:hover, .main-nav a.active, .topic-nav a:hover { color: var(--coral-dark); background: var(--paper-2); border-color: #f1cfc1; }
.search-form { display: flex; gap: 6px; }
.search-form input { width: 180px; height: 38px; padding: 0 13px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 99px; outline: none; }
.search-form input:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(244,119,97,.1); }
.search-form button { width: 38px; height: 38px; color: #fff; background: var(--coral); border: 0; border-radius: 50%; font-size: 1.2rem; }
.menu-toggle { display: none; width: 38px; height: 38px; color: var(--coral-dark); background: var(--paper-2); border: 1px solid #f1cfc1; border-radius: 50%; }
.topic-nav { width: min(1240px, calc(100% - 36px)); min-height: 42px; margin: auto; display: flex; gap: 5px; align-items: center; overflow-x: auto; scrollbar-width: none; border-top: 1px solid #f4e9e2; }
.topic-nav a { padding: 8px 12px; white-space: nowrap; font-size: .76rem; border-radius: 0; }

.hero { position: relative; height: 560px; overflow: hidden; background: #e9d6cb; }
.hero-slide { position: absolute; inset: 0; display: grid; align-items: center; padding: 44px max(30px, calc((100% - 1240px) / 2)); opacity: 0; pointer-events: none; transition: opacity .6s ease; }
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(38,62,72,.94), rgba(38,62,72,.68) 42%, rgba(38,62,72,.08) 100%), linear-gradient(0deg, rgba(38,62,72,.58), transparent 55%); }
.hero-copy { position: relative; z-index: 1; max-width: 560px; color: #fffaf5; animation: rise .7s ease both; }
.label { display: inline-block; margin-bottom: 10px; color: var(--coral); font-size: .7rem; font-weight: 950; letter-spacing: .15em; text-transform: uppercase; }
.hero-copy .label { color: var(--yellow); }
.hero-copy h1 { margin: 0 0 8px; font-size: 4.5rem; line-height: 1.02; }
.hero-lead { margin: 20px 0 0; color: #f4e9e2; line-height: 1.8; font-size: .98rem; }
.hero-tags, .detail-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.hero-tags span, .detail-tags span { padding: 6px 9px; color: #fffaf5; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 99px; font-size: .76rem; }
.hero-actions, .detail-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 24px; }
.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 0 16px; border-radius: 99px; font-size: .84rem; font-weight: 900; transition: .2s ease; }
.button.primary { color: #fff; background: var(--coral); box-shadow: 0 10px 22px rgba(244,119,97,.23); }
.button.light { color: var(--navy); background: #fffaf5; }
.button.outline { color: var(--coral-dark); background: #fff; border: 1px solid #efcabe; }
.button:hover { transform: translateY(-2px); filter: brightness(1.04); }
.hero-control { position: absolute; top: 50%; z-index: 2; width: 42px; height: 42px; transform: translateY(-50%); color: #fff; background: rgba(38,62,72,.42); border: 1px solid rgba(255,255,255,.34); border-radius: 50%; font-size: 2rem; line-height: 1; }
.hero-control.prev { left: 18px; } .hero-control.next { right: 18px; }
.hero-dots { position: absolute; left: max(30px, calc((100% - 1240px) / 2)); bottom: 28px; z-index: 2; display: flex; gap: 6px; }
.hero-dots button { width: 28px; height: 4px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.4); }
.hero-dots button.active { width: 48px; background: var(--yellow); }

.container { width: min(1240px, calc(100% - 36px)); margin: auto; }
.welcome-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; padding: 34px 0 20px; border-bottom: 1px solid var(--line); }
.welcome-row h2 { margin: 0 0 8px; font-size: 2rem; }
.welcome-row p { max-width: 650px; margin: 0; color: var(--muted); line-height: 1.75; }
.welcome-stats { display: flex; gap: 22px; color: var(--muted); font-size: .78rem; text-align: center; }
.welcome-stats b { display: block; color: var(--coral); font-size: 1.5rem; }
.section { padding-top: 42px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-title h2 { margin: 0; font-size: 1.85rem; }
.section-title p { margin: 8px 0 0; color: var(--muted); font-size: .88rem; }
.section-title > a { color: var(--coral-dark); font-size: .8rem; font-weight: 900; white-space: nowrap; }
.topic-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.topic-card { min-height: 174px; position: relative; display: flex; flex-direction: column; justify-content: end; padding: 18px; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); border: 1px solid #f1d6ca; transition: .2s ease; }
.topic-card::after { content: ""; position: absolute; width: 100px; height: 100px; top: -35px; right: -30px; border-radius: 50%; background: rgba(255,255,255,.42); }
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.topic-2, .topic-5 { background: #e6f3ed; border-color: #cde6d9; }
.topic-3, .topic-6 { background: #eef0fa; border-color: #dde0f4; }
.topic-4 { background: #fff0c9; border-color: #f4e0a6; }
.topic-number { position: absolute; top: 16px; left: 17px; color: rgba(38,62,72,.36); font-size: .7rem; font-weight: 950; }
.topic-card h3 { position: relative; z-index: 1; margin: 0 0 7px; font-size: 1rem; }
.topic-card p { position: relative; z-index: 1; min-height: 44px; margin: 0; color: var(--muted); line-height: 1.55; font-size: .76rem; }
.topic-card > b { position: relative; z-index: 1; margin-top: 12px; color: var(--coral-dark); font-size: .74rem; }
.topic-card i { font-style: normal; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; align-items: start; }
.featured-grid, .latest-grid, .discover-grid, .related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.vlog-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 22px rgba(69,44,36,.045); animation: card-in .5s both; animation-delay: var(--delay); transition: .2s ease; }
.vlog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #efc8bb; }
.vlog-card figure { position: relative; margin: 0; background: #e8e0dc; }
.vlog-card figure img { width: 100%; aspect-ratio: 1 / 1.06; object-fit: cover; }
.play-icon { position: absolute; left: 11px; bottom: 11px; width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: rgba(38,62,72,.75); border-radius: 50%; font-size: .65rem; }
.duration { position: absolute; right: 9px; bottom: 9px; padding: 4px 6px; color: #fff; background: rgba(38,62,72,.76); border-radius: 5px; font-size: .67rem; }
.vlog-card-body { padding: 12px 13px 13px; }
.card-category { color: var(--coral-dark); font-size: .67rem; font-weight: 950; }
.vlog-card h3 { margin: 5px 0 5px; overflow: hidden; font-size: .96rem; text-overflow: ellipsis; white-space: nowrap; }
.vlog-card p { display: -webkit-box; overflow: hidden; min-height: 34px; margin: 0; color: var(--muted); line-height: 1.52; font-size: .73rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 11px; color: #98a1a2; font-size: .68rem; }
.side-list { padding: 16px; background: var(--navy); border-radius: var(--radius); color: #fffaf5; }
.side-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.side-heading h3 { margin: 0; font-size: 1rem; }
.side-heading a { color: var(--yellow); font-size: .72rem; }
.creator-card { display: grid; grid-template-columns: 50px minmax(0,1fr) 20px; gap: 10px; align-items: center; min-height: 68px; border-top: 1px solid rgba(255,255,255,.12); }
.creator-card img { width: 50px; height: 50px; object-fit: cover; border-radius: 50%; border: 2px solid rgba(255,255,255,.18); }
.creator-card span { min-width: 0; }
.creator-card b, .creator-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creator-card b { font-size: .8rem; }
.creator-card small { margin-top: 4px; color: #b6c2c1; font-size: .68rem; }
.creator-card i { color: var(--yellow); font-size: 1.3rem; font-style: normal; text-align: right; }
.latest-section { padding-bottom: 10px; }
.quote-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 48px 0 55px; padding: 29px 32px; color: #fffaf5; background: var(--coral); border-radius: var(--radius); }
.quote-band .label { color: var(--yellow); }
.quote-band h2 { margin: 0 0 7px; font-size: 1.65rem; }
.quote-band p { max-width: 700px; margin: 0; color: #fff0e8; line-height: 1.7; font-size: .86rem; }
.quote-band .primary { color: var(--coral-dark); background: #fffaf5; white-space: nowrap; }

.site-footer { padding: 34px 0 18px; color: #f8eee8; background: var(--navy); }
.footer-inner { width: min(1240px, calc(100% - 36px)); margin: auto; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 35px; }
.footer-main {}
.footer-brand { color: #fffaf5; }
.footer-intro p, .site-footer p { max-width: 320px; color: #bdc8c6; line-height: 1.72; font-size: .78rem; }
.site-footer h3 { color: var(--yellow); font-size: .82rem; }
.site-footer > * a:not(.footer-brand), .footer-inner > div > a:not(.footer-brand) { display: block; margin: 8px 0; color: #c8d0cf; font-size: .77rem; }
.footer-bottom { width: min(1240px, calc(100% - 36px)); display: flex; justify-content: space-between; gap: 10px; margin: 25px auto 0; padding-top: 14px; color: #849796; border-top: 1px solid rgba(255,255,255,.12); font-size: .7rem; }

.page-content { padding-top: 35px; padding-bottom: 45px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; min-height: 210px; padding: 30px; background: var(--paper-2); border: 1px solid #f0d6ca; border-radius: var(--radius); }
.page-heading h1 { margin: 0; font-size: 3.4rem; }
.page-heading p { max-width: 620px; margin: 13px 0 0; color: var(--muted); line-height: 1.75; }
.heading-note { min-width: 120px; padding: 15px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.heading-note b { display: block; color: var(--coral); font-size: 1.85rem; }
.heading-note span { color: var(--muted); font-size: .72rem; }
.filter-bar { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-top: 18px; padding: 13px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.filter-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-pills a { padding: 8px 11px; color: var(--muted); border-radius: 99px; font-size: .76rem; }
.filter-pills a:hover, .filter-pills a.active { color: #fff; background: var(--coral); }
#sort-select { min-height: 34px; padding: 0 9px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.discover-section { padding-top: 30px; }
.discover-section .section-title > span { color: var(--muted); font-size: .78rem; }
.discover-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vlog-card[hidden] { display: none; }
.category-directory { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; padding-top: 24px; }
.category-large { display: grid; grid-template-columns: 170px 1fr; min-height: 235px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: .2s ease; }
.category-large:hover, .creator-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category-large img { width: 170px; height: 100%; object-fit: cover; }
.category-large div { padding: 25px 22px; }
.category-large h2 { margin: 0 0 9px; font-size: 1.5rem; }
.category-large p, .creator-feature p { color: var(--muted); line-height: 1.72; font-size: .84rem; }
.category-large b, .creator-feature b { display: inline-block; margin-top: 12px; color: var(--coral-dark); font-size: .78rem; }
.category-large i, .creator-feature i { font-style: normal; }
.creator-directory { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; padding-top: 24px; }
.creator-feature { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: .2s ease; }
.creator-feature img { width: 100%; aspect-ratio: 1 / .84; object-fit: cover; }
.creator-feature div { padding: 18px; }
.creator-feature h2 { margin: 0 0 8px; font-size: 1.2rem; }
.search-page-form { margin-top: 18px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.search-page-form form { display: flex; gap: 9px; }
.search-page-form input { width: 100%; height: 44px; padding: 0 14px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 9px; outline: none; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; color: var(--muted); font-size: .76rem; }
.breadcrumbs strong { color: var(--ink); }
.detail-intro { display: grid; grid-template-columns: 265px 1fr; gap: 30px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.detail-image img { width: 265px; aspect-ratio: 1 / 1.08; object-fit: cover; border-radius: 10px; }
.detail-text { display: grid; align-content: center; }
.detail-text h1 { margin: 0 0 7px; font-size: 3.35rem; line-height: 1.06; }
.detail-lead { max-width: 690px; margin: 18px 0 0; color: var(--muted); line-height: 1.8; }
.detail-tags span { color: var(--coral-dark); background: var(--paper-2); border-color: #f1d3c8; }
.player-section { margin-top: 25px; padding: 20px; background: var(--navy); border-radius: var(--radius); color: #fffaf5; }
.player-section .section-title h2 { color: #fffaf5; font-size: 1.4rem; }
.player-section .label { color: var(--yellow); }
.online-badge { color: var(--mint); font-size: .76rem; font-weight: 900; }
.player-frame { overflow: hidden; background: #071317; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; }
.player-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #071317; }
.player-help { padding: 9px 12px; color: #b7c4c1; background: rgba(255,255,255,.05); font-size: .72rem; }
.episode-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 15px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.13); }
.episode-row strong { font-size: .84rem; } .episode-row > span { color: #aebbb8; font-size: .72rem; }
.episode-buttons { display: flex; flex-wrap: wrap; gap: 7px; width: 100%; margin-top: 3px; }
.episode-buttons button { min-height: 32px; padding: 0 12px; color: #dfe8e5; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 99px; font-size: .72rem; }
.episode-buttons button:hover, .episode-buttons button.active { color: var(--navy); background: var(--yellow); border-color: var(--yellow); }
.story-section { display: grid; grid-template-columns: 1fr 300px; gap: 18px; margin-top: 25px; padding: 24px; background: var(--paper-2); border: 1px solid #f0d6ca; border-radius: var(--radius); }
.story-section h2 { margin: 0 0 10px; font-size: 1.55rem; }
.story-section p { color: var(--muted); line-height: 1.85; }
.story-section aside { padding-left: 20px; border-left: 1px solid #e8cfc2; }
.story-section h3 { margin: 0 0 9px; font-size: .98rem; }
.story-section dl { margin: 0; }
.story-section dl div { display: flex; justify-content: space-between; gap: 15px; padding: 9px 0; border-bottom: 1px solid #ead8cf; font-size: .76rem; }
.story-section dt { color: var(--muted); } .story-section dd { margin: 0; text-align: right; }
.related-section { padding-bottom: 10px; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .nav-inner { grid-template-columns: auto 1fr auto; }
  .search-form { display: none; }
  .topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: 1fr; }
  .side-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .side-heading { grid-column: 1 / -1; }
  .discover-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav-inner { width: calc(100% - 20px); min-height: 64px; grid-template-columns: 1fr auto; }
  .main-nav { display: none; grid-column: 1 / -1; justify-content: flex-start; padding-bottom: 10px; }
  .site-header.open .main-nav { display: flex; }
  .menu-toggle { display: block; }
  .topic-nav { width: calc(100% - 20px); }
  .hero { height: 600px; }
  .hero-slide { padding: 35px 20px; align-items: end; }
  .hero-copy h1 { font-size: 3.15rem; }
  .welcome-row, .page-heading { grid-template-columns: 1fr; }
  .welcome-stats { justify-content: flex-start; }
  .topic-grid, .category-directory, .creator-directory, .story-section { grid-template-columns: 1fr; }
  .featured-grid, .latest-grid, .discover-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-list { display: block; }
  .quote-band { align-items: start; flex-direction: column; }
  .page-heading { align-items: start; }
  .page-heading h1 { font-size: 2.7rem; }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .detail-intro { grid-template-columns: 155px 1fr; gap: 16px; padding: 14px; }
  .detail-image img { width: 155px; }
  .detail-text h1 { font-size: 2.1rem; }
  .detail-lead { font-size: .8rem; line-height: 1.65; }
  .detail-actions .button { min-height: 36px; padding: 0 11px; font-size: .74rem; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .footer-intro { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 480px) {
  .container { width: calc(100% - 20px); }
  .hero { height: 640px; }
  .hero-copy h1 { font-size: 2.7rem; }
  .hero-lead { font-size: .85rem; }
  .topic-grid, .featured-grid, .latest-grid, .discover-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .topic-card { min-height: 165px; padding: 13px; }
  .topic-card p { font-size: .7rem; }
  .vlog-card-body { padding: 9px; }
  .vlog-card h3 { font-size: .82rem; }
  .vlog-card p { font-size: .67rem; }
  .card-meta { font-size: .61rem; }
  .category-large { grid-template-columns: 105px 1fr; }
  .category-large img { width: 105px; }
  .category-large div { padding: 17px 14px; }
  .category-large h2 { font-size: 1.15rem; }
  .search-page-form form { flex-direction: column; }
  .detail-intro { grid-template-columns: 1fr; }
  .detail-image img { width: 180px; }
  .story-section aside { padding: 15px 0 0; border-top: 1px solid #e8cfc2; border-left: 0; }
}
