/* ===== 基础重置 ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #0a0e1a; color: #c8d6e5; line-height: 1.6; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ===== 导航栏 ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 70px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 5%;
  background: rgba(10, 14, 26, 0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1); transition: background 0.3s;
}
.navbar.scrolled { background: rgba(10, 14, 26, 0.95); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); }
.nav-logo { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; color: #fff; }
.nav-logo img { width: 36px; height: 36px; border-radius: 6px; }
.nav-logo span { background: linear-gradient(135deg, #00d4ff, #7b2ff7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 15px; color: #8892b0; font-weight: 500; position: relative; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: #00d4ff; }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, #00d4ff, #7b2ff7); transition: width 0.3s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: #c8d6e5; transition: 0.3s; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 8px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.3s;
}
.btn-primary { background: linear-gradient(135deg, #00d4ff, #7b2ff7); color: #fff; box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4); }
.btn-outline { background: transparent; color: #00d4ff; border: 1px solid rgba(0, 212, 255, 0.4); }
.btn-outline:hover { background: rgba(0, 212, 255, 0.1); transform: translateY(-2px); }

/* ===== Hero ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 100px 5% 60px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0, 212, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(123, 47, 247, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px; animation: gridMove 20s linear infinite;
}
@keyframes gridMove { to { background-position: 60px 60px; } }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); z-index: 0; animation: orbFloat 8s ease-in-out infinite alternate; }
.hero-orb.o1 { width: 400px; height: 400px; top: -10%; right: -5%; background: rgba(0, 212, 255, 0.12); }
.hero-orb.o2 { width: 300px; height: 300px; bottom: 10%; left: -5%; background: rgba(123, 47, 247, 0.1); animation-delay: 2s; }
.hero-orb.o3 { width: 200px; height: 200px; top: 40%; left: 50%; background: rgba(0, 212, 255, 0.06); animation-delay: 4s; }
@keyframes orbFloat { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(30px, -20px) scale(1.1); } }
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 800px; }
.hero-badge {
  display: inline-block; padding: 6px 18px; margin-bottom: 24px;
  border: 1px solid rgba(0, 212, 255, 0.3); border-radius: 50px;
  font-size: 13px; color: #00d4ff; letter-spacing: 2px; text-transform: uppercase; background: rgba(0, 212, 255, 0.05);
}
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 20px; }
.hero h1 .gradient-text {
  background: linear-gradient(135deg, #00d4ff 0%, #7b2ff7 50%, #00d4ff 100%);
  background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 3s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.hero p { font-size: 18px; color: #8892b0; max-width: 600px; margin: 0 auto 40px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== 通用区块 ===== */
.section { padding: 120px 5% 100px; position: relative; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-label { display: inline-block; font-size: 13px; color: #00d4ff; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px; font-weight: 600; }
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 700; color: #fff; margin-bottom: 16px; }
.section-desc { font-size: 16px; color: #8892b0; max-width: 560px; margin: 0 auto; }

/* ===== 数据统计 ===== */
.stats {
  display: flex; justify-content: center; gap: 60px; flex-wrap: wrap;
  padding: 60px 5%; border-top: 1px solid rgba(0, 212, 255, 0.06); border-bottom: 1px solid rgba(0, 212, 255, 0.06);
}
.stat-item { text-align: center; }
.stat-number { font-size: 42px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #00d4ff, #7b2ff7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 14px; color: #8892b0; margin-top: 4px; }

/* ===== 服务方向 ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 1200px; margin: 0 auto; }
.service-card {
  background: rgba(17, 25, 40, 0.7); border: 1px solid rgba(0, 212, 255, 0.08);
  border-radius: 16px; padding: 40px 32px; transition: all 0.4s; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, #00d4ff, transparent); opacity: 0; transition: opacity 0.4s;
}
.service-card:hover { border-color: rgba(0, 212, 255, 0.2); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 212, 255, 0.05); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 56px; height: 56px; border-radius: 12px; margin-bottom: 24px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 47, 247, 0.1)); border: 1px solid rgba(0, 212, 255, 0.15); font-size: 26px;
}
.service-card h3 { font-size: 20px; color: #fff; margin-bottom: 12px; font-weight: 600; }
.service-card p { font-size: 14px; color: #8892b0; line-height: 1.8; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.service-tag { font-size: 12px; padding: 4px 12px; border-radius: 20px; background: rgba(0, 212, 255, 0.06); border: 1px solid rgba(0, 212, 255, 0.12); color: #00d4ff; }

/* ===== 作品展示 ===== */
.works-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px; max-width: 1200px; margin: 0 auto; }
.work-card { border-radius: 16px; overflow: hidden; background: rgba(17, 25, 40, 0.6); border: 1px solid rgba(0, 212, 255, 0.06); transition: all 0.4s; }
.work-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 212, 255, 0.05); border-color: rgba(0, 212, 255, 0.15); }
.work-preview { height: 200px; position: relative; overflow: hidden; background: linear-gradient(135deg, #0f1729, #162040); }
.work-preview-inner {
  position: absolute; inset: 20px; border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.1); background: rgba(10, 14, 26, 0.9);
  display: flex; flex-direction: column; padding: 12px; transition: transform 0.4s;
}
.work-card:hover .work-preview-inner { transform: scale(1.03); }
.work-mock-bar { display: flex; gap: 5px; margin-bottom: 10px; }
.work-mock-dot { width: 8px; height: 8px; border-radius: 50%; }
.work-mock-dot:nth-child(1) { background: #ff5f57; }
.work-mock-dot:nth-child(2) { background: #ffbd2e; }
.work-mock-dot:nth-child(3) { background: #28ca41; }
.work-mock-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.work-mock-line { height: 6px; border-radius: 3px; background: linear-gradient(90deg, rgba(0, 212, 255, 0.15), rgba(123, 47, 247, 0.1)); }
.work-mock-line:nth-child(1) { width: 70%; }
.work-mock-line:nth-child(2) { width: 50%; }
.work-mock-line:nth-child(3) { width: 85%; }
.work-mock-line:nth-child(4) { width: 40%; }
.work-mock-block { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 8px; flex: 1; }
.work-mock-block div { border-radius: 4px; background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(123, 47, 247, 0.06)); border: 1px solid rgba(0, 212, 255, 0.06); }
.work-info { padding: 24px 28px; }
.work-info h3 { font-size: 18px; color: #fff; margin-bottom: 8px; font-weight: 600; }
.work-info p { font-size: 14px; color: #8892b0; margin-bottom: 16px; }
.work-tech { display: flex; flex-wrap: wrap; gap: 8px; }
.work-tech span { font-size: 11px; padding: 3px 10px; border-radius: 4px; background: rgba(0, 212, 255, 0.06); color: #00d4ff; border: 1px solid rgba(0, 212, 255, 0.1); }

/* ===== 联系方式 ===== */
.contact-wrapper { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info h3 { font-size: 24px; color: #fff; margin-bottom: 16px; }
.contact-info > p { color: #8892b0; margin-bottom: 32px; font-size: 15px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.contact-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 212, 255, 0.08); border: 1px solid rgba(0, 212, 255, 0.12); font-size: 18px;
}
.contact-item-label { font-size: 13px; color: #8892b0; margin-bottom: 2px; }
.contact-item-value { font-size: 15px; color: #fff; font-weight: 500; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group label { display: block; font-size: 13px; color: #8892b0; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px; border-radius: 8px;
  background: rgba(17, 25, 40, 0.8); border: 1px solid rgba(0, 212, 255, 0.1);
  color: #fff; font-size: 14px; font-family: inherit; transition: border-color 0.3s; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: rgba(0, 212, 255, 0.4); }
.form-group textarea { resize: vertical; min-height: 100px; }

/* ===== 页脚 ===== */
.footer { text-align: center; padding: 40px 5%; border-top: 1px solid rgba(0, 212, 255, 0.06); font-size: 13px; color: #576574; }
.footer a { color: #00d4ff; }
.footer a:hover { text-decoration: underline; }

/* ===== 页面背景 ===== */
.page-bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(123, 47, 247, 0.05) 0%, transparent 50%);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 70px; left: 0; right: 0; background: rgba(10, 14, 26, 0.98); flex-direction: column; padding: 24px 5%; gap: 20px; border-bottom: 1px solid rgba(0, 212, 255, 0.1); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .services-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .stats { gap: 32px; }
  .stat-number { font-size: 32px; }
  .section { padding: 80px 5% 60px; }
}

/* ===== 可点击卡片 ===== */
a.card-link { text-decoration: none; color: inherit; display: block; }
.service-card { cursor: pointer; }
.service-card:hover { border-color: rgba(0, 212, 255, 0.2); }
.work-card { cursor: pointer; }
.service-card::after, .work-card::after {
  content: '\2192'; position: absolute; top: 20px; right: 24px;
  font-size: 18px; color: rgba(0, 212, 255, 0.3); transition: all 0.3s;
}
.service-card:hover::after, .work-card:hover::after { color: #00d4ff; transform: translateX(4px); }
.service-card, .work-card { position: relative; }

/* ===== 详情页 ===== */
.detail-header {
  padding: 140px 5% 60px; text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0, 212, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(123, 47, 247, 0.08) 0%, transparent 50%);
}
.detail-icon {
  width: 80px; height: 80px; border-radius: 20px; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center; font-size: 40px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(123, 47, 247, 0.12));
  border: 1px solid rgba(0, 212, 255, 0.2);
}
.detail-header h1 { font-size: clamp(28px, 4vw, 40px); color: #fff; font-weight: 700; margin-bottom: 12px; }
.detail-header .detail-subtitle { font-size: 17px; color: #8892b0; max-width: 600px; margin: 0 auto; }
.detail-body { max-width: 900px; margin: 0 auto; padding: 60px 5% 100px; }
.detail-section { margin-bottom: 48px; }
.detail-section h2 { font-size: 22px; color: #fff; font-weight: 600; margin-bottom: 20px; padding-left: 16px; border-left: 3px solid #00d4ff; }
.detail-section p { color: #8892b0; font-size: 15px; line-height: 1.9; }
.detail-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.detail-feature {
  padding: 20px 24px; border-radius: 12px;
  background: rgba(17, 25, 40, 0.6); border: 1px solid rgba(0, 212, 255, 0.06);
}
.detail-feature h4 { font-size: 15px; color: #00d4ff; margin-bottom: 8px; font-weight: 600; }
.detail-feature p { font-size: 13px; color: #8892b0; line-height: 1.7; }
.detail-tech-stack { display: flex; flex-wrap: wrap; gap: 10px; }
.detail-tech-stack span {
  padding: 6px 16px; border-radius: 6px; font-size: 13px;
  background: rgba(0, 212, 255, 0.06); color: #00d4ff; border: 1px solid rgba(0, 212, 255, 0.12);
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: #00d4ff; margin-bottom: 32px; transition: gap 0.3s;
}
.back-link:hover { gap: 12px; }
@media (max-width: 768px) { .detail-header { padding: 100px 5% 40px; } .detail-body { padding: 40px 5% 60px; } }

/* ===== 滚动动画 ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
