/* ============================================
   腾湾亚链（广西）数字科技有限公司 官网
   设计基调：深蓝科技风
   ============================================ */

:root {
  --primary: #0a2183;
  --primary-light: #152d9e;
  --accent: #01cfff;
  --accent-glow: rgba(1,207,255,0.3);
  --accent-dim: rgba(1,207,255,0.08);
  --blue: #275cde;
  --bg: #060b1f;
  --bg-card: #0b1535;
  --bg-card-hover: #0f1d45;
  --text: #e0e6f0;
  --text-dim: #6b7daa;
  --border: rgba(1,207,255,0.08);
  --border-glow: rgba(1,207,255,0.2);
  --radius: 8px;
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(10,33,131,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center;
  padding: 0 40px;
  border-bottom: 1px solid var(--border);
}
.header .logo { height: 44px; }
.header .logo img { height: 100%; width: auto; }
.header nav { margin-left: auto; display: flex; gap: 4px; }
.header nav a {
  color: rgba(255,255,255,0.7);
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.3s;
}
.header nav a:hover { color: #fff; background: rgba(1,207,255,0.08); }
.header nav a.active {
  color: var(--accent);
  background: rgba(1,207,255,0.1);
}
.header .menu-toggle {
  display: none; background: none; border: none;
  color: #fff; font-size: 24px; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  margin-top: var(--header-h);
  background: radial-gradient(ellipse 80% 60% at 50% 20%, #0f2b6e 0%, #0a1c50 40%, #060b1f 100%);
  color: #fff;
  padding: 100px 40px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(1,207,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1,207,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(1,207,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  position: relative; z-index: 1;
  text-shadow: 0 0 80px rgba(1,207,255,0.3);
}
.hero h1 span {
  background: linear-gradient(135deg, var(--accent) 0%, #5ee4ff 50%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .subtitle {
  font-size: clamp(16px, 2.2vw, 22px);
  color: rgba(255,255,255,0.6);
  max-width: 680px;
  margin: 0 auto 40px;
  position: relative; z-index: 1;
}
.hero-stats {
  display: flex; justify-content: center; gap: 60px;
  flex-wrap: wrap; position: relative; z-index: 1;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 42px; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #5ee4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px var(--accent-glow));
}
.hero-stat .label {
  font-size: 14px; color: rgba(255,255,255,0.45); margin-top: 4px;
}

/* ---------- Section ---------- */
.section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 {
  font-size: 32px;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 0 40px rgba(1,207,255,0.15);
}
.section-title .line {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 0 auto 12px;
  border-radius: 2px;
}
.section-title p { color: var(--text-dim); max-width: 560px; margin: 0 auto; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 40px rgba(1,207,255,0.08);
}
.card:hover::before { opacity: 1; }
.card .icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  background: rgba(1,207,255,0.08);
}
.card h3 { font-size: 20px; margin-bottom: 8px; color: #fff; }
.card p { color: var(--text-dim); font-size: 14px; line-height: 1.7; }
.card .tag {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 12px;
  font-weight: 500;
  transition: all 0.3s;
}
.card:hover .tag { background: rgba(1,207,255,0.15); }

/* ---------- Alternating section bg ---------- */
.section-alt {
  background: rgba(10,33,131,0.2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 100%;
}

/* ---------- Business Tabs ---------- */
.business-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}
.business-tabs button {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 10px 22px;
  border-radius: 24px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
  color: var(--text-dim);
}
.business-tabs button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.business-tabs button.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(1,207,255,0.15);
}
.business-detail { display: none; }
.business-detail.active { display: block; }
.business-detail .card-grid { margin-top: 0; }

/* ---------- Timeline ---------- */
.timeline {
  max-width: 800px; margin: 0 auto;
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: ''; position: absolute; left: 18px; top: 0; bottom: 0;
  width: 1px; background: rgba(1,207,255,0.15);
}
.timeline-item {
  position: relative;
  margin-bottom: 36px;
}
.timeline-item::before {
  content: ''; position: absolute;
  left: -27px; top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 12px var(--accent-glow);
}
.timeline-item .year {
  font-size: 14px; color: var(--accent); font-weight: 700;
}
.timeline-item h4 { font-size: 17px; margin: 2px 0 4px; color: #fff; }
.timeline-item p { font-size: 14px; color: var(--text-dim); }

/* ---------- Project Cards ---------- */
.project-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  transition: all 0.35s;
}
.project-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-glow);
  box-shadow: 0 8px 40px rgba(1,207,255,0.06);
}
.project-card .cover {
  background: linear-gradient(135deg, #0a1c50, #0f2b6e);
  position: relative;
  overflow: hidden;
  min-height: 240px;
}
.project-card .cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.project-card .cover::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.project-card .info { padding: 32px; }
.project-card .info h3 { font-size: 22px; color: #fff; margin-bottom: 12px; }
.project-card .info .meta {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px;
}
.project-card .info .meta span {
  font-size: 12px; color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 10px; border-radius: 4px;
}
.project-card .info p { color: var(--text-dim); font-size: 14px; line-height: 1.7; }
.project-card .info .highlight {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 12px;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.project-card .info .highlight .hl-num {
  font-size: 24px; font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
}
.project-card .info .highlight .hl-label { font-size: 12px; color: var(--text-dim); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info .item {
  display: flex; gap: 14px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.contact-info .item .icon-text { font-size: 20px; min-width: 28px; }
.contact-info .item h4 { font-size: 15px; margin-bottom: 2px; color: #fff; }
.contact-info .item p { font-size: 14px; color: var(--text-dim); }
.contact-form {
  background: var(--bg-card);
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.contact-form h3 { margin-bottom: 20px; font-size: 22px; color: #fff; }
.contact-form .form-group { margin-bottom: 16px; }
.contact-form label {
  display: block; font-size: 13px; font-weight: 600;
  margin-bottom: 5px; color: var(--text-dim);
}
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: #fff;
  transition: border 0.3s, box-shadow 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border: 1px solid var(--accent);
  padding: 12px 36px;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
}
.contact-form .btn:hover {
  box-shadow: 0 0 24px var(--accent-glow);
  background: var(--primary-light);
}
.form-msg { margin-top: 12px; font-size: 13px; }

/* ---------- Footer ---------- */
.footer {
  background: #040a1a;
  color: var(--text-dim);
  padding: 48px 40px 24px;
  text-align: center;
  font-size: 13px;
  border-top: 1px solid var(--border);
}
.footer .footer-grid {
  max-width: 1200px; margin: 0 auto 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: left;
}
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer a {
  color: var(--text-dim); font-size: 13px;
  display: block; margin-bottom: 6px; transition: color 0.2s;
}
.footer a:hover { color: var(--accent); }
.footer .copyright { border-top: 1px solid var(--border); padding-top: 18px; }

/* ---------- Page Banner ---------- */
.page-banner {
  margin-top: var(--header-h);
  background: radial-gradient(ellipse at center, #0f2b6e 0%, #060b1f 100%);
  padding: 60px 40px;
  text-align: center;
  color: #fff;
  position: relative;
}
.page-banner::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.page-banner h1 { font-size: 32px; margin-bottom: 8px; }
.page-banner p { color: rgba(255,255,255,0.5); font-size: 15px; }

/* ---------- About Page ---------- */
.about-intro {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 48px;
  border: 1px solid var(--border);
  margin-bottom: 40px;
  line-height: 1.9;
}
.about-intro p { margin-bottom: 16px; color: var(--text); }
.about-intro p strong { color: var(--accent); }
.layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.layout-item {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s;
}
.layout-item:hover { border-color: var(--border-glow); }
.layout-item .city { font-size: 16px; font-weight: 700; color: #fff; }
.layout-item .status { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.layout-item .status.active { color: var(--accent); }
.layout-item .status.preparing { color: var(--blue); }

/* ---------- CTA ---------- */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, #0a1c50, #0f2b6e);
  max-width: 100%;
  color: #fff;
  padding: 64px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #5ee4ff);
  color: #060b1f;
  padding: 14px 40px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s;
}
.cta-btn:hover {
  box-shadow: 0 0 40px var(--accent-glow);
  transform: translateY(-2px);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .header { padding: 0 20px; }
  .header nav {
    display: none; position: fixed; top: var(--header-h); left: 0; right: 0;
    background: rgba(10,33,131,0.98); flex-direction: column; padding: 12px 0;
    backdrop-filter: blur(20px);
  }
  .header nav.open { display: flex; }
  .header .menu-toggle { display: block; }
  .hero { padding: 60px 20px 48px; }
  .hero-stats { gap: 28px; }
  .hero-stat .num { font-size: 30px; }
  .section { padding: 48px 20px; }
  .project-card { grid-template-columns: 1fr; }
  .project-card .cover { min-height: 180px; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-intro { padding: 28px; }
  .page-banner { padding: 40px 20px; }
  .business-tabs { gap: 4px; }
  .business-tabs button { padding: 8px 14px; font-size: 13px; }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 24px; }
  .section-title h2 { font-size: 24px; }
}
