:root {
  --primary: #e88c9a;
  --primary-dark: #d46a7e;
  --secondary: #8e6bc9;
  --accent: #f3d485;
  --bg: #fff8f9;
  --card-bg: #ffffff;
  --text: #3d2c33;
  --text-light: #7a6a70;
  --border: #f0e1e4;
  --shadow: 0 12px 40px rgba(212, 106, 126, 0.12);
  --radius: 20px;
  --max-width: 1280px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  padding: 70px 20px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 35c-2-2-5-2-7 0s-2 5 0 7l7 7 7-7c2-2 2-5 0-7s-5-2-7 0z' fill='%23ffffff' fill-opacity='0.08'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.header-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 2px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.logo small {
  display: block;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 4px;
  opacity: 0.92;
  margin-top: 6px;
}

.subtitle {
  font-size: 1.15rem;
  opacity: 0.95;
  max-width: 520px;
  margin: 0 auto;
}

/* Main */
.main {
  max-width: var(--max-width);
  margin: -45px auto 60px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* Filter */
.filter-bar {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 26px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.filter-label {
  font-weight: 700;
  color: var(--primary-dark);
  margin-right: 6px;
}

.filter-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-light);
  padding: 8px 18px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(232, 140, 154, 0.35);
}

/* Grid */
.girls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
}

.girl-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.girl-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 55px rgba(212, 106, 126, 0.2);
}

.card-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f5f0f2;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.5s ease;
}

.girl-card:hover .card-image img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-dark);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text);
}

.card-meta {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.card-meta span {
  margin-right: 12px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tag {
  background: var(--bg);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
}

.empty-state h3 {
  color: var(--text);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* Detail page */
.detail-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  padding: 24px 20px;
}

.detail-header .container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  background: rgba(255,255,255,0.2);
  transition: background 0.25s ease;
}

.back-link:hover {
  background: rgba(255,255,255,0.32);
}

.detail-logo {
  font-size: 1.4rem;
  font-weight: 800;
}

.detail-main {
  max-width: var(--max-width);
  margin: 40px auto 60px;
  padding: 0 20px;
}

.detail-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.detail-top {
  display: grid;
  grid-template-columns: 1fr;
  min-height: auto;
}

.detail-gallery {
  position: relative;
  background: #f5f0f2;
  overflow: hidden;
  align-self: start;
}

.gallery-slider {
  display: flex;
  width: 100%;
  transition: transform 0.35s ease;
  cursor: grab;
  background: #f5f0f2;
}

.gallery-slider:active {
  cursor: grabbing;
}

.gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-slide img {
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  background: rgba(255,255,255,0.85);
  padding: 10px 14px;
  border-radius: 50px;
  backdrop-filter: blur(6px);
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.25s ease;
}

.gallery-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 5px;
}

.detail-info {
  padding: 38px 44px;
  display: flex;
  flex-direction: column;
}

.detail-name {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.detail-meta {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 22px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.detail-tags .tag {
  background: linear-gradient(135deg, #fff0f3 0%, #f5edff 100%);
  color: var(--secondary);
  font-size: 0.9rem;
  padding: 6px 16px;
}

.detail-section {
  margin-bottom: 26px;
}

.detail-section h3 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-section p {
  color: var(--text);
  line-height: 1.8;
  font-size: 1rem;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.stat-item {
  background: var(--bg);
  padding: 14px 18px;
  border-radius: 14px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.video-wrap {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f0f2;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.video-wrap video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.detail-gallery-inline {
  border-radius: 16px;
  background: #f5f0f2;
  overflow: hidden;
}

.detail-gallery-inline .gallery-slide img {
  max-height: 620px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.photo-grid-item {
  border-radius: 14px;
  overflow: hidden;
  background: #f5f0f2;
  aspect-ratio: 4 / 5;
}

.photo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-btns {
  display: flex;
  gap: 20px;
  margin: 8px 0 14px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.app-download-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  margin: 0 0 28px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(255, 154, 158, 0.35);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.app-download-bar:active {
  opacity: 0.92;
}

.app-download-bar-icon {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

.app-download-bar-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  display: block;
}

.app-download-bar-text {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .contact-btns {
    gap: 10px;
    justify-content: space-between;
  }
  .contact-icon .icon-circle {
    width: 46px;
    height: 46px;
  }
  .contact-icon svg {
    width: 22px;
    height: 22px;
  }
  .contact-icon .label {
    font-size: 0.72rem;
  }
  .app-download-bar {
    padding: 12px 16px;
    font-size: 0.92rem;
  }
}

@media (max-width: 480px) {
  .contact-btns {
    gap: 6px;
  }
  .contact-icon .icon-circle {
    width: 42px;
    height: 42px;
  }
  .contact-icon svg {
    width: 20px;
    height: 20px;
  }
  .contact-icon .label {
    font-size: 0.65rem;
  }
}

.contact-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #555;
  transition: transform 0.25s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.contact-icon:hover {
  transform: translateY(-4px);
}

.contact-icon .icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
  transition: box-shadow 0.25s ease;
}

.contact-icon:hover .icon-circle {
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.contact-icon svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.contact-icon.telegram .icon-circle { background: linear-gradient(135deg, #29a9ea 0%, #1e96c8 100%); }
.contact-icon.whatsapp .icon-circle { background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); }
.contact-icon.wechat .icon-circle { background: linear-gradient(135deg, #07c160 0%, #05a350 100%); }

.contact-icon .label {
  font-size: 0.85rem;
  font-weight: 600;
}

.contact-icon.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.contact-icon.disabled:hover {
  transform: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.contact-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.55);
}

.contact-modal-content {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  width: 90%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: modalPop 0.25s ease;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.contact-modal-close {
  position: absolute;
  top: 4px;
  right: 4px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #999;
  cursor: pointer;
  padding: 12px 16px;
  line-height: 1;
  border-radius: 50%;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-modal-close:hover { color: #333; background: rgba(0,0,0,0.05); }

.contact-modal-content h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
  color: #333;
}

.contact-modal-value {
  background: #f7f7f9;
  border-radius: 12px;
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #555;
  word-break: break-all;
  margin-bottom: 22px;
}

.contact-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.contact-modal-actions .btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.contact-modal-actions .btn-primary { background: linear-gradient(135deg, #e88c9a 0%, #d46a7e 100%); color: #fff; }
.contact-modal-actions .btn-secondary { background: #f0f0f0; color: #555; }

/* Detail prev/next navigation */
.detail-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.nav-btn {
  min-width: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 28px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  color: #555;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  transition: all 0.25s ease;
}

.nav-btn:hover {
  background: linear-gradient(135deg, #e88c9a 0%, #d46a7e 100%);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(212, 106, 126, 0.28);
}

.nav-btn:hover svg {
  fill: #fff;
}

.nav-btn:hover small {
  color: rgba(255,255,255,0.85);
}

.nav-btn.disabled {
  opacity: 0.35;
  background: #f8f8f8;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-btn.disabled svg {
  fill: #aaa;
}

.nav-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.nav-btn svg {
  fill: #777;
  transition: fill 0.25s ease;
}

.nav-btn small {
  font-size: 0.8rem;
  font-weight: 400;
  color: #999;
  transition: color 0.25s ease;
}

@media (max-width: 480px) {
  .detail-nav {
    gap: 14px;
  }
  .nav-btn {
    min-width: 0;
    flex: 1;
    padding: 14px 18px;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.lightbox-counter {
  color: #fff;
  margin-top: 14px;
  font-size: 0.95rem;
  opacity: 0.8;
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  z-index: 2;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox-close {
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  font-size: 1.4rem;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 768px) {
  .lightbox-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close {
    top: 10px;
    right: 12px;
    width: 38px;
    height: 38px;
  }
}

.contact-btn {
  margin-top: auto;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(232, 140, 154, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(232, 140, 154, 0.55);
}

/* APP 下载弹窗 */
.app-download-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
}

.app-download-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.55);
}

.app-download-content {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 38px 32px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: modalPop 0.25s ease;
}

.app-download-close {
  position: absolute;
  top: 4px;
  right: 4px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #999;
  cursor: pointer;
  padding: 12px 16px;
  line-height: 1;
  border-radius: 50%;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-download-close:hover { color: #333; background: rgba(0,0,0,0.05); }

.app-download-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #fff0f3 0%, #f5edff 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

.app-download-content h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: #333;
}

.app-download-content p {
  color: #777;
  font-size: 0.95rem;
  margin-bottom: 26px;
  line-height: 1.6;
}

.app-download-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-download-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 14px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-download-actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

.app-download-actions a svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.app-download-btn-ios {
  background: linear-gradient(135deg, #2c2c2c 0%, #000 100%);
}

.app-download-btn-android {
  background: linear-gradient(135deg, #3ddc84 0%, #2bb673 100%);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 1024px) {
  .detail-top {
    grid-template-columns: 1fr;
  }



  .detail-info {
    padding: 28px;
  }
}

@media (max-width: 768px) {
  .logo {
    font-size: 2rem;
  }

  .site-header {
    padding: 50px 18px 70px;
  }

  .filter-bar {
    padding: 16px;
    gap: 10px;
  }

  .filter-btn {
    padding: 7px 14px;
    font-size: 0.88rem;
  }

  .girls-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .girl-card {
    border-radius: 16px;
  }

  .card-body {
    padding: 14px;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-meta {
    font-size: 0.82rem;
    margin-bottom: 10px;
  }

  .tag {
    font-size: 0.72rem;
    padding: 3px 9px;
  }

  .detail-header .container {
    flex-wrap: wrap;
  }

  .detail-name {
    font-size: 1.7rem;
  }



  .detail-info {
    padding: 22px;
  }

  .detail-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .girls-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .card-body {
    padding: 12px;
  }

  .card-title {
    font-size: 1rem;
  }

  .card-meta {
    font-size: 0.78rem;
  }

  .tag {
    font-size: 0.7rem;
    padding: 2px 7px;
  }
}
