/* ==========================================================================
   青岛元域星科技有限公司 - 企业官网公共样式
   风格：普鲁士蓝深色配色
   ========================================================================== */

:root {
  --prussian: #003153;          /* 普鲁士蓝主色 */
  --prussian-light: #0f2742;    /* 浅普鲁士蓝（卡片底） */
  --navy-deep: #071426;         /* 最深海军蓝（页脚） */
  --bg: #0a1a2e;                /* 页面背景 */
  --bg-light: #0d2038;          /* 浅区块背景 */
  --accent: #4da3ff;            /* 亮蓝强调色 */
  --accent-soft: rgba(77, 163, 255, 0.15);
  --text: #e8f0fa;              /* 主文字 */
  --text-secondary: #8fa8c4;    /* 次级文字 */
  --border: #1c3552;            /* 边框 */
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --container: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   导航栏
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 20, 38, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--prussian), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(77, 163, 255, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: #fff;
  background: var(--accent-soft);
}

.nav-links a.active {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ==========================================================================
   首页 Hero
   ========================================================================== */

.hero {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 49, 83, 0.85) 0%, transparent 70%),
    linear-gradient(160deg, var(--prussian) 0%, var(--bg) 100%);
  padding: 108px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(77, 163, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 163, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.3;
  font-weight: 800;
  margin-bottom: 20px;
  color: #fff;
}

.hero h1 .highlight {
  background: linear-gradient(90deg, var(--accent), #9ecbff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 18px;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   按钮
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--prussian), var(--accent));
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #004a7c, #6cb3ff);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(77, 163, 255, 0.4);
}

.btn-outline {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(77, 163, 255, 0.35);
}

/* ==========================================================================
   通用区块
   ========================================================================== */

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 14px;
  color: #fff;
}

.section-header h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--prussian), var(--accent));
}

.section-header p {
  color: var(--text-secondary);
  font-size: 16px;
}

.section-header.align-left {
  text-align: left;
  margin-bottom: 24px;
}

.section-header.align-left h2::after {
  margin-left: 0;
}

/* ==========================================================================
   卡片网格
   ========================================================================== */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--prussian-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(77, 163, 255, 0.5);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #fff;
}

.card p {
  color: var(--text-secondary);
  font-size: 14.5px;
}

/* ==========================================================================
   首页 公司简介区
   ========================================================================== */

.intro-wrap {
  max-width: 100%;
}

.intro-text h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #fff;
}

.intro-text h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--prussian), var(--accent));
}

.intro-text p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  max-width: 860px;
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.stat {
  background: var(--prussian-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  transition: border-color 0.25s;
}

.stat:hover {
  border-color: rgba(77, 163, 255, 0.5);
}

.stat .num {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}

.stat .label {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ==========================================================================
   CTA 区块
   ========================================================================== */

.cta {
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(0, 49, 83, 0.9) 0%, transparent 75%),
    linear-gradient(160deg, var(--prussian) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: #fff;
  text-align: center;
  padding: 72px 0;
}

.cta h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 14px;
}

.cta p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* ==========================================================================
   页脚
   ========================================================================== */

.footer {
  background: var(--navy-deep);
  color: var(--text-secondary);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 14px;
  max-width: 320px;
}

.footer h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-bottom a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ==========================================================================
   页面标题（子页面通用）
   ========================================================================== */

.page-hero {
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(0, 49, 83, 0.85) 0%, transparent 70%),
    linear-gradient(160deg, var(--prussian) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}

.page-hero p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   关于页
   ========================================================================== */

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.value-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

/* ==========================================================================
   联系我们页
   ========================================================================== */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item .card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.contact-item h3 {
  font-size: 16px;
  margin-bottom: 4px;
  color: #fff;
}

.contact-item p {
  color: var(--text-secondary);
  font-size: 15px;
}

.contact-form {
  background: var(--prussian-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 20px;
  margin-bottom: 24px;
  color: #fff;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--bg);
  color: var(--text);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #5a7391;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.15);
}

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 900px) {
  .grid-3,
  .value-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    padding: 12px 16px;
  }

  .hero {
    padding: 80px 0 64px;
  }

  .hero h1 {
    font-size: 32px;
  }
}

@media (max-width: 560px) {
  .grid-3,
  .value-list {
    grid-template-columns: 1fr;
  }

  .intro-stats {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
