/* ============================================
   咸鱼弟摄影工作室 - 新站样式
   深色高级质感 · 响应式设计
   ============================================ */

/* 变量 */
:root {
  --bg: #0a0a0a;
  --bg-soft: #121212;
  --bg-card: #1a1a1a;
  --text: #f5f3f0;
  --text-muted: #a8a5a0;
  --accent: #c9a961;
  --accent-hover: #e0c27d;
  --border: rgba(255,255,255,0.08);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --max-width: 1200px;
}

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

/* 容器 */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }

/* ============================================
   导航栏
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  transition: all 0.4s ease;
}
.nav.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo-icon { font-size: 26px; font-weight: 700; letter-spacing: -2px; color: var(--text); }
.logo-text { font-size: 8px; letter-spacing: 4px; color: var(--accent); margin-top: 4px; }
.nav-menu { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-menu a { font-size: 14px; color: var(--text); transition: color 0.3s; letter-spacing: 0.5px; }
.nav-menu a:hover { color: var(--accent); }
.nav-cta {
  padding: 10px 22px; border: 1px solid var(--accent); color: var(--accent) !important;
  border-radius: 2px; transition: all 0.3s !important;
}
.nav-cta:hover { background: var(--accent); color: var(--bg) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); transition: all 0.3s; }

/* ============================================
   首屏 Hero
   ============================================ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 20s infinite alternate; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.6) 50%, rgba(10,10,10,0.85) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; width: 100%; }
.hero-eyebrow {
  color: var(--accent); font-size: 12px; letter-spacing: 5px; text-transform: uppercase;
  margin-bottom: 24px; animation: fadeUp 0.8s ease both;
}
.hero-title {
  font-size: clamp(42px, 6vw, 80px); font-weight: 300; line-height: 1.15;
  letter-spacing: -2px; margin-bottom: 28px; animation: fadeUp 0.8s 0.1s ease both;
}
.hero-title em { font-style: normal; color: var(--accent); font-weight: 500; }
.hero-sub {
  font-size: 17px; color: var(--text-muted); line-height: 1.9; margin-bottom: 40px;
  animation: fadeUp 0.8s 0.2s ease both;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeUp 0.8s 0.3s ease both; }
.hero-tags { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; animation: fadeUp 0.8s 0.4s ease both; }
.hero-tags span {
  padding: 6px 14px; border: 1px solid var(--border);
  font-size: 11px; letter-spacing: 1.5px; color: var(--text-muted);
}
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 32px; font-size: 14px; letter-spacing: 1px;
  transition: all 0.3s ease; border-radius: 2px;
}
.btn-primary { background: var(--accent); color: var(--bg); font-weight: 600; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-primary span { transition: transform 0.3s; }
.btn-primary:hover span { transform: translateX(4px); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.3); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline { border: 1px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--bg); }
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: 3px; color: var(--text-muted); z-index: 2;
}
.scroll-line { width: 1px; height: 50px; background: linear-gradient(var(--accent), transparent); animation: scrollPulse 2s infinite; }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================
   区块通用头部
   ============================================ */
.section-header { text-align: center; margin-bottom: 64px; }
.section-label {
  display: inline-block; color: var(--accent); font-size: 11px; letter-spacing: 4px;
  text-transform: uppercase; margin-bottom: 16px;
}
.section-title {
  font-size: clamp(30px, 4vw, 48px); font-weight: 300; line-height: 1.3;
  margin-bottom: 16px; letter-spacing: -1px;
}
.section-title em { font-style: normal; color: var(--accent); font-weight: 500; }
.section-desc { color: var(--text-muted); font-size: 15px; }

/* ============================================
   服务区
   ============================================ */
.services { background: var(--bg-soft); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
  position: relative; background: var(--bg-card); padding: 40px 28px;
  border: 1px solid var(--border); transition: all 0.4s ease; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: width 0.4s ease;
}
.service-card:hover::before { width: 100%; }
.service-card:hover { transform: translateY(-8px); border-color: rgba(201,169,97,0.3); }
.service-icon { width: 48px; height: 48px; color: var(--accent); margin-bottom: 24px; }
.service-icon svg { width: 100%; height: 100%; }
.service-num { position: absolute; top: 24px; right: 24px; font-size: 12px; color: var(--text-muted); opacity: 0.5; }
.service-card h3 { font-size: 19px; font-weight: 500; margin-bottom: 12px; }
.service-card p { font-size: 14px; color: var(--text-muted); line-height: 1.8; }

/* ============================================
   作品集区
   ============================================ */
.portfolio-filters { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  padding: 8px 20px; font-size: 13px; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 30px; transition: all 0.3s;
}
.filter-btn:hover, .filter-btn.active { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.portfolio-item {
  position: relative; overflow: hidden; aspect-ratio: 4/3; cursor: pointer;
}
.portfolio-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease; filter: brightness(0.85);
}
.portfolio-item:hover img { transform: scale(1.06); filter: brightness(0.6); }
.portfolio-item figcaption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 24px;
  transform: translateY(20px); opacity: 0; transition: all 0.4s ease;
}
.portfolio-item:hover figcaption { transform: translateY(0); opacity: 1; }
.portfolio-item figcaption span { font-size: 11px; color: var(--accent); letter-spacing: 2px; }
.portfolio-item figcaption h3 { font-size: 20px; font-weight: 400; margin-top: 4px; }
.portfolio-more { text-align: center; margin-top: 48px; }

/* ============================================
   关于区
   ============================================ */
.about { background: var(--bg-soft); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-image { position: relative; }
.about-image img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: brightness(0.9); }
.about-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--accent); color: var(--bg); padding: 24px 28px;
  display: flex; flex-direction: column; align-items: center;
}
.badge-num { font-size: 36px; font-weight: 700; line-height: 1; }
.badge-text { font-size: 11px; letter-spacing: 2px; margin-top: 4px; }
.about-content .section-label { text-align: left; }
.about-content .section-title { text-align: left; }
.about-lead { font-size: 18px; color: var(--text); margin-bottom: 20px; line-height: 1.8; }
.about-content > p:not(.about-lead) { color: var(--text-muted); font-size: 15px; margin-bottom: 16px; }
.about-stats { display: flex; gap: 40px; margin: 36px 0; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 32px; font-weight: 400; color: var(--accent); }
.stat span { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ============================================
   流程区
   ============================================ */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-item { text-align: center; padding: 32px 20px; border-right: 1px solid var(--border); }
.process-item:last-child { border-right: none; }
.process-num { font-size: 42px; font-weight: 300; color: var(--accent); opacity: 0.4; }
.process-item h3 { font-size: 17px; font-weight: 500; margin: 12px 0 8px; }
.process-item p { font-size: 13px; color: var(--text-muted); }

/* ============================================
   联系区
   ============================================ */
.contact { background: var(--bg-soft); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info .section-label, .contact-info .section-title { text-align: left; }
.contact-info > p { color: var(--text-muted); font-size: 15px; margin-bottom: 40px; }
.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; align-items: center; gap: 16px; }
.contact-icon {
  width: 48px; height: 48px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.contact-item div:last-child { display: flex; flex-direction: column; }
.contact-item span { font-size: 11px; color: var(--text-muted); letter-spacing: 1px; }
.contact-item strong { font-size: 16px; font-weight: 500; margin-top: 2px; }
.contact-form { background: var(--bg-card); padding: 40px; border: 1px solid var(--border); }
.contact-form h3 { font-size: 22px; font-weight: 400; margin-bottom: 28px; }
.contact-form input, .contact-form textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  padding: 14px 16px; color: var(--text); font-size: 14px; margin-bottom: 16px;
  border-radius: 2px; transition: border-color 0.3s; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .btn { width: 100%; justify-content: center; }
.form-note { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 16px; }

/* ============================================
   页脚
   ============================================ */
.footer { border-top: 1px solid var(--border); padding: 80px 0 0; }
.footer-top { display: flex; justify-content: space-between; gap: 60px; padding-bottom: 60px; }
.footer-brand p { color: var(--text-muted); font-size: 13px; margin-top: 16px; }
.footer-links { display: flex; gap: 80px; }
.footer-links > div { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4 { font-size: 13px; font-weight: 500; margin-bottom: 10px; color: var(--text); }
.footer-links a, .footer-links span { font-size: 13px; color: var(--text-muted); transition: color 0.3s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 24px 0; text-align: center;
  font-size: 12px; color: var(--text-muted);
}

/* 返回顶部 */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px;
  background: var(--accent); color: var(--bg); display: flex; align-items: center; justify-content: center;
  font-size: 20px; opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 99;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent-hover); transform: translateY(-3px); }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner, .contact-inner { gap: 40px; }
  .footer-links { gap: 40px; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: var(--bg-soft); flex-direction: column; align-items: flex-start;
    padding: 100px 40px 40px; transition: right 0.4s ease; z-index: -1;
    border-left: 1px solid var(--border);
  }
  .nav-menu.active { right: 0; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 12px 0; font-size: 16px; }
  .nav-cta { display: inline-block !important; margin-top: 16px; text-align: center; }
  .hero-title { font-size: 42px; }
  .hero-sub { font-size: 15px; }
  .section-header { margin-bottom: 48px; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .about-image { margin-bottom: 40px; }
  .about-badge { right: 20px; }
  .about-stats { justify-content: space-between; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-item:nth-child(2) { border-right: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-top { flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 30px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 36px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .process-grid { grid-template-columns: 1fr; }
  .process-item { border-right: none; border-bottom: 1px solid var(--border); }
  .about-stats { gap: 20px; }
  .stat strong { font-size: 26px; }
  .contact-form { padding: 24px; }
}

/* 滚动动画 */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* 新站 logo 和布局调整 */
.logo-img { width: 56px; height: auto; }
.logo-sub { display: block; font-size: 7px; letter-spacing: 2.5px; color: var(--accent); margin-top: 4px; }
.footer-logo { width: 150px; height: auto; margin-bottom: 16px; }
.company-name { font-size: 11px !important; color: var(--text-muted) !important; margin-top: 8px !important; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; } }

/* ============ 文章与列表页样式 ============ */
.breadcrumb { padding: 32px 0 24px; font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.article-page, .listing-page { padding-bottom: 100px; min-height: 70vh; }
.article { max-width: 820px; margin: 0 auto; }
.article-header { margin-bottom: 40px; }
.article-tag { display: inline-block; background: var(--accent); color: #0a0a0a; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 12px; border-radius: 3px; }
.article-header h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.2; margin: 20px 0 14px; }
.article-meta { color: var(--text-muted); font-size: 13px; }
.article-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 48px; }
.article-gallery .article-img:first-child { grid-column: span 2; }
.article-img { margin: 0; border-radius: 8px; overflow: hidden; background: #161616; }
.article-img img { width: 100%; height: 320px; object-fit: cover; display: block; transition: transform 0.4s; }
.article-gallery .article-img:first-child img { height: 440px; }
.article-img:hover img { transform: scale(1.03); }
.article-content { font-size: 16px; line-height: 1.9; color: #c9c9c9; }
.article-content p { margin-bottom: 26px; }
.article-content p:first-child { font-size: 18px; color: #e8e8e8; }
.article-cta { margin: 60px 0; padding: 40px; background: linear-gradient(135deg, var(--accent), #c9a24a); border-radius: 10px; color: #0a0a0a; text-align: center; }
.article-cta h3 { margin: 0 0 10px; font-size: 24px; }
.article-cta p { margin: 0 0 20px; font-size: 14px; }
.article-cta .btn-primary { background: #0a0a0a; color: var(--accent); }
.related-section { margin-top: 80px; padding-top: 50px; border-top: 1px solid #2a2a2a; }
.related-section h2 { font-size: 26px; margin-bottom: 30px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { background: #161616; border: 1px solid #262626; border-radius: 8px; padding: 24px; text-decoration: none; color: inherit; transition: border-color 0.3s, transform 0.3s; }
.related-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.related-card span { font-size: 11px; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; }
.related-card h4 { margin: 12px 0 0; font-size: 15px; line-height: 1.5; }
.listing-header { text-align: center; margin: 40px 0 60px; }
.listing-header h1 { font-size: clamp(36px, 6vw, 60px); margin-bottom: 16px; }
.listing-header p { color: var(--text-muted); font-size: 16px; max-width: 600px; margin: 0 auto; }
.list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.list-card { background: #141414; border: 1px solid #242424; border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; transition: transform 0.3s, border-color 0.3s; }
.list-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.list-card-img { height: 200px; overflow: hidden; }
.list-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.list-card:hover .list-card-img img { transform: scale(1.05); }
.list-card-body { padding: 22px; }
.list-card-body h3 { font-size: 17px; line-height: 1.4; margin: 12px 0; }
.list-card-body p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.read-more { color: var(--accent); font-size: 13px; font-weight: 600; }
@media (max-width: 1024px) { .list-grid { grid-template-columns: repeat(2, 1fr); } .related-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 768px) {
  .list-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .article-gallery { grid-template-columns: 1fr; }
  .article-gallery .article-img:first-child { grid-column: span 1; }
  .article-img img, .article-gallery .article-img:first-child img { height: 260px; }
  .article-cta { padding: 30px 20px; }
}
