/* ===== 上海深维探索科技 - 现代风格 ===== */
:root {
  --primary: #1e3a8a;
  --primary-dark: #0f172a;
  --primary-light: #3b82f6;
  --primary-gradient: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 100%);
  --accent: #f59e0b;
  --bg: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ===== Header ===== */
header {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 40%, #312e81 100%);
  color: white;
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  position: relative;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.main-logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}

.main-logo:hover { transform: scale(1.05); }

.logo-text {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

header .slogan {
  font-size: 1.05rem;
  font-weight: 500;
  color: #e0e7ff;
  margin-top: 0.35rem;
  letter-spacing: 1px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ===== Nav ===== */
nav {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

nav ul li a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.9rem 1.5rem;
  transition: color 0.2s;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: width 0.25s;
  border-radius: 1px;
}

nav ul li a:hover { color: var(--primary); }
nav ul li a:hover::after { width: 60%; }

/* ===== Container ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }

/* ===== Sections ===== */
section {
  margin-bottom: 2.5rem;
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: var(--primary-gradient);
  border-radius: 2px;
}

h3 { font-size: 1.05rem; font-weight: 600; color: var(--primary-dark); margin-bottom: 0.5rem; }

p { margin-bottom: 0.75rem; color: var(--text-secondary); line-height: 1.8; }

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-light); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #eef2ff 0%, #faf5ff 100%);
  border: none;
  text-align: center;
  padding: 3rem 2rem;
}

.hero h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.hero p {
  max-width: 650px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ===== Product Grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.product-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
  background: var(--bg-card);
}

.product-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  font-weight: 700;
}

.product-card .info { flex: 1; min-width: 0; }
.product-card .info h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.product-card .info p { font-size: 0.85rem; margin-bottom: 0; line-height: 1.6; }

.platform-tags { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }

.platform-tag {
  display: inline-block;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 6px;
}

.pt-ios { background: #eef2ff; color: #4338ca; }
.pt-android { background: #f0fdf4; color: #15803d; }
.pt-macos { background: #f5f3ff; color: #6d28d9; }

/* ===== About & Contact ===== */
#about p, #contact p { max-width: 800px; }
#contact p { margin-bottom: 0.3rem; }

/* ===== Footer ===== */
footer {
  background: var(--primary-dark);
  color: #cbd5e1;
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
}

footer p { margin-bottom: 0; color: #94a3b8; }
#icp-number { margin-top: 0.3rem; color: #64748b; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  header { padding: 2rem 1rem 1.5rem; }
  .logo-text { font-size: 1.35rem; }
  .main-logo { width: 72px; height: 72px; }
  .container { padding: 1rem; }
  section { padding: 1.5rem; border-radius: var(--radius-lg); }
  .product-grid { grid-template-columns: 1fr; }
  .hero { padding: 2rem 1.25rem; }
  .hero h1 { font-size: 1.3rem; }
  nav ul li a { padding: 0.75rem 1rem; font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .product-card { flex-direction: column; align-items: flex-start; }
}

/* ===== Print ===== */
@media print {
  nav { display: none; }
  .product-card:hover { transform: none; box-shadow: var(--shadow); }
}