/* ==========================================
   爱爬山 官网 — 山岚科技 张家界峰林奇幻配色
   www.halafu.cn
   ========================================== */

:root {
  --c-bg: #0d1b2a;
  --c-bg2: #152238;
  --c-bg3: #1a3a5c;
  --c-text: #e8edf2;
  --c-text-muted: #8a9bb5;
  --c-gold: #c88d3b;
  --c-gold-light: #e0a94e;
  --c-green: #1a8a5c;
  --c-green-light: #28b473;
  --c-purple: #6b4fa0;
  --c-purple-light: #8b6fc0;
  --c-blue: #3a86c8;
  --c-blue-light: #5a9ed8;
  --c-card: rgba(21, 34, 56, 0.8);
  --c-card-hover: rgba(26, 58, 92, 0.9);
  --c-border: rgba(200, 141, 59, 0.15);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.4);
  --shadow-card: 0 4px 16px rgba(0,0,0,0.3);
  --radius: 12px;
  --radius-lg: 20px;
  --max-w: 1280px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== 星空背景粒子 ===== */
.stars-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: var(--c-text);
  animation: twinkle var(--dur) ease-in-out infinite;
  animation-delay: var(--delay);
  opacity: 0;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.6; }
}

/* ===== 导航栏 ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--c-text);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--c-gold), var(--c-green));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--c-text-muted);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.25s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--c-gold);
  background: rgba(200, 141, 59, 0.08);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--c-gold);
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--c-text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px 12px;
  min-width: 44px;
  min-height: 44px;
}

/* ===== Hero 区 ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13,27,42,0.4) 0%,
    rgba(13,27,42,0.6) 40%,
    rgba(13,27,42,0.9) 80%,
    var(--c-bg) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  background: rgba(200, 141, 59, 0.15);
  border: 1px solid rgba(200, 141, 59, 0.3);
  border-radius: 50px;
  color: var(--c-gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: 4px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--c-gold) 0%, var(--c-gold-light) 50%, var(--c-text) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--c-text-muted);
  margin-bottom: 8px;
  letter-spacing: 3px;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  margin-bottom: 40px;
  opacity: 0.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  letter-spacing: 1px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--c-gold), #a07028);
  color: #fff;
  box-shadow: 0 4px 20px rgba(200, 141, 59, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 141, 59, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--c-text);
  border: 1.5px solid rgba(232, 237, 242, 0.3);
}

.btn-outline:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
  background: rgba(200, 141, 59, 0.06);
}

/* ===== 通用区块 ===== */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--c-gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.section-desc {
  color: var(--c-text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===== 品牌介绍区 ===== */
.brand-intro {
  max-width: 800px;
  margin: 0 auto;
}

.brand-intro p {
  color: var(--c-text-muted);
  font-size: 1.05rem;
  line-height: 2;
  margin-bottom: 20px;
}

/* ===== 三栏卡片 ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-4px);
  background: var(--c-card-hover);
  border-color: rgba(200, 141, 59, 0.3);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.card-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

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

.card-desc {
  color: var(--c-text-muted);
  font-size: 0.95rem;
}

/* ===== 张家界区域 ===== */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-block.reverse {
  direction: rtl;
}

.feature-block.reverse > * {
  direction: ltr;
}

.feature-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--c-bg2);
}

.feature-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--c-bg2) 0%, var(--c-bg3) 50%, var(--c-purple) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255,255,255,0.15);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.feature-text p {
  color: var(--c-text-muted);
  font-size: 1.05rem;
  line-height: 2;
  margin-bottom: 16px;
}

/* ===== CTA 底部引导 ===== */
.cta-section {
  text-align: center;
  padding: 72px 24px;
  background: linear-gradient(180deg, transparent, rgba(200, 141, 59, 0.05), transparent);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.cta-section p {
  color: var(--c-text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== 关于页面 ===== */
.page-hero {
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.page-hero .subtitle {
  color: var(--c-text-muted);
  font-size: 1.1rem;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 80px;
  position: relative;
  z-index: 1;
}

.about-section {
  margin-bottom: 56px;
}

.about-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--c-text);
  padding-left: 16px;
  border-left: 3px solid var(--c-gold);
}

.about-section p {
  color: var(--c-text-muted);
  font-size: 1.05rem;
  line-height: 2;
  margin-bottom: 16px;
}

.about-section ul {
  list-style: none;
  padding: 0;
}

.about-section ul li {
  color: var(--c-text-muted);
  font-size: 1.02rem;
  line-height: 2;
  padding: 8px 0 8px 24px;
  position: relative;
}

.about-section ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--c-gold);
}

.info-table {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 20px;
}

.info-table .info-row {
  display: flex;
  border-bottom: 1px solid var(--c-border);
}

.info-table .info-row:last-child {
  border-bottom: none;
}

.info-table .info-label {
  flex: 0 0 160px;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--c-text);
  background: rgba(200, 141, 59, 0.05);
  font-size: 0.9rem;
}

.info-table .info-value {
  flex: 1;
  padding: 16px 20px;
  color: var(--c-text-muted);
  font-size: 0.95rem;
}

/* ===== 联系我们页面 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 80px;
  position: relative;
  z-index: 1;
}

.contact-info h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact-info-desc {
  color: var(--c-text-muted);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 32px;
}

.contact-detail-list {
  list-style: none;
  padding: 0;
}

.contact-detail-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-detail-list .detail-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail-list .detail-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--c-gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-detail-list .detail-value {
  color: var(--c-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-form-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.contact-form-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-text);
}

.form-group label .required {
  color: var(--c-gold);
  margin-left: 4px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  color: var(--c-text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.25s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--c-gold), #a07028);
  border: none;
  border-radius: 50px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 141, 59, 0.35);
}

.form-submit:active {
  transform: translateY(0);
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show {
  display: block;
}

.form-success .success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.form-success p {
  color: var(--c-green);
  font-size: 1.1rem;
  font-weight: 600;
}

#contactForm.hidden {
  display: none;
}

/* ===== 地图区 ===== */
.map-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 80px;
  position: relative;
  z-index: 1;
}

.map-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.map-placeholder {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

.map-placeholder .map-icon {
  font-size: 3rem;
  opacity: 0.5;
}

.map-placeholder p {
  color: var(--c-text-muted);
  font-size: 1rem;
}

.map-placeholder .map-address {
  color: var(--c-gold);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ===== 页脚 ===== */
.footer {
  border-top: 1px solid var(--c-border);
  padding: 48px 24px 32px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  flex: 1;
  min-width: 220px;
}

.footer-brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--c-text);
}

.footer-brand-desc {
  color: var(--c-text-muted);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.footer-domain {
  color: var(--c-gold);
  font-size: 0.85rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  color: var(--c-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--c-gold);
}

.footer-copy {
  flex: 1;
  min-width: 220px;
  text-align: right;
}

.footer-copy .copyright {
  color: var(--c-text-muted);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.footer-copy .tech-support {
  color: var(--c-text-muted);
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(13, 27, 42, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid var(--c-border);
    transform: translateY(-120%);
    transition: transform 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    padding: 14px 20px;
    display: block;
    text-align: center;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: 70vh;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .info-table .info-row {
    flex-direction: column;
  }

  .info-table .info-label {
    flex: auto;
    border-bottom: 1px solid var(--c-border);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .footer-copy {
    text-align: center;
  }

  .footer-nav {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 60vh;
  }

  .hero h1 {
    font-size: 2rem;
    letter-spacing: 2px;
  }

  .section {
    padding: 48px 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 80%;
  }

  .contact-form-card {
    padding: 24px 20px;
  }
}
