/* ============================================
   PINKYPOP 官方网站 - 公共样式表
   ============================================ */

/* ---------- 重置与基础 ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #ff4f8c;
  --primary-dark: #e0356f;
  --primary-light: #ffd1e0;
  --secondary: #6c5ce7;
  --accent: #ffd166;
  --text-dark: #2d2d3a;
  --text-gray: #6b6b7b;
  --text-light: #ffffff;
  --bg-light: #fff5f8;
  --bg-white: #ffffff;
  --border: #ffe1ec;
  --shadow: 0 8px 30px rgba(255, 79, 140, 0.12);
  --shadow-hover: 0 12px 40px rgba(255, 79, 140, 0.25);
  --radius: 16px;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(255, 79, 140, 0.08);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 79, 140, 0.4);
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.25s ease;
}

.nav-links a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.nav-links a.active {
  background: var(--primary);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ---------- 页面通用区块 ---------- */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.section-title p {
  color: var(--text-gray);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
}

.section-title .tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* ---------- 页头间距(避免被导航栏遮挡) ---------- */
.page-wrapper {
  padding-top: 72px;
}

/* 页面顶部横幅 */
.page-hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
  padding: 80px 0 60px;
  text-align: center;
}

.page-hero h1 {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.page-hero p {
  font-size: 18px;
  color: var(--text-gray);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- 页脚 ---------- */
.footer {
  background: #2d2d3a;
  color: #cfcfdc;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand p {
  color: #9b9bab;
  font-size: 14px;
  max-width: 320px;
}

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #9b9bab;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.25s;
  overflow: hidden;
}

.footer-social a img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #7b7b8b;
}

/* ---------- 通用卡片 ---------- */
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* ---------- 网格 ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* ---------- 首页 Hero 服务卡片 ---------- */
.hero-service-card {
  padding: 16px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.hero-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(255, 79, 140, 0.15);
  border-color: var(--primary-light);
}

.hero-service-icon {
  font-size: 26px;
  margin-bottom: 8px;
  line-height: 1;
}

.hero-service-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.hero-service-card p {
  color: var(--text-gray);
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

/* ---------- 首页核心功能区 ---------- */
.feature-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.feature-title {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.25;
  color: var(--text-dark);
}

.feature-desc {
  color: var(--text-gray);
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.6;
}

.feature-list .tick {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.feature-img img {
  transition: transform 0.4s ease;
}

.feature-img:hover img {
  transform: translateY(-4px);
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    gap: 4px;
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-links a {
    display: block;
    padding: 12px 16px;
  }
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  section {
    padding: 60px 0;
  }
  .page-hero h1 {
    font-size: 32px;
  }
  .section-title h2 {
    font-size: 28px;
  }
  /* 首页功能区:移动端单列,图片始终在文字之上 */
  .feature-row {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding: 32px !important;
    margin-bottom: 48px !important;
  }
  .feature-row .feature-img,
  .feature-row .feature-text {
    order: 0 !important;
  }
  .feature-row .feature-img {
    order: -1 !important;
  }
  .feature-title {
    font-size: 24px;
  }
  /* Hero 服务卡片切单列 */
  .hero-services {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }

  /* 首页 Hero 响应式：双列切单列 */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .hero-grid h1 {
    font-size: 36px !important;
    line-height: 1.25 !important;
  }
  .hero-grid p.hero-desc {
    font-size: 16px !important;
  }
  .hero-grid .hero-actions {
    justify-content: flex-start !important;
  }
  .hero-grid .hero-stats {
    gap: 24px !important;
    margin-top: 32px !important;
    flex-wrap: wrap !important;
  }
  .hero-grid .hero-stats > div > div:first-child {
    font-size: 26px !important;
  }
  .hero-grid .hero-img-wrap {
    max-width: 320px !important;
  }
  .hero-grid .hero-img-wrap img {
    max-height: 480px !important;
  }

  /* 首页 CTA 区域响应式 */
  .cta-section h2 {
    font-size: 28px !important;
  }
  .cta-section p {
    font-size: 15px !important;
  }

  /* 公司介绍页响应式：大字号缩小、grid gap 收紧 */
  .about-intro h2 {
    font-size: 26px !important;
    line-height: 1.35 !important;
  }
  .about-intro.grid-2 {
    gap: 32px !important;
  }
  .about-summary h2 {
    font-size: 28px !important;
  }
  .about-summary p {
    font-size: 15px !important;
  }

  /* 公司介绍页业务板块描述 */
  .biz-row .biz-desc {
    font-size: 14px !important;
    line-height: 1.7 !important;
  }
}
