/* =============================================================
   海角社区翡翠大珍珠白玉汤 —— 影视IP孵化与版权交易网
   设计风格：版权交易风 + 沉稳紫金
   主色 版权紫 #673AB7 / 辅色 IP金 #D4AF37 / 背景 纸白 #FAFAFA
   卡片 #FFFFFF / 正文 #424242
   布局：电商商品列表 + 文档预览结合，移动端优先
   动效：试读翻页、版权水印浮动、价格区间滑动
   ============================================================= */

:root {
  --c-purple: #673AB7;       /* 版权紫 主色 */
  --c-purple-deep: #4527A0;  /* 深紫 */
  --c-purple-soft: #EDE7F6;  /* 浅紫底 */
  --c-gold: #D4AF37;         /* IP金 辅色 */
  --c-gold-deep: #B8941F;
  --c-bg: #FAFAFA;           /* 纸白背景 */
  --c-card: #FFFFFF;         /* 卡片色 */
  --c-text: #424242;         /* 正文色 */
  --c-text-light: #6E6E6E;
  --c-line: #E6E1F0;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(69, 39, 160, .06);
  --shadow-md: 0 10px 30px rgba(69, 39, 160, .10);
  --shadow-gold: 0 8px 24px rgba(212, 175, 55, .22);
  --maxw: 1200px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font-title: "Noto Serif SC", "Source Han Serif SC", "宋体", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { font-family: var(--font-title); color: var(--c-purple-deep); font-weight: 700; line-height: 1.35; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; }
.brand-name { font-family: var(--font-title); font-weight: 700; font-size: 19px; color: var(--c-purple-deep); }
.brand-name span { color: var(--c-gold-deep); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 15px; color: var(--c-text); font-weight: 500; position: relative; padding: 6px 0; transition: color .2s var(--ease-out); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--c-gold); transition: width .25s var(--ease-out); }
.nav-links a:hover { color: var(--c-purple); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; transition: transform .16s var(--ease-out), box-shadow .2s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--c-purple); color: #fff; }
.btn-primary:hover { box-shadow: var(--shadow-md); background: var(--c-purple-deep); }
.btn-gold { background: var(--c-gold); color: #3A2A00; }
.btn-gold:hover { box-shadow: var(--shadow-gold); }
.btn-ghost { background: transparent; color: var(--c-purple); border: 1.5px solid var(--c-purple); }
.btn-ghost:hover { background: var(--c-purple-soft); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--c-purple-deep); display: block; transition: .3s; }

/* ---------- 首屏横幅 ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, #1f1140 0%, #3a2173 55%, #4527A0 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,10,45,.92) 0%, rgba(30,18,64,.55) 60%, rgba(40,25,90,.30) 100%); }
.hero-inner { position: relative; z-index: 2; padding: 96px 20px 104px; max-width: var(--maxw); margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(212,175,55,.16); border: 1px solid rgba(212,175,55,.5); color: var(--c-gold); padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 22px; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); color: #fff; margin-bottom: 18px; letter-spacing: 1px; }
.hero .hero-sub { font-size: clamp(15px, 2.4vw, 20px); color: #E6DCFF; max-width: 680px; margin-bottom: 18px; line-height: 1.7; }
.hero .hero-domain { font-size: 14px; color: var(--c-gold); margin-bottom: 30px; letter-spacing: .5px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* 首屏搜索框 */
.hero-search { margin-top: 34px; max-width: 620px; display: flex; background: #fff; border-radius: 999px; padding: 6px; box-shadow: var(--shadow-md); }
.hero-search input { flex: 1; border: none; outline: none; padding: 12px 20px; font-size: 15px; color: var(--c-text); background: transparent; }
.hero-search .btn { padding: 12px 26px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 46px; }
.hero-stats .stat strong { display: block; font-family: var(--font-title); font-size: 30px; color: var(--c-gold); }
.hero-stats .stat span { font-size: 13px; color: #CFC4F0; }

/* ---------- 区块通用 ---------- */
.section { padding: 72px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 38px; flex-wrap: wrap; gap: 14px; }
.section-head .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--c-gold-deep); text-transform: uppercase; }
.section-head h2 { font-size: clamp(24px, 4vw, 34px); margin-top: 8px; }
.section-head p { color: var(--c-text-light); margin-top: 8px; max-width: 560px; }
.more-link { color: var(--c-purple); font-weight: 600; font-size: 15px; white-space: nowrap; }
.more-link:hover { color: var(--c-gold-deep); }
.section-alt { background: var(--c-purple-soft); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 剧本/IP 商品卡 */
.ip-card {
  background: var(--c-card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--c-line);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
  display: flex; flex-direction: column;
}
.ip-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.ip-card .cover { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--c-purple-soft); }
.ip-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.ip-card:hover .cover img { transform: scale(1.06); }
.ip-card.wide .cover { aspect-ratio: 16/9; }
.ip-card .body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.ip-card .title { font-family: var(--font-title); font-size: 18px; color: var(--c-purple-deep); margin-bottom: 6px; }
.ip-card .meta { font-size: 13px; color: var(--c-text-light); margin-bottom: 10px; }
.ip-card .desc { font-size: 14px; color: var(--c-text); margin-bottom: 14px; flex: 1; }
.ip-card .price { font-family: var(--font-title); color: var(--c-gold-deep); font-weight: 700; font-size: 17px; margin-top: auto; }
.ip-card .price small { color: var(--c-text-light); font-weight: 400; font-size: 12px; }

/* 版权状态标签 */
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px; }
.tag-grade { background: var(--c-gold); color: #3A2A00; }
.tag-full { background: #E8F5E9; color: #2E7D32; }
.tag-sold { background: #FBE9E7; color: #C0392B; }
.tag-genre { background: var(--c-purple-soft); color: var(--c-purple-deep); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

/* ---------- 题材多级筛选器 ---------- */
.filter-bar { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 32px; box-shadow: var(--shadow-sm); }
.filter-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 9px 0; border-bottom: 1px dashed var(--c-line); }
.filter-row:last-child { border-bottom: none; }
.filter-row > .label { font-weight: 600; color: var(--c-purple-deep); min-width: 72px; font-size: 14px; }
.filter-chip { font-size: 14px; padding: 5px 14px; border-radius: 999px; background: var(--c-bg); border: 1px solid var(--c-line); color: var(--c-text); cursor: pointer; transition: all .18s var(--ease-out); }
.filter-chip:hover { border-color: var(--c-purple); color: var(--c-purple); }
.filter-chip.active { background: var(--c-purple); color: #fff; border-color: var(--c-purple); }

/* 价格区间滑动动画 */
.price-range { display: flex; align-items: center; gap: 12px; }
.price-range input[type=range] { -webkit-appearance: none; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--c-purple), var(--c-gold)); outline: none; width: 220px; }
.price-range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--c-purple); cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .15s var(--ease-out); }
.price-range input[type=range]::-webkit-slider-thumb:active { transform: scale(1.2); }
.price-range .price-val { font-family: var(--font-title); font-weight: 700; color: var(--c-gold-deep); min-width: 96px; }

/* ---------- 剧本在线试读器（防复制水印）---------- */
.reader {
  position: relative; background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 36px 40px; box-shadow: var(--shadow-sm);
  overflow: hidden; user-select: none; -webkit-user-select: none;
}
.reader .reader-page { position: relative; z-index: 1; animation: pageflip .6s var(--ease-out); }
.reader p { margin-bottom: 16px; color: var(--c-text); line-height: 2; }
.reader h4 { margin: 24px 0 12px; color: var(--c-purple-deep); }
/* 浮动版权水印层 */
.reader .watermark {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: repeating-linear-gradient(-30deg, transparent, transparent 120px, transparent 120px);
  display: grid; grid-template-columns: repeat(auto-fill, 220px); align-content: start; opacity: .10;
  animation: wmfloat 8s ease-in-out infinite alternate;
}
.reader .watermark span { font-size: 15px; color: var(--c-purple); transform: rotate(-28deg); padding: 40px 0; white-space: nowrap; font-weight: 700; }
@keyframes wmfloat { from { transform: translateY(0); } to { transform: translateY(-14px); } }
@keyframes pageflip { from { opacity: 0; transform: rotateY(-8deg) translateX(20px); transform-origin: left center; } to { opacity: 1; transform: rotateY(0) translateX(0); } }
.reader-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--c-line); }
.reader-controls .page-no { font-size: 13px; color: var(--c-text-light); }
.reader-mask { margin-top: 22px; padding: 20px; border-radius: var(--radius-sm); background: linear-gradient(180deg, rgba(255,255,255,0), var(--c-purple-soft)); text-align: center; }
.reader-mask p { color: var(--c-text-light); font-size: 14px; margin-bottom: 12px; }

/* ---------- IP价值评估雷达图 ---------- */
.radar-card { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.radar-card h3 { font-size: 18px; margin-bottom: 16px; }
.radar-wrap { display: flex; justify-content: center; }
.radar-legend { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.radar-legend li { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; border-bottom: 1px dashed var(--c-line); }
.radar-legend strong { color: var(--c-gold-deep); }

/* ---------- 流程步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; counter-reset: step; }
.step { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 26px 22px; position: relative; box-shadow: var(--shadow-sm); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-title); font-size: 34px; color: var(--c-gold); opacity: .5; font-weight: 700; }
.step h4 { margin: 6px 0 8px; font-size: 17px; }
.step p { font-size: 14px; color: var(--c-text-light); }

/* ---------- 编剧/作者卡 ---------- */
.writer-card { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease-out); }
.writer-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.writer-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 3px solid var(--c-gold); }
.writer-card h3 { font-size: 19px; }
.writer-card .role { font-size: 13px; color: var(--c-gold-deep); font-weight: 600; margin: 4px 0 10px; }
.writer-card p { font-size: 14px; color: var(--c-text-light); }

/* ---------- 专题横幅 ---------- */
.topic-banner { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 240px; display: flex; align-items: center; box-shadow: var(--shadow-md); }
.topic-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.topic-banner .ov { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,17,64,.86), rgba(40,25,90,.25)); }
.topic-banner .tb-inner { position: relative; z-index: 2; padding: 38px 40px; color: #fff; }
.topic-banner h2 { color: #fff; font-size: clamp(24px,4vw,36px); }
.topic-banner p { color: #E6DCFF; max-width: 480px; margin: 10px 0 18px; }

/* ---------- FAQ ---------- */
.faq-item { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-item summary { padding: 18px 22px; font-weight: 600; color: var(--c-purple-deep); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-title); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--c-gold-deep); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--c-text-light); font-size: 15px; }

/* ---------- 信息条 / 信任 ---------- */
.trust-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.trust-strip .ts { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.trust-strip .ts h4 { font-size: 16px; margin-bottom: 6px; }
.trust-strip .ts p { font-size: 14px; color: var(--c-text-light); }

/* ---------- 面包屑 ---------- */
.breadcrumb { font-size: 13px; color: var(--c-text-light); padding: 18px 0; }
.breadcrumb a:hover { color: var(--c-purple); }
.breadcrumb span { margin: 0 6px; }

/* ---------- 通用内容排版 ---------- */
.prose { max-width: 860px; }
.prose h2 { font-size: 26px; margin: 36px 0 14px; }
.prose h3 { font-size: 20px; margin: 28px 0 10px; color: var(--c-gold-deep); }
.prose p { margin-bottom: 16px; }
.prose ul.bullet { margin: 0 0 18px; padding-left: 0; }
.prose ul.bullet li { position: relative; padding-left: 24px; margin-bottom: 9px; }
.prose ul.bullet li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; border-radius: 2px; background: var(--c-gold); transform: rotate(45deg); }
.prose blockquote { border-left: 4px solid var(--c-purple); background: var(--c-purple-soft); padding: 14px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 18px 0; color: var(--c-purple-deep); }

/* 数据表 */
.data-table { width: 100%; border-collapse: collapse; margin: 18px 0; background: var(--c-card); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--c-line); }
.data-table th { background: var(--c-purple); color: #fff; font-family: var(--font-title); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: #FBFAFF; }

/* 详情页布局 */
.detail-layout { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
.detail-poster { position: sticky; top: 90px; }
.detail-poster img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.detail-poster .buy-box { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 20px; margin-top: 18px; box-shadow: var(--shadow-sm); }
.detail-poster .buy-box .price { font-family: var(--font-title); font-size: 26px; color: var(--c-gold-deep); font-weight: 700; }
.detail-poster .buy-box .price small { font-size: 13px; color: var(--c-text-light); font-weight: 400; }

/* ---------- 页脚 ---------- */
.site-footer { background: #1f1140; color: #C9BEEA; padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer a { color: #C9BEEA; font-size: 14px; line-height: 2.1; transition: color .2s; }
.site-footer a:hover { color: var(--c-gold); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 36px; height: 36px; }
.footer-brand strong { color: #fff; font-family: var(--font-title); font-size: 18px; }
.footer-desc { font-size: 14px; line-height: 1.9; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #8E80B8; }
.footer-bottom a { color: #8E80B8; }

/* ---------- 站内搜索页 ---------- */
.search-box-lg { display: flex; gap: 10px; margin-bottom: 30px; }
.search-box-lg input { flex: 1; padding: 14px 20px; border: 1.5px solid var(--c-line); border-radius: 999px; font-size: 16px; outline: none; }
.search-box-lg input:focus { border-color: var(--c-purple); }
.search-result { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 14px; transition: box-shadow .2s; }
.search-result:hover { box-shadow: var(--shadow-sm); }
.search-result h3 { font-size: 18px; margin-bottom: 4px; }
.search-result .url { font-size: 12px; color: var(--c-gold-deep); }
.search-result p { font-size: 14px; color: var(--c-text-light); margin-top: 6px; }

/* ---------- 404 / offline ---------- */
.center-screen { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; }
.center-screen .big { font-family: var(--font-title); font-size: clamp(72px, 16vw, 140px); color: var(--c-purple); line-height: 1; }
.center-screen h2 { margin: 10px 0 14px; }
.center-screen p { color: var(--c-text-light); margin-bottom: 24px; max-width: 460px; }

/* ---------- 动画进入 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- APP 下载页 ---------- */
.app-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.app-hero .qr { display: inline-flex; gap: 16px; align-items: center; background: var(--c-card); border: 1px solid var(--c-line); padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-top: 20px; }
.app-hero .qr .qbox { width: 96px; height: 96px; border-radius: var(--radius-sm); background: var(--c-purple-soft); display: flex; align-items: center; justify-content: center; color: var(--c-purple); font-size: 12px; text-align: center; }

/* ---------- 响应式断点 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 260px 1fr; gap: 28px; }
  .app-hero { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: #fff; padding: 18px 20px; gap: 14px; box-shadow: var(--shadow-md); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .trust-strip { grid-template-columns: repeat(2,1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-poster { position: static; }
  .reader { padding: 24px 20px; }
  .section { padding: 52px 0; }
  .hero-inner { padding: 64px 20px 72px; }
}
@media (max-width: 520px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps, .trust-strip { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}

/* 减弱动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
