/* 普高光电官网 - 前台样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #1e3a8a;
  --primary-2: #2563eb;
  --text: #303133;
  --text-2: #606266;
  --text-3: #909399;
  --bg: #f5f7fa;
  --border: #e4e7ed;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  font-size: 14px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ========== 顶部导航 ========== */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.topbar-inner {
  display: flex; align-items: center; height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--primary); margin-right: auto;
}
.logo-mark {
  width: 38px; height: 38px; border-radius: 6px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.logo-text { font-size: 16px; }
.logo-text small {
  display: block; font-size: 10px; color: var(--text-3);
  font-weight: 400; letter-spacing: 1.5px;
}
.nav { display: flex; gap: 4px; }
.nav-item {
  padding: 8px 14px; border-radius: 4px; font-size: 14px; color: #404040;
  transition: all .15s;
}
.nav-item:hover, .nav-item.active { background: #f0f4ff; color: var(--primary); }
.nav-cta {
  background: var(--primary); color: #fff !important;
  padding: 8px 16px; border-radius: 4px; margin-left: 8px;
  transition: background .15s;
}
.nav-cta:hover { background: var(--primary-2); }

/* ========== Hero ========== */
.hero {
  background: linear-gradient(135deg, #0a1d4d 0%, #1e3a8a 100%);
  color: #fff; padding: 80px 24px; text-align: center;
  min-height: 480px; display: flex; align-items: center;
}
.hero-inner { max-width: 1080px; }
.hero-tag {
  font-size: 14px; letter-spacing: 6px; opacity: .85; margin-bottom: 14px;
}
.hero-title {
  font-size: 42px; font-weight: 700; margin-bottom: 18px;
  text-shadow: 0 2px 10px rgba(0,0,0,.3); line-height: 1.3;
}
.hero-desc {
  font-size: 16px; opacity: .92; max-width: 780px; margin: 0 auto 28px;
  line-height: 1.7;
}
.hero-cta {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.btn-primary {
  background: #fff; color: var(--primary);
  padding: 14px 32px; border-radius: 6px; font-weight: 600;
  display: inline-block; transition: all .15s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.btn-ghost {
  background: rgba(255,255,255,.15); color: #fff;
  padding: 14px 32px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.4); display: inline-block;
}
.btn-ghost:hover { background: rgba(255,255,255,.25); }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 54px;
}
.stat-item {
  background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
  padding: 18px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2);
}
.stat-num {
  font-size: 32px; font-weight: 700;
}
.stat-num span { font-size: 18px; }
.stat-label { font-size: 13px; opacity: .85; margin-top: 4px; }

/* ========== 通用区块 ========== */
.section { padding: 60px 0; }
.section-sm { padding: 30px 0; }
.section-gray { background: var(--bg); }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: 28px; color: var(--primary); margin-bottom: 8px; }
.section-head p { color: var(--text-2); font-size: 14px; }

/* ========== 卡片网格 ========== */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: all .2s; cursor: pointer; display: block;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.card img, .card-img-placeholder {
  width: 100%; height: 180px; object-fit: cover; display: block;
}
.card-img-placeholder {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 48px; font-weight: 700;
}
.card-body { padding: 16px; }
.card-body h3 { font-size: 16px; margin-bottom: 6px; color: var(--primary); }
.card-body p { color: var(--text-2); font-size: 13px; line-height: 1.6; }
.card-more {
  display: inline-block; margin-top: 10px;
  color: var(--primary-2); font-size: 13px; font-weight: 500;
}

/* ========== 关于我们区块 ========== */
.about-block {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  background: linear-gradient(135deg, #f0f4ff, #e0e7ff);
  padding: 36px; border-radius: 12px;
}
.about-text h2 { color: var(--primary); margin-bottom: 14px; }
.about-text p { color: var(--text-2); line-height: 1.8; }

/* ========== 页脚 ========== */
footer {
  background: #1f2937; color: #9ca3af; padding: 50px 24px 20px;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 30px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 700; margin-bottom: 14px;
}
.footer-addr, .footer-contact { font-size: 13px; line-height: 1.9; }
.footer-inner h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-inner a { display: block; padding: 5px 0; font-size: 13px; color: #9ca3af; }
.footer-inner a:hover { color: #fff; }
.footer-bottom {
  max-width: 1280px; margin: 20px auto 0; padding-top: 20px;
  border-top: 1px solid #374151; font-size: 12px; text-align: center;
}
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: #fff; }

/* ========== 栏目页 ========== */
.page-banner {
  height: 240px; background-size: cover; background-position: center;
  display: flex; align-items: center; color: #fff;
  position: relative;
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner-mini {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  padding: 40px 24px; color: #fff;
}
.breadcrumb {
  font-size: 13px; opacity: .9; margin-bottom: 14px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb .current { color: #fde047; }
.page-title {
  font-size: 36px; font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.page-title-mini { font-size: 28px; font-weight: 700; }
.page-intro {
  background: #fff; border-left: 4px solid var(--primary);
  padding: 18px 22px; border-radius: 4px;
  color: var(--text-2); line-height: 1.9; max-width: 900px;
}

/* ========== 内容块 ========== */
.text-block {
  max-width: 900px; margin: 0 auto 24px; padding: 22px 26px;
  background: #f9fafb; border-left: 4px solid var(--primary);
  border-radius: 4px; line-height: 1.9; color: var(--text-2);
}
.it-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
  align-items: center; margin-bottom: 36px;
}
.it-block.reverse { direction: rtl; }
.it-block.reverse > * { direction: ltr; }
.it-block img {
  width: 100%; max-height: 320px; object-fit: cover; border-radius: 8px;
}
.it-img-placeholder {
  width: 100%; height: 320px; background: #f3f4f6;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); border-radius: 8px;
}
.it-content h3 { color: var(--primary); font-size: 22px; margin-bottom: 12px; }
.it-content p { color: var(--text-2); line-height: 1.9; }
.big-image { margin-bottom: 28px; }
.big-image img {
  width: 100%; max-height: 480px; object-fit: cover; border-radius: 8px;
}

/* ========== 空状态 ========== */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text-3);
}
.empty-state > div { font-size: 60px; margin-bottom: 12px; }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .topbar-inner { flex-wrap: wrap; height: auto; padding: 10px 16px; }
  .logo { margin-right: 0; width: 100%; margin-bottom: 8px; }
  .nav { width: 100%; overflow-x: auto; padding-bottom: 6px; }
  .nav-cta { display: none; }
  .hero-title { font-size: 28px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: 24px; }
  .section { padding: 40px 0; }
  .section-head h2 { font-size: 22px; }
  .footer-inner { grid-template-columns: 1fr; }
  .it-block { grid-template-columns: 1fr; }
  .page-title { font-size: 24px; }
}
