/* ============================================================
   科云智达 — Apple-style Design System
   极简 · 大 · 干净
   ============================================================ */

/* === Variables === */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #1d1d1f;
  --bg-darker: #000000;

  --blue: #0071e3;
  --blue-hover: #0077ed;

  --text: #1d1d1f;
  --text-secondary: #86868b;
  --text-tertiary: #6e6e73;
  --text-light: #f5f5f7;
  --text-light-secondary: #a1a1a6;

  --border: #d2d2d7;
  --border-light: #e8e8ed;

  --nav-h: 44px;
  --max-w: 980px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -.022em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* === Container === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   NAVBAR — Apple-style top bar
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  height: var(--nav-h);
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: background .3s;
}
.navbar.scrolled {
  background: rgba(255,255,255,.9);
}
.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 600; color: var(--text);
  letter-spacing: -.01em;
}
.nav-brand:hover { text-decoration: none; }
.brand-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--bg-dark);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}

.nav-links { display: flex; align-items: center; gap: 0; }
.nav-link {
  padding: 0 18px; height: var(--nav-h);
  display: flex; align-items: center;
  font-size: 12px; font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: -.01em;
  transition: color .2s;
}
.nav-link:hover { color: var(--blue); text-decoration: none; }
.nav-link.active { color: var(--text); }

.nav-toggle {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 18px; height: 1.5px;
  background: var(--text); border-radius: 1px; transition: .2s;
}

/* ============================================================
   HERO — 大图片 + 大字
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: 120px 0 80px;
  text-align: center;
  background: var(--bg);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
}

.hero-content {
  position: relative;
  max-width: 700px; margin: 0 auto; padding: 0 24px;
}

.hero-badge {
  display: inline-block;
  font-size: 21px; font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 12px;
  letter-spacing: -.015em;
}

.hero h1 {
  font-size: 56px; font-weight: 700;
  line-height: 1.07143;
  letter-spacing: -.012em;
  color: var(--text);
  margin-bottom: 0;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue) 0%, #40a9ff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subhead {
  display: block;
  font-size: 28px; font-weight: 400;
  color: var(--text);
  line-height: 1.10722;
  letter-spacing: .004em;
  margin-top: 6px;
}

.hero-desc {
  font-size: 21px; font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.381;
  letter-spacing: .011em;
  margin-top: 16px;
}

.hero-price {
  font-size: 17px; color: var(--text-tertiary);
  margin-top: 14px;
}

.hero-actions {
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
  margin-top: 24px;
}

.hero-stats {
  display: flex; justify-content: center; gap: 80px; flex-wrap: wrap;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border-light);
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-size: 48px; font-weight: 700;
  line-height: 1.04167;
  letter-spacing: -.01em;
  color: var(--text);
}
.stat-plus { color: var(--blue); }
.stat-label {
  display: block;
  font-size: 14px; font-weight: 400;
  color: var(--text-secondary);
  margin-top: 6px;
  letter-spacing: 0;
}

/* ============================================================
   BUTTONS — Apple pill buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 28px; border-radius: 980px;
  font-size: 17px; font-weight: 400;
  letter-spacing: -.022em;
  cursor: pointer; transition: all .2s;
  border: none;
  white-space: nowrap;
  min-width: 28px;
}
.btn-primary {
  background: var(--blue); color: white;
}
.btn-primary:hover {
  background: var(--blue-hover); text-decoration: none;
}
.btn-outline {
  background: none; color: var(--blue);
  border: none;
}
.btn-outline:hover { text-decoration: underline; color: var(--blue-hover); }
.btn-outline::after {
  content: ' >'; font-family: inherit;
}
.btn-lg { padding: 14px 32px; font-size: 17px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

.cta-section .btn-primary {
  background: white; color: var(--blue);
}
.cta-section .btn-primary:hover { background: #e8e8ed; text-decoration: none; }
.cta-section .btn-outline { color: var(--blue); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 36px 0; }
.section-alt { background: var(--bg-alt); }

.section-header { text-align: center; margin-bottom: 32px; }
.section-header h2 {
  font-size: 48px; font-weight: 700;
  line-height: 1.08349;
  letter-spacing: -.003em;
  color: var(--text);
  margin-bottom: 12px;
}
.section-header p {
  font-size: 21px; font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.381;
  letter-spacing: .011em;
  max-width: 560px; margin: 0 auto;
}
.section-cta { text-align: center; margin-top: 48px; }
.section-divider { border: none; border-top: 1px solid var(--border-light); margin: 80px 0; }

/* ============================================================
   PAGE HERO — 次级页面标题
   ============================================================ */
.page-hero {
  padding: 120px 0 80px; text-align: center;
  background: var(--bg-alt);
}
.page-hero h1 {
  font-size: 48px; font-weight: 700;
  line-height: 1.08349;
  letter-spacing: -.003em;
  color: var(--text);
  margin-bottom: 10px;
}
.page-hero p {
  font-size: 21px; font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.381;
  letter-spacing: .011em;
}

/* ============================================================
   PRODUCT CARDS — 简洁卡片
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}
.product-card {
  padding: 0 32px 40px;
  border-radius: 18px;
  background: var(--white);
  transition: all .4s cubic-bezier(.25,.1,.25,1);
  position: relative;
  border: none;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}
.product-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  background: #f5f6f8;
}
.product-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.product-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
}
.product-card:hover {
  background: var(--bg-alt);
  transform: scale(1.02);
}
.product-icon {
    font-size: 40px; margin-bottom: 24px;
    width: 48px; height: 48px;
}
.product-icon .icon-svg { width: 48px; height: 48px; }
.product-card h3 {
  font-size: 24px; font-weight: 600;
  line-height: 1.16667;
  letter-spacing: .009em;
  color: var(--text);
  margin-bottom: 4px;
}
.product-subtitle {
  font-size: 17px; font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.47059;
  letter-spacing: -.022em;
  margin-bottom: 16px;
}
.product-desc {
  font-size: 15px; color: var(--text-secondary);
  line-height: 1.6; margin-bottom: 20px;
}
.product-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px;
}
.tag {
  padding: 4px 12px;
  background: var(--bg-alt); border-radius: 980px;
  font-size: 12px; font-weight: 500; color: var(--text-tertiary);
  letter-spacing: 0;
}
.product-highlight {
  margin-top: auto;
  font-size: 14px; font-weight: 500;
  color: var(--text-tertiary);
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.product-card-more {
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  color: var(--text-secondary); font-weight: 500; font-size: 17px;
}
.product-card-more:hover {
  color: var(--blue); background: var(--bg-alt);
}
.more-content { display: flex; align-items: center; gap: 8px; }
.more-icon { font-size: 20px; }

/* ============================================================
   FEATURE GRID — Why us
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 48px 24px;
}
.feature-item {
  padding: 0;
  border: none;
  background: none;
}
/* === SVG Icons === */
.icon-svg {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 20px;
    opacity: .85;
}

.feature-icon {
    font-size: 36px; margin-bottom: 20px;
}
.feature-icon .icon-svg,
.feature-item > .icon-svg {
    width: 36px; height: 36px;
    margin-bottom: 20px;
}
.feature-item h3 {
  font-size: 21px; font-weight: 600;
  line-height: 1.19048;
  letter-spacing: .011em;
  color: var(--text);
  margin-bottom: 8px;
}
.feature-item p {
  font-size: 15px; font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  letter-spacing: -.016em;
}

/* ============================================================
   CASE CARDS — 大留白
   ============================================================ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.case-card {
  padding: 36px 32px;
  border-radius: 18px;
  border: none;
  background: var(--white);
  transition: all .4s cubic-bezier(.25,.1,.25,1);
  display: block;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.case-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
}
.case-card:hover {
  background: var(--bg-alt);
  transform: scale(1.02);
}
.case-header { display: flex; gap: 12px; margin-bottom: 16px; }
.case-industry {
  padding: 4px 14px;
  background: var(--bg-alt); border-radius: 980px;
  font-size: 12px; font-weight: 500; color: var(--text-tertiary);
  letter-spacing: 0;
}
.case-product-badge { font-size: 12px; color: var(--text-secondary); font-weight: 400; }
.case-card h3 {
  font-size: 24px; font-weight: 600;
  line-height: 1.16667;
  letter-spacing: .009em;
  color: var(--text);
  margin-bottom: 12px;
}
.case-desc {
  font-size: 15px; color: var(--text-secondary);
  line-height: 1.6; margin-bottom: 24px;
}
.case-result {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 0;
  background: none; border: none;
}
.result-label {
  font-size: 12px; font-weight: 600; color: var(--text-tertiary);
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.result-text {
  font-size: 15px; color: var(--text);
  font-weight: 500; line-height: 1.5;
}

/* Case cards large */
.case-grid-large { display: grid; gap: 36px; }
.case-card-large {
  padding: 48px 40px;
  border-radius: 18px;
  border: none;
  background: var(--white);
  transition: all .4s cubic-bezier(.25,.1,.25,1);
}
.case-card-large:hover {
  background: var(--bg-alt);
  transform: scale(1.01);
}
.case-card-top { display: flex; gap: 12px; margin-bottom: 20px; }
.case-card-large h2 {
  font-size: 28px; font-weight: 600;
  line-height: 1.14286;
  letter-spacing: .007em;
  color: var(--text);
  margin-bottom: 16px;
}
.case-card-large .case-desc { font-size: 17px; margin-bottom: 28px; }
.case-result-block {
  display: flex; gap: 16px; padding: 0;
  background: none; border: none; border-radius: 0;
}
.result-icon { font-size: 28px; }
.case-result-block .result-text { font-size: 17px; }

/* ============================================================
   CTA SECTION — 深色背景
   ============================================================ */
.cta-section {
  padding: 80px 0; text-align: center;
  background: var(--bg-dark);
}
.cta-section h2 {
  font-size: 48px; font-weight: 700;
  line-height: 1.08349; letter-spacing: -.003em;
  color: var(--text-light);
  margin-bottom: 12px;
}
.cta-section p {
  font-size: 21px; font-weight: 400;
  color: var(--text-light-secondary);
  line-height: 1.381; letter-spacing: .011em;
  margin-bottom: 28px;
}
.cta-actions { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
/* 头像 + 自我介绍（左图右文） */
.about-hero {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}
.about-avatar-wrap {
  flex: 0 0 auto;
  width: 300px;
}
.about-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  box-shadow:
    0 4px 16px rgba(0,0,0,.08),
    0 20px 48px rgba(0,0,0,.10);
}
.about-text { flex: 1; min-width: 0; }
.about-text h2 {
  font-size: 32px; font-weight: 700;
  line-height: 1.125; letter-spacing: .004em;
  margin-bottom: 24px;
}
.about-text .lead,
.about-text p {
  font-size: 17px; color: var(--text-secondary);
  line-height: 1.65; margin-bottom: 16px;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card {
  padding: 28px 24px; text-align: center;
  border-radius: 14px;
  background: var(--bg-alt);
  border: none;
}
.stat-big { display: block; font-size: 32px; font-weight: 700; color: var(--text); }
.stat-desc { display: block; font-size: 14px; color: var(--text-secondary); margin-top: 4px; }

/* Values */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.value-card {
  padding: 40px 32px;
  border-radius: 18px;
  background: var(--white);
  border: none;
  transition: background .4s cubic-bezier(.25,.1,.25,1);
}
.value-card:hover { background: var(--bg-alt); }
.value-icon { font-size: 36px; margin-bottom: 20px; }
.value-icon .icon-svg,
.value-card > .icon-svg { width: 36px; height: 36px; margin-bottom: 20px; }
.value-card h3 {
  font-size: 21px; font-weight: 600;
  letter-spacing: .011em; margin-bottom: 8px;
}
.value-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

/* Certifications */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
}
.cert-item {
  padding: 28px 20px; text-align: center;
  border-radius: 14px;
  background: var(--bg-alt);
  border: none;
}
.cert-icon { font-size: 36px; display: block; margin-bottom: 12px; }
.cert-item > .icon-svg { width: 36px; height: 36px; margin-bottom: 12px; }
.cert-item h4 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.cert-item p { font-size: 14px; color: var(--text-secondary); }

/* Industries */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}
.industry-item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 28px 16px; text-align: center;
  border-radius: 14px;
  background: var(--bg-alt);
  border: none;
  font-size: 15px; font-weight: 500; color: var(--text);
  transition: background .3s;
}
.industry-item:hover { background: var(--border-light); }
.industry-icon { font-size: 32px; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info h2 {
  font-size: 32px; font-weight: 700;
  line-height: 1.125; letter-spacing: .004em;
  margin-bottom: 10px;
}
.contact-info > p {
  font-size: 17px; color: var(--text-secondary);
  margin-bottom: 36px;
}
.info-cards { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 0;
  border: none; background: none;
}
.info-icon { font-size: 22px; padding-top: 2px; }
.info-card > .icon-svg { width: 22px; height: 22px; margin: 2px 0 0 0; flex-shrink: 0; }
.info-card h4 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.info-card p { font-size: 15px; color: var(--text-secondary); }

/* 微信二维码（联系页微信下方） */
.wechat-qr { margin: 4px 0 4px 38px; }
.wechat-qr__img {
  width: 160px; height: 160px; display: block;
  border: 1px solid var(--border-light, #e6e6ea); border-radius: 12px;
  padding: 6px; background: #fff;
}
.wechat-qr__hint { font-size: 13px; color: var(--text-secondary); margin-top: 8px; }

.contact-form-card {
  padding: 40px;
  border-radius: 18px;
  background: var(--bg-alt);
  border: none;
  box-shadow: none;
}
.contact-form-card h3 {
  font-size: 24px; font-weight: 600;
  letter-spacing: .009em; margin-bottom: 28px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 500; color: var(--text); }
.required { color: #ff3b30; }

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px; font-family: inherit;
  letter-spacing: -.016em;
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,113,227,.15);
}
.form-result {
  padding: 12px 16px; border-radius: 10px;
  font-size: 14px; font-weight: 500;
}
.form-result.success { background: #f0fff4; color: #34c759; }
.form-result.error { background: #fff5f5; color: #ff3b30; }
.btn-block { width: 100%; }

/* Review star input */
.star-input { display: inline-flex; gap: 4px; font-size: 30px; cursor: pointer; line-height: 1; }
.star-input span { color: #d2d2d7; transition: color .15s; }
.star-input span.on { color: #ff9500; }

/* ============================================================
   ASSISTANT PAGE
   ============================================================ */
.assistant-container { max-width: var(--max-w); }
.assistant-wrapper {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}
.assistant-sidebar {
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-alt);
  position: sticky; top: calc(var(--nav-h) + 32px);
}
.sidebar-header {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 24px;
  background: var(--bg-alt);
}
.sidebar-icon { font-size: 22px; }
.sidebar-header > .icon-svg { width: 24px; height: 24px; margin: 0; flex-shrink: 0; }
.sidebar-header h3 { font-size: 17px; font-weight: 600; color: var(--text); }

.sidebar-suggestions { padding: 0 24px 20px; }
.suggestion-title {
  font-size: 12px; font-weight: 500; color: var(--text-secondary);
  margin-bottom: 14px;
  letter-spacing: 0;
}
.suggestion-btn {
  display: block; width: 100%; text-align: left;
  padding: 10px 16px; margin-bottom: 6px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--white);
  font-size: 13px; color: var(--text-secondary);
  cursor: pointer; transition: all .2s;
  line-height: 1.4; letter-spacing: -.01em;
}
.suggestion-btn:hover {
  border-color: var(--blue); color: var(--blue);
  background: var(--white);
}
.sidebar-footer { padding: 16px 24px; }
.sidebar-footer p {
  font-size: 12px; color: var(--text-secondary);
  margin-bottom: 2px; letter-spacing: 0;
}

.assistant-chat {
  border-radius: 18px; overflow: hidden;
  background: var(--bg-alt);
  display: flex; flex-direction: column;
  height: 600px;
  border: 1px solid var(--border-light);
}
.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 28px; display: flex; flex-direction: column; gap: 24px;
}
.chat-message { display: flex; gap: 14px; max-width: 88%; }
.chat-message.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-message.assistant { align-self: flex-start; }
.message-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; background: var(--white); flex-shrink: 0;
}
.chat-message.user .message-avatar { background: var(--blue); color: white; }
.message-bubble {
  padding: 14px 20px; border-radius: 18px;
  font-size: 15px; line-height: 1.5; letter-spacing: -.016em;
}
.chat-message.user .message-bubble {
  background: var(--blue); color: white;
  border-bottom-right-radius: 4px;
}
.chat-message.assistant .message-bubble {
  background: var(--white); color: var(--text);
  border-bottom-left-radius: 4px;
}
.message-bubble p + p { margin-top: 10px; }

.chat-typing {
  display: flex; gap: 14px; padding: 0 28px 12px; align-items: center;
}
.typing-dots {
  display: flex; gap: 5px; padding: 14px 20px;
  background: var(--white); border-radius: 18px;
}
.typing-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-secondary);
  animation: typing 1.4s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .3; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.chat-input-area { padding: 16px 28px 24px; }
.chat-input-form { display: flex; gap: 10px; }
.chat-input-form input {
  flex: 1; padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 980px;
  font-size: 15px; font-family: inherit;
  letter-spacing: -.016em;
  background: var(--white);
  transition: border-color .2s;
}
.chat-input-form input:focus {
  outline: none; border-color: var(--blue);
}
.chat-input-form .btn {
  border-radius: 980px; padding: 12px 24px;
  font-size: 15px;
}
.chat-hint {
  font-size: 12px; color: var(--text-secondary);
  margin-top: 10px; text-align: center;
}

/* ============================================================
   FOOTER — Apple-style
   ============================================================ */
.footer {
  background: var(--bg-alt);
  padding: 40px 0 24px;
  border-top: 1px solid var(--border-light);
}
.footer-container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-light);
}
.footer-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 600; color: var(--text);
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 13px; color: var(--text-secondary); line-height: 1.6;
}
.footer-col h4 {
  font-size: 13px; font-weight: 600;
  color: var(--text); margin-bottom: 12px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  font-size: 13px; color: var(--text-secondary);
}
.footer-col a:hover { color: var(--text); text-decoration: underline; }
.footer-contact li { font-size: 13px; color: var(--text-secondary); }
.footer-bottom {
  padding: 20px 0 0;
  font-size: 12px; color: var(--text-secondary); text-align: center;
}

/* ICP 备案号 */
.icp-record { text-align: center; padding: 6px 0 16px; }
.icp-record a { font-size: 12px; color: var(--text-secondary); text-decoration: none; }
.icp-record a:hover { color: var(--text); text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero h1 { font-size: 44px; }
  .hero-subhead { font-size: 24px; }
  .assistant-wrapper { grid-template-columns: 1fr; }
  .assistant-sidebar { position: static; }
  .assistant-chat { height: 480px; }
}

@media (max-width: 768px) {
  .hero { padding: 100px 0 60px; }
  .hero h1 { font-size: 36px; }
  .hero-subhead { font-size: 21px; }
  .hero-desc { font-size: 17px; }
  .hero-stats { gap: 32px; }
  .stat-num { font-size: 36px; }

  .section-header h2 { font-size: 32px; }
  .section-header p { font-size: 17px; }
  .section { padding: 28px 0; }

  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; background: rgba(255,255,255,.98);
    backdrop-filter: blur(20px);
    padding: 8px 24px 24px;
    border-bottom: 1px solid var(--border-light);
  }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; height: auto; padding: 12px 0; font-size: 17px; }

  .product-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .about-intro,
  .about-hero { flex-direction: column; gap: 36px; }
  .about-avatar-wrap { width: 220px; margin: 0 auto; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .page-hero { padding: 100px 0 60px; }
  .page-hero h1 { font-size: 36px; }
  .industry-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 20px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; align-items: center; }
  .case-card-large { padding: 32px 24px; }
}

/* ============================================================
   ADMIN — 后台管理界面（同 Apple 设计语言）
   ============================================================ */
.admin-layout { display: flex; min-height: 100vh; background: var(--bg-alt); }
.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: #f5f5f7; color: var(--text);
  border-right: 1px solid var(--border-light);
  display: flex; flex-direction: column;
  position: fixed; top: 0; bottom: 0; left: 0; padding: 26px 0;
}
.admin-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 0 24px 26px; font-size: 17px; font-weight: 600; color: var(--text);
  letter-spacing: -.01em;
}
.admin-brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: #ffffff; border: 1px solid var(--border-light);
  color: var(--text); display: flex; align-items: center; justify-content: center;
}
.brand-mark svg { width: 18px; height: 18px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; flex: 1; }
.admin-nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 14px; border-radius: 10px;
  font-size: 14px; color: var(--text-tertiary);
  letter-spacing: 0; transition: background .2s, color .2s;
}
.admin-nav-item .nav-ico { width: 20px; height: 20px; display: flex; flex-shrink: 0; }
.admin-nav-item .nav-ico svg { width: 20px; height: 20px; }
.admin-nav-item:hover { background: #ebebf0; color: var(--text); text-decoration: none; }
.admin-nav-item.active { background: #e3e3e8; color: var(--text); font-weight: 600; }
.admin-sidebar-footer {
  padding: 16px 24px 0; margin-top: 12px;
  border-top: 1px solid var(--border-light);
  display: flex; flex-direction: column; gap: 10px;
}
.admin-sidebar-footer a { font-size: 13px; color: var(--text-tertiary); }
.admin-sidebar-footer a:hover { color: var(--text); text-decoration: none; }

.admin-main { flex: 1; margin-left: 240px; padding-bottom: 60px; }
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 40px; background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  position: sticky; top: 0; z-index: 10;
}
.admin-topbar h1 { font-size: 28px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.admin-topbar-actions { display: flex; gap: 12px; }
.admin-content { padding: 32px 40px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; margin-bottom: 36px; }
.stat-box { background: var(--bg); border-radius: 16px; padding: 22px 24px; border: 1px solid var(--border-light); }
.stat-box .stat-num { font-size: 34px; font-weight: 700; color: var(--text); line-height: 1; }
.stat-box .stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 8px; }

.admin-panel { background: var(--bg); border-radius: 16px; padding: 28px; margin-bottom: 28px; border: 1px solid var(--border-light); }
.admin-panel h2 { font-size: 19px; font-weight: 600; margin-bottom: 20px; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--text-secondary);
  padding: 12px 14px; border-bottom: 1px solid var(--border); letter-spacing: 0; white-space: nowrap;
}
.data-table td {
  padding: 14px; font-size: 14px; color: var(--text);
  border-bottom: 1px solid var(--border-light); vertical-align: top;
}
.data-table tbody tr:hover td { background: var(--bg-alt); }
.data-table .row-actions { display: flex; gap: 14px; white-space: nowrap; }
.link-btn { background: none; border: none; color: var(--blue); font-size: 13px; cursor: pointer; padding: 0; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: #ff3b30; }
.cell-sub { color: var(--text-secondary); font-size: 13px; margin-top: 4px; line-height: 1.5; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 980px; font-size: 12px; font-weight: 500; }
.badge-free { background: #e8f5e9; color: #2e7d32; }
.badge-paid { background: #fff3e0; color: #e65100; }
.badge-pending { background: #fff3e0; color: #e65100; }
.badge-approved { background: #e8f5e9; color: #2e7d32; }
.badge-spam { background: #ffebee; color: #c62828; }

.trend { display: flex; align-items: flex-end; gap: 10px; height: 140px; }
.trend-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.trend-bar .bar { width: 100%; background: var(--blue); border-radius: 6px 6px 0 0; min-height: 2px; transition: height .3s; }
.trend-bar .bar.zero { background: var(--border); }
.trend-bar .t-label { font-size: 11px; color: var(--text-secondary); }
.trend-bar .t-val { font-size: 11px; font-weight: 600; color: var(--text); }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center; z-index: 99999; padding: 20px;
}
.modal-content { background: var(--bg); border-radius: 18px; padding: 32px; width: 100%; max-width: 540px; max-height: 90vh; overflow-y: auto; }
.modal-content h3 { font-size: 22px; font-weight: 600; margin-bottom: 20px; }
.modal-form { display: flex; flex-direction: column; gap: 16px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }

/* 显眼保存按钮（替代自动保存） */
.btn-save-big {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 32px; font-size: 17px; font-weight: 700;
  background: #d62828; color: #fff; border: 2px solid #b71c1c;
  border-radius: 10px; cursor: pointer; transition: all .15s;
  box-shadow: 0 4px 14px rgba(214,40,40,.35);
}
.btn-save-big:hover { background: #b71c1c; box-shadow: 0 6px 20px rgba(214,40,40,.45); transform: translateY(-1px); }
.btn-save-big:active { transform: translateY(1px); box-shadow: 0 2px 8px rgba(214,40,40,.3); }

/* 章节内红色保存按钮（较小，与 link-btn 同行） */
.btn-save-red {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 18px; font-size: 0.92em; font-weight: 700;
  background: #d62828; color: #fff; border: none;
  border-radius: 8px; cursor: pointer; transition: all .15s;
  box-shadow: 0 2px 8px rgba(214,40,40,.3);
}
.btn-save-red:hover { background: #b71c1c; box-shadow: 0 4px 12px rgba(214,40,40,.4); }
.btn-save-red:active { transform: translateY(1px); }

/* ============ 轻量 Markdown 编辑器（后台）============ */
.md-toolbar {
    display: flex; flex-wrap: wrap; gap: 4px;
    padding: 6px 8px; border: 1px solid #d2d2d7; border-bottom: none;
    border-radius: 10px 10px 0 0; background: #f5f5f7;
}
.md-btn {
    border: 1px solid #d2d2d7; background: #fff; color: #1d1d1f;
    border-radius: 6px; padding: 4px 9px; font-size: 13px; line-height: 1.4;
    cursor: pointer; min-width: 30px; transition: background .12s;
}
.md-btn:hover { background: #ececf0; }
.md-btn:active { background: #e0e0e5; }
.md-btn:last-child { margin-left: auto; color: #0071e3; border-color: #bcd6f7; }
.md-editor {
    display: block; width: 100%; border: none;
    padding: 16px; font-size: 15px; line-height: 1.7; resize: vertical;
    box-sizing: border-box; outline: none; min-height: 400px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    color: #1d1d1f; background: #fff;
}
.md-editor:focus { background: #fafafe; }

/* 富文本工具栏按钮组（加粗/斜体/下划线）——覆盖 .md-btn:last-child 的靠右/变蓝规则 */
.rich-btn-group { display: inline-flex; gap: 4px; }
.rich-btn-group .md-btn {
    margin-left: 0 !important;
    color: #1d1d1f !important;
    border-color: #d2d2d7 !important;
    min-width: 32px; font-size: 14px; line-height: 1.3;
}
.rich-toolbar { align-items: center; }
/* 章节等原本无 wrapper 的编辑框，工具栏与文本框圆角衔接 */
.chapter-edit .md-toolbar.rich-toolbar { border-radius: 10px 10px 0 0; }
.chapter-edit textarea.ch-body,
.chapter-edit textarea#new_ch_body { border-top-left-radius: 0; border-top-right-radius: 0; }

/* 前台正文富文本渲染保险：确保 strong/em/u 三种样式生效 */
.prose strong { font-weight: 700; }
.prose em { font-style: italic; }
.prose u { text-decoration: underline; }

/* 创作者 / 思考者 编辑器统一：更大的文本框 + 红色圆形保存按钮 */
.admin-panel textarea#f_detail { min-height: 340px; }
.admin-panel textarea.ch-body,
.admin-panel textarea#new_ch_body { min-height: 200px; }
.admin-panel textarea#f_desc { min-height: 120px; }

.save-fab {
    position: fixed; right: 28px; bottom: 28px; z-index: 60;
    width: 62px; height: 62px; border-radius: 50%;
    background: #ff3b30; color: #fff; border: none; cursor: pointer;
    font-size: 14px; font-weight: 600; letter-spacing: .02em;
    box-shadow: 0 8px 22px rgba(255, 59, 48, .42);
    display: flex; align-items: center; justify-content: center;
    transition: background .12s, transform .08s;
}
.save-fab:hover { background: #e63228; }
.save-fab:active { transform: scale(.94); }
.save-fab.saving { opacity: .65; pointer-events: none; }
.save-indicator {
    position: fixed; right: 28px; bottom: 98px; z-index: 60;
    font-size: 12px; color: #34c759; background: #fff;
    padding: 5px 11px; border-radius: 9px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
    transition: opacity .25s; opacity: 0; pointer-events: none;
}

/* ============ 富文本编辑器（Vditor 所见即所得） ============ */
.vditor {
    border: 1px solid #e3e3e8;
    border-radius: 12px;
    overflow: hidden;
}
.vditor--fullscreen { z-index: 200000; }
.vditor-reset { font-size: 15px; line-height: 1.7; }

.stars { display: inline-flex; gap: 2px; }
.stars .star { color: #d2d2d7; font-size: 16px; }
.stars .star.on { color: #ff9500; }
.review-content { font-size: 14px; line-height: 1.55; color: var(--text); margin-top: 4px; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-alt); }
.login-card { background: var(--bg); border-radius: 20px; padding: 48px; width: 100%; max-width: 400px; text-align: center; border: 1px solid var(--border-light); }
.login-card .brand-icon { background: var(--bg-dark); margin: 0 auto 16px; }
.login-card h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.login-card > p { color: var(--text-secondary); margin-bottom: 28px; }
.login-result { margin-top: 12px; font-size: 14px; }

@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .admin-topbar, .admin-content { padding-left: 20px; padding-right: 20px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   PHOTO GALLERY — 摄影画廊（Apple 风格照片呈现）
   ============================================================ */
.section-header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 28px; }
.section-header h2 { font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.section-count { font-size: 14px; color: var(--text-secondary); }
.section-sub { color: var(--text-secondary); font-size: 17px; margin-top: 8px; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.photo-grid-sm { grid-template-columns: repeat(4, 1fr); gap: 20px; }

.photo-card {
  margin: 0;
  cursor: pointer;
  background: var(--bg);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.05);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
a.photo-card { text-decoration: none; color: inherit; display: block; }
.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,.1), 0 18px 40px rgba(0,0,0,.12);
}
.photo-thumb {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-alt);
}
.photo-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.photo-card:hover .photo-thumb img { transform: scale(1.06); }
.photo-card figcaption {
  padding: 16px 18px 20px;
}
.photo-card figcaption h3 {
  font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--text);
}
.photo-card figcaption p {
  font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin-top: 6px;
}

/* 横向胶片卷轴（Apple 滑动图集风格） */
.filmstrip-header { display: flex; align-items: center; justify-content: space-between; }
.filmstrip-title { display: flex; align-items: baseline; gap: 14px; }
.filmstrip-nav { display: flex; gap: 12px; }
.film-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff; color: var(--text);
  font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.film-arrow:hover { background: #f5f5f7; transform: scale(1.06); box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.film-arrow:active { transform: scale(.97); }

.filmstrip {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 26px;
  margin: 0 -2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.15) transparent;
}
.filmstrip::-webkit-scrollbar { height: 6px; }
.filmstrip::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 3px; }
.filmstrip::-webkit-scrollbar-track { background: transparent; }

.film-card {
  flex: 0 0 auto;
  width: 340px;
  max-width: 82vw;
  margin: 0;
  scroll-snap-align: start;
  cursor: pointer;
}
.film-thumb {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bg-alt);
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 10px 30px rgba(0,0,0,.06);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s;
}
.film-card:hover .film-thumb { transform: translateY(-6px); box-shadow: 0 6px 18px rgba(0,0,0,.12), 0 22px 48px rgba(0,0,0,.14); }
.film-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.film-card:hover .film-thumb img { transform: scale(1.05); }
.film-card figcaption { padding: 16px 4px 0; }
.film-card figcaption h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--text); margin: 0 0 6px; }
.film-card figcaption p { font-size: 14px; color: var(--text-secondary); line-height: 1.55; margin: 0; }

@media (max-width: 768px) {
  .film-card { width: 78vw; }
  .filmstrip-header { flex-direction: row; align-items: center; }
  .filmstrip-title { flex-direction: column; gap: 2px; }
}

/* ---- 灯箱 ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,.92);
  display: none;
  align-items: center; justify-content: center;
  padding: 48px 24px;
}
.lightbox.open { display: flex; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-inner {
  max-width: 1000px; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.lightbox-inner img {
  max-width: 100%; max-height: 76vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-caption { text-align: center; max-width: 640px; }
.lightbox-caption h3 { color: #fff; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.lightbox-caption p { color: var(--text-light-secondary); font-size: 15px; line-height: 1.6; margin-top: 8px; }
.lightbox-close {
  position: fixed; top: 24px; right: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.12); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }

@media (max-width: 900px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid-sm { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .photo-grid, .photo-grid-sm { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; gap: 4px; }
}

/* ============================================================
   ADMIN — 照片管理表单
   ============================================================ */
.admin-form-card {
  background: var(--bg); border-radius: 16px; padding: 28px;
  margin-bottom: 28px; border: 1px solid var(--border-light);
}
.admin-form-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr 120px; gap: 16px; }
.form-row .form-group-sm { margin: 0; }
.cell-thumb img {
  width: 72px; height: 54px; object-fit: cover; border-radius: 8px; display: block;
}
input[type="file"] {
  font-size: 14px; color: var(--text); padding: 10px 0; width: 100%;
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

/* 内联输入框（表格内编辑） */
.inline-input {
  border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 8px; font-size: 0.85em;
  width: 100%; max-width: 180px;
  background: transparent; color: var(--text);
}
.inline-input:focus { outline: none; border-color: var(--primary); }
.inline-num { width: 60px; text-align: center; }

/* ============================================================
   创作者详情页 — 软件图文正文 / 小说章节折叠
   ============================================================ */
.crumb { margin-bottom: 14px; }
.crumb a { color: var(--text-secondary); text-decoration: none; font-size: 14px; }
.crumb a:hover { color: var(--blue); }
.empty-hint { color: var(--text-secondary); font-size: 16px; padding: 20px 0; }

.prose { max-width: 760px; font-size: 17px; line-height: 1.85; color: var(--text); }
.prose h1, .prose h2, .prose h3 { line-height: 1.3; margin: 1.6em 0 .6em; }
.prose h2 { font-size: 26px; font-weight: 600; }
.prose h3 { font-size: 21px; font-weight: 600; }
.prose p { margin: 0 0 1.1em; }
.prose img { max-width: 100%; border-radius: 12px; margin: 1.3em 0; display: block; box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.prose ul, .prose ol { margin: 0 0 1.1em 1.5em; }
.prose li { margin: .45em 0; }
.prose blockquote { border-left: 3px solid var(--blue); padding-left: 16px; color: var(--text-secondary); margin: 1.2em 0; }
.prose code { background: var(--bg-alt); padding: 2px 6px; border-radius: 6px; font-size: 14px; }
.prose pre { background: var(--bg-alt); padding: 16px; border-radius: 12px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }

/* 课程系列横幅（creator/6 系列课程标识）——与章节框 .chapter-list 同宽 */
.course-banner {
  max-width: 820px;
  margin-bottom: 32px;
}
.course-banner__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.chapter-list { max-width: 820px; }
.chapter {
  border: 1px solid var(--border-light); border-radius: 14px;
  margin-bottom: 14px; overflow: hidden; background: var(--white);
}
.chapter summary {
  cursor: pointer; list-style: none;
  padding: 20px 24px; font-size: 18px; font-weight: 600;
  display: flex; align-items: center; gap: 14px;
}
.chapter summary::-webkit-details-marker { display: none; }
.chapter summary::before {
  content: "▸"; color: var(--blue); font-size: 14px;
  transition: transform .2s ease;
}
.chapter[open] summary::before { transform: rotate(90deg); }
.chapter-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-alt); font-size: 13px; color: var(--text-tertiary); flex-shrink: 0;
}
.chapter-title { flex: 1; }
.chapter-body { padding: 0 24px 24px; }

/* 每章独立评价区 */
.chapter-reviews { margin-top: 4px; padding: 18px 24px 6px; border-top: 1px dashed #e6e6ea; }
.chapter-reviews__title { font-size: 0.95rem; font-weight: 600; color: #555; margin: 0 0 12px; }
.chapter-reviews .review-list--mini { grid-template-columns: 1fr; gap: 10px; margin-bottom: 16px; }
.chapter-reviews .review-card { background: #fafafc; box-shadow: none; padding: 12px 14px; }
.chapter-reviews .form-group { margin-bottom: 10px; }
.chapter-reviews .form-group label { font-size: 0.85rem; }
.chapter-reviews .star-input { font-size: 24px; }
.chapter-reviews .btn { font-size: 0.9rem; padding: 8px 18px; }


/* ============================================================
   后台 — 内容管理 / 章节编辑
   ============================================================ */
.back-link { display: inline-block; margin-bottom: 20px; color: var(--text-secondary); text-decoration: none; font-size: 14px; }
.back-link:hover { color: var(--blue); }
.blk-title { font-size: 18px; font-weight: 600; margin: 28px 0 14px; }
.blk-sub { font-size: 15px; font-weight: 600; color: var(--text-secondary); margin: 24px 0 12px; }
.img-upload-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.chapter-edit {
  border: 1px solid var(--border-light); border-radius: 12px;
  padding: 16px; margin-bottom: 16px; background: var(--white);
}
.chapter-edit input, .chapter-edit textarea { width: 100%; margin-bottom: 10px; }

/* ============================================================
   Wilson 分身 — 每条回复 1~5 星评分
   ============================================================ */
.chat-message { flex-wrap: wrap; }
.msg-rating {
  flex-basis: 100%; margin-left: 48px; margin-top: 8px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-top: 9px; border-top: 1px solid rgba(0,0,0,.07);
  font-size: 13px;
}
.rate-label { color: var(--text-tertiary); }
.msg-rating .stars { display: inline-flex; gap: 2px; }
.msg-rating .star {
  background: none; border: none; cursor: pointer;
  font-size: 21px; line-height: 1; color: #d8d8dc; padding: 0;
  transition: color .15s ease, transform .15s ease;
}
.msg-rating .star:hover { transform: scale(1.18); }
.msg-rating .star.active { color: #ff9f0a; }
.rate-done { color: var(--blue); font-weight: 600; }

/* ============================================================
   后台 — AI 对话评分统计
   ============================================================ */
.stat-cards { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.stat-card {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: 16px; padding: 18px 22px; min-width: 160px;
}
.stat-num { font-size: 32px; font-weight: 700; color: var(--text); line-height: 1.1; }
.stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 6px; }
.stat-dist { flex: 1; min-width: 260px; }
.dist-row { display: flex; align-items: center; gap: 10px; margin-top: 7px; font-size: 13px; }
.dist-star { width: 36px; color: var(--text-secondary); flex-shrink: 0; }
.dist-bar { flex: 1; height: 10px; background: var(--bg-alt); border-radius: 6px; overflow: hidden; }
.dist-bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, #ff9f0a, #ffcc00); border-radius: 6px;
}
.dist-count { width: 28px; text-align: right; color: var(--text-secondary); flex-shrink: 0; }
.stars-static { color: #ff9f0a; letter-spacing: 1px; }

/* ============================================================
   首页 — 人格化内容流（最新文章 / 最近在想什么）
   ============================================================ */
.feed-section { padding: 36px 0; }
.feed-list { display: flex; flex-direction: column; gap: 14px; max-width: 820px; margin: 0 auto; }
.feed-item {
  display: flex; align-items: center; gap: 18px;
  background: var(--white, #fff); border: 1px solid var(--border-light);
  border-radius: 16px; padding: 18px 22px; text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feed-item:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.07); border-color: #1d1d1f; }
.feed-badge {
  flex-shrink: 0; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 980px;
  background: #f2f2f4; color: #1d1d1f; white-space: nowrap; border: 1px solid #e3e3e6;
}
.feed-badge--thought,
.feed-badge--creation { background: #f2f2f4; color: #1d1d1f; }
.feed-body { flex: 1; min-width: 0; }
.feed-title { font-size: 16px; font-weight: 650; line-height: 1.35; margin-bottom: 4px; color: #1d1d1f; }
.feed-excerpt {
  font-size: 13.5px; color: #555; line-height: 1.55; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.feed-arrow { flex-shrink: 0; font-size: 18px; color: #999; transition: transform .18s ease, color .18s ease; }
.feed-item:hover .feed-arrow { transform: translateX(4px); color: #1d1d1f; }
.feed-section .btn-outline { color: #1d1d1f; border-color: #d2d2d7; }
.feed-section .btn-outline:hover { color: #1d1d1f; text-decoration: none; background: #f2f2f4; }
.section-cta { text-align: center; margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   订阅入口（首页 / 文章末尾 / AI 对话）
   ============================================================ */
.cta-subscribe { max-width: 560px; margin: 30px auto 0; }
.subscribe-box {
  background: var(--bg-dark, #1d1d1f); color: var(--text-light, #f5f5f7);
  border-radius: 22px; padding: 44px 36px; text-align: center; margin: 0 auto;
  max-width: 760px;
}
.subscribe-box--compact { max-width: 100%; padding: 30px 26px; }
.subscribe-title { font-size: 25px; font-weight: 700; margin: 0 0 10px; }
.subscribe-desc { color: rgba(255,255,255,.7); font-size: 15.5px; margin: 0 0 24px; }
.subscribe-form { display: flex; gap: 0; max-width: 440px; margin: 0 auto; }
.subscribe-input {
  flex: 1; min-width: 0; padding: 13px 16px; border: none; border-radius: 12px 0 0 12px;
  font-size: 15px; outline: none; background: #fff; color: #1d1d1f;
}
.subscribe-form .subscribe-btn {
  border: none; padding: 13px 22px; border-radius: 0 12px 12px 0;
  background: var(--blue, #0071e3); color: #fff; font-weight: 600; cursor: pointer;
  font-size: 15px; white-space: nowrap; transition: background .15s ease;
}
.subscribe-form .subscribe-btn:hover { background: #0070d8; }
.subscribe-form .subscribe-btn:disabled { opacity: .6; cursor: default; }
.subscribe-result { margin-top: 14px; font-size: 14px; min-height: 20px; color: rgba(255,255,255,.85); }
.subscribe-result.success { color: #6ee7a8; font-weight: 600; }
.subscribe-result.error { color: #ff9b9b; }

/* 文章末尾订阅卡 */
.article-subscribe { margin: 44px 0 8px; }
.article-subscribe .subscribe-box { max-width: 100%; }

/* AI 对话订阅卡 */
.ai-sub-card { display: none; margin: 18px auto 0; max-width: 560px; }
.ai-sub-card.show { display: block; }

/* ============================================================
   文章页 — 分享 / 文末区
   ============================================================ */
.article-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.article-footer {
  margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border-light);
  display: flex; flex-direction: column; gap: 28px;
}
.article-footer-share { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.article-footer-label { font-size: 15px; color: var(--text-secondary); }

/* ============================================================
   分享弹窗（微信 / 朋友圈）— 复用 .modal-overlay / .modal-content
   ============================================================ */
.share-modal { max-width: 380px; }
.share-body { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.share-qr-wrap { text-align: center; }
.share-qr { width: 168px; height: 168px; border: 1px solid var(--border-light); border-radius: 12px; }
.share-qr-tip { font-size: 12.5px; color: var(--text-secondary); margin-top: 8px; }
.share-info { width: 100%; }
.share-link-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.share-link-row { display: flex; gap: 8px; }
.share-link-input {
  flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--border-light);
  border-radius: 10px; font-size: 13px; color: var(--text); background: var(--bg-alt);
}
.share-wechat-tip {
  margin-top: 12px; font-size: 13px; color: var(--blue, #0071e3);
  background: var(--bg-alt); padding: 10px 12px; border-radius: 10px; line-height: 1.5;
}

/* 后台提示 */
.panel-hint { margin-top: 14px; font-size: 13.5px; color: var(--text-secondary); }

/* 后台提示 */
.panel-hint { margin-top: 14px; font-size: 13.5px; color: var(--text-secondary); }

/* ============================================================
   订阅邮件设置 + 群发
   ============================================================ */
/* 复用 .form-result，但默认透明（避免空盒子），有内容时上色 */
.form-result { background: transparent; padding: 4px 0; }
.form-result.ok { color: #34c759; font-weight: 600; }
.form-result.err { color: #ff3b30; font-weight: 600; }

.settings-form { max-width: 660px; margin-top: 6px; }
.settings-form .form-row { display: grid; grid-template-columns: 158px 1fr; gap: 14px; align-items: center; margin-bottom: 14px; }
.settings-form .form-row > label { font-size: 14px; color: var(--text-secondary); text-align: right; }
.settings-form .form-row-inline { display: block; }
.settings-form .form-row-inline > label { text-align: left; display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
.settings-form input[type=text], .settings-form input[type=number], .settings-form input[type=password], .settings-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border-light); border-radius: 10px;
  font-size: 14px; background: #fff; color: #1d1d1f; font-family: inherit; box-sizing: border-box;
}
.settings-form textarea { resize: vertical; }
.form-actions { margin-top: 10px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.panel-divider { border: none; border-top: 1px solid var(--border-light); margin: 28px 0; }
.how-to h3 { font-size: 16px; margin-bottom: 10px; }
.how-to ol { margin: 0; padding-left: 20px; color: var(--text-secondary); line-height: 1.9; font-size: 14px; }

.compose-form .form-row { display: block; margin-bottom: 14px; }
.compose-form .form-row > label { display: block; font-size: 14px; color: var(--text-secondary); margin-bottom: 6px; }
.compose-form input[type=text], .compose-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border-light); border-radius: 10px;
  font-size: 14px; font-family: inherit; box-sizing: border-box;
}
.compose-form textarea { resize: vertical; }
@media (max-width: 640px) {
  .settings-form .form-row { grid-template-columns: 1fr; gap: 6px; }
  .settings-form .form-row > label { text-align: left; }
}

/* ============================================================
   Agent Mail 授权卡片
   ============================================================ */
.auth-card { border: 1px solid var(--border-light); border-radius: 14px; padding: 18px 20px; margin-bottom: 6px; background: #fff; }
.auth-card.auth-ok { border-color: #c8f0d4; background: #f6fff9; }
.auth-card.auth-no { border-color: #ffe0b3; background: #fffaf2; }
.auth-head { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.auth-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: #c7c7cc; }
.auth-ok .auth-dot { background: #34c759; box-shadow: 0 0 0 4px rgba(52,199,89,.15); }
.auth-no .auth-dot { background: #ff9500; box-shadow: 0 0 0 4px rgba(255,149,0,.15); }
.auth-yes { color: #1d1d1f; font-weight: 600; }
.auth-not { color: #b06a00; font-weight: 600; }
.auth-tip { font-size: 13.5px; color: var(--text-secondary); margin: 10px 0 4px; }
.auth-warn { font-size: 13.5px; color: #b06a00; margin: 10px 0 4px; }
.auth-url-box { margin-top: 12px; padding: 14px; border: 1px dashed #ffb347; border-radius: 10px; background: #fffdf8; }
.auth-url-box > label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.auth-url-row { display: flex; gap: 8px; }
.auth-url-row input { flex: 1; padding: 9px 11px; border: 1px solid var(--border-light); border-radius: 9px; font-size: 13px; background: #fff; color: #1d1d1f; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.btn-small { padding: 8px 14px; font-size: 13px; }

/* ============ 首页：读者评价走马灯 ============ */
.review-marquee-section { overflow: hidden; }
.review-marquee-section .section-header--center { display: flex; justify-content: center; align-items: baseline; gap: 14px; text-align: center; }
.review-marquee {
  margin-top: 26px;
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.review-marquee__track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: review-marquee 42s linear infinite;
}
.review-marquee:hover .review-marquee__track { animation-play-state: paused; }
@keyframes review-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.review-card {
  flex: 0 0 auto;
  width: 320px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--border-light, #e6e6ea);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.review-card__content {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: #1d1d1f;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.review-card__stars { color: #ff9f0a; font-size: 13px; letter-spacing: 1px; }
.review-card__name {
  font-size: 13px;
  font-weight: 600;
  color: #6e6e73;
}
.review-card__target {
  font-size: 12px;
  color: #0071e3;
  line-height: 1.5;
  border-top: 1px dashed #e6e6ea;
  padding-top: 10px;
  margin-top: 2px;
  text-decoration: none;
  display: inline-block;
  transition: color .15s ease;
}
.review-card__target:hover {
  color: #0058b0;
  text-decoration: underline;
}
.review-card__target::before {
  content: "📖 ";
  font-size: 12px;
}
/* 详情页：单篇文章下的评价列表（网格自适应，区别于首页走马灯） */
.review-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  max-width: 840px;
  margin: 0 auto 8px;
}
.review-list .review-card {
  width: auto;
  flex: initial;
}
@media (max-width: 640px) {
  .review-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .review-marquee__track { animation: none; }
}


/* ============================================================
   VIDEO COURSES — 创作者页视频模块 + 详情播放页
   ============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}
.video-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: transform .3s ease, box-shadow .3s ease;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b0b0f;
  overflow: hidden;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-thumb__ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; color: rgba(255,255,255,.7);
}
.video-thumb__badge {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 12px; padding: 3px 10px; border-radius: 980px;
}
.video-card__title { font-size: 19px; font-weight: 600; margin: 16px 18px 6px; color: var(--text); }
.video-card__desc {
  font-size: 14px; color: var(--text-secondary); line-height: 1.6;
  margin: 0 18px 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-card__more { display: block; margin: 0 18px 18px; font-size: 14px; font-weight: 500; color: var(--blue); }

/* 详情播放页 */
.video-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px; align-items: start;
}
.video-player {
  position: relative; aspect-ratio: 16 / 9;
  background: #000; border-radius: 16px; overflow: hidden;
}
.video-el { width: 100%; height: 100%; border: 0; display: block; }
.video-player__ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); font-size: 15px;
}
.weixin-guide {
  flex-direction: column; gap: 14px; text-align: center;
  padding: 24px; color: rgba(255,255,255,.85);
}
.weixin-guide .weixin-ico { font-size: 40px; line-height: 1; }
.weixin-guide p { margin: 0; max-width: 360px; }
.weixin-guide .btn { margin-top: 4px; }
.video-copyright {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 8px;
  line-height: 1.5;
}
.video-side {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: 16px; padding: 18px;
  max-height: 70vh; overflow-y: auto;
}
.video-side__title { font-size: 16px; font-weight: 600; margin: 0 0 12px; }
.episode-list { list-style: none; margin: 0; padding: 0; }
.episode-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 10px; cursor: pointer;
  transition: background .15s ease;
}
.episode-item:hover { background: var(--bg-alt); }
.episode-item.active { background: rgba(0,113,227,.08); }
.episode-num {
  flex: 0 0 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt); font-size: 13px; font-weight: 600; color: var(--text-secondary);
}
.episode-item.active .episode-num { background: var(--blue); color: #fff; }
.episode-title { font-size: 14px; color: var(--text); line-height: 1.4; }
.episode-empty { padding: 16px 4px; color: var(--text-tertiary); font-size: 14px; }

@media (max-width: 900px) {
  .video-detail { grid-template-columns: 1fr; }
  .video-side { max-height: none; }
}

/* 后台：视频课程表单辅助 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.form-grid .form-group { margin: 0; }
.inline-up { display: flex; gap: 10px; align-items: center; }
.inline-up input { flex: 1; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ep-url { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-hint { font-size: 12px; color: var(--text-tertiary); margin: 8px 0 0; line-height: 1.5; }

/* 后台：站点文案集中编辑 */
.admin-hint { font-size: 13px; color: var(--text-secondary); margin: 0 0 22px; line-height: 1.6; }
.admin-hint b { color: var(--text); }
.texts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.texts-grid .form-group { margin: 0; }
.texts-actions { margin: 26px 0 8px; display: flex; align-items: center; gap: 16px; }
@media (max-width: 720px) {
  .texts-grid { grid-template-columns: 1fr; }
}
