/* ===== 糖心vlog 公共样式 ===== */
:root {
  --coral:     #ff5f7e;
  --coral-lt:  #ff8fab;
  --rose:      #c44569;
  --blush:     #ffe0ec;
  --cream:     #fff7f9;
  --petal:     #ffeef4;
  --dusk:      #1a1220;
  --plum:      #3d2535;
  --muted:     #7a6070;
  --card-bg:   #ffffff;
  --shadow-sm: 0 4px 14px rgba(255,100,140,.10);
  --shadow-md: 0 10px 30px rgba(255,100,140,.15);
  --radius-sm: 20px;
  --radius-md: 32px;
  --radius-lg: 48px;
  --font-body: 'Noto Sans SC', sans-serif;
  --font-disp: 'Ma Shan Zheng', cursive;
  --transition: .18s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--plum);
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body::before {
  content:'';
  position:fixed; inset:0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(255,140,170,.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(255,200,220,.10) 0%, transparent 60%);
  pointer-events:none; z-index:0;
}

/* ===== 导航 ===== */
.navbar {
  background:rgba(255,251,253,.92);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  position:sticky; top:0; z-index:100;
  border-bottom:1px solid rgba(255,180,210,.25);
  box-shadow:0 2px 16px rgba(255,120,160,.08);
}
.navbar-inner {
  display:flex; align-items:center; justify-content:space-between;
  height:62px; padding:0 18px;
  max-width:520px; margin:0 auto;
}
.logo-wrap { display:flex; align-items:center; gap:8px; text-decoration:none; }
.logo-icon {
  width:44px; height:44px;
  background:linear-gradient(135deg,#ffd6e7,#ffb3cc);
  border-radius:14px; display:flex; align-items:center; justify-content:center;
  font-size:1.6rem; box-shadow:0 4px 10px rgba(255,100,140,.25);
}
.logo-text {
  font-family:var(--font-disp); font-size:1.55rem;
  background:linear-gradient(130deg,var(--rose),var(--coral));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text; letter-spacing:1px;
}
.nav-actions { display:flex; gap:10px; }
.nav-btn {
  width:42px; height:42px;
  background:var(--petal); border:1px solid rgba(255,150,180,.3);
  border-radius:13px; color:var(--coral); font-size:1.05rem;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:var(--transition);
}
.nav-btn:hover { background:var(--blush); transform:translateY(-1px); }

/* 分类胶囊 */
.nav-pills {
  display:flex; gap:8px; padding:10px 18px;
  overflow-x:auto; scrollbar-width:none;
  max-width:520px; margin:0 auto;
}
.nav-pills::-webkit-scrollbar { display:none; }
.pill {
  flex-shrink:0; text-decoration:none;
  font-size:.875rem; font-weight:600; color:var(--muted);
  padding:8px 18px; border-radius:50px;
  background:white; border:1px solid rgba(255,160,185,.25);
  transition:var(--transition); white-space:nowrap;
}
.pill:hover { border-color:var(--coral-lt); color:var(--coral); }
.pill.active {
  background:linear-gradient(135deg,var(--coral),var(--rose));
  color:white; border-color:transparent;
  box-shadow:0 4px 12px rgba(255,90,126,.35);
}

/* 搜索栏 */
.search-bar {
  display:flex; align-items:center;
  background:white; border:1.5px solid rgba(255,160,185,.35);
  border-radius:50px; padding:5px 5px 5px 20px;
  margin:6px auto 14px; max-width:484px;
  box-shadow:var(--shadow-sm); transition:var(--transition);
}
.search-bar:focus-within { border-color:var(--coral-lt); box-shadow:0 0 0 3px rgba(255,100,140,.12); }
.search-bar input {
  flex:1; border:none; background:transparent; outline:none;
  font-size:.95rem; font-family:var(--font-body); color:var(--plum); padding:10px 0;
}
.search-bar input::placeholder { color:#c0a8b4; }
.search-btn {
  width:46px; height:46px;
  background:linear-gradient(135deg,var(--coral),var(--rose));
  border:none; border-radius:50px; color:white; font-size:1.1rem;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:var(--transition); box-shadow:0 4px 12px rgba(255,90,126,.3);
}
.search-btn:hover { transform:scale(1.05); }

/* 主容器 */
main { max-width:520px; margin:0 auto; padding:0 0 40px; position:relative; z-index:1; }

/* 页面 hero */
.page-hero {
  padding:28px 18px 20px;
  background:linear-gradient(135deg,rgba(255,200,220,.15),rgba(255,240,248,.1));
}
.page-hero .eyebrow {
  display:inline-flex; align-items:center; gap:6px;
  background:var(--petal); border:1px solid rgba(255,150,180,.3);
  border-radius:50px; padding:5px 14px;
  font-size:.78rem; color:var(--rose); font-weight:600; margin-bottom:12px;
}
.page-hero h1 {
  font-family:var(--font-disp); font-size:2.4rem; line-height:1.2;
  background:linear-gradient(135deg,var(--rose),var(--coral));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text; margin-bottom:8px;
}
.page-hero p { font-size:.95rem; color:var(--muted); line-height:1.7; }

/* 区块标题 */
.sec-head { display:flex; justify-content:space-between; align-items:center; padding:0 18px; margin:28px 0 14px; }
.sec-head h2 {
  font-family:var(--font-disp); font-size:1.7rem; color:var(--plum); position:relative;
}
.sec-head h2::after {
  content:''; position:absolute; bottom:-3px; left:0;
  width:40px; height:3px;
  background:linear-gradient(90deg,var(--coral),transparent); border-radius:2px;
}
.sec-more {
  text-decoration:none; font-size:.85rem; color:var(--coral); font-weight:600;
  display:flex; align-items:center; gap:4px; transition:var(--transition);
}
.sec-more:hover { gap:8px; }

/* 视频卡片 */
.vcard {
  background:var(--card-bg); border-radius:var(--radius-md); overflow:hidden;
  border:1px solid rgba(255,160,190,.2); box-shadow:var(--shadow-sm);
  transition:var(--transition); cursor:pointer;
}
.vcard:hover { transform:translateY(-3px); box-shadow:var(--shadow-md); }
.vcard-thumb {
  position:relative; height:210px;
  background-size:cover; background-position:center; overflow:hidden;
}
.vcard-thumb::after {
  content:''; position:absolute; inset:0;
  background:linear-gradient(to top,rgba(30,10,22,.45) 0%,transparent 50%);
}
.vcard-play {
  position:absolute; top:14px; right:14px;
  width:46px; height:46px; background:rgba(255,255,255,.88);
  backdrop-filter:blur(6px); border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:1.1rem; color:var(--coral); z-index:2;
  border:1.5px solid white; transition:var(--transition);
}
.vcard:hover .vcard-play { background:white; transform:scale(1.08); }
.vcard-dur {
  position:absolute; bottom:14px; right:14px;
  background:rgba(0,0,0,.55); backdrop-filter:blur(4px);
  color:white; font-size:.75rem; font-weight:600;
  padding:3px 10px; border-radius:50px; z-index:2;
}
.vcard-cat {
  position:absolute; bottom:14px; left:14px;
  background:var(--coral); color:white; font-size:.7rem; font-weight:700;
  padding:3px 10px; border-radius:50px; z-index:2;
}
.vcard-body { padding:18px 18px 20px; }
.vcard-title { font-size:1.15rem; font-weight:700; margin-bottom:6px; color:var(--plum); line-height:1.4; }
.vcard-desc {
  font-size:.875rem; color:var(--muted); margin-bottom:14px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; line-height:1.55;
}
.vcard-meta { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.vcard-avatar { width:36px; height:36px; border-radius:50%; object-fit:cover; border:2px solid var(--blush); }
.vcard-author { font-weight:600; font-size:.9rem; color:var(--plum); }
.vcard-stats { display:flex; gap:14px; font-size:.78rem; color:var(--muted); margin-bottom:12px; }
.vcard-stats span { display:flex; align-items:center; gap:4px; }
.vcard-stats .fa-heart { color:var(--coral-lt); }

/* 标签 */
.tags { display:flex; gap:8px; flex-wrap:wrap; }
.tag {
  background:var(--petal); color:var(--rose); font-size:.72rem; font-weight:600;
  padding:5px 14px; border-radius:50px; border:1px solid rgba(255,120,160,.2);
}

/* 按钮 */
.btn-primary {
  background:linear-gradient(135deg,var(--coral),var(--rose));
  color:white; border:none; padding:14px 28px; border-radius:50px;
  font-size:.95rem; font-weight:600; font-family:var(--font-body); cursor:pointer;
  box-shadow:0 6px 18px rgba(255,90,126,.4); transition:var(--transition);
  display:inline-flex; align-items:center; gap:8px;
}
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 10px 24px rgba(255,90,126,.45); }
.btn-ghost {
  background:white; color:var(--rose);
  border:1.5px solid rgba(255,100,140,.4); padding:13px 24px;
  border-radius:50px; font-size:.95rem; font-weight:600;
  font-family:var(--font-body); cursor:pointer; transition:var(--transition);
}
.btn-ghost:hover { background:var(--petal); transform:translateY(-2px); }

/* 卡片通用 */
.card {
  background:white; border-radius:var(--radius-md);
  border:1px solid rgba(255,160,190,.2); box-shadow:var(--shadow-sm);
  transition:var(--transition);
}
.card:hover { transform:translateY(-3px); box-shadow:var(--shadow-md); }

/* 页脚 */
footer { background:var(--dusk); color:#9e8a96; padding:40px 18px 24px; }
.footer-brand { font-family:var(--font-disp); font-size:1.6rem; color:#d4a8bf; margin-bottom:6px; }
.footer-tagline { font-size:.85rem; margin-bottom:24px; }
.footer-links { display:flex; flex-wrap:wrap; gap:8px 20px; margin-bottom:28px; }
.footer-links a { color:#9e8a96; text-decoration:none; font-size:.85rem; transition:var(--transition); }
.footer-links a:hover { color:var(--coral-lt); }
.footer-bottom { border-top:1px solid rgba(255,255,255,.07); padding-top:20px; font-size:.75rem; text-align:center; line-height:1.8; }

/* 返回顶部 */
#backTop {
  position:fixed; bottom:24px; right:20px;
  width:50px; height:50px;
  background:linear-gradient(135deg,var(--coral),var(--rose));
  color:white; border-radius:16px;
  display:flex; align-items:center; justify-content:center;
  font-size:1.1rem; box-shadow:0 6px 18px rgba(255,90,126,.5);
  opacity:0; pointer-events:none; transition:var(--transition);
  cursor:pointer; z-index:200; border:none;
}
#backTop.show { opacity:1; pointer-events:auto; }
#backTop:hover { transform:translateY(-3px); }

/* 入场动画 */
.fade-up { opacity:0; transform:translateY(24px); transition:opacity .5s ease,transform .5s ease; }
.fade-up.visible { opacity:1; transform:translateY(0); }
