/* new.feitupai.com — 飞兔拍 2.0 base styles (sky-blue) */
:root {
  --primary: #1e90ff;
  --primary-dark: #0e7ce0;
  --primary-light: #e6f4ff;
  --primary-soft: #f0f8ff;
  --text: #1a202c;
  --text-muted: #4a5568;
  --text-faint: #718096;
  --border: #e5e7eb;
  --border-soft: #f1f5f9;
  --bg: #f7fafc;
  --white: #ffffff;
  --accent: #ff7a00;
  --success: #16a34a;
  --warn: #f59e0b;
  --danger: #dc2626;

  /* Layered shadows — Claude design 风 */
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.04), 0 1px 1px rgba(15,23,42,0.02);
  --shadow-md: 0 4px 6px rgba(15,23,42,0.04), 0 2px 4px rgba(15,23,42,0.03);
  --shadow-lg: 0 10px 25px rgba(15,23,42,0.06), 0 4px 10px rgba(15,23,42,0.04);
  --shadow-xl: 0 20px 40px rgba(15,23,42,0.08), 0 8px 16px rgba(15,23,42,0.05);
  --shadow-primary: 0 4px 14px rgba(30,144,255,0.22);
  --shadow-primary-hover: 0 8px 22px rgba(30,144,255,0.30);

  /* Radius scale */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Typography scale */
  --text-xs: 11.5px;
  --text-sm: 12.5px;
  --text-base: 14px;
  --text-md: 15px;
  --text-lg: 17px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-4xl: 38px;

  /* Easing */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  --maxw: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
               "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ── Top bar ─────────────────────────────────────────────── */
.ftp-topbar {
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(15,23,42,0.06);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(15,23,42,0.02);
  transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.ftp-topbar.scrolled {
  background: rgba(255,255,255,0.94);
  box-shadow: var(--shadow-md);
}
.ftp-topbar-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center;
  padding: 14px 20px; gap: 28px;
}
.ftp-logo {
  font-size: 20px; font-weight: 700;
  color: var(--primary); letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 9px;
}
.ftp-logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), #4dabff);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700;
  box-shadow: 0 4px 10px rgba(30,144,255,0.28);
}
.ftp-nav { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
.ftp-nav a {
  padding: 7px 13px; border-radius: 8px;
  color: var(--text); font-size: 14px;
  position: relative;
  transition: var(--transition);
}
.ftp-nav a:hover { background: var(--primary-soft); color: var(--primary); }
.ftp-nav a.active {
  color: var(--primary); font-weight: 600;
  background: var(--primary-light);
}
.ftp-actions { display: flex; gap: 10px; align-items: center; }
.ftp-actions .btn { padding: 7px 14px; font-size: 13px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 10px 20px; border-radius: 10px;
  font-weight: 500; font-size: 14px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  background: var(--white); color: var(--text);
  transition: var(--transition);
  will-change: transform;
}
.btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0b6dc7 100%);
  color: var(--white); border-color: transparent;
  box-shadow: var(--shadow-primary-hover);
  transform: translateY(-1px);
}
.btn-outline { background: var(--white); border: 1px solid var(--border); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #e66e00 100%);
  color: var(--white); border-color: transparent;
  box-shadow: 0 4px 14px rgba(255,122,0,0.25);
}
.btn-accent:hover {
  background: linear-gradient(135deg, #e66e00 0%, #cc5f00 100%);
  color: var(--white); border-color: transparent;
  box-shadow: 0 8px 22px rgba(255,122,0,0.30);
  transform: translateY(-1px);
}
.btn-lg { padding: 13px 28px; font-size: 15px; border-radius: 12px; }

/* ── Layout ──────────────────────────────────────────────── */
.ftp-container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.ftp-section { padding: 56px 20px; }

/* ── Card ────────────────────────────────────────────────── */
.ftp-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid rgba(15,23,42,0.05);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.ftp-card-pad { padding: 22px; }

/* ── Hero ────────────────────────────────────────────────── */
.ftp-hero {
  background: linear-gradient(135deg, #1e90ff 0%, #4dabff 60%, #82c5ff 100%);
  color: var(--white);
  padding: 88px 20px 80px;
  text-align: center;
}
.ftp-hero h1 {
  margin: 0 0 16px; font-size: 40px; font-weight: 750;
  letter-spacing: -0.02em; line-height: 1.15;
}
.ftp-hero p {
  margin: 0 auto 28px; max-width: 700px;
  font-size: 17px; opacity: 0.95; line-height: 1.55;
}
.ftp-hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.ftp-hero-cta .btn-primary {
  background: var(--white); color: var(--primary); border-color: var(--white);
}
.ftp-hero-cta .btn-primary:hover { background: #f1f9ff; color: var(--primary-dark); }
.ftp-hero-cta .btn-outline {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6);
}
.ftp-hero-cta .btn-outline:hover { background: rgba(255,255,255,0.15); color: var(--white); border-color: var(--white); }

/* ── Model library ───────────────────────────────────────── */
.modellib-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .modellib-layout { grid-template-columns: 1fr; } }

.filter-card { padding: 18px; position: sticky; top: 76px; }
.filter-card h3 {
  margin: 0 0 14px; font-size: 13px; color: var(--text-muted);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.filter-group { margin-bottom: 18px; }
.filter-group-label {
  display: block; font-size: 13px; font-weight: 600;
  margin-bottom: 8px; color: var(--text);
}
.filter-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-pill {
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--white); color: var(--text); font-size: 12.5px; cursor: pointer;
}
.filter-pill:hover { border-color: var(--primary); color: var(--primary); }
.filter-pill.active {
  background: var(--primary); border-color: var(--primary); color: var(--white);
}
.filter-clear {
  display: block; margin-top: 8px;
  background: none; border: 0; color: var(--text-muted); cursor: pointer;
  font-size: 12.5px; padding: 0;
}
.filter-clear:hover { color: var(--danger); }

.modellib-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; gap: 12px; flex-wrap: wrap;
}
.modellib-toolbar .count { color: var(--text-muted); font-size: 13px; }
.modellib-toolbar .count strong { color: var(--primary); font-weight: 600; }
.modellib-toolbar select, .modellib-toolbar input {
  padding: 7px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--white); font-size: 13px;
}
.modellib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.creator-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; border: 1px solid rgba(15,23,42,0.05);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.creator-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; border-color: rgba(30,144,255,0.18); }
.creator-avatar {
  width: 100%; aspect-ratio: 1; background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: var(--primary); font-weight: 600;
  overflow: hidden;
}
.creator-avatar img { width: 100%; height: 100%; object-fit: cover; }
.creator-meta { padding: 12px 14px 14px; }
.creator-name { font-weight: 600; font-size: 15px; margin: 0 0 4px; }
.creator-sub { color: var(--text-muted); font-size: 12.5px; margin-bottom: 8px; }
.creator-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 11.5px; line-height: 1.6;
}
.tag-blue { background: var(--primary-light); color: var(--primary-dark); }
.tag-orange { background: #fff3e6; color: #c2410c; }
.tag-green { background: #ecfdf5; color: #047857; }
.tag-gray  { background: #f3f4f6; color: #4b5563; }
.creator-price { display: flex; align-items: baseline; gap: 6px; }
.creator-price .price { font-size: 18px; font-weight: 700; color: var(--accent); }
.creator-price .unit { color: var(--text-muted); font-size: 12px; }
.creator-followers { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ── Pagination ──────────────────────────────────────────── */
.ftp-pager {
  display: flex; justify-content: center; gap: 6px;
  margin: 28px 0 12px; flex-wrap: wrap;
}
.ftp-pager button {
  border: 1px solid var(--border); background: var(--white);
  padding: 6px 12px; border-radius: var(--radius-sm); color: var(--text);
  font-size: 13px; min-width: 36px;
}
.ftp-pager button:hover:not([disabled]) { border-color: var(--primary); color: var(--primary); }
.ftp-pager button.active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.ftp-pager button[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ── Detail page ─────────────────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
@media (max-width: 800px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-avatar {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  background: var(--primary-soft);
}
.detail-avatar img { width: 100%; height: 100%; object-fit: cover; }
.detail-name { font-size: 28px; margin: 0 0 8px; }
.detail-sub { color: var(--text-muted); font-size: 14.5px; margin-bottom: 16px; }
.detail-row { display: flex; gap: 16px; margin-bottom: 12px; align-items: baseline; flex-wrap: wrap; }
.detail-row .label { color: var(--text-muted); width: 84px; flex-shrink: 0; font-size: 13.5px; }
.detail-row .value { flex: 1; min-width: 200px; }
.detail-price-card {
  background: var(--primary-soft); border: 1px solid var(--primary-light);
  border-radius: var(--radius); padding: 18px 20px; margin: 18px 0 24px;
  display: flex; flex-wrap: wrap; gap: 18px; align-items: baseline;
}
.detail-price-card .main-price {
  font-size: 32px; font-weight: 700; color: var(--accent);
}
.detail-price-card .price-meta { color: var(--text-muted); font-size: 13px; }

/* ── Footer ──────────────────────────────────────────────── */
.ftp-footer {
  background: linear-gradient(180deg, #0f172a 0%, #0a0f1d 100%);
  color: rgba(255,255,255,0.72);
  padding: 48px 20px 32px; margin-top: 72px;
  font-size: 13px; line-height: 1.7;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.ftp-footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px 24px;
  align-items: start;
}
/* 品牌列(永远是 footer 第一个 child)给更多宽度,放 SPN badge / ICP 行不挤 */
.ftp-footer-inner > :first-child { grid-column: span 2; min-width: 220px; }
@media (max-width: 900px) {
  .ftp-footer-inner > :first-child { grid-column: span 2; }
}
.ftp-footer a {
  color: rgba(255,255,255,0.85);
  transition: color .15s var(--ease);
}
.ftp-footer a:hover { color: #fff; }
.ftp-footer h4 {
  color: var(--white); margin: 0 0 12px; font-size: 13px;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0.92;
}
/* 联系列邮箱不要在「邮 / 箱:」中间断行 — Chinese 默认 break-word 会切汉字之间。
   keep-all 锁汉字串,anywhere 给长邮箱兜底(实在窄到一列宽就在 @ 后断)。 */
.ftp-footer-inner > div { word-break: keep-all; overflow-wrap: anywhere; }

/* ── Util ────────────────────────────────────────────────── */
.muted { color: var(--text-muted); }
.skeleton { background: linear-gradient(90deg, #eef2f7 0%, #f7fafc 50%, #eef2f7 100%);
            background-size: 200% 100%; animation: sk 1.4s ease-in-out infinite;
            border-radius: 6px; }
@keyframes sk { 0%{background-position:200% 0;} 100%{background-position:-200% 0;} }
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
  background: var(--white); border-radius: var(--radius);
  border: 1px dashed var(--border);
}

/* ── Hamburger menu (mobile) ────────────────────────────── */
.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 38px; height: 38px; padding: 0;
  font-size: 22px; color: var(--text);
  border-radius: 6px;
}
.nav-toggle:hover { background: var(--primary-soft); color: var(--primary); }
.nav-backdrop { display: none; }

/* ── Mobile responsive ─────────────────────────────────── */
@media (max-width: 768px) {
  body { font-size: 13.5px; }

  /* 顶部栏简化:logo + 汉堡 + 主操作 */
  .ftp-topbar-inner {
    padding: 10px 14px; gap: 12px;
    flex-wrap: nowrap;
  }
  .ftp-logo { font-size: 17px; gap: 6px; flex-shrink: 0; }
  .ftp-logo-mark { width: 26px; height: 26px; font-size: 13px; }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; order: 99; margin-left: auto; }

  .ftp-nav {
    position: fixed; top: 56px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column; gap: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 16px rgba(15,23,42,0.08);
    display: none;
    z-index: 60;
  }
  body.nav-open .ftp-nav { display: flex; }
  .ftp-nav a {
    padding: 12px 18px; border-radius: 0; width: 100%;
    border-bottom: 1px solid var(--border-soft); font-size: 14.5px;
  }
  .ftp-nav a:last-child { border-bottom: 0; }
  .ftp-nav a.active { background: var(--primary-soft); }

  body.nav-open .nav-backdrop {
    display: block; position: fixed;
    inset: 56px 0 0 0; background: rgba(15,23,42,0.2); z-index: 55;
  }

  /* 顶部右侧操作:登录按钮在手机上隐藏(走汉堡内),保留"注册" */
  .ftp-actions .btn:not(.btn-primary) { display: none; }
  .ftp-actions .btn { padding: 6px 12px; font-size: 12.5px; }

  /* Hero 收缩 */
  .ftp-hero { padding: 38px 16px 32px; }
  .ftp-hero h1 { font-size: 24px; }
  .ftp-hero p { font-size: 14px; }
  .ftp-hero-cta { flex-direction: column; }
  .ftp-hero-cta .btn { width: 100%; }

  /* Section padding */
  .ftp-section { padding: 40px 14px; }
  .ftp-container { padding: 0 14px; }

  /* 模特库:筛选变 collapsible(由各页 JS 控制 .collapsed 类) */
  .modellib-layout { grid-template-columns: 1fr; gap: 14px; }
  .filter-card {
    position: static; padding: 14px 16px;
  }
  .filter-card.collapsed .filter-group,
  .filter-card.collapsed .filter-clear { display: none; }
  .filter-card .filter-toggle {
    display: flex; justify-content: space-between; align-items: center;
    background: none; border: 0; width: 100%; padding: 0; cursor: pointer;
    font-size: 14.5px; font-weight: 600;
  }
  .filter-card .filter-toggle .caret { transition: transform .2s ease; }
  .filter-card.collapsed .filter-toggle .caret { transform: rotate(-90deg); }
  .filter-card h3 { display: none; }

  /* 模特库网格:2 列 → 1 列 */
  .modellib-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
  .cc-meta { padding: 10px 12px 12px; }
  .cc-name { font-size: 14px; }
  .cc-sub { font-size: 11.5px; margin-bottom: 6px; }
  .cc-price-row .price { font-size: 17px; }
  .cc-dims {
    grid-template-columns: 1fr;   /* 手机上 5 维改成单列省高度 */
    gap: 4px;
  }
  .cc-dim { font-size: 11px; }

  /* Match banner 收缩 */
  .match-banner { padding: 12px 14px; gap: 10px; }
  .match-banner .icon { font-size: 22px; }
  .match-banner .text h3 { font-size: 14.5px; }
  .match-banner .text p { font-size: 12px; }
  .match-banner .tier-chip { padding: 4px 10px; font-size: 12px; }
  .usp-strip { display: none; }     /* 手机上隐藏 USP 条,留 banner 即可 */

  /* 详情页 */
  .detail-grid { grid-template-columns: 1fr; gap: 18px; }
  .detail-avatar { max-width: 280px; margin: 0 auto; }
  .detail-name { font-size: 22px; }
  .detail-price-card { padding: 14px 16px; flex-direction: column; align-items: stretch; gap: 12px; }
  .detail-price-card .main-price { font-size: 26px; }
  .dims-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .dim-card { padding: 12px 10px; }
  .dim-card .v { font-size: 20px; }

  /* 下单表单 */
  .order-layout { grid-template-columns: 1fr; gap: 16px; }
  .form-section { padding: 16px 16px; }
  .form-section h2 { font-size: 15px; }
  .opt-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .opt-grid label { padding: 8px 10px; font-size: 12.5px; }
  .summary-card { position: static; padding: 16px; }

  /* Footer */
  .ftp-footer { padding: 24px 16px; }
  .ftp-footer-inner {
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ftp-footer-inner > :first-child { grid-column: 1 / -1; min-width: 0; }
  .ftp-footer h4 { font-size: 13px; }

  /* Pager */
  .ftp-pager button { padding: 5px 10px; font-size: 12px; min-width: 32px; }
}

/* 超窄屏(< 380px,iPhone SE 等) */
@media (max-width: 380px) {
  .modellib-grid { grid-template-columns: 1fr; }
  .opt-grid { grid-template-columns: 1fr; }
  .ftp-logo span:not(.ftp-logo-mark) { display: none; }    /* 只留 logo mark */
}
