/* ========================================
   Innomotics China 备案门户 — style.css
   Domain: www.innomotics.net.cn
   ======================================== */

/* --- Local Font Faces --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/inter-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/inter-latin-700.woff2') format('woff2');
}

/* --- CSS Custom Properties --- */
:root {
  --color-accent: #E1F000;
  --color-accent-hover: #C8D400;
  --color-accent-light: #F0F7B0;
  --color-primary: #14293A;
  --color-dark: #08191F;
  --color-light: #F1F4F6;
  --color-white: #FFFFFF;
  --color-gray-600: #4A5E6D;
  --color-gray-400: #8FA3B2;
  --color-gray-200: #D5DDE3;

  --font-family: "PingFang SC", "Microsoft YaHei", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 1200px;
  --page-padding: 24px;
  --section-spacing: 64px;
  --header-height: 64px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-gray-600);
  background-color: var(--color-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

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

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-primary);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 28px;
  width: auto;
}

.logo .accent-dot { color: var(--color-accent); }

.logo-cn {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  margin-left: 8px;
  color: var(--color-gray-400);
}

/* --- Hero --- */
.hero {
  background-color: var(--color-dark);
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--color-accent);
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(8, 25, 31, 0.95) 0%, rgba(20, 41, 58, 0.8) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero-content { max-width: 720px; }

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 16px;
  color: var(--color-gray-400);
  line-height: 1.7;
}

/* --- Section Links --- */
.section-links {
  padding: var(--section-spacing) 0;
}

.link-group {
  margin-bottom: 48px;
}

.link-group:last-child {
  margin-bottom: 0;
}

.group-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--color-accent);
  display: inline-block;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* --- Link Card --- */
.link-card {
  display: block;
  background-color: var(--color-white);
  border-radius: 8px;
  padding: 24px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 44px;
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.link-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  background-color: rgba(225, 240, 0, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-card:hover .link-icon svg {
  stroke: var(--color-accent-hover);
}

.link-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.link-card p {
  font-size: 14px;
  color: var(--color-gray-600);
  line-height: 1.5;
}

.link-card:hover h3 {
  color: var(--color-accent-hover);
}

/* --- Footer --- */
.footer {
  background-color: var(--color-dark);
  padding: 48px 0 0;
  color: var(--color-white);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 40px;
}

.footer-brand {
  max-width: 480px;
}

.footer-brand .logo {
  margin-bottom: 12px;
  display: inline-block;
}

.footer-brand p {
  font-size: 14px;
  color: var(--color-gray-400);
  line-height: 1.7;
}

.footer-contact h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: var(--color-white);
}

.footer-contact p {
  font-size: 14px;
  color: var(--color-gray-400);
  margin-bottom: 4px;
}

.footer-contact a {
  color: var(--color-gray-400);
  transition: color var(--transition-fast);
}

.footer-contact a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: var(--color-primary);
  padding: 16px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--color-gray-400);
  margin-bottom: 4px;
}

.footer-bottom a {
  color: var(--color-gray-400);
  transition: color var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--color-accent);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Responsive — Tablet
   ======================================== */
@media (max-width: 1023px) {
  :root { --section-spacing: 48px; }

  .links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    flex-direction: column;
    gap: 32px;
  }
}

/* ========================================
   Responsive — Mobile
   ======================================== */
@media (max-width: 767px) {
  :root {
    --page-padding: 16px;
    --section-spacing: 40px;
  }

  .hero h1 { font-size: 28px; }
  .hero-subtitle { font-size: 16px; }
  .hero .container { padding-top: 32px; padding-bottom: 32px; }
  .hero { min-height: auto; }

  .group-title { font-size: 22px; }

  .links-grid {
    grid-template-columns: 1fr;
  }

  .link-card {
    padding: 20px 16px;
  }

  .footer { padding-top: 32px; }
}
