/* ========================================
   华亭市招商局 V2 - 柔和色带卡片风格
   设计：顶部色带 + 柔和渐变底 + 圆润卡片
   ======================================== */

/* ---------- CSS 变量 ---------- */
:root {
  --blue-dark: #1E3A5F;
  --blue-mid: #3B82F6;
  --blue-light: #DBEAFE;
  --blue-bg: #F0F7FF;
  --green-mid: #10B981;
  --green-light: #D1FAE5;
  --green-bg: #F0FDF9;
  --gold-mid: #F59E0B;
  --gold-light: #FDE68A;
  --gold-bg: #FFFBEB;
  --dark-bg: #1E293B;
  --bg: #F1F5F9;
  --bg-white: #FFFFFF;
  --text-dark: #1E293B;
  --text-mid: #64748B;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  --font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --max-width: 480px;
  --radius: 16px;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; }

/* ---------- 顶部导航栏 ---------- */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.btn-back, .btn-home {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--text-dark);
  transition: background 0.2s;
}

.btn-back:active, .btn-home:active {
  background: rgba(0, 0, 0, 0.06);
}

/* ---------- Hero 背景区 ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 250px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/bg.png') center top / cover no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 1;
}

.hero-bottom {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px 20px;
}

.hero-slogan {
  font-size: 13px;
  color: var(--text-mid);
  letter-spacing: 2px;
  font-weight: 400;
}

/* ---------- 内容区通用 ---------- */
.video-section,
.highlights-section {
  padding: 0 16px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.header-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.header-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---------- 视频区 ---------- */
.video-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0F172A;
}

.video-wrapper video {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  background: #000;
}

.video-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(150deg, #1E3A5F 0%, #2563EB 60%, #60A5FA 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  position: relative;
}

.play-btn {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.play-btn:active {
  transform: scale(0.92);
}

.video-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 2px;
}

/* ---------- 核心亮点卡片 ---------- */
.highlight-card {
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 14px;
  background: var(--bg-white);
  overflow: hidden;
  position: relative;
  transition: transform 0.2s;
}

.highlight-card:active {
  transform: scale(0.985);
}

/* 顶部色带 */
.card-ribbon {
  height: 4px;
  width: 100%;
}

.theme-blue .card-ribbon {
  background: linear-gradient(90deg, var(--blue-mid), #60A5FA);
}
.theme-green .card-ribbon {
  background: linear-gradient(90deg, var(--green-mid), #6EE7B7);
}
.theme-gold .card-ribbon {
  background: linear-gradient(90deg, var(--gold-mid), #FCD34D);
}
.theme-dark .card-ribbon {
  background: linear-gradient(90deg, #334155, #64748B);
}

/* 柔和底色 */
.theme-blue { background: var(--blue-bg); }
.theme-green { background: var(--green-bg); }
.theme-gold { background: var(--gold-bg); }
.theme-dark { background: var(--dark-bg); }

/* 卡片头部（图标+标签） */
.card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px 0;
}

.card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-blue .card-icon {
  background: var(--blue-mid);
  color: #fff;
}
.theme-green .card-icon {
  background: var(--green-mid);
  color: #fff;
}
.theme-gold .card-icon {
  background: var(--gold-mid);
  color: #fff;
}
.theme-dark .card-icon {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.card-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 1.5px;
}

.dark-label {
  color: rgba(255, 255, 255, 0.5);
}

/* 卡片正文 */
.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.5;
  padding: 8px 18px 0;
}

.theme-dark .card-title {
  color: #fff;
}

.card-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.8;
  padding: 6px 18px 16px;
}

.theme-dark .card-desc {
  color: rgba(255, 255, 255, 0.6);
}

/* --- 标签组 --- */
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 18px 16px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 8px;
  font-weight: 500;
  letter-spacing: 0.3px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

/* --- 数据行 --- */
.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 12px 18px 16px;
}

.stat-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--gold-mid);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.stat-unit {
  font-size: 15px;
  font-weight: 600;
}

.stat-label {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(245, 158, 11, 0.2);
}

/* --- 承诺行 --- */
.promise-row {
  display: flex;
  justify-content: space-around;
  padding: 12px 18px 0;
}

.promise-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.promise-num {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 1px;
}

.promise-text {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 1px;
}

.promise-slogan {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  padding: 12px 18px 18px;
}

.promise-slogan strong {
  color: var(--gold-light);
  font-weight: 700;
}

/* ---------- 底部标识 ---------- */
.footer {
  text-align: center;
  padding: 24px 16px 40px;
  background: var(--bg);
}

.footer-deco {
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-mid), var(--green-mid));
  margin: 0 auto 12px;
}

.footer-text {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 3px;
}

/* ---------- 动画 ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.highlight-card:nth-child(2) { transition-delay: 0.06s; }
.highlight-card:nth-child(3) { transition-delay: 0.12s; }
.highlight-card:nth-child(4) { transition-delay: 0.18s; }
.highlight-card:nth-child(5) { transition-delay: 0.24s; }

.hero-bottom {
  animation: fadeInUp 0.6s ease-out 0.15s both;
}

.video-section {
  animation: fadeInUp 0.6s ease-out 0.25s both;
}

/* ---------- 响应式 ---------- */
@media (min-width: 481px) {
  body {
    max-width: var(--max-width);
    margin: 0 auto;
    box-shadow: 0 0 0 1px var(--border);
  }
}
