/* ============================================================
   颢颢TV · 高级玫瑰金主题
   Editorial · Rose Gold · Quiet Luxury · 灵动克制
   ============================================================ */

:root {
  /* —— 高级粉色系（灰调玫瑰 / 玫瑰金）—— */
  --bg:          #FAF7F6;
  --bg-2:        #F4EDEB;
  --surface:     #FFFFFF;
  --ink:         #2E1B24;   /* 深梅黑 */
  --ink-soft:    #6E5B61;   /* 灰梅 */
  --ink-faint:   #9C8B90;

  --rose-50:  #FBF5F6;
  --rose-100: #F5E8EA;
  --rose-200: #EBD4D7;
  --rose-300: #DCB9BE;
  --rose-400: #C98F96;
  --rose-500: #B76E79;   /* 主色 · 玫瑰金 */
  --rose-600: #9C5562;
  --rose-700: #7E404D;
  --berry:    #7C3A4D;
  --plum:     #3A222C;

  --gold:      #C6A15B;    /* 香槟金点缀 */
  --champagne: #E4CDA7;
  --mauve:     #A98B9A;

  /* —— 渐变与质感 —— */
  --grad-rose: linear-gradient(135deg, #E3BEC3 0%, #C98F96 48%, #9C5562 100%);
  --grad-text: linear-gradient(120deg, #9C5562 0%, #C98F96 45%, #C6A15B 100%);
  --grad-hero: linear-gradient(180deg, rgba(46,27,36,.10), rgba(46,27,36,.72));

  --line:        rgba(124, 58, 77, .12);
  --line-strong: rgba(124, 58, 77, .22);

  --shadow-sm: 0 1px 2px rgba(46,27,36,.04), 0 6px 18px rgba(124,58,77,.06);
  --shadow-md: 0 2px 6px rgba(46,27,36,.05), 0 18px 40px rgba(124,58,77,.10);
  --shadow-lg: 0 4px 10px rgba(46,27,36,.06), 0 30px 70px rgba(124,58,77,.16);

  /* —— 字体 —— */
  --font-serif: "Cormorant Garamond", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-sans:  "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  --radius:    16px;
  --radius-lg: 24px;
  --nav-h:     76px;
}

/* ————— 基础 ————— */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background-color: var(--bg);
  padding-top: var(--nav-h);
  line-height: 1.7;
  letter-spacing: .01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Aurora 柔和渐变背景 */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(40% 42% at 14% 16%, rgba(220,185,190,.34), transparent 60%),
    radial-gradient(38% 44% at 86% 10%, rgba(233,205,186,.30), transparent 60%),
    radial-gradient(46% 50% at 80% 88%, rgba(201,143,150,.22), transparent 62%),
    radial-gradient(40% 40% at 8% 90%, rgba(228,205,167,.20), transparent 60%);
  filter: blur(20px);
  animation: aurora 26s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(2%, -1.5%, 0) scale(1.04); }
  100% { transform: translate3d(-1.5%, 2%, 0) scale(1); }
}

/* 胶片颗粒质感 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--rose-300); color: #fff; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--rose-300), var(--rose-500));
  border-radius: 8px;
  border: 3px solid var(--bg-2);
}
::-webkit-scrollbar-thumb:hover { background: var(--rose-600); }

a { color: var(--rose-600); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--rose-700); }

img { max-width: 100%; display: block; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .01em;
  line-height: 1.22;
  margin-top: 0;
}

/* ————— 排版工具 ————— */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--rose-600);
}
.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-rose { color: var(--rose-600) !important; }
.text-soft { color: var(--ink-soft); }
.lead { font-size: 1.06rem; color: var(--ink-soft); }

/* ————— 按钮 ————— */
.btn {
  --pad: .66rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: var(--pad);
  position: relative;
  overflow: hidden;
  box-shadow: none;
  transition: transform .3s cubic-bezier(.2,.9,.3,1.2), box-shadow .3s ease, background .3s ease, color .3s ease, border-color .3s ease;
  will-change: transform;
}
.btn:active, .btn.active { box-shadow: none; }

.btn-solid {
  background: var(--rose-500);
  color: #fff !important;
  border: 1px solid transparent;
  box-shadow: 0 10px 24px rgba(156,85,98,.28);
}
.btn-solid:hover {
  background: var(--rose-600);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(156,85,98,.36);
}

.btn-line {
  background: transparent;
  color: var(--rose-700) !important;
  border: 1px solid var(--line-strong);
}
.btn-line:hover { border-color: var(--rose-500); background: var(--rose-50); transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
  color: var(--ink) !important;
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: #fff; transform: translateY(-2px); }

.btn-dark {
  background: var(--plum);
  color: #fff !important;
  border: none;
}
.btn-dark:hover { background: #2E1B24; transform: translateY(-2px); }

/* 流光扫过 */
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -70%;
  width: 45%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.38), transparent);
  transform: skewX(-22deg);
  transition: left .65s ease;
}
.btn:hover::after { left: 130%; }
.btn:active { transform: scale(.97); }

/* 磁性按钮 */
.magnetic { transition: transform .28s cubic-bezier(.2,.8,.3,1); }

/* ————— 徽章 ————— */
.badge {
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .03em;
  border-radius: 999px;
  padding: .42em .8em;
}
.badge-cat { background: var(--rose-100); color: var(--rose-700); }
.badge-vip {
  background: linear-gradient(135deg, #E9D8B8, #C6A15B);
  color: #5C4414;
  box-shadow: 0 3px 10px rgba(198,161,91,.32);
}
.badge-soft { background: var(--rose-100); color: var(--rose-700); }
.badge-dark { background: var(--plum); color: #fff; }

/* 分类徽章（高级低饱和） */
.badge.video { background: var(--rose-100); color: var(--rose-700); }
.badge.tv     { background: #EFE6EE; color: #7A4F70; }
.badge.movie  { background: #E9EDE6; color: #4F6B4B; }
.badge.kids   { background: #F3EAD8; color: #8A6A2F; }
.badge.anime  { background: #F6E3E0; color: #9E4B46; }
.badge.vip    { background: linear-gradient(135deg,#E9D8B8,#C6A15B); color:#5C4414; }

/* ————— 管理员栏 ————— */
.admin-bar {
  background: var(--plum);
  color: #EBD4D0;
  font-size: .82rem;
  font-weight: 500;
  position: sticky;
  top: var(--nav-h);
  z-index: 1035;
  letter-spacing: .02em;
}
.admin-bar a { color: #EBD4D0; display: inline-flex; align-items: center; gap: 6px; margin-right: 20px; opacity: .9; }
.admin-bar a:hover { color: #fff; opacity: 1; }

/* ————— 导航栏 ————— */
.navbar {
  background: rgba(250,247,246,.78);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--line);
  height: var(--nav-h);
  transition: background .35s ease, box-shadow .35s ease;
}
.navbar.scrolled {
  background: rgba(250,247,246,.92);
  box-shadow: 0 12px 40px rgba(46,27,36,.08);
}

.brand-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo img { height: 38px; width: auto; transition: transform .4s ease; }
.brand-logo:hover img { transform: translateY(-1px); }

.brand-word {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-word .brand-tv {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .34em;
  color: var(--ink-faint);
  -webkit-text-fill-color: var(--ink-faint);
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
}

.navbar .nav-link {
  position: relative;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .94rem;
  padding: .5rem .9rem !important;
  white-space: nowrap;
  letter-spacing: .01em;
  transition: color .25s ease;
}
.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: .9rem; right: .9rem; bottom: .1rem;
  height: 1.5px;
  background: var(--rose-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s cubic-bezier(.2,.8,.3,1);
}
.navbar .nav-link:hover { color: var(--rose-700); }
.navbar .nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.navbar .nav-link.active { color: var(--rose-700); }
.navbar .nav-link.active::after { transform: scaleX(1); }

/* 搜索框 */
.search-form { position: relative; }
.search-form .form-control {
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  padding: .5rem 2.9rem .5rem 1.15rem;
  background: rgba(255,255,255,.7);
  font-size: .92rem;
  transition: all .3s ease;
}
.search-form .form-control:focus {
  border-color: var(--rose-400);
  background: #fff;
  box-shadow: 0 0 0 .22rem rgba(183,110,121,.12);
}
.search-btn {
  position: absolute; right: 7px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border: none; border-radius: 50%;
  background: var(--rose-500);
  color: #fff;
  display: grid; place-items: center;
  transition: background .3s ease, transform .3s ease;
}
.search-btn:hover { background: var(--rose-600); transform: translateY(-50%) scale(1.06); }

.navbar .dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: .4rem;
}
.navbar .dropdown-item { border-radius: 10px; font-weight: 500; padding: .55rem .9rem; }
.navbar .dropdown-item:hover { background: var(--rose-50); color: var(--rose-700); }

.avatar-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: .34rem .5rem .34rem .34rem;
  color: var(--ink);
  font-weight: 500;
  font-size: .9rem;
}
.avatar-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--grad-rose);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 600; font-size: .82rem;
  letter-spacing: .02em;
}

/* ————— 首页 Hero 轮播 ————— */
.hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero .carousel-item { height: clamp(430px, 60vh, 640px); }
.hero .carousel-item > img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); }
.hero-slide::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-hero);
  z-index: 1;
}
.hero-caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.6rem, 5vw, 4.5rem);
  color: #fff;
}
.hero-caption .eyebrow { color: var(--champagne); }
.hero-caption h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: .01em;
  margin: .6rem 0 .6rem;
  max-width: 640px;
}
.hero-caption p { color: rgba(255,255,255,.88); max-width: 560px; margin-bottom: 1.4rem; }
.hero-rule { width: 56px; height: 2px; background: var(--champagne); margin: .8rem 0 1.2rem; }

.hero .carousel-indicators { margin-bottom: 1.2rem; }
.hero .carousel-indicators [data-bs-target] {
  width: 26px; height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,.45);
  opacity: 1;
  border: 0;
  transition: all .3s ease;
}
.hero .carousel-indicators .active { background: var(--champagne); width: 42px; }
.hero .carousel-control-prev, .hero .carousel-control-next { width: 8%; opacity: .7; }

/* ————— 跑马灯标语 ————— */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: .9rem 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.ticker-track { display: inline-flex; animation: ticker 34s linear infinite; }
.ticker-track span {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: .06em;
  color: var(--ink-soft);
  white-space: nowrap;
  display: inline-flex; align-items: center;
}
.ticker-track span::after { content: "✦"; color: var(--rose-400); font-size: .8rem; margin: 0 2.6rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ————— 区块标题 ————— */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: .35rem 0 0; }
.section-title .zh { font-family: var(--font-serif); }
.section-link {
  font-size: .9rem; font-weight: 500;
  color: var(--rose-600);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 1px solid transparent;
  transition: all .3s ease;
}
.section-link i { transition: transform .3s ease; }
.section-link:hover { color: var(--rose-700); border-color: var(--rose-400); }
.section-link:hover i { transform: translateX(4px); }

/* ————— 视频卡片 ————— */
.video-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(183,110,121,.16);
  box-shadow: 0 1px 2px rgba(46,27,36,.04), 0 8px 20px rgba(124,58,77,.07), 0 24px 46px rgba(124,58,77,.10);
  transition: transform .5s cubic-bezier(.2,.8,.3,1), box-shadow .5s ease, border-color .4s ease;
  height: 100%;
}
.video-card::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.20), transparent);
  transform: skewX(-20deg);
  transition: left .75s ease;
  z-index: 5;
  pointer-events: none;
}
.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 4px 10px rgba(46,27,36,.06), 0 20px 44px rgba(124,58,77,.14), 0 44px 88px rgba(124,58,77,.16);
  border-color: rgba(183,110,121,.36);
}
.video-card:hover::after { left: 140%; }

.thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-2);
}
.thumb::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(46,27,36,0) 58%, rgba(46,27,36,.32) 100%);
  opacity: .72;
  transition: opacity .4s ease;
  pointer-events: none;
}
.thumb img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.8,.3,1), filter .6s ease;
}
.video-card:hover .thumb img { transform: scale(1.07); }

.thumb .video-preview {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .55s ease;
  pointer-events: none;
}
.video-card:hover .thumb .video-preview { opacity: 1; }

.thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(46,27,36,0) 55%, rgba(46,27,36,.30));
  opacity: 0;
  transition: opacity .5s ease;
}
.video-card:hover .thumb::after { opacity: 1; }

.thumb-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(.7);
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.8);
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
  color: #fff;
  display: grid; place-items: center;
  font-size: 1rem;
  opacity: 0;
  transition: all .45s cubic-bezier(.2,.8,.3,1);
  z-index: 2;
}
.video-card:hover .thumb-play { opacity: 1; transform: translate(-50%,-50%) scale(1); }

.thumb .badge-vip { position: absolute; top: 12px; left: 12px; z-index: 3; }
.thumb .duration {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  background: rgba(46,27,36,.6);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: .72rem; font-weight: 500;
  padding: .2rem .6rem;
  border-radius: 8px;
  letter-spacing: .04em;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: .4rem;
}
.clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ————— 分类卡片 ————— */
.category-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.4rem;
  height: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .5s cubic-bezier(.2,.8,.3,1), box-shadow .5s ease, border-color .4s ease;
}
.category-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.category-card::before {
  content: "";
  position: absolute;
  top: -40%; right: -30%;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-glow, rgba(220,185,190,.4)), transparent 70%);
  transition: transform .6s ease;
}
.category-card:hover::before { transform: scale(1.5); }

.category-index {
  font-family: var(--font-serif);
  font-size: .9rem;
  color: var(--ink-faint);
  letter-spacing: .1em;
}
.category-icon {
  width: 54px; height: 54px;
  border-radius: 15px;
  display: grid; place-items: center;
  font-size: 1.4rem;
  color: var(--rose-700);
  background: var(--rose-100);
  margin: .7rem 0 1rem;
  transition: all .45s cubic-bezier(.2,.8,.3,1);
}
.category-card:hover .category-icon { background: var(--rose-500); color: #fff; transform: rotate(-4deg); }
.category-card h3 { font-size: 1.22rem; margin-bottom: .35rem; }
.category-card p { color: var(--ink-soft); font-size: .86rem; margin-bottom: .6rem; }

/* 分类专属低饱和辉光 */
.category-card.c-video { --c-glow: rgba(220,185,190,.5); }
.category-card.c-tv    { --c-glow: rgba(206,189,216,.5); }
.category-card.c-movie { --c-glow: rgba(198,214,193,.5); }
.category-card.c-kids  { --c-glow: rgba(228,205,167,.5); }
.category-card.c-anime { --c-glow: rgba(226,189,187,.5); }
.category-card.c-vip   { --c-glow: rgba(214,196,150,.5); }

/* ————— 详情页 ————— */
.player-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #180f13;
  border: 1px solid var(--line);
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.action-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--rose-700);
  display: grid; place-items: center;
  font-size: 1.05rem;
  transition: all .3s cubic-bezier(.2,.8,.3,1);
}
.action-btn:hover { background: var(--rose-50); transform: translateY(-3px); }
.action-btn.liked { background: var(--rose-500); color: #fff; border-color: transparent; }

/* 评论 */
.comment-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  margin-bottom: .9rem;
  transition: all .3s ease;
}
.comment-item:hover { border-color: var(--line-strong); background: #fff; }
.comment-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--grad-rose);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 600; font-size: .95rem;
  flex-shrink: 0;
}

/* 侧边推荐 */
.side-card {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: .65rem;
  transition: all .35s ease;
}
.side-card:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.side-card .side-thumb {
  width: 120px; height: 74px;
  border-radius: 11px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ————— 登录 / 注册 ————— */
.auth-shell { min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; }
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.auth-head {
  position: relative;
  padding: 2.6rem 1.5rem 2rem;
  text-align: center;
  background:
    radial-gradient(60% 80% at 50% -10%, rgba(227,190,195,.55), transparent 70%),
    var(--rose-50);
  border-bottom: 1px solid var(--line);
}
.auth-head .eyebrow { color: var(--rose-600); }
.auth-head h2 { margin: .4rem 0 .3rem; font-size: 1.9rem; }
.auth-head p { color: var(--ink-soft); font-size: .92rem; margin: 0; }
.auth-mark {
  width: 58px; height: 58px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--grad-rose);
  color: #fff;
  display: grid; place-items: center;
  font-size: 1.4rem;
  box-shadow: 0 12px 26px rgba(156,85,98,.32);
}

.form-label { font-weight: 500; color: var(--ink); font-size: .9rem; }
.form-control {
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  padding: .66rem 1rem;
  font-size: .95rem;
  transition: all .3s ease;
}
.form-control:focus {
  border-color: var(--rose-400);
  box-shadow: 0 0 0 .22rem rgba(183,110,121,.12);
}
.form-check-input:checked { background-color: var(--rose-500); border-color: var(--rose-500); }
.input-group-text { background: var(--rose-50); border: 1px solid var(--line-strong); border-left: none; }

/* ————— 页脚 ————— */
.footer {
  background: var(--plum);
  color: #D8C3C7;
  margin-top: 5rem;
  padding: 4.5rem 0 1.5rem;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198,161,91,.6), transparent);
}
.footer h5 { color: #fff; font-family: var(--font-serif); font-weight: 600; letter-spacing: .04em; }
.footer a { color: #D8C3C7; transition: all .25s ease; }
.footer a:hover { color: #fff; }
.footer .foot-link { display: block; margin-bottom: .55rem; font-size: .9rem; }
.footer .foot-link:hover { padding-left: 5px; }
.footer .social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  margin-right: 10px;
  transition: all .3s cubic-bezier(.2,.8,.3,1);
}
.footer .social-link:hover { background: var(--rose-500); border-color: transparent; transform: translateY(-3px); }
.footer hr { border-color: rgba(255,255,255,.12); }

/* ————— 消息提示 ————— */
.toast-wrap {
  position: fixed;
  top: calc(var(--nav-h) + 16px);
  right: 18px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toastify {
  min-width: 250px; max-width: 340px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: .95rem 1.1rem;
  display: flex; gap: 10px; align-items: flex-start;
  border-left: 3px solid var(--rose-500);
  font-size: .92rem;
  color: var(--ink);
  animation: toastIn .45s cubic-bezier(.2,.8,.3,1);
}
.toastify.success { border-left-color: #6FA77C; }
.toastify.error { border-left-color: #C05B5B; }
.toastify.warning { border-left-color: #C6A15B; }
.toastify.leaving { animation: toastOut .4s ease forwards; }
@keyframes toastIn { from { transform: translateX(120%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateX(120%); opacity: 0; } }

/* ————— 回到顶部 ————— */
.to-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(10px);
  color: var(--rose-700);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transform: translateY(16px);
  transition: all .4s cubic-bezier(.2,.8,.3,1);
  z-index: 1500;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--rose-500); color: #fff; border-color: transparent; transform: translateY(-3px); }

/* ————— 滚动入场 ————— */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.3,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }

/* ————— 空状态 ————— */
.empty-state { text-align: center; padding: 4.5rem 1rem; }
.empty-state .e-ico { font-size: 2.4rem; display: block; }

/* ————— 响应式 ————— */
@media (max-width: 991.98px) {
  .navbar { height: auto; }
  body { padding-top: 0; }
  .navbar-collapse {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem;
    margin-top: .8rem;
    box-shadow: var(--shadow-md);
  }
  .search-form { margin: .6rem 0; }
  .hero .carousel-item { height: 46vh; min-height: 340px; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 575.98px) {
  .hero-caption h1 { font-size: 1.7rem; }
  .hero-caption p { font-size: .95rem; }
  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

/* ————— 减少动效 ————— */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ————— 首页数据统计带 ————— */
.stats-band {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.stats-band .stat {
  flex: 1 1 25%;
  min-width: 150px;
  text-align: center;
  padding: 2rem 1rem;
}
.stats-band .stat + .stat { border-left: 1px solid var(--line); }
.stat-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 600;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.stat-lbl { color: var(--ink-soft); font-size: .9rem; letter-spacing: .08em; margin-top: .3rem; }

/* ————— 分类筛选 chips ————— */
.filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex; align-items: center;
  padding: .5rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .9rem;
  background: transparent;
  transition: all .3s ease;
  white-space: nowrap;
}
.chip:hover { border-color: var(--rose-400); color: var(--rose-700); }
.chip.active { background: var(--rose-500); color: #fff; border-color: transparent; }
.sort-group { display: inline-flex; gap: 8px; }

/* ————— CTA 横幅 ————— */
.cta-banner {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 3rem 3.2rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--plum) 0%, var(--rose-700) 60%, var(--rose-500) 130%);
  color: #fff;
}
.cta-banner::before {
  content: "";
  position: absolute; right: -80px; top: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198,161,91,.35), transparent 70%);
}
.cta-title { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin: .4rem 0 .3rem; }
.cta-text { color: rgba(255,255,255,.85); margin: 0; }

@media (max-width: 991.98px) {
  .stats-band .stat { flex: 1 1 50%; }
  .stats-band .stat + .stat { border-left: 0; }
  .stats-band .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .cta-banner { padding: 2rem 1.6rem; }
}

/* ============================================================
   移动端 / 平板专项优化（PC 桌面样式完全不变）
   断点：iPad 横屏 992–1199px · 平板竖屏/手机 ≤991px · 手机 ≤768px · 小屏 ≤576px
   ============================================================ */

/* ——— iPad 横屏 / 小桌面 (992px–1199px)：轻量适配 ——— */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero .carousel-item { height: 56vh; }
  .hero-caption { padding: 3rem; }
  .section-title { font-size: 1.9rem; }
}

/* ——— 平板竖屏 & 手机 (≤991px) ——— */
@media (max-width: 991.98px) {
  :root { --nav-h: 62px; }
  body { padding-top: var(--nav-h); }
  .navbar { height: auto; min-height: var(--nav-h); padding: .5rem 0; }
  .navbar-collapse {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem;
    margin-top: .8rem;
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - var(--nav-h) - 12px);
    overflow-y: auto;
  }
  .navbar .nav-link { padding: .7rem 1rem !important; font-size: 1rem; }
  .search-form { width: 100%; margin: .6rem 0; }
  .search-form .form-control { width: 100%; }
  .avatar-chip { margin: .4rem 0; }

  .hero .carousel-item { height: 46vh; min-height: 360px; }
  .section-head { flex-direction: column; align-items: flex-start; }

  /* 触控目标 */
  .chip { padding: .6rem 1.2rem; font-size: .92rem; }
  .btn { min-height: 44px; }

  /* 统计带 2×2 */
  .stats-band .stat { flex: 1 1 50%; padding: 1.6rem 1rem; }
  .stats-band .stat + .stat { border-left: 0; }
  .stats-band .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat-num { font-size: 2rem; }

  /* 详情页 / 页脚间距 */
  .info-card { padding: 1.4rem !important; }
  .cta-banner { padding: 2rem 1.6rem; }
  .footer { padding: 3rem 0 1.2rem; }
}

/* ——— 手机 (≤768px) ——— */
@media (max-width: 767.98px) {
  .brand-logo img { height: 30px; }
  .brand-word { font-size: 1.3rem; }
  .brand-word .brand-tv { font-size: .72rem; }

  .hero { border-radius: 16px; }
  .hero .carousel-item { height: 42vh; min-height: 300px; }
  .hero-caption { padding: 1.4rem; }
  .hero-caption h1 { font-size: 1.7rem; line-height: 1.25; }
  .hero-caption p { font-size: .92rem; margin-bottom: 1rem; }
  .hero-rule { margin: .5rem 0 .8rem; }
  .hero .carousel-indicators { margin-bottom: .5rem; }

  .ticker-track span { font-size: .9rem; }
  .ticker-track span::after { margin: 0 1.6rem; }

  .section-title { font-size: 1.5rem; }
  .eyebrow { font-size: .66rem; letter-spacing: .18em; }
  .section-head { margin-bottom: 1.4rem; }

  /* 视频卡片 */
  .video-card { border-radius: 14px; }
  .card-title { font-size: .9rem; }
  .video-card .card-body { padding: .75rem .85rem !important; }
  .thumb-play { width: 42px; height: 42px; font-size: .85rem; }
  .thumb .badge-vip, .thumb .duration { font-size: .66rem; }

  /* 分类卡片 */
  .category-card { padding: 1.2rem .8rem; border-radius: 16px; }
  .category-icon { width: 46px; height: 46px; font-size: 1.2rem; border-radius: 12px; margin: .5rem 0 .8rem; }
  .category-card h3 { font-size: 1.05rem; }
  .category-card p { font-size: .78rem; }

  /* 详情页 */
  .player-wrap { border-radius: 16px; }
  .info-card h1 { font-size: 1.3rem !important; }
  .action-btn { width: 40px; height: 40px; }
  .comment-avatar { width: 36px; height: 36px; font-size: .85rem; }
  .comment-item { padding: .9rem 1rem; }
  .side-card .side-thumb { width: 96px; height: 60px; }
  .side-card h6 { font-size: .86rem !important; }
  .sticky-top { position: static !important; }

  /* 登录/注册 */
  .auth-shell { min-height: auto; }
  .auth-head { padding: 1.8rem 1rem 1.5rem; }
  .auth-head h2 { font-size: 1.5rem; }
  .auth-mark { width: 48px; height: 48px; font-size: 1.2rem; }

  /* 页脚 */
  .footer .social-link { width: 38px; height: 38px; }

  /* 消息提示全宽 */
  .toast-wrap { left: 12px; right: 12px; }
  .toastify { max-width: none; width: 100%; }
}

/* ——— 小屏手机 (≤576px) ——— */
@media (max-width: 575.98px) {
  .hero .carousel-item { height: 38vh; min-height: 250px; }
  .hero-caption h1 { font-size: 1.4rem; }
  .hero-caption p { font-size: .85rem; }
  .hero .btn { padding: .55rem 1.1rem; font-size: .85rem; }

  .section-title { font-size: 1.3rem; }
  .stat-num { font-size: 1.7rem; }
  .stat-lbl { font-size: .8rem; }

  .card-title { font-size: .82rem; }
  .video-card .card-body { padding: .6rem .7rem !important; }

  .filter-bar { gap: 8px; }
  .chip { padding: .5rem 1rem; font-size: .85rem; }
  .sort-group { width: 100%; }
  .sort-group .chip { flex: 1; justify-content: center; }

  .cta-title { font-size: 1.35rem; }
  .to-top { width: 40px; height: 40px; right: 12px; bottom: 12px; }
}

/* ============================================================
   移动端 App 化设计（底部 Tab、横向滑动、快捷分类；PC 端不变）
   ============================================================ */

/* ——— 底部 Tab 导航（配合 d-lg-none 仅在移动端显示） ——— */
.mobile-tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1050;
  display: flex;
  height: 58px;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(46,27,36,.08);
}
.tabbar-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  color: var(--ink-faint);
  font-size: .62rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease;
}
.tabbar-item i { font-size: 1.3rem; transition: transform .25s cubic-bezier(.2,.8,.3,1); }
.tabbar-item.active { color: var(--rose-600); }
.tabbar-item.active i { transform: translateY(-2px) scale(1.12); }
.tabbar-item:hover { color: var(--rose-600); }
.tabbar-fab {
  width: 44px; height: 44px;
  margin-top: -16px;
  border-radius: 50%;
  background: var(--grad-rose);
  color: #fff;
  display: grid; place-items: center;
  font-size: 1.05rem;
  box-shadow: 0 8px 20px rgba(156,85,98,.4);
  border: 3px solid #fff;
}
.tabbar-fab i { color: #fff; font-size: 1.05rem; }

/* ——— 移动端分类快捷入口（横向滑动） ——— */
.mobile-cats {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 16px 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.mobile-cats::-webkit-scrollbar { display: none; }
.mobile-cat {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all .25s ease;
}
.mobile-cat i { color: var(--rose-500); }
.mobile-cat:active { transform: scale(.94); background: var(--rose-50); }

/* ——— 排名角标 ——— */
.rank-badge {
  position: absolute;
  left: 10px; bottom: 4px;
  z-index: 3;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-shadow: 0 3px 10px rgba(0,0,0,.55);
}

/* ——— 底部 Tab 占位 + 横向滑动内容行 ——— */
@media (max-width: 991.98px) {
  body { padding-bottom: 82px; }
}
@media (max-width: 767.98px) {
  .scroll-row {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 10px;
  }
  .scroll-row::-webkit-scrollbar { display: none; }
  .scroll-row > [class*="col"] {
    flex: 0 0 auto !important;
    scroll-snap-align: start;
  }
  .scroll-row--large > [class*="col"] { width: 74%; max-width: 74%; }
  .scroll-row--small > [class*="col"] { width: 62%; max-width: 62%; }
  a:active .video-card { transform: scale(.97); }
}

/* ============================================================
   暗色主题适配：无论系统/浏览器是否为暗色，始终保持亮色风格
   ============================================================ */
html { color-scheme: light !important; }
.form-control, .form-select {
  background-color: #fff;
  color: var(--ink);
}

/* ============================================================
   移动端 · 玫瑰金质感与高级感增强（PC 端不变）
   ============================================================ */

/* 玫瑰金金属渐变（新增变量，不影响已有样式） */
:root {
  --grad-rose-gold: linear-gradient(180deg, #f7dfd0 0%, #ecc5b2 25%, #d69c93 48%, #bd7f82 72%, #9d585f 100%);
  --rg-btn-shadow: 0 6px 16px rgba(154,85,96,.42), 0 2px 5px rgba(60,20,30,.15);
}

@media (max-width: 991.98px) {
  /* —— 主按钮：玫瑰金金属质感 —— */
  .btn-solid {
    background: var(--grad-rose-gold);
    border: 1px solid rgba(255,255,255,.32);
    box-shadow: var(--rg-btn-shadow);
    text-shadow: 0 1px 2px rgba(120,50,60,.28);
  }
  .btn-solid:active {
    transform: scale(.96);
    box-shadow: 0 2px 6px rgba(154,85,96,.35);
  }

  /* —— 描边按钮 —— */
  .btn-line {
    background: linear-gradient(180deg, #ffffff 0%, #fbf1f0 100%);
    border: 1.5px solid var(--rose-400);
    box-shadow: 0 3px 10px rgba(154,85,96,.14);
  }
  .btn-line:active { transform: scale(.96); }

  /* —— 玻璃按钮 —— */
  .btn-ghost {
    background: rgba(255,255,255,.8);
    border: 1px solid rgba(183,110,121,.28);
    box-shadow: 0 4px 12px rgba(154,85,96,.12);
    backdrop-filter: blur(12px);
  }

  /* —— 深色按钮 —— */
  .btn-dark {
    background: linear-gradient(180deg, #4a2c38 0%, #3a222c 100%);
    box-shadow: 0 5px 14px rgba(46,27,36,.35);
  }

  /* —— 分类筛选 chips —— */
  .chip {
    background: linear-gradient(180deg, #ffffff 0%, #fdf3f1 100%);
    box-shadow: 0 2px 6px rgba(154,85,96,.12);
  }
  .chip.active {
    background: var(--grad-rose-gold);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(154,85,96,.36);
    text-shadow: 0 1px 2px rgba(120,50,60,.25);
  }

  /* —— 移动端分类胶囊 —— */
  .mobile-cat {
    background: linear-gradient(180deg, #ffffff 0%, #fbf1f0 100%);
    border: 1px solid rgba(183,110,121,.22);
    box-shadow: 0 3px 8px rgba(154,85,96,.12);
  }

  /* —— 底部 Tab 高亮：玫瑰金渐变图标 —— */
  .tabbar-item.active { color: var(--rose-600); }
  .tabbar-item.active i {
    background: var(--grad-rose-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .tabbar-fab {
    background: var(--grad-rose-gold);
    box-shadow: 0 8px 20px rgba(154,85,96,.5), 0 2px 6px rgba(60,20,30,.16);
  }

  /* —— 卡片质感 —— */
  .video-card, .category-card {
    box-shadow: 0 4px 14px rgba(154,85,96,.13), 0 14px 34px rgba(46,27,36,.09);
  }

  /* —— 区块标题下划线：玫瑰金 —— */
  .section-title::after { background: var(--grad-rose-gold); }

  /* —— 统计带 —— */
  .stats-band {
    background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(253,243,241,.72));
    backdrop-filter: blur(10px);
  }
  .stat-num {
    background: var(--grad-rose-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  /* —— CTA 横幅 —— */
  .cta-banner {
    background: linear-gradient(135deg, #3a222c 0%, #7a424c 45%, #b27174 100%);
    box-shadow: 0 10px 30px rgba(154,85,96,.3);
  }

  /* —— 图标按钮（收藏/分享） —— */
  .action-btn {
    background: linear-gradient(180deg, #ffffff 0%, #fdf3f1 100%);
    box-shadow: 0 3px 8px rgba(154,85,96,.16);
  }

  /* —— 回到顶部 —— */
  .to-top {
    background: var(--grad-rose-gold);
    box-shadow: 0 6px 16px rgba(154,85,96,.4);
  }
}

/* ============================================================
   专属表白横幅（献给王颢弼）
   ============================================================ */
.love-banner {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 3.4rem 2.2rem 2.8rem;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(135deg, #4a2532 0%, #7a3c4a 48%, #a85f6a 100%);
  color: #fff;
  box-shadow: 0 20px 50px rgba(124,58,77,.28);
}
.love-banner::before {
  content: "❤";
  position: absolute;
  right: -30px; top: -60px;
  font-size: 12rem;
  opacity: .07;
  line-height: 1;
}
.love-banner::after {
  content: "❤";
  position: absolute;
  left: -20px; bottom: -70px;
  font-size: 10rem;
  opacity: .05;
  line-height: 1;
}
.love-eyebrow { color: var(--champagne); letter-spacing: .28em; }
.love-title {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin: .6rem 0 .5rem;
}
.love-text {
  color: rgba(255,255,255,.88);
  max-width: 600px;
  margin: 0 auto 1.8rem;
  font-size: 1.02rem;
}
.love-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.love-stat { text-align: center; min-width: 120px; }
.love-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(180deg, #fbe3d3 0%, #ecc5b2 60%, #d69c93 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.love-label {
  color: rgba(255,255,255,.72);
  font-size: .84rem;
  letter-spacing: .08em;
  margin-top: .3rem;
}
.love-live {
  margin-top: 1.6rem;
  font-size: .92rem;
  color: rgba(255,255,255,.85);
  letter-spacing: .02em;
}
.love-live strong {
  font-weight: 600;
  color: #f6ddcd;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 575.98px) {
  .love-banner { padding: 2.4rem 1.2rem 2rem; }
  .love-num { font-size: 2.3rem; }
  .love-stats { gap: 1.6rem; }
}

/* ============================================================
   关于我们 · 照片墙 + 灯箱 + 专属按钮
   ============================================================ */

/* —— 「关于我们」专属按钮 —— */
.btn-love {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f4d5c2 0%, #dfa79b 40%, #b27174 75%, #8f4d54 100%);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  padding: .5rem 1.2rem;
  font-weight: 600;
  letter-spacing: .02em;
  display: inline-flex; align-items: center; gap: 7px;
  box-shadow: 0 1px 3px rgba(46,27,36,.08), 0 8px 18px rgba(154,85,96,.22);
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn-love::before {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 45%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.26), transparent);
  transform: skewX(-20deg);
  animation: love-shimmer 3.4s ease-in-out infinite;
}
.btn-love i { color: #fff; animation: heart-beat-soft 2.2s ease-in-out infinite; }
.btn-love:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(46,27,36,.10), 0 14px 26px rgba(154,85,96,.28);
}
@keyframes love-shimmer {
  0% { left: -75%; }
  55%, 100% { left: 130%; }
}
@keyframes heart-beat-soft {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.22); }
  24% { transform: scale(1); }
  36% { transform: scale(1.14); }
  48% { transform: scale(1); }
}

/* 心形爆发 */
.love-burst {
  position: fixed;
  pointer-events: none;
  z-index: 4000;
  animation: love-burst-up 1s ease forwards;
}
@keyframes love-burst-up {
  to { transform: translateY(-130px) scale(1.7) rotate(18deg); opacity: 0; }
}

/* —— 照片墙头部 —— */
.moments-head { padding: .5rem 0 1.5rem; }
.moments-title {
  font-size: clamp(1.9rem, 5vw, 3rem);
  margin: .4rem 0 .3rem;
}
.moments-heart {
  display: inline-block;
  background: var(--grad-rose-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heart-beat 1.6s ease-in-out infinite;
}
@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.18); }
  40% { transform: scale(1); }
  60% { transform: scale(1.12); }
}

/* —— 照片墙（瀑布流） —— */
.photo-wall {
  column-count: 4;
  column-gap: 18px;
}
.photo-item {
  break-inside: avoid;
  position: relative;
  margin: 0 0 18px;
  border-radius: 18px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-2);
  border: 1px solid rgba(183,110,121,.16);
  box-shadow: 0 2px 6px rgba(46,27,36,.05), 0 12px 28px rgba(124,58,77,.10);
  transition: transform .45s cubic-bezier(.2,.8,.3,1), box-shadow .45s ease;
}
.photo-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .7s cubic-bezier(.2,.8,.3,1);
}
.photo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(46,27,36,.08), 0 24px 48px rgba(124,58,77,.18);
}
.photo-item:hover img { transform: scale(1.05); }
.photo-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem .9rem .7rem;
  background: linear-gradient(180deg, rgba(46,27,36,0), rgba(46,27,36,.62));
  color: #fff;
  display: flex; flex-direction: column; gap: 3px;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.photo-item:hover .photo-caption { opacity: 1; }
.pc-text { font-size: .92rem; font-weight: 500; }
.pc-date { font-size: .76rem; color: rgba(255,255,255,.82); letter-spacing: .06em; }

/* —— 灯箱 —— */
.lightbox {
  position: fixed; inset: 0;
  z-index: 3000;
  background: rgba(18,8,13,.94);
  display: none;
  align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox-body {
  display: flex; flex-direction: column; align-items: center;
  max-width: 92vw; max-height: 90vh;
}
.lightbox-body img {
  max-width: 92vw; max-height: 76vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-info { margin-top: 14px; text-align: center; color: #fff; }
.lb-caption { font-size: 1rem; font-weight: 500; }
.lb-date { font-size: .8rem; color: rgba(255,255,255,.7); margin-top: 2px; }
.lb-counter { font-size: .78rem; color: rgba(255,255,255,.55); margin-top: 6px; }
.lightbox-close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.2rem;
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 3002;
}
.lightbox-nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.1rem;
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 3002;
  transition: background .2s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,.22); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* —— 照片墙移动端适配 —— */
@media (max-width: 991.98px) {
  .photo-wall { column-count: 3; column-gap: 12px; }
}
@media (max-width: 767.98px) {
  .photo-wall { column-count: 2; column-gap: 10px; }
  .photo-item { border-radius: 12px; margin-bottom: 10px; }
  .photo-caption { opacity: 1; padding: 1.2rem .6rem .45rem; }
  .pc-text { font-size: .78rem; }
  .pc-date { font-size: .68rem; }
  .lightbox-nav { width: 40px; height: 40px; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .lightbox-close { width: 40px; height: 40px; top: 10px; right: 10px; }
  .lightbox-body img { max-width: 100vw; max-height: 74vh; }
}

/* —— 关于我们：上传 / 加载更多 / 删除 —— */
.moments-actions { display: flex; justify-content: center; }
.upload-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.upload-caption {
  min-width: 220px;
  padding: .6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: .92rem;
  color: var(--ink);
}
.upload-caption:focus { outline: none; border-color: var(--rose-400); box-shadow: 0 0 0 .22rem rgba(183,110,121,.15); }
.btn-upload {
  cursor: pointer;
  background: #fff;
  color: var(--rose-700) !important;
  border: 1.5px solid rgba(183,110,121,.35);
  border-radius: 999px;
  padding: .5rem 1.2rem;
  font-weight: 600;
  letter-spacing: .02em;
  display: inline-flex; align-items: center; gap: 7px;
  box-shadow: 0 1px 2px rgba(46,27,36,.04), 0 4px 10px rgba(124,58,77,.06);
  transition: all .25s ease;
}
.btn-upload i { color: var(--rose-600); }
.btn-upload:hover {
  transform: translateY(-1px);
  background: #fdf7f6;
  border-color: rgba(183,110,121,.55);
  box-shadow: 0 2px 4px rgba(46,27,36,.05), 0 8px 18px rgba(124,58,77,.10);
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .75rem 2rem;
  border-radius: 999px;
  border: 1.5px solid var(--rose-400);
  background: #fff;
  color: var(--rose-700);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all .3s ease;
}
.load-more-btn:hover { background: var(--rose-50); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.load-more-btn:disabled { opacity: .6; cursor: default; }

.lightbox-delete {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: .55rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255,120,120,.5);
  background: rgba(220,70,70,.85);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  z-index: 3002;
  transition: all .25s ease;
}
.lightbox-delete:hover { background: rgba(200,50,50,.95); transform: translateX(-50%) scale(1.04); }

@media (max-width: 575.98px) {
  .upload-caption { min-width: 100%; }
  .upload-form { width: 100%; }
}

/* —— 3D 模型查看器（强壮颢弼） —— */
.model-btn i { margin-right: 2px; }
.model-overlay {
  position: fixed; inset: 0;
  z-index: 3100;
  background: rgba(18,8,13,.95);
  display: none;
  align-items: center; justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity .3s ease;
}
.model-overlay.open { display: flex; opacity: 1; }
.model-stage {
  width: 90vw;
  height: 68vh;
  max-width: 960px;
}
.model-stage model-viewer {
  width: 100%;
  height: 100%;
  --poster-color: transparent;
  background: transparent;
}
.model-close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.2rem;
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 3102;
  transition: background .2s ease;
}
.model-close:hover { background: rgba(255,255,255,.22); }
.model-hint {
  margin-top: 12px;
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  letter-spacing: .03em;
}

@media (max-width: 767.98px) {
  .model-stage { width: 96vw; height: 62vh; }
  .model-hint { font-size: .78rem; }
}

/* —— 细水长流 · 浮世绘水流 —— */
.moments-page { position: relative; z-index: 1; }
.water-banner {
  text-align: center;
  padding: 1.2rem 0 0;
  margin-bottom: 1rem;
}
.water-title {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: .14em;
  background: linear-gradient(180deg, #7fa8d9 0%, #4169a1 50%, #2c4a7c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.water-subtitle {
  display: block;
  margin-top: .4rem;
  color: var(--ink-soft);
  font-size: .95rem;
  letter-spacing: .08em;
}
.water-waves {
  display: block;
  width: 100%;
  max-width: 760px;
  height: 110px;
  margin: .6rem auto 0;
  overflow: visible;
}
@media (max-width: 767.98px) {
  .water-waves { height: 80px; }
  .water-subtitle { font-size: .82rem; }
}

/* —— 移动端：用户下拉菜单 + 关于我们按钮优化 —— */
@media (max-width: 991.98px) {
  /* 用户下拉菜单：简洁列表样式（无盒子、清爽不拥挤） */
  .navbar .dropdown-menu {
    position: static !important;
    float: none;
    transform: none !important;
    inset: auto !important;
    width: 100%;
    margin: .2rem 0 0;
    padding: 0;
    font-size: .9rem;
    border: none;
    box-shadow: none;
    background: transparent;
  }
  .navbar .dropdown-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: .58rem .1rem;
    font-size: .93rem;
    color: var(--ink-soft);
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }
  .navbar .dropdown-item:last-child { border-bottom: none; }
  .navbar .dropdown-item i { width: 18px; text-align: center; }
  .navbar .dropdown-divider { display: none; }

  .navbar .avatar-chip {
    font-size: .85rem;
    padding: .32rem .6rem .32rem .32rem;
  }
  .navbar .avatar-dot { width: 26px; height: 26px; font-size: .74rem; }

  /* 关于我们按钮：移动端全宽 */
  .btn-love {
    width: 100%;
    justify-content: center;
    margin-right: 0 !important;
    padding: .72rem 1rem;
    font-size: .98rem;
    letter-spacing: .05em;
  }
}

/* —— 个人中心 —— */
.profile-card {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 2.2rem;
  box-shadow: 0 1px 2px rgba(46,27,36,.04), 0 12px 28px rgba(124,58,77,.10);
}
.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(124,58,77,.22);
}
.profile-avatar-default {
  display: grid;
  place-items: center;
  background: var(--grad-rose);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
}
.profile-avatar-lg { width: 96px; height: 96px; font-size: 2.2rem; }
.profile-info { flex: 1; min-width: 0; }
.profile-name { font-size: 1.6rem; margin-bottom: .1rem; }
.profile-username { color: var(--ink-faint); font-size: .9rem; margin-bottom: .4rem; }
.profile-bio { color: var(--ink-soft); font-size: .95rem; margin-bottom: .7rem; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 1rem; }
.profile-meta-item { color: var(--ink-soft); font-size: .85rem; }
.profile-meta-item i { color: var(--rose-500); margin-right: 4px; }
.profile-edit-btn { flex-shrink: 0; }

.profile-stats {
  display: flex;
  margin-top: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.profile-stat { flex: 1; text-align: center; padding: 1.3rem 1rem; }
.profile-stat + .profile-stat { border-left: 1px solid var(--line); }
.ps-num {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 600;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.ps-label { color: var(--ink-soft); font-size: .85rem; }

.profile-tabs { display: flex; gap: 10px; margin: 1.6rem 0 1.2rem; }
.ptab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: .55rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  transition: all .25s ease;
}
.ptab:hover { border-color: var(--rose-400); color: var(--rose-700); }
.ptab.active {
  background: var(--grad-rose-gold);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(154,85,96,.3);
}

@media (max-width: 767.98px) {
  .profile-card { flex-direction: column; text-align: center; padding: 1.6rem 1.2rem; }
  .profile-meta { justify-content: center; }
  .profile-avatar { width: 76px; height: 76px; }
  .profile-avatar-lg { width: 84px; height: 84px; }
}

/* ————— 用户侧边抽屉（右侧滑出） ————— */
.user-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 15, 22, .42);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  z-index: 2980;
}
.user-drawer-overlay.open { opacity: 1; visibility: visible; }

.user-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(300px, 84vw);
  background: var(--surface);
  box-shadow: -14px 0 44px rgba(46, 27, 36, .20);
  transform: translateX(105%);
  transition: transform .35s cubic-bezier(.25, .8, .25, 1);
  z-index: 2990;
  display: flex;
  flex-direction: column;
}
.user-drawer.open { transform: translateX(0); }

.user-drawer-head {
  position: relative;
  padding: 1.8rem 1.4rem 1.3rem;
  border-bottom: 1px solid var(--line);
}
.ud-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1rem;
  cursor: pointer;
  transition: all .2s ease;
}
.ud-close:hover { background: var(--rose-50); color: var(--rose-700); }
.ud-user { display: flex; align-items: center; gap: 13px; }
.ud-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--grad-rose-gold);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(154, 85, 96, .28);
}
.ud-name { font-weight: 600; font-size: 1.05rem; }

.ud-menu { flex: 1; overflow-y: auto; padding: .8rem 0 1.2rem; }
.ud-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: .85rem 1.5rem;
  color: var(--ink);
  text-decoration: none;
  font-size: .97rem;
  transition: background .18s ease, padding .18s ease;
}
.ud-item i { width: 22px; text-align: center; color: var(--rose-500); font-size: 1.02rem; }
.ud-item:hover { background: var(--rose-50); padding-left: 1.75rem; }
.ud-item:active { background: rgba(183, 110, 121, .12); }
.ud-divider { height: 1px; background: var(--line); margin: .6rem 1.2rem; }
.ud-item.ud-danger { color: #b0414e; }
.ud-item.ud-danger i { color: #b0414e; }

/* ————— 备案号 ————— */
.beian-link {
  color: #B39CA4;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s ease;
}
.beian-link i { color: #C9B4BA; font-size: .85em; }
.beian-link:hover { color: #E8D5D9; }
.beian-link:hover i { color: #E8D5D9; }

/* ————— 公安备案盾标 ————— */
.beian-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.beian-sep { color: #8A737C; opacity: .6; }
.beian-img { height: 15px; width: auto; display: inline-block; }
.beian-link img { opacity: .9; transition: opacity .2s ease; }
.beian-link:hover img { opacity: 1; }
