﻿/* ============================================================
   尚赫摄影官网 - Wedding Photography Style
   主题：优雅 · 本土 · 透明 · 温暖
   ============================================================ */

:root {
  --gold: #C9A96E;
  --gold-dark: #A8864A;
  --gold-light: #E8D5A3;
  --cream: #FFF9F0;
  --white: #FFFFFF;
  --dark: #2C2419;
  --text: #3D3225;
  --text-secondary: #6B5D4D;
  --text-muted: #9B8D7E;
  --bg: #FDFBF7;
  --bg-alt: #F5EFE3;
  --card-bg: #FFFFFF;
  --border: #E8DFD0;
  --border-color: #D4C5A9;
  --shadow: rgba(44, 36, 25, 0.08);
  --shadow-lg: rgba(44, 36, 25, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--gold-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; }

/* ---------- Layout ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Header / Nav ---------- */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px var(--shadow);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
  height: 72px;
}

.nav-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark) !important;
  letter-spacing: 0.05em;
}

.nav-brand span { color: var(--gold); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
}

/* ---------- Main ---------- */
main { min-height: calc(100vh - 72px - 200px); }

/* ---------- Footer ---------- */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
  margin-top: 5rem;
}

footer .container { text-align: center; }

footer p { font-size: 0.875rem; margin-bottom: 0.5rem; }

footer a { color: var(--gold-light); }
footer a:hover { color: var(--gold); }

.footer-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.footer-badges span {
  background: rgba(201, 169, 110, 0.15);
  border: 1px solid rgba(201, 169, 110, 0.3);
  color: var(--gold-light);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

footer .footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--cream) 0%, var(--bg-alt) 100%);
  padding: 5rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-dark);
  display: block;
  font-size: 3.2rem;
}

.hero .subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 2rem;
}

.hero .tags {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.tag {
  background: var(--gold-light);
  color: var(--gold-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ---------- Buttons ---------- */
.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--gold);
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(201, 169, 110, 0.4);
}

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 169, 110, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--gold-dark) !important;
  border: 2px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--white) !important;
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.875rem;
}

/* ---------- Trust Bar ---------- */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 3rem 1.5rem;
  margin-top: -1px;
}

.trust-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.trust-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--shadow);
}

.trust-item .num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.trust-item .unit {
  font-size: 1.2rem;
  color: var(--gold);
}

.trust-item .label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

/* ---------- Section Headers ---------- */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 0.8rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.section-header .gold-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1rem auto;
  border-radius: 2px;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px var(--shadow-lg);
  border-color: var(--gold-light);
}

.card h3 { color: var(--dark); font-size: 1.2rem; margin-bottom: 0.8rem; }

.card .meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

/* ---------- Transparent Standards (五大透明标准) ---------- */
.standards-section {
  background: var(--cream);
  padding: 5rem 0;
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.standard-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  transition: transform 0.2s, box-shadow 0.2s;
}

.standard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow-lg);
}

.standard-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.standard-card h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.standard-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ---------- Style Section ---------- */
.style-section {
  padding: 5rem 0;
}

.style-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-item .icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.feature-item h4 {
  color: var(--dark);
  margin-bottom: 0.3rem;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ---------- Gallery Placeholder ---------- */
.gallery-section {
  padding: 5rem 0;
  background: var(--bg-alt);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 3/4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: transform 0.3s;
}

.gallery-item:hover { transform: scale(1.03); }

.gallery-item.tall { grid-row: span 2; aspect-ratio: auto; }

/* ---------- Gallery Scroll (纯CSS横向滑动) ---------- */
.gallery-scroll-wrapper {
  width: 100%;
  overflow: hidden;
}

.gallery-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}

/* 隐藏滚动条（可选，保持清爽） */
.gallery-scroll::-webkit-scrollbar {
  height: 6px;
}
.gallery-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.gallery-scroll::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.gallery-scroll-card {
  flex: 0 0 auto;
  width: 280px;
  scroll-snap-align: start;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-scroll-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--shadow-lg);
}

.gallery-scroll-card .scroll-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.gallery-scroll-card .scroll-card-body {
  text-align: center;
  padding: 1rem 0.5rem 1.2rem;
  width: 100%;
}

.gallery-scroll-placeholder {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

/* ---------- CTA Section ---------- */
.cta {
  background: linear-gradient(135deg, var(--dark) 0%, #3D2E1E 100%);
  padding: 5rem 0;
  text-align: center;
  color: white;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: white;
}

.cta p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
}

/* ---------- Article / Content Pages ---------- */
.page-header {
  background: linear-gradient(135deg, var(--cream) 0%, var(--bg-alt) 100%);
  padding: 4rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.2rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.content-section {
  padding: 4rem 0;
}

.content-section .article-body {
  max-width: 800px;
  margin: 0 auto;
}

.content-section .article-body h2 {
  font-size: 1.5rem;
  color: var(--dark);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.content-section .article-body h3 {
  font-size: 1.2rem;
  color: var(--dark);
  margin: 1.5rem 0 0.8rem;
}

.content-section .article-body p {
  margin-bottom: 1.2rem;
  color: var(--text);
  font-size: 1.05rem;
}

.content-section .article-body ul,
.content-section .article-body ol {
  margin: 1rem 0 1.5rem 2rem;
}

.content-section .article-body li {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.content-section .article-body blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  background: var(--cream);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-style: italic;
}

.content-section .article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.content-section .article-body th {
  background: var(--bg-alt);
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--dark);
}

.content-section .article-body td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  color: var(--text);
}

.content-section .article-body tr:hover td {
  background: var(--cream);
}

/* ---------- FAQ ---------- */
.faq-section {
  padding: 4rem 0;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item:hover { box-shadow: 0 4px 15px var(--shadow); }

.faq-item summary {
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--gold); font-weight: 300; }
.faq-item[open] summary::after { content: '-'; }

.faq-item .answer {
  padding: 0 1.5rem 1.2rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ---------- Contact Info ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-card h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-card ul {
  list-style: none;
}

.contact-card li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.contact-card li:last-child { border-bottom: none; }
.contact-card .label { color: var(--text-muted); }
.contact-card .value { color: var(--text); font-weight: 500; }

.map-placeholder {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  color: var(--text-muted);
  margin-top: 2rem;
  border: 2px dashed var(--border-color);
}

/* ---------- Booking Form ---------- */
.booking-section {
  padding: 5rem 0;
  background: var(--cream);
}

.booking-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 3rem;
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group label span { color: #E53; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
  background: var(--white);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ---------- Team Section ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--shadow);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-alt);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 3px solid var(--gold-light);
}

.team-card h4 { color: var(--dark); margin-bottom: 0.3rem; }
.team-card .role { color: var(--gold-dark); font-size: 0.85rem; margin-bottom: 0.8rem; }
.team-card p { font-size: 0.85rem; color: var(--text-secondary); }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 800px; margin: 2rem auto; }

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
  transform: translateX(-50%);
}

.timeline-item:nth-child(even) { flex-direction: row-reverse; }

.timeline-year {
  flex: 1;
  text-align: right;
  font-weight: 700;
  color: var(--gold-dark);
  font-size: 1.1rem;
}

.timeline-item:nth-child(even) .timeline-year { text-align: left; }

.timeline-content { flex: 1; }
.timeline-content h4 { color: var(--dark); margin-bottom: 0.4rem; }
.timeline-content p { font-size: 0.9rem; color: var(--text-secondary); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.85rem; }
  .hero h1 { font-size: 2rem; }
  .hero h1 em { font-size: 2.4rem; }
  .trust-bar { grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 2rem 1rem; }
  .trust-item .num { font-size: 1.8rem; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.tall { grid-row: auto; aspect-ratio: 3/4; }
  .gallery-scroll-card { width: 240px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .booking-form { padding: 2rem 1.5rem; }
  .timeline::before { left: 0; }
  .timeline-item,
  .timeline-item:nth-child(even) { flex-direction: column; gap: 0.5rem; }
  .timeline-item::before { display: none; }
  .timeline-year { text-align: left; font-size: 0.9rem; }
  .btn-group { flex-direction: column; align-items: center; }

  /* === 作品展示页卡片 - 750x560 === */
  .gi-img { width: 100%; overflow: hidden; height: 260px; }
  .gi-img img { width: 100%; height: 100%; min-height: 100%; object-fit: cover; display: block; }
  .gallery-item { aspect-ratio: 750/560; }

  /* === 执照页面 - 820x480 - 移动端单列 === */
  .license-container { flex-direction: column; gap: 1.5rem; padding: 1rem; }
  .license-img-wrap img { width: 100%; height: auto; aspect-ratio: 820/480; object-fit: cover; }

  /* === 首页山海纪实 - 1440x600 - 移动端 === */
  .hero-banner-img { aspect-ratio: 16/9; width: 100%; }
  .hero-banner-img img { width: 100%; height: 100%; object-fit: cover; }
  .hero-banner-desc { padding: 0.75rem; font-size: 0.8rem; }

  /* === 文章内页图片 - 720x480 === */
  .article-body img { width: 100%; height: auto; aspect-ratio: 720/480; object-fit: cover; border-radius: 8px; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-gold { color: var(--gold-dark); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.py-5 { padding-top: 5rem; padding-bottom: 5rem; }
.hidden { display: none; }

/* ===== 全站图片手机端自适应 ===== */
img { max-width:100%; height:auto; display:block; }
.gallery-grid img, .gallery-item img { aspect-ratio:1/1; object-fit:cover; width:100%; height:100%; }
/* 影棚高定 5列自适应 */
.gallery-grid-studio { grid-template-columns: repeat(5, 1fr); }
.gallery-grid-studio .gi-img { height: 220px; }
.gallery-grid-studio .gi-title { font-size: 0.85rem; }
.gallery-grid-studio .gi-desc { font-size: 0.75rem; }
.gallery-grid-studio .gi-tag { font-size: 0.7rem; padding: 2px 6px; }
/* 影棚板块标题间距 */
.gallery-category h3 { margin-bottom: 0.5rem; }
.style-card-img img { width:100%; height:200px; object-fit:cover; }
.review-item img { width:42px; height:42px; object-fit:cover; border-radius:50%; flex-shrink:0; }
/* 营业执照手机端优化 - 统一横版展示比例 */
.license-img-wrap { max-width:680px; margin:0 auto; background:#fff; border:1px solid #e8d5b5; border-radius:12px; overflow:hidden; box-shadow:0 4px 20px rgba(0,0,0,0.06); padding:0.5rem; box-sizing:border-box; }
.license-img-wrap img { width:100%; max-height:480px; object-fit:contain; display:block; margin:0 auto; }
@media(max-width:768px) { .license-img-wrap { max-width:100%; border-radius:8px; padding:0.25rem; } .license-img-wrap img { max-height:300px; } }
@media(max-width:480px) { .license-img-wrap img { max-height:220px; } }
/* 影棚高定响应式 */
@media(max-width:900px) { .gallery-grid-studio { grid-template-columns: repeat(3, 1fr); } }
@media(max-width:600px) { .gallery-grid-studio { grid-template-columns: repeat(2, 1fr); } .gallery-grid-studio .gi-img { height: 160px; } }
