/* ============================================
   山东地信网络科技有限公司 - 全站样式
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-primary: #1a56db;
  --color-primary-dark: #1e40af;
  --color-primary-light: #3b82f6;
  --color-accent: #06b6d4;
  --color-dark: #0f1b3d;
  --color-dark-2: #1a2744;
  --color-bg: #f8fafc;
  --color-bg-white: #ffffff;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --nav-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-primary-dark); }

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

ul, ol { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: box-shadow .2s;
}

.navbar.scrolled { box-shadow: var(--shadow-md); }

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark);
}

.nav-logo svg { flex-shrink: 0; }

.nav-logo .logo-text { white-space: nowrap; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu a {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  transition: all .2s;
}

.nav-menu a:hover { background: var(--color-bg); color: var(--color-primary); }
.nav-menu a.active { color: var(--color-primary); background: #eff6ff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all .3s;
}

/* --- Hero Section --- */
.hero {
  margin-top: var(--nav-height);
  background: linear-gradient(135deg, rgba(15,27,61,.92) 0%, rgba(30,64,175,.88) 100%), url('../assets/images/earth.jpg') center/cover no-repeat;
  color: #fff;
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(6,182,212,.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59,130,246,.2) 0%, transparent 50%);
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  font-size: 14px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 700px;
}

.hero h1 .highlight { color: var(--color-accent); }

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,.8);
  max-width: 600px;
  margin-bottom: 36px;
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-light); color: #fff; transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
}
.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }

/* --- Stats Bar --- */
.stats-bar {
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  padding: 40px 0;
}

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

.stat-item .stat-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.stat-item .stat-label {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* --- Section Common --- */
.section { padding: 80px 0; }
.section-alt { background: var(--color-bg-white); }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* --- Business Cards --- */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.biz-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all .3s;
}

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

.biz-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.biz-icon svg { width: 28px; height: 28px; color: var(--color-primary); }

.biz-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.biz-card p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.biz-card ul li {
  font-size: 14px;
  color: var(--color-text-muted);
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.biz-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* --- Advantages --- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.adv-item {
  display: flex;
  gap: 20px;
}

.adv-num {
  font-size: 48px;
  font-weight: 800;
  color: var(--color-primary);
  opacity: .2;
  line-height: 1;
  flex-shrink: 0;
}

.adv-item h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.adv-item p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  padding: 64px 0;
  text-align: center;
  color: #fff;
}

.cta-section h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 16px;
  opacity: .9;
  margin-bottom: 28px;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--color-primary);
}

.cta-section .btn-primary:hover {
  background: var(--color-bg);
  color: var(--color-primary-dark);
}

/* --- Footer --- */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,.7);
  padding: 64px 0 24px;
}

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

.footer-col h4 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col p, .footer-col li {
  font-size: 14px;
  line-height: 2;
}

.footer-col ul li a {
  color: rgba(255,255,255,.7);
}

.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

/* --- Page Header (sub pages) --- */
.page-header {
  margin-top: var(--nav-height);
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 16px;
  color: rgba(255,255,255,.8);
  max-width: 600px;
  margin: 0 auto;
}

/* --- About Page --- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 20px;
}

.about-text p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.9;
  margin-bottom: 16px;
}

.about-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow-lg);
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--color-primary);
}

.timeline-year {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.timeline-item h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.timeline-item p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Cases Page --- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.case-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .3s;
}

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

.case-img {
  height: 200px;
  overflow: hidden;
}

.case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.case-card:hover .case-img img {
  transform: scale(1.05);
}

.case-body { padding: 24px; }

.case-tag {
  display: inline-block;
  padding: 4px 12px;
  background: #eff6ff;
  color: var(--color-primary);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
}

.case-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.case-body p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
}

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

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg { width: 22px; height: 22px; color: var(--color-primary); }

.contact-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 2px;
}

.contact-item p {
  font-size: 14px;
  color: var(--color-text-muted);
}

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

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

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

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}

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

/* --- Services Page Detail --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 48px 0;
}

.service-detail:nth-child(even) .service-visual { order: 2; }

.service-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  box-shadow: var(--shadow-lg);
}

.service-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.service-text h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.service-text > p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-list li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  font-size: 15px;
  color: var(--color-text);
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 16px;
  background: #eff6ff;
  border-radius: 4px;
}

.service-list li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 18px;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(-45deg);
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .hero h1 { font-size: 36px; }
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-content, .contact-grid, .service-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .service-detail:nth-child(even) .service-visual { order: 0; }
  .case-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { padding: 60px 0 80px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 26px; }
  .biz-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-item .stat-num { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-header h1 { font-size: 26px; }
  .contact-form { padding: 24px; }
}
