/* 刘泮显作品集：Apple 极简 + 新片场式全屏头图。
   设计语言：白底 #fff / 浅灰 #f5f5f7 / 墨黑 #1d1d1f / 蓝 #0071e3，
   大字距紧排的大标题、圆角卡片、玻璃导航、悬停浮起。 */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; color: #1d1d1f; background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: #0071e3; color: #fff; }

/* ---- 导航：玻璃磨砂 ---- */
.nav { position: sticky; top: 0; z-index: 20; display: flex; gap: 36px; align-items: center; justify-content: center; padding: 0 22px; height: 48px; background: rgba(251,251,253,.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.06); }
.logo { font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: #1d1d1f; text-decoration: none; }
.logo small { font-size: 10px; font-weight: 600; letter-spacing: .18em; color: #86868b; margin-left: 8px; vertical-align: middle; }
.nav nav { display: flex; gap: 36px; }
.nav a { color: #1d1d1f; text-decoration: none; font-size: 12px; opacity: .8; transition: opacity .2s; }
/* 苹果式顶部小字条：整行居中，12px 灰字 */
.promo-strip { background: #f5f5f7; color: #1d1d1f; text-align: center; font-size: 12px; padding: 12px 20px; line-height: 1.5; }
.promo-strip a { color: #0066cc; text-decoration: none; }
.nav a:hover { opacity: 1; }

/* ---- 头图：新片场式全屏轮播，电影感暗角 + 底部渐变 ---- */
.hero { position: relative; height: calc(100vh - 48px); min-height: 560px; background: #000; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; animation: heroIn 1s ease, kenburns 12s ease-out forwards; }
@keyframes heroIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 45%, rgba(0,0,0,.72) 100%), linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 55%); }
.hero-text { position: absolute; z-index: 2; left: 56px; bottom: 88px; max-width: 720px; color: #fff; }
.hero-meta { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .14em; color: rgba(255,255,255,.85); text-transform: uppercase; }
.hero-meta b { color: #fff; }
.hero-text h1 { font-size: 64px; line-height: 1.1; letter-spacing: -.02em; font-weight: 700; margin: 0 0 16px; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero-desc { margin: 0 0 24px; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.88); max-width: 560px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; align-items: center; gap: 16px; }
.watch-btn { background: #fff; color: #1d1d1f; border: 0; border-radius: 999px; padding: 13px 28px; font-size: 15px; font-weight: 600; cursor: pointer; transition: transform .2s, box-shadow .2s; box-shadow: 0 4px 20px rgba(0,0,0,.25); }
.watch-btn:hover { transform: scale(1.04); }
.watch-btn.blue { background: #0071e3; color: #fff; }
.hero-dur { font-size: 14px; color: rgba(255,255,255,.85); }
.hero-arrow { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(0,0,0,.35); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; backdrop-filter: blur(8px); transition: background .2s, transform .2s; }
.hero-arrow:hover { background: rgba(0,0,0,.55); transform: translateY(-50%) scale(1.06); }
#heroPrev { left: 20px; } #heroNext { right: 20px; }
/* 新片场式胶囊指示器：当前项是拉长的白胶囊 */
.hero-dots { position: absolute; z-index: 2; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; padding: 7px 10px; background: rgba(0,0,0,.32); border-radius: 999px; backdrop-filter: blur(8px); }
.hero-dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; transition: width .3s, background .3s; }
.hero-dots button.active { width: 26px; background: #fff; }

/* ---- 品类快览：新片场式胶囊行 ---- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; padding: 32px 40px; max-width: 1280px; margin: 0 auto; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #f5f5f7; color: #1d1d1f; border-radius: 999px; padding: 8px 14px; font-size: 13px; text-decoration: none; }
.chip:hover { background: #e8e8ed; }
.chip b { font-weight: 700; }
.chip span { color: #86868b; font-size: 12px; }

/* ---- 内容区：Apple 式大标题 + 宽留白 ---- */
main { max-width: 1280px; margin: 0 auto; padding: 8px 40px 80px; }
section { scroll-margin-top: 64px; margin-top: 104px; }
section:first-child { margin-top: 56px; }
h2 { font-size: 40px; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; margin: 0 0 12px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.sec-head .note { margin: 0; }
.sec-title h2 { margin-bottom: 0; }
/* 标题下的英文小字：尽量低调——小字号、很浅的灰、几乎不拉字母间距 */
.en-sub { font-size: 12px; font-weight: 400; letter-spacing: .02em; color: #a1a1a6; margin: 8px 0 0; }
.card-body .en-sub { margin: 4px 0 8px; }
.hero-text .en-sub { color: rgba(255,255,255,.45); }
#player .en-sub { color: rgba(255,255,255,.4); }
/* 入场：柴犬打字 + 底部灰色进度条（进度跟真实加载走，不是假动画） */
#splash { position: fixed; inset: 0; z-index: 100; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; transition: opacity .5s; }
#splash.done { opacity: 0; pointer-events: none; }
.splash-dog { width: 200px; height: 200px; object-fit: contain; animation: typing 1.1s ease-in-out infinite; }
@keyframes typing { 0%, 100% { transform: translateY(0) rotate(0deg); } 30% { transform: translateY(-4px) rotate(-.8deg); } 60% { transform: translateY(1px) rotate(.8deg); } }
.splash-text { color: #6e6e73; font-size: 14px; margin: 0; }
.splash-bar { position: absolute; bottom: 56px; left: 50%; transform: translateX(-50%); width: min(320px, 70vw); height: 4px; background: #e8e8ed; border-radius: 999px; overflow: hidden; }
#splashFill { height: 100%; width: 0%; background: #86868b; border-radius: 999px; transition: width .3s; }
/* 登录弹窗里的小狗：同样打字动画 */
.login-dog { display: block; width: 110px; height: 110px; object-fit: contain; margin: 0 auto 4px; animation: typing 1.1s ease-in-out infinite; }
/* 视频载入进度条：细灰条，显示已缓冲比例 */
.loadbar { height: 3px; background: rgba(128,128,128,.25); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.loadbar > div { height: 100%; width: 0%; background: #86868b; border-radius: 999px; transition: width .3s; }
.hero-load { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; margin-top: 0; height: 3px; border-radius: 0; background: rgba(255,255,255,.25); }
h3.cat-title { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 36px 0 4px; }
.note { color: #6e6e73; font-size: 14px; line-height: 1.6; }

/* ---- 横滑轨道与卡片：悬停浮起 + 封面放大 ---- */
.rail { display: flex; gap: 24px; overflow-x: auto; padding: 16px 2px 24px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.card { flex: 0 0 440px; scroll-snap-align: start; border-radius: 18px; overflow: hidden; background: #f5f5f7; cursor: pointer; }
.card:hover { transform: none; box-shadow: none; }
.card.vertical { flex-basis: 250px; }
.card.square { flex-basis: 360px; }
.card-media { position: relative; background: #111; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 22px 24px 24px; }
.card-body h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.01em; }
.card-body p { margin: 0; color: #6e6e73; font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badge { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.badge.blue { background: #0071e3; }
.badge.dur { top: auto; bottom: 12px; right: 12px; left: auto; }
/* 无封面时的占位：克制的深 charcoal + 细线播放标 + 极淡小字，不用彩色渐变 */
.placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: rgba(255,255,255,.9); background: radial-gradient(120% 100% at 50% 0%, #3a3a3c 0%, #1d1d1f 62%, #101012 100%); overflow: hidden; }
.placeholder .ph-play { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border: 1.5px solid rgba(255,255,255,.65); border-radius: 50%; font-size: 20px; padding-left: 4px; opacity: .85; }
.placeholder .ph-tag { font-size: 11px; letter-spacing: .22em; color: rgba(255,255,255,.45); }
.hero .placeholder .ph-play { width: 84px; height: 84px; font-size: 26px; }

/* ---- 页脚：苹果式浅灰页脚，小字灰字，不用深色 ---- */
footer { background: #f5f5f7; color: #6e6e73; padding: 32px 40px 28px; text-align: center; font-size: 12px; }
footer p { margin: 0 0 12px; }
.footer-login { background: none; border: 1px solid #d2d2d7; color: #6e6e73; border-radius: 999px; padding: 7px 18px; font-size: 12px; cursor: pointer; transition: color .2s, border-color .2s; }
.footer-login:hover { color: #1d1d1f; border-color: #86868b; }

/* ---- 弹窗：播放弹窗走深色电影模式，其他弹窗保持白色 ---- */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; z-index: 50; backdrop-filter: blur(4px); }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: 24px; padding: 28px; width: min(680px, 92vw); max-height: 88vh; overflow: auto; box-shadow: 0 24px 64px rgba(0,0,0,.3); }
#player .modal-box { background: #000; color: #f5f5f7; width: min(880px, 94vw); }
#player .modal-box h3 { color: #fff; }
#player .modal-box p { color: #a1a1a6; }
#player .modal-close { background: rgba(255,255,255,.14); color: #fff; }
.modal-box video { width: 100%; border-radius: 14px; background: #000; }
.modal-box h3 { font-size: 22px; margin: 4px 0 8px; letter-spacing: -.01em; }
.modal-close { float: right; border: 0; background: #f5f5f7; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 14px; }
.modal-box label { display: block; margin: 12px 0; font-size: 14px; font-weight: 600; }
.modal-box input, .modal-box select { width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid #d2d2d7; border-radius: 12px; font-size: 15px; font-family: inherit; }
.modal-box input:focus, .modal-box select:focus { outline: none; border-color: #0071e3; box-shadow: 0 0 0 3px rgba(0,113,227,.15); }
progress { width: 100%; }
.manage-btn { background: #0071e3; color: #fff; border: 0; border-radius: 999px; padding: 8px 18px; font-size: 13px; font-weight: 600; cursor: pointer; }

/* ---- 个人介绍 ---- */
.role { color: #6e6e73; font-size: 15px; margin: 4px 0 12px; }
.bio { font-size: 17px; line-height: 1.8; color: #333; max-width: 860px; }
.stats { display: flex; gap: 16px; flex-wrap: wrap; margin: 28px 0; }
.stat { background: #f5f5f7; border-radius: 18px; padding: 20px 24px; text-align: center; min-width: 140px; flex: 1; }
.stat b { display: block; font-size: 32px; letter-spacing: -.02em; }
.stat span { font-size: 13px; color: #6e6e73; }
.sec-title { font-size: 20px; margin: 32px 0 10px; }
.job { border-top: 1px solid #e8e8ed; padding: 20px 0; }
.job-when { color: #6e6e73; font-size: 14px; }
.job-role { font-size: 19px; font-weight: 700; margin: 6px 0; }
.job h4 { font-size: 16px; margin: 14px 0 6px; }
.job p, .job li { font-size: 15px; line-height: 1.75; color: #333; }
.job ul { padding-left: 20px; }
.skills-awards { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-chips span { background: #f5f5f7; border-radius: 999px; padding: 7px 15px; font-size: 14px; }
.award-list { padding-left: 20px; line-height: 1.9; font-size: 15px; }
#contact { text-align: center; padding: 40px 0 8px; }
#contact h2 { font-size: 40px; }
#contact p { color: #6e6e73; font-size: 16px; }

/* ---- 设计作品 ---- */
.dcard { flex: 0 0 420px; scroll-snap-align: start; border-radius: 18px; overflow: hidden; background: #f5f5f7; cursor: pointer; }
.dcard-media { background: #e8e8ed; aspect-ratio: 4 / 3; overflow: hidden; }
.dcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
#designImages img { width: 100%; border-radius: 14px; margin: 10px 0; }

/* ---- 管理面板顶部标签：滚动时固定在面板顶部，三个区一点就跳过去 ---- */
.panel-tabs { position: sticky; top: -28px; z-index: 3; display: flex; gap: 8px; background: #fff; padding: 12px 0; margin: 0 -28px; padding-left: 28px; padding-right: 28px; border-bottom: 1px solid #eee; }
.panel-tabs button { background: #f5f5f7; border: 0; border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; cursor: pointer; }
.panel-tabs button:hover { background: #e8e8ed; }
/* ---- AI 文案选项：点一条就填进简介框 ---- */
.ai-opt { display: block; width: 100%; text-align: left; background: #f5f5f7; border: 1px solid transparent; border-radius: 12px; padding: 12px 14px; margin: 8px 0; font-size: 14px; line-height: 1.6; cursor: pointer; font-family: inherit; }
.ai-opt:hover { border-color: #0071e3; background: #f0f7ff; }
#aiCopyBtn { margin-top: 4px; }
/* ---- 管理列表 / 选帧 ---- */
.mrow { display: flex; gap: 12px; align-items: center; justify-content: space-between; border-top: 1px solid #eee; padding: 12px 0; }
.mrow-info b { display: block; font-size: 15px; }
.mrow-info span { font-size: 13px; color: #6e6e73; }
.mrow-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-btn { background: #f5f5f7; border: 0; border-radius: 999px; padding: 7px 13px; font-size: 13px; cursor: pointer; }
.mini-btn.danger { background: #fee; color: #c00; }
.frame-btns { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.frame-cands { display: flex; gap: 8px; flex-wrap: wrap; }
.frame-cands img { width: 120px; border-radius: 10px; cursor: pointer; }

/* ---- 入场淡入 ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .nav { padding: 0 20px; } .nav nav { gap: 16px; }
  .hero { height: 68vh; min-height: 480px; }
  .hero-text { left: 20px; right: 20px; bottom: 72px; }
  .hero-text h1 { font-size: 34px; }
  .hero-desc { font-size: 15px; }
  .chips, main { padding-left: 20px; padding-right: 20px; }
  h2 { font-size: 28px; }
  .card { flex-basis: 280px; }
  .skills-awards { grid-template-columns: 1fr; }
  .hero-arrow { display: none; }
}
