:root { --bg: #0d0f14; --panel: #151821; --panel-2: #1a1e28; --line: #282d3a; --text: #f5f6f8; --muted: #9299aa; --accent: #e23872; }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.site-head { position: sticky; top: 0; z-index: 40; background: rgba(21,24,33,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.site-head-inner { max-width: 1200px; height: 72px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 48px; }
.brand { flex: 0 0 auto; font-size: 24px; font-weight: 800; letter-spacing: -.6px; color: #fff; }
.brand:hover { color: #fff; }
.brand-dot { color: var(--accent); }
.search { width: min(640px, 100%); margin-left: auto; display: flex; overflow: hidden; border: 1px solid #343a49; border-radius: 10px; background: #10131a; }
.search:focus-within { border-color: var(--accent); }
.search input { min-width: 0; flex: 1; padding: 12px 16px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 14px; }
.search input::placeholder { color: #697083; }
.search button { flex: 0 0 auto; padding: 0 20px; border: 0; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }

.site-nav { background: #10131a; border-bottom: 1px solid var(--line); }
.site-nav-inner { max-width: 1200px; min-height: 48px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 32px; }
.site-nav a, .site-nav summary { color: #b8becb; white-space: nowrap; font-size: 14px; font-weight: 600; }
.site-nav a:hover, .site-nav a:focus, .site-nav summary:hover { color: var(--accent); }
.site-nav-inner > a:first-child { color: var(--accent); }
.nav-drop { position: relative; }
.nav-drop summary { cursor: pointer; list-style: none; }
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop-menu { display: none; position: absolute; top: calc(100% + 14px); left: -12px; z-index: 30; min-width: 180px; padding: 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.42); }
.nav-drop-menu a { display: block; padding: 8px 10px; border-radius: 7px; }
.nav-drop-menu a:hover { background: #242936; }
.nav-drop[open] .nav-drop-menu, .nav-drop:hover .nav-drop-menu { display: block; }

main { max-width: 1200px; margin: 0 auto; padding: 34px 20px 48px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2, .section-title { margin: 0; font-size: 22px; line-height: 1.2; }
.section-head > a { color: var(--muted); font-size: 13px; }
.section-head > span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }
.home-actresses { margin-bottom: 44px; }
.actress-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 20px; }
.home-actress { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text); text-align: center; }
.home-actress img { width: 104px; height: 104px; border: 3px solid var(--panel-2); border-radius: 50%; object-fit: cover; transition: border-color .18s, transform .18s; }
.home-actress:hover img { border-color: var(--accent); transform: translateY(-2px); }
.home-actress strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.home-actress small { color: var(--muted); font-size: 12px; }
.video-section-head { margin-bottom: 20px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 18px; }
.card { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: transform .18s, border-color .18s; }
.card:hover { transform: translateY(-3px); border-color: #444b5d; }
.card-cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #08090c; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.card:hover .card-cover img { transform: scale(1.025); }
.card-title { min-height: 40px; margin: 12px 12px 6px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 14px; line-height: 1.45; font-weight: 650; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); }
.card-meta { margin: 0 12px 13px; color: var(--muted); font-size: 12px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-n { color: #656d7f; font-size: 11px; }
.actress-card { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 18px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--text); }
.actress-card:hover { border-color: var(--accent); }
.actress-card img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.actress-card small { color: var(--muted); font-size: 12px; }
.watch-title { margin: 0 0 18px; font-size: 24px; }
.player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border: 1px solid var(--line); border-radius: 12px; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watch-meta { display: flex; flex-wrap: wrap; gap: 14px; margin: 16px 0; color: var(--muted); font-size: 13px; }
.watch-excerpt { color: #c8ccd6; line-height: 1.75; }
.tag { display: inline-block; margin: 0 8px 8px 0; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; color: #b9bfcb; font-size: 12px; }
.tag:hover { border-color: var(--accent); }
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 34px 0 8px; color: var(--muted); }
.pager a { color: var(--accent); }
.empty, .search-info { padding: 48px 0; color: var(--muted); text-align: center; }
.site-foot { padding: 28px; border-top: 1px solid var(--line); color: #606778; text-align: center; font-size: 13px; }

/* 后台 */
.admin-head { display: flex; align-items: center; gap: 16px; padding: 12px 20px; background: #161a22; border-bottom: 1px solid #232936; }
.admin-head a { color: #aeb9cc; }
.admin-head .logout { margin-left: auto; }
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 20px; }
table { width: 100%; border-collapse: collapse; background: #161a22; border: 1px solid #232936; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #232936; font-size: 13px; vertical-align: middle; }
th { color: #8b95a8; font-weight: 600; }
td img.thumb { width: 80px; height: 45px; object-fit: cover; border-radius: 4px; display: block; }
.status { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.status.published { background: #123b24; color: #4ade80; }
.status.draft { background: #3a2d12; color: #fbbf24; }
.status.offline { background: #3a1d1d; color: #f87171; }
form.inline { display: inline; }
form.inline button { background: none; border: none; color: #7cb3ff; cursor: pointer; font-size: 13px; padding: 0 6px; }
form.inline button.danger { color: #f87171; }
label { display: block; margin: 14px 0 6px; font-size: 13px; color: #8b95a8; }
input[type=text], input[type=url], input[type=password], textarea, select { width: 100%; padding: 9px 12px; border: 1px solid #2c3547; border-radius: 6px; background: #0f1115; color: #e6e6e6; font-size: 14px; }
textarea { min-height: 90px; }
form:not(.search) button[type=submit], .btn { padding: 9px 18px; border: none; border-radius: 6px; background: #2563eb; color: #fff; cursor: pointer; font-size: 14px; }
.msg { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; }
.msg.ok { background: #123b24; color: #4ade80; }
.msg.err { background: #3a1d1d; color: #f87171; }

@media (max-width: 900px) {
  .actress-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .site-head-inner { height: 66px; gap: 14px; padding: 0 14px; }
  .brand { font-size: 20px; }
  .search input { padding: 10px 12px; }
  .search button { padding: 0 13px; font-size: 12px; }
  .site-nav-inner { flex-wrap: wrap; gap: 12px 20px; padding: 10px 14px; }
  main { padding: 26px 14px 38px; }
  .section-head h2, .section-title { font-size: 19px; }
  .home-actresses { margin-bottom: 34px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .card-title { min-height: 39px; margin: 9px 9px 5px; font-size: 13px; }
  .card-meta { margin: 0 9px 10px; font-size: 11px; }
}

.breadcrumb { display: flex; gap: 10px; margin-bottom: 26px; color: var(--muted); font-size: 13px; }
.breadcrumb strong { color: var(--text); }
.library-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.library-head h1 { margin: 0; font-size: 26px; }
.library-tools { display: flex; align-items: center; gap: 10px; }
.library-tools input { width: 250px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; outline: 0; background: #10131a; color: var(--text); }
.library-tools input:focus { border-color: var(--accent); }
form.library-tools button[type=submit], .library-tools a { padding: 9px 14px; border: 1px solid var(--accent); border-radius: 8px; background: transparent; color: var(--accent); font-size: 13px; cursor: pointer; }
form.library-tools button[type=submit], .library-tools a.active { background: var(--accent); color: #fff; }
.category-library { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 22px; }
.category-tile { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.category-tile img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s; }
.category-tile:hover img { transform: scale(1.035); }
.category-tile > span { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 13px; background: rgba(7,8,12,.76); color: #fff; }
.category-tile strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.category-tile small { flex: 0 0 auto; color: #d2d5dd; font-size: 11px; }
.home-categories { margin-bottom: 46px; }
.home-category-grid { gap: 18px; }
.actress-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.home-actress img { width: min(170px, 100%); height: auto; aspect-ratio: 1; }
.model-library { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 36px 28px; }
.model-tile { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text); text-align: center; }
.model-tile img, .model-tile .model-placeholder { width: 100%; aspect-ratio: 1; border: 3px solid var(--panel-2); border-radius: 50%; object-fit: cover; transition: border-color .2s, transform .2s; }
.model-placeholder { display: grid; place-items: center; background: radial-gradient(circle at 65% 35%, #5539cd, #df285f 72%); color: #fff; font-size: 32px; font-weight: 800; }
.home-actress .model-placeholder { width: min(170px, 100%); height: auto; aspect-ratio: 1; border: 3px solid var(--panel-2); border-radius: 50%; }
.model-tile:hover img, .model-tile:hover .model-placeholder { border-color: var(--accent); transform: translateY(-3px); }
.model-tile strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.model-tile small { color: var(--muted); font-size: 12px; }
.tag-hero h1 { margin: 0 0 22px; text-align: center; font-size: 32px; }
.tag-bubbles { position: relative; min-height: 310px; overflow: hidden; border: 1px solid var(--accent); border-radius: 28px; background: radial-gradient(circle at 30% 50%, rgba(226,56,114,.13), transparent 38%), radial-gradient(circle at 75% 45%, rgba(65,77,255,.15), transparent 42%), #0b0d12; }
.tag-bubble { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 65% 35%, #5539cd, #df285f 72%); color: #fff; box-shadow: 0 0 28px rgba(226,56,114,.28); transform: rotate(-7deg); }
.tag-bubble:hover { color: #fff; transform: rotate(0) scale(1.04); }
.tag-bubble small { margin-top: 5px; font-size: 10px; opacity: .78; }
.bubble-1 { width: 150px; left: 8%; top: 72px; }
.bubble-2 { width: 108px; left: 30%; top: 24px; }
.bubble-3 { width: 176px; left: 48%; top: 34px; }
.bubble-4 { width: 104px; left: 72%; top: 28px; }
.bubble-5 { width: 128px; right: 8%; top: 102px; }
.bubble-6 { width: 92px; left: 25%; bottom: 24px; }
.bubble-7 { width: 112px; left: 39%; bottom: 18px; }
.tag-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.tag-group { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #101218; }
.tag-group header { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.tag-group h2 { margin: 0; font-size: 15px; }
.tag-group header span { color: var(--muted); font-size: 11px; }
.tag-group ol { margin: 0; padding: 8px 14px 12px; list-style: none; }
.tag-group li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 6px; min-height: 38px; font-size: 13px; }
.tag-group li > span { color: #8fa4c9; font-size: 11px; }
.tag-group li:nth-child(1) > span { color: #ffd43b; }
.tag-group li:nth-child(2) > span { color: #d8dde8; }
.tag-group li:nth-child(3) > span { color: #ff914d; }
.tag-group li a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-group li small { color: var(--muted); font-size: 10px; }

@media (max-width: 900px) {
  .library-head { align-items: flex-start; flex-direction: column; }
  .library-tools { width: 100%; flex-wrap: wrap; }
  .library-tools input { flex: 1 1 220px; }
  .category-library { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-library { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tag-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .library-head h1 { font-size: 22px; }
  form.library-tools button[type=submit], .library-tools a { padding: 8px 10px; font-size: 12px; }
  .category-library { gap: 14px 10px; }
  .category-tile > span { align-items: flex-start; flex-direction: column; padding: 8px 9px; }
  .category-tile small { font-size: 10px; }
  .actress-strip, .model-library { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; }
  .home-actress img, .home-actress .model-placeholder { width: 88px; }
  .model-tile strong { font-size: 13px; }
  .tag-bubbles { min-height: 330px; }
  .tag-bubble { position: static; width: 82px !important; }
  .tag-bubbles { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 12px; padding: 24px 14px; }
  .tag-groups { grid-template-columns: 1fr; }
}
