/* ============ 剧听动漫 全站样式 ============ */
:root {
  --primary: #6a5cff;
  --primary-dark: #4d3fe0;
  --accent: #ff7bab;
  --bg: #f7f8fd;
  --card: #ffffff;
  --text: #23263b;
  --text-2: #6b7086;
  --border: #e7e9f4;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(80, 90, 160, 0.10);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ============ 顶部导航 ============ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(80,90,160,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
/* 左上角：注册登录 */
.auth-area { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn {
  display: inline-block; padding: 8px 20px; border-radius: 999px;
  font-size: 14px; cursor: pointer; border: none; transition: .2s;
  font-family: inherit;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; }
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-ghost:hover { background: #f3f1ff; }
.btn-lg { padding: 12px 34px; font-size: 16px; }
.user-chip {
  display: flex; align-items: center; gap: 8px; font-size: 14px;
  background: #f3f1ff; border-radius: 999px; padding: 6px 14px;
}
.user-chip .coin { color: #e8a200; font-weight: 700; }
.link-quiet { color: var(--text-2); font-size: 13px; cursor: pointer; }
.link-quiet:hover { color: var(--primary); }

/* 中间导航 */
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.main-nav a {
  padding: 8px 14px; border-radius: 8px; font-size: 15px; color: var(--text-2);
  transition: .2s; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: #f3f1ff; font-weight: 600; }

/* 右上角：logo + 网站名称 */
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand .logo {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 18px; letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(106,92,255,.35);
}
.brand .name { display: flex; flex-direction: column; line-height: 1.25; }
.brand .name b { font-size: 16px; }
.brand .name span { font-size: 11px; color: var(--text-2); letter-spacing: .5px; }

/* ============ Hero ============ */
.hero {
  background: linear-gradient(120deg, #ede9ff 0%, #ffeef5 55%, #e8f6ff 100%);
  padding: 72px 0 64px;
}
.hero-inner { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.hero-text { flex: 1 1 420px; }
.hero-text h1 { font-size: 40px; line-height: 1.3; margin-bottom: 18px; }
.hero-text h1 em { font-style: normal; color: var(--primary); }
.hero-text p { color: var(--text-2); font-size: 17px; margin-bottom: 28px; max-width: 540px; }
.hero-cover {
  flex: 0 1 320px; border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 48px rgba(106,92,255,.25); transform: rotate(2deg);
}

/* ============ 区块 ============ */
.section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 8px; font-size: 28px; }
.section-sub { text-align: center; color: var(--text-2); margin-bottom: 40px; }
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 32px;
}
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

/* 作品卡片 */
.work-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: .25s; display: block;
}
.work-card:hover { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(80,90,160,.18); }
.work-card .cover { height: 300px; overflow: hidden; background:#eee; }
.work-card .cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work-card .info { padding: 18px 20px 22px; }
.work-card .info h3 { font-size: 18px; margin-bottom: 6px; }
.work-card .info p { font-size: 13px; color: var(--text-2); }
.tag {
  display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px;
  background: #f3f1ff; color: var(--primary); margin-right: 6px; margin-bottom: 8px;
}
.tag.free { background: #e7f8ee; color: #1a9a55; }
.tag.pay { background: #fff2e2; color: #d97a00; }

/* 章节列表 */
.chapter-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.chapter-item {
  background: #fff; border: 1.5px solid var(--border); border-radius: 12px;
  padding: 16px 18px; cursor: pointer; transition: .2s;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.chapter-item:hover { border-color: var(--primary); box-shadow: 0 6px 18px rgba(106,92,255,.14); }
.chapter-item .ct { font-weight: 600; font-size: 15px; }
.chapter-item .cs { font-size: 12px; color: var(--text-2); }
.badge-lock { font-size: 12px; color: #d97a00; background: #fff2e2; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge-free { font-size: 12px; color: #1a9a55; background: #e7f8ee; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge-owned { font-size: 12px; color: var(--primary); background: #f3f1ff; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }

/* 阅读页 */
.reader-wrap { max-width: 860px; margin: 0 auto; padding: 30px 16px 60px; }
.reader-wrap img { width: 100%; border-radius: 8px; margin-bottom: 10px; box-shadow: var(--shadow); }
.reader-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 26px 0; flex-wrap: wrap; }

/* 文章页（协议等） */
.article { max-width: 900px; margin: 40px auto 70px; }
.article .card { padding: 44px 48px; }
.article h1 { font-size: 26px; margin-bottom: 6px; }
.article .meta { color: var(--text-2); font-size: 13px; margin-bottom: 26px; }
.article h2 { font-size: 18px; margin: 26px 0 10px; color: var(--primary-dark); }
.article p, .article li { color: #3c405a; font-size: 15px; margin-bottom: 10px; }
.article ul, .article ol { padding-left: 22px; }

/* 表单 */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--text-2); }
.form-group input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 15px; outline: none; transition: .2s; font-family: inherit; background:#fff; color: var(--text);
}
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(106,92,255,.12); }
.checkbox-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-2); margin-bottom: 16px; }
.checkbox-row input { margin-top: 4px; }
.checkbox-row a { color: var(--primary); }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(30,32,50,.5); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: #fff; border-radius: 18px; width: 100%; max-width: 400px;
  padding: 34px 34px 28px; position: relative; box-shadow: 0 24px 64px rgba(0,0,0,.2);
  animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal h3 { font-size: 20px; margin-bottom: 20px; text-align: center; }
.modal .close {
  position: absolute; right: 16px; top: 14px; font-size: 22px; color: #aaa;
  cursor: pointer; line-height: 1; background: none; border: none;
}
.modal .switch-tip { text-align: center; font-size: 13px; color: var(--text-2); margin-top: 14px; }
.modal .switch-tip a { color: var(--primary); cursor: pointer; }
.form-error { color: #e5484d; font-size: 13px; min-height: 18px; margin-bottom: 6px; }

/* 充值 */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 24px 0; }
.pkg {
  border: 2px solid var(--border); border-radius: 14px; padding: 22px 10px;
  text-align: center; cursor: pointer; transition: .2s; background: #fff;
}
.pkg:hover, .pkg.selected { border-color: var(--primary); background: #f6f4ff; }
.pkg .coins { font-size: 22px; font-weight: 800; color: #e8a200; }
.pkg .price { color: var(--text-2); font-size: 14px; margin-top: 4px; }

/* 充值 - 对公账户卡片 */
.bank-card {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #f7f5ff, #fff);
  margin: 10px 0 8px;
}
.bank-row { display: flex; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.bank-row:last-child { border-bottom: none; }
.bank-label { width: 84px; flex: none; color: var(--text-2); font-size: 14px; }
.bank-value { font-size: 16px; color: #2b2f44; font-weight: 600; word-break: break-all; }
.copyable { letter-spacing: .5px; }
.recharge-notice {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #fff7e9;
  border: 1px solid #ffe2ad;
}

/* 在线支付档位卡片 */
.recharge-sep { border: none; border-top: 1px dashed var(--border); margin: 26px 0; }
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 8px; }
.pkg-card {
  border: 1.5px solid var(--border); border-radius: 14px; padding: 18px 14px; text-align: center;
  background: #fff; transition: .2s;
}
.pkg-card:hover { border-color: var(--primary); box-shadow: 0 6px 18px rgba(106,92,255,.14); transform: translateY(-2px); }
.pkg-coins { font-size: 18px; font-weight: 700; color: #2b2f44; }
.pkg-amt { font-size: 14px; color: var(--primary-dark); margin: 4px 0 14px; font-weight: 600; }
.pkg-buy { width: 100%; padding: 8px 0; }
@media (max-width: 560px) { .pkg-grid { grid-template-columns: repeat(2, 1fr); } }

/* 作品授权文档列表 */
.doc-section-title { font-size: 16px; font-weight: 700; color: var(--primary-dark); margin: 28px 0 12px; }
.doc-list { display: flex; flex-direction: column; gap: 14px; }
.doc-item {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border: 1.5px solid var(--border); border-radius: 14px;
  background: #fff; text-decoration: none; color: inherit; transition: .2s;
}
.doc-item:hover { border-color: var(--primary); box-shadow: 0 6px 18px rgba(106,92,255,.14); transform: translateY(-1px); }
.doc-icon { font-size: 30px; flex: none; }
.doc-info { flex: 1; min-width: 0; }
.doc-title { font-size: 16px; font-weight: 700; color: #2b2f44; }
.doc-sub { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.doc-act {
  flex: none; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 8px 16px; border-radius: 999px; white-space: nowrap;
}

/* 页脚 */
.site-footer { background: #23263b; color: #b9bdd4; margin-top: 60px; font-size: 13px; }
.footer-inner { padding: 34px 20px; text-align: center; line-height: 2.1; }
.footer-inner a { color: #d5d9ec; }
.footer-inner a:hover { color: #fff; text-decoration: underline; }
.footer-links { margin-bottom: 6px; }
.footer-links a { margin: 0 10px; }
.footer-sep { color: #56597a; margin: 0 6px; }

/* 提示条 */
.toast {
  position: fixed; top: 84px; left: 50%; transform: translateX(-50%);
  background: #23263b; color: #fff; padding: 10px 22px; border-radius: 999px;
  font-size: 14px; z-index: 2000; box-shadow: 0 10px 26px rgba(0,0,0,.25);
  animation: pop .2s ease;
}

/* 面包屑 */
.crumb { font-size: 13px; color: var(--text-2); padding: 18px 0 0; }
.crumb a:hover { color: var(--primary); }

.placeholder-box {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 70px 30px; text-align: center; color: var(--text-2); background: #fff;
}
.placeholder-box .icon { font-size: 44px; margin-bottom: 12px; }

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; }
  .main-nav { order: 3; width: 100%; }
  .hero-text h1 { font-size: 30px; }
  .article .card { padding: 30px 22px; }
}
