/* ================================================
   智宸ERP 官网样式 - 中山智宸企业咨询
   ================================================ */

/* ----- CSS Variables ----- */
:root {
  --color-primary: #1a73e8;
  --color-primary-dark: #1557b0;
  --color-primary-light: #e8f0fe;
  --color-secondary: #0f4c81;
  --color-accent: #ff6b35;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-bg-dark: #1a1f36;
  --color-text: #1a1f36;
  --color-text-light: #5f6368;
  --color-text-white: #ffffff;
  --color-border: #e8eaed;
  --color-success: #34a853;
  --color-ygy: #1a73e8;
  --color-ygy-alt: #e8f0fe;
  --color-erp: #0f4c81;
  --color-erp-alt: #e3ecf5;

  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --max-width: 1200px;
  --nav-height: 64px;
}

/* ----- Reset & Base ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* ----- Navigation ----- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  height: var(--nav-height);
}

.navbar.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
}

.logo-img {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--color-text-light);
  transition: all 0.2s;
  font-weight: 500;
}

.nav-link:hover { color: var(--color-primary); background: var(--color-primary-light); }
.nav-link.active { color: var(--color-primary); background: var(--color-primary-light); font-weight: 600; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ----- Hero Section ----- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
  background: linear-gradient(135deg, #0f2027 0%, #203a43 40%, #2c5364 100%);
  color: var(--color-text-white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(26,115,232,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(15,76,129,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 24px;
}

.title-line { display: block; opacity: 0.9; }
.title-highlight {
  display: block;
  background: linear-gradient(135deg, #4da3ff, #7fc4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.8;
  opacity: 0.85;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(26,115,232,0.4);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,115,232,0.5);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 60px;
  margin-top: 80px;
  position: relative;
  z-index: 1;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, #4da3ff, #7fc4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label { font-size: 14px; opacity: 0.7; margin-top: 4px; }

/* ----- Common Section Styles ----- */
.section {
  padding: 100px 24px;
}

.section.erp-section { background: var(--color-bg); }
.section.yiguan-section { background: var(--color-bg-alt); }
.section.tech-section { background: var(--color-bg); }
.section.flow-section { background: linear-gradient(135deg, var(--color-primary-light), var(--color-erp-alt)); padding: 80px 24px; }
.section.contact-section { background: var(--color-bg-dark); color: var(--color-text-white); }

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

.section-header { text-align: center; margin-bottom: 60px; }

.section-tag {
  display: inline-block;
  padding: 6px 20px;
  background: var(--color-erp-alt);
  color: var(--color-erp);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.section-tag.alt { background: var(--color-ygy-alt); color: var(--color-ygy); }

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 12px;
}

.contact-section .section-title { color: var(--color-text-white); }

.section-desc {
  font-size: 18px;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.contact-section .section-desc { color: rgba(255,255,255,0.7); }

.sub-title {
  text-align: center;
  font-size: 24px;
  margin: 60px 0 32px;
  color: var(--color-text);
}

/* ----- ERP Overview Cards ----- */
.erp-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.overview-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
}

.overview-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.overview-card h3 {
  font-size: 20px;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.overview-card p { color: var(--color-text-light); line-height: 1.8; }

/* ----- Subsystem Grid ----- */
.subsystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.subsystem-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.3s;
}

.subsystem-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.mes-icon { background: #e8f5e9; }
.sample-icon { background: #fce4ec; }
.order-icon { background: #e3f2fd; }
.purchase-icon { background: #fff3e0; }
.wms-icon { background: #f3e5f5; }
.finance-icon { background: #e0f2f1; }
.hrm-icon { background: #ede7f6; }
.ship-icon { background: #e8eaf6; }

.subsystem-card h4 {
  font-size: 17px;
  margin-bottom: 14px;
  color: var(--color-text);
}

.subsystem-card ul li {
  padding: 4px 0;
  font-size: 14px;
  color: var(--color-text-light);
  position: relative;
  padding-left: 16px;
}

.subsystem-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.4;
}

/* ----- Highlights ----- */
.highlights { margin-top: 60px; }

.highlight-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  transition: all 0.3s;
}

.highlight-item:hover { background: var(--color-primary-light); }

.highlight-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0.3;
  min-width: 40px;
}

.highlight-item h4 { font-size: 17px; margin-bottom: 4px; }
.highlight-item p { color: var(--color-text-light); }

/* ----- Flow Diagram ----- */
.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  font-size: 15px;
  min-width: 90px;
  transition: all 0.3s;
}

.flow-node:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.flow-icon { font-size: 24px; }
.flow-arrow { font-size: 24px; color: var(--color-primary); font-weight: 700; }

/* ----- Feature Grid (易管) ----- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  transition: all 0.3s;
}

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

.feature-icon { font-size: 36px; display: block; margin-bottom: 16px; }

.feature-card h4 {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--color-text);
}

.feature-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ----- Compare Table ----- */
.compare-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.compare-table th, .compare-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
}

.compare-table th {
  background: var(--color-bg-dark);
  color: #fff;
  font-weight: 600;
}

.compare-table th.col-erp { background: var(--color-erp); }
.compare-table th.col-ygy { background: var(--color-ygy); }

.compare-table tbody tr:hover { background: var(--color-primary-light); }

.compare-table td:first-child {
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

/* ----- Tech Section ----- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.tech-category {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 28px;
}

.tech-category h4 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--color-text);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tags span {
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-size: 13px;
  color: var(--color-text-light);
  font-weight: 500;
  transition: all 0.2s;
}

.tech-tags span:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Architecture Layers */
.tech-architecture h3 { text-align: center; font-size: 24px; margin-bottom: 32px; }

.arch-layers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 700px;
  margin: 0 auto;
}

.arch-layer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
}

.layer-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 60px;
}

.layer-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.layer-items span {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
}

.client-layer { background: #e8f5e9; }
.client-layer .layer-label { color: #2e7d32; }
.client-layer .layer-items span { background: #c8e6c9; color: #2e7d32; }

.proxy-layer { background: #fff3e0; }
.proxy-layer .layer-label { color: #e65100; }
.proxy-layer .layer-items span { background: #ffe0b2; color: #e65100; }

.app-layer { background: #e3f2fd; }
.app-layer .layer-label { color: #1565c0; }
.app-layer .layer-items span { background: #bbdefb; color: #1565c0; }

.data-layer { background: #f3e5f5; }
.data-layer .layer-label { color: #6a1b9a; }
.data-layer .layer-items span { background: #e1bee7; color: #6a1b9a; }

/* ----- Contact Section ----- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.contact-card {
  text-align: center;
  padding: 40px 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
}

.contact-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.contact-icon { font-size: 36px; display: block; margin-bottom: 16px; }

.contact-card h4 {
  font-size: 17px;
  margin-bottom: 8px;
  color: #fff;
}

.contact-card p {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
}

.contact-card a {
  color: #7fc4ff;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-card a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ----- Footer ----- */
.footer {
  background: #141824;
  color: rgba(255,255,255,0.6);
  padding: 40px 24px;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.footer-right p { font-size: 14px; }

.footer-icp {
  margin-top: 8px;
}

.footer-icp a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-icp a:hover {
  color: rgba(255,255,255,0.7);
}

/* ----- Animations ----- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  :root { --nav-height: 56px; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    display: none;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open { display: flex; }

  .menu-toggle { display: flex; }

  .hero { padding: 100px 20px 60px; min-height: auto; }
  .hero-stats { gap: 30px; margin-top: 50px; }
  .stat-number { font-size: 32px; }

  .section { padding: 60px 20px; }

  .flow-diagram { gap: 8px; }
  .flow-node { padding: 14px 18px; font-size: 14px; min-width: 70px; }
  .flow-arrow { display: none; }

  .subsystem-grid, .feature-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }

  .arch-layer { flex-direction: column; align-items: flex-start; gap: 10px; }

  .compare-table th, .compare-table td { padding: 10px 14px; font-size: 13px; }

  .footer-container { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 15px; }
  .btn { padding: 12px 24px; font-size: 14px; }
  .contact-grid { grid-template-columns: 1fr; }
}
