/*
 * ============================================================
 * 威海经济技术开发区野猗网络科技工作室（个体工商户）
 * 官方网站样式表 - v2.0 Pro Edition
 * 设计风格：专业 · 大气 · 科技 · 现代
 * ============================================================
 */

/* ===== CSS变量定义 ===== */
:root {
  --primary: #054eea;
  --primary-dark: #0341cc;
  --primary-light: #e8f0fe;
  --accent: #ff6b35;
  --accent-hover: #e05a2a;
  --secondary: #00c8a8;
  --text-dark: #1a1a2e;
  --text-medium: #4a4a68;
  --text-light: #8a8a9e;
  --bg-light: #f7f9fc;
  --bg-white: #ffffff;
  --border-light: #e8ecf1;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 12px;
  --radius-lg: 24px;
  --font-heading: 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
}

/* ===== 全局重설 & 工具类 ===== */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.7;
  background: var(--bg-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.section {
  padding: 90px 0;
  position: relative;
}

/* 通用标题组件 */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .subtitle {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-header h2 span { color: var(--primary); }

.section-header .desc {
  font-size: 1rem;
  color: var(--text-medium);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===== 头部导航 ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 12px;
}

.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), #2b7de3);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(5, 78, 234, 0.25);
}

.logo-texts { display: flex; flex-direction: column; }

.logo-texts .brand-name {
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.logo-texts .brand-tag { font-size: 0.6875rem; color: var(--text-light); line-height: 1.3; }

/* 导航菜单 */
.main-nav .nav-list {
  display: flex;
  list-style: none;
  gap: 8px;
}

.main-nav .nav-list a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-medium);
  padding: 10px 18px;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.main-nav .nav-list a:hover,
.main-nav .nav-list a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 28px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #2b7de3);
  color: #fff;
  box-shadow: 0 4px 14px rgba(5, 78, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(5, 78, 234, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}

.btn-lg { padding: 14px 36px; font-size: 1rem; }

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none; border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero 横幅区域 ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f4ff 0%, #e6edff 50%, #f0f4ff 100%);
  padding-top: 72px;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-bg .circle-1 {
  position: absolute; top: 10%; right: -5%;
  width: 400px; height: 400px;
  background: linear-gradient(135deg, rgba(5,78,234,0.08), rgba(0,200,168,0.05));
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero-bg .circle-2 {
  position: absolute; bottom: -10%; left: -5%;
  width: 600px; height: 600px;
  background: linear-gradient(135deg, rgba(0,200,168,0.04), rgba(5,78,234,0.06));
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

.hero-bg .grid-pattern {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23054eea' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}

.hero-row {
  display: flex; align-items: center; gap: 60px;
}

.hero-text { flex: 1; }

.hero-text .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-white);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.hero-text h1.hero-title {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.hero-title span { color: var(--primary); }

.hero-text p.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 520px;
}

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

.hero-visual { flex: 1; position: relative; }

.hero-visual .hero-card {
  background: var(--bg-white);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  position: relative;
  z-index: 1;
}

.hero-card .card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.hero-card .card-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--primary), #2b7de3);
  border-radius: 12px;
  display: grid; place-items: center;
  color: #fff; font-size: 1.5rem;
  flex-shrink: 0;
}

.hero-card .card-title h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.hero-card .card-title p {
  font-size: 0.8125rem;
  color: var(--text-light);
}

.card-stat { display: flex; align-items: center; gap: 16px; margin-top: 20px; }

.stat-number {
  display: flex; align-items: baseline; gap: 2px;
}

.stat-number .num {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-number .unit { font-size: 1rem; font-weight: 600; color: var(--primary); }

.stat-label { font-size: 0.8125rem; color: var(--text-light); }

.card-chart {
  margin-top: 24px;
  height: 120px;
  position: relative;
}

.chart-bar {
  position: absolute;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to top, var(--primary), var(--primary-light));
  border-radius: 6px 6px 0 0;
  transition: height 1s ease;
}

.chart-labels {
  display: flex;
  justify-content: space-around;
  margin-top: 8px;
  font-size: 0.6875rem;
  color: var(--text-light);
}

/* ===== 核心数据展示 ===== */
.stats-section {
  background: var(--bg-white);
  padding: 60px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

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

.stat-item { text-align: center; position: relative; }

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -20px; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 60px;
  background: var(--border-light);
}

.stat-item .stat-num-wrapper {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .stat-item-label {
  font-size: 0.9375rem;
  color: var(--text-medium);
  font-weight: 500;
}

/* ===== 服务保障 ===== */
.guarantee-section {
  background: linear-gradient(135deg, #fdf5f2 0%, #fff 100%);
}

.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.guarantee-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.guarantee-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.guarantee-card:hover::before { transform: scaleX(1); }

.guarantee-card .gc-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--primary), #2b7de3);
  border-radius: 12px;
  display: grid; place-items: center;
  margin: 0 auto 20px;
  font-size: 1.625rem;
  color: #fff;
}

.guarantee-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.guarantee-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== 服务预览 ===== */
.services-preview-section { background: var(--bg-white); }

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

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), #2b7de3);
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::after { opacity: 0.95; }

.service-card img.sc-bg-img {
  position: absolute;
  top: -20px; right: -20px;
  width: 140px; height: 140px;
  opacity: 0.04;
  z-index: 0;
  transition: opacity 0.5s ease;
}

.service-card:hover img.sc-bg-img { opacity: 0.08; }

.service-card > *:not(img) { position: relative; z-index: 1; }

.service-card .sc-icon {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--primary), #2b7de3);
  border-radius: 16px;
  display: grid; place-items: center;
  margin: 0 auto 24px;
  font-size: 2rem;
  color: #fff;
  transition: var(--transition);
}

.service-card:hover .sc-icon {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  transition: var(--transition);
}

.service-card:hover h3 { color: #fff; }

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover p { color: rgba(255,255,255,0.85); }

.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.service-card .learn-more svg { transition: transform 0.2s ease; }
.service-card:hover .learn-more { color: #fff; }
.service-card:hover .learn-more svg { transform: translateX(4px); }

/* ===== 新闻预览 ===== */
.news-preview-section { background: var(--bg-light); }

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

.news-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

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

.news-card .nc-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.news-card .nc-body { padding: 28px; }

.news-card .nc-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.8125rem;
  color: var(--text-light);
}

.news-card .nc-tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.news-card .nc-date { display: flex; align-items: center; gap: 4px; }

.news-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 10px;
  transition: color 0.2s ease;
  text-decoration: none;
  display: block;
}

.news-card:hover h3 { color: var(--primary); }

.news-card .excerpt {
  font-size: 0.9375rem;
  color: var(--text-medium);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== CTA区域 ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary), #0a2a6e);
  color: #fff;
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.cta-section > .container { position: relative; z-index: 1; }

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.0625rem;
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 560px;
  margin-inline: auto;
}

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

.cta-section .btn-light {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.cta-section .btn-light:hover {
  background: var(--bg-light);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.cta-section .btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}

.cta-section .btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* ===== 底部区域 ===== */
.site-footer {
  background: #0c1221;
  color: #a0a8be;
  padding: 80px 0 0;
}

.footer-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
 font: 700;
  color: #fff;
  margin-bottom: 24px;
}

.footer-brand .brand-name {
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  display: block;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.8;
  color: #8a92a8;
  margin-bottom: 20px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.875rem;
  color: #8a92a8;
}

.footer-contact-item svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: #8a92a8;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 8px;
}

.footer-links a:hover::before { opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
  text-align: center;
  font-size: 0.8125rem;
  color: #5a6280;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ===== 飘浮装饰 & 动画 ===== */
.floating {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

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

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes countUp {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.4,0,0.2,1); }

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.hero-text { animation: fadeUp 0.8s ease forwards; }

.hero-visual { animation: slideInRight 0.8s ease 0.2s both; }

/* ===== 移动好玩的板 ===== */
@media (max-width: 1024px) {
  .hero-section { padding-top: 60px; min-height: auto; padding-bottom: 60px; }
  .hero-row { flex-direction: column; gap: 40px; text-align: center; }
  .hero-text p.hero-subtitle { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-row { grid-template-columns: repeat(2, 1fr); }
  .guarantee-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg-white); border-bottom: 1px solid var(--border-light); padding: 16px 0; box-shadow: var(--shadow); }
  .main-nav.active { display: block; }
  .main-nav .nav-list { flex-direction: column; gap: 4px; padding: 0 20px; }
  .main-nav .nav-list a { padding: 12px 16px; border-radius: 8px; display: block; }
  .mobile-menu-btn { display: flex; }
  .header-actions .btn { display: none; }
  .hero-text h1.hero-title { font-size: 2.25rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .stat-item::after { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .guarantee-grid { grid-template-columns: 1fr; }
  .footer-row { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 60px 0; }
  .section-header h2 { font-size: 1.75rem; }
  .cta-section h2 { font-size: 1.75rem; }
  .logo-texts .brand-name { font-size: 1rem; }
  .logo-texts .brand-tag { display: none; }
}
