/* 
 * 深圳华辰源科技有限公司 · 官方标准共享样式表 (style.css)
 * 严格对标《华辰源首页.png》官方设计规范与国际工业级 B2B 标准
 * 绿色主色调: #00875a | 辅助科技蓝: #0052cc | 工业深色: #091e42 | 浅色背景: #f7f9fa
 */

:root {
  --primary: #00875a;         /* 华辰源官方品牌科技绿 */
  --primary-hover: #006644;
  --primary-light: #e3fcef;
  --primary-glow: rgba(0, 135, 90, 0.18);
  --secondary: #0052cc;       /* 电气工业科技蓝 */
  --secondary-light: #deebff;
  --dark: #091e42;            /* 工业深色文字 */
  --dark-surface: #172b4d;
  --text-main: #253858;
  --text-muted: #6b778c;
  --bg-body: #f7f9fa;
  --bg-card: #ffffff;
  --border: #ebecf0;
  --border-dark: #dfe1e6;
  --accent: #ff8b00;
  --danger: #de350b;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(9,30,66,0.08);
  --shadow-md: 0 4px 14px rgba(9,30,66,0.12);
  --shadow-lg: 0 12px 28px rgba(9,30,66,0.16);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.6;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================= 1. 顶部第一行导航栏 (对标《华辰源首页.png》) ================= */
.official-header {
  background: #ffffff;
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.official-logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.official-logo-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.official-logo-text {
  display: flex;
  flex-direction: column;
}

.logo-en-title {
  font-size: 15px;
  font-weight: 800;
  color: #172b4d;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.logo-en-sub {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.1;
  margin-top: 2px;
}

.logo-cn-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: 1px;
  margin-top: 2px;
}

.official-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.official-nav-item a {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark-surface);
  padding: 8px 0;
  position: relative;
  transition: var(--transition);
}

.official-nav-item a:hover,
.official-nav-item.active a {
  color: var(--primary);
}

.official-nav-item.active a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.lang-dropdown {
  position: relative;
  cursor: pointer;
  padding: 6px 14px;
  background: #f4f5f7;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dark-surface);
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.lang-dropdown:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--dark);
  cursor: pointer;
}

/* ================= 2. 首页 Hero 科技气流大图 Banner (100%全屏通栏居中) ================= */
.official-hero-banner {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  position: relative;
  background: #091e42;
  overflow: hidden;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  min-height: 420px;
  max-height: 540px;
  object-fit: cover;
  display: block;
}

.hero-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(9,30,66,0.88) 0%, rgba(9,30,66,0.5) 55%, rgba(9,30,66,0.15) 100%);
  display: flex;
  align-items: center;
}

.hero-banner-content {
  max-width: 650px;
  color: #ffffff;
  padding: 40px 0;
}

.hero-banner-badge {
  display: inline-block;
  background: rgba(0, 135, 90, 0.45);
  color: #79f2c0;
  border: 1px solid rgba(121, 242, 192, 0.4);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-banner-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  color: #ffffff;
}

.hero-banner-desc {
  font-size: 14.5px;
  color: #e2e8f0;
  line-height: 1.65;
  margin-bottom: 24px;
}

.hero-btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* 子页面统一顶部 Header Banner */
.page-header-banner {
  background: linear-gradient(135deg, #091e42 0%, #172b4d 100%);
  color: #ffffff;
  padding: 45px 0 40px;
  border-bottom: 3px solid var(--primary);
}

.page-header-banner h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-header-banner p {
  font-size: 14.5px;
  color: #b3d4ff;
  max-width: 800px;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  font-size: 12.5px;
  color: #8993a4;
  margin-top: 14px;
}

.breadcrumbs a {
  color: #b3d4ff;
}

/* ================= 3. 按钮与全局通用组件 ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(0,135,90,0.3);
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
  color: var(--primary-hover);
}

.section {
  padding: 50px 0;
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px;
}

.section-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}

.section-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ================= 4. 产品卡片与大图点击放大组件 ================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: #b3d4ff;
}

.product-img-box {
  width: 100%;
  height: 200px;
  background: #f4f5f7;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-img-box:hover img {
  transform: scale(1.08);
}

.product-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  z-index: 2;
}

.zoom-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(9, 30, 66, 0.75);
  color: #ffffff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 3px;
  pointer-events: none;
  opacity: 0.85;
}

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-model {
  font-size: 17px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}

.product-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
  min-height: 34px;
}

.product-specs-table {
  background: #fafbfc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 14px;
  font-size: 12px;
}

.product-spec-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px dashed #ebecf0;
}

.product-spec-row:last-child {
  border-bottom: none;
}

.product-spec-label {
  color: var(--text-muted);
}

.product-spec-val {
  font-weight: 600;
  color: var(--dark-surface);
}

.product-card-footer {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

/* ================= 5. Lightbox 大图弹出模态框 ================= */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(9, 30, 66, 0.88);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.lightbox-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  display: flex;
  flex-direction: column;
  animation: zoomIn 0.25s ease-out;
}

@keyframes zoomIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: #ffffff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: var(--danger);
}

.lightbox-img-wrap {
  width: 100%;
  height: 480px;
  background: #091e42;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-caption {
  padding: 16px 20px;
  background: #ffffff;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lightbox-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--dark);
}

.lightbox-desc {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ================= 6. 通用表单与弹窗 ================= */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(9, 30, 66, 0.75);
  z-index: 9998;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 30px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 5px;
}

.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--dark);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

/* ================= 7. 特色功能卡片与表格 ================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.table-custom {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 13.5px;
}

.table-custom th {
  background: var(--dark-surface);
  color: #ffffff;
  padding: 13px;
  text-align: left;
  font-weight: 600;
}

.table-custom td {
  padding: 13px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
}

.table-custom tr:nth-child(even) td {
  background: #fafbfc;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.cert-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.cert-badge-tag {
  align-self: flex-start;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.cert-card h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}

.cert-no {
  font-size: 12.5px;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 8px;
}

.cert-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ================= 8. 全局页脚 ================= */
.official-footer {
  background: #091e42;
  color: #cbd5e1;
  padding: 50px 0 20px;
  border-top: 3px solid var(--primary);
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 13px;
}

.footer-links a:hover {
  color: #79f2c0;
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: #8993a4;
}

/* 响应式断点 */
@media (max-width: 992px) {
  .header-container { height: 70px; }
  .official-nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
    gap: 14px;
  }
  .official-nav-menu.open { display: flex; }
  .mobile-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-banner-title { font-size: 24px; }
  .lightbox-img-wrap { height: 320px; }
}
