/* ===== FILE: src/style.css ===== */
/* 全局样式 - 从设计稿提取暗色+金色视觉风格 */

/* ============================================================
   1. CSS 变量（:root）- 从设计稿提取
   ============================================================ */
:root {
  --primary: #d4a574;          /* 主色 - 设计稿金色强调色 oklch(72% 0.16 85) */
  --primary-hover: #b8915f;    /* 主色 hover 态 - 比主色深约 10% */
  --bg: #1a1d2e;               /* 页面背景色 - 设计稿深色背景 oklch(12% 0.02 250) */
  --card-bg: #ffffff;          /* 卡片背景色 - 设计稿白色卡片 */
  --text: #1a1a1a;             /* 文字主色 - 卡片内深色文字 */
  --text-secondary: #666666;   /* 文字辅色 */
  --text-light: #ffffff;       /* 浅色文字（深色背景上） */
  --text-muted: #b0b0b0;       /* 弱化文字 */
  --border: #e0e0e0;           /* 边框色 */
  --radius: 20px;              /* 统一圆角 - 设计稿 --radius-md: 20px */
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.06), 0 20px 56px rgba(0,0,0,0.12);
  --font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================================
   2. 全局 reset
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ====== 增强：键盘焦点可见 ====== */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   3. 导航栏样式 - 桌面端：logo左 + 导航链接右
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 1000;
  padding: 0 24px;
  transition: background 0.35s, box-shadow 0.35s;
}

.navbar.scrolled {
  background: rgba(26, 29, 46, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* logo 左 */
.nav-logo {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #d4a574, #b8915f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #1a1a1a;
  font-weight: 900;
}

/* 导航链接右 - 横排间距均匀 */
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: #ffffff;
}

/* 当前页高亮样式 */
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

/* 汉堡菜单按钮 - 移动端 */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 1001;
  background: transparent;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   4. 页脚样式 - 居中，版权信息，背景略深于页面背景
   ============================================================ */
.footer {
  background: #12142200;
  background: rgba(15, 17, 30, 0.95);
  padding: 48px 0 32px;
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   5. 按钮样式
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm, 12px);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

/* .btn-primary：主按钮（主色背景 + 白色文字 + 圆角 + hover 态） */
.btn-primary {
  background: linear-gradient(135deg, #d4a574, #b8915f);
  color: #1a1a1a;
  border-color: transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(212, 165, 116, 0.35);
  opacity: 0.92;
}

/* .btn-secondary：次按钮（透明背景 + 主色边框 + hover 态） */
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: #1a1a1a;
  transform: translateY(-2px);
}

/* ============================================================
   6. 卡片样式
   ============================================================ */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* .card:hover：上浮 8px + 阴影加深，transition 0.3s */
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

/* ============================================================
   Hero 区样式
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(212, 165, 116, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(100, 140, 220, 0.06) 0%, transparent 60%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #d4a574, #c4935a, #ddb87e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ============================================================
   统计数字区样式
   ============================================================ */
.stats {
  padding: 80px 0;
}

.stats .section-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 60px 48px;
  box-shadow: var(--shadow);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
  padding: 32px 16px;
  background: #f8f9fa;
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.stat-number {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  background: linear-gradient(135deg, #d4a574, #b8915f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================================
   服务卡片区样式
   ============================================================ */
.services {
  padding: 80px 0;
}

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

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: #ffffff;
}

.section-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  text-align: center;
  padding: 48px 28px;
}

.service-icon {
  font-size: 48px;
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   客户 Logo 轮播区样式
   ============================================================ */
.clients {
  padding: 80px 0;
  overflow: hidden;
}

.clients-viewport {
  overflow: hidden;
  width: 100%;
}

.clients-track {
  display: flex;
  gap: 40px;
  animation: scrollCarousel 25s linear infinite;
  width: max-content;
}

/* 鼠标悬浮暂停 */
.clients-track:hover {
  animation-play-state: paused;
}

.client-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 80px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.client-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(212, 165, 116, 0.3);
}

/* 无限循环无缝滚动 */
@keyframes scrollCarousel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ============================================================
   页面标题区（服务页等内页共用）
   ============================================================ */
.page-header {
  padding: 140px 0 80px;
  text-align: center;
}

.page-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: #ffffff;
}

.page-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   Tab 切换区样式（服务页）
   ============================================================ */
.tabs-section {
  padding: 80px 0;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.tab-btn {
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
  background: linear-gradient(135deg, #d4a574, #b8915f);
  color: #1a1a1a;
  border-color: transparent;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-panel {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
}

.tab-panel h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.tab-panel .description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.features-list {
  margin-bottom: 24px;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 15px;
  color: var(--text);
}

.features-list li .check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.case-highlight {
  padding: 16px 20px;
  background: #f8f9fa;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-secondary);
}

.case-highlight strong {
  color: var(--primary);
}

/* ============================================================
   价格表样式（服务页）
   ============================================================ */
.pricing-section {
  padding: 80px 0;
}

.pricing-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}

.toggle-btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.toggle-btn.active {
  background: linear-gradient(135deg, #d4a574, #b8915f);
  color: #1a1a1a;
  border-color: transparent;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pricing-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: linear-gradient(135deg, #d4a574, #b8915f);
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.pricing-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.pricing-price .currency {
  font-size: 20px;
  font-weight: 600;
}

.pricing-price .period {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-save {
  display: none;
  padding: 4px 12px;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  margin: 8px auto 16px;
}

.pricing-save.show {
  display: inline-block;
}

.pricing-features {
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* 价格方案选择按钮 - 未选中状态使用中性色 */
.pricing-card .btn {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.pricing-card .btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* 选中状态使用金色 */
.pricing-card .btn.btn-primary {
  background: linear-gradient(135deg, #d4a574, #b8915f);
  color: #1a1a1a;
  border-color: transparent;
}

.pricing-card .btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(212, 165, 116, 0.35);
  opacity: 0.92;
}

/* ============================================================
   FAQ 手风琴样式（服务页）
   ============================================================ */
.faq-section {
  padding: 80px 0;
}

.faq-section .section-title {
  text-align: center;
  margin-bottom: 48px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #f8f9fa;
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   案例页样式
   ============================================================ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.filter-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.filter-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
  background: linear-gradient(135deg, #d4a574, #b8915f);
  color: #1a1a1a;
  border-color: transparent;
}

.case-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.case-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(212, 165, 116, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 12px;
}

.case-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.case-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 案例详情弹窗 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-hover);
  animation: modalIn 0.3s ease;
  z-index: 1;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s ease;
  background: none;
  border: none;
}

.modal-close:hover {
  color: var(--text);
}

.modal-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.modal-content .modal-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(212, 165, 116, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 20px;
}

.modal-content .modal-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.modal-content .tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-content .tech-tag {
  padding: 6px 14px;
  background: #f8f9fa;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  border-radius: 20px;
}

/* ============================================================
   联系页样式
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
}

.contact-form {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: border-color 0.3s ease;
}

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

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

.error-msg {
  display: none;
  font-size: 13px;
  color: #e53935;
  margin-top: 6px;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #e53935;
}

.form-group.error .error-msg {
  display: block;
}

.btn-submit {
  width: 100%;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background: #cccccc;
  border: none;
  border-radius: var(--radius);
  cursor: not-allowed;
  pointer-events: none;
  transition: all 0.3s ease;
}

.btn-submit.enabled {
  background: linear-gradient(135deg, #d4a574, #b8915f);
  color: #1a1a1a;
  cursor: pointer;
  pointer-events: auto;
}

.btn-submit.enabled:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 165, 116, 0.3);
}

.btn-submit.loading {
  background: linear-gradient(135deg, #d4a574, #b8915f);
  color: #1a1a1a;
  pointer-events: none;
}

.btn-submit .spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(26, 26, 26, 0.3);
  border-top-color: #1a1a1a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-submit.success {
  background: #4caf50;
  color: #ffffff;
  pointer-events: none;
}

.success-message {
  display: none;
  text-align: center;
  padding: 16px;
  margin-top: 16px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
}

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

.contact-info {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
}

.contact-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.info-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.info-text {
  font-size: 15px;
  color: var(--text-secondary);
}

.info-text a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.info-text a:hover {
  color: var(--primary-hover);
}

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

.map-placeholder .map-icon {
  font-size: 48px;
}

.map-placeholder .map-text {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================================
   7. 响应式规则 - @media (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* 导航变汉堡菜单 */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 1000;
    flex-direction: column;
    gap: 0;
    background: rgba(26, 29, 46, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.active {
    max-height: 300px;
  }

  .nav-link {
    display: block;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-link.active::after {
    display: none;
  }

  /* Hero */
  .hero {
    padding: 100px 20px 60px;
    min-height: 80vh;
  }

  /* 统计数字区 - 所有多列布局变单列 */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stats .section-card {
    padding: 32px 20px;
  }

  /* 服务卡片区 - 单列 */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 页脚 */
  .footer-links {
    flex-wrap: wrap;
    gap: 16px;
  }

  /* Tab 导航 */
  .tabs-nav {
    flex-wrap: wrap;
  }

  .tab-btn {
    flex: 1;
    min-width: 100px;
    text-align: center;
  }

  .tab-panel {
    padding: 32px 20px;
  }

  /* 价格表 - 单列 */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 客户轮播 */
  .client-item {
    width: 150px;
    height: 60px;
    font-size: 12px;
  }

  .clients-track {
    gap: 20px;
  }

  /* 案例页 - 响应式网格 */
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-content {
    padding: 32px 24px;
  }

  /* 联系页 - 单列布局 */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-form,
  .contact-info {
    padding: 32px 24px;
  }

  .map-placeholder {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }
}

/* ====== 增强：返回顶部按钮 ====== */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 22px;
  line-height: 48px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}
