/* ============================================================
   广东冠电科技股份有限公司 - 企业官网样式
   Brand Color: #00529B
   Design: 简约大气 / 科技专业
   ============================================================ */

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

:root {
  --brand: #00529B;
  --brand-light: #1a6db5;
  --brand-dark: #003d75;
  --brand-bg: #e8f2fa;
  --text: #1a1a2e;
  --text-secondary: #555;
  --text-muted: #888;
  --bg: #ffffff;
  --bg-section: #f7f9fc;
  --border: #e0e6ed;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: .25s ease;
  --max-width: 1200px;
  --header-h: 72px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-light); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ----- Utility ----- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-title {
  font-size: 2rem; font-weight: 700; color: var(--text);
  text-align: center; margin-bottom: 12px;
}
.section-subtitle {
  font-size: 1rem; color: var(--text-muted); text-align: center;
  margin-bottom: 48px; max-width: 600px; margin-left: auto; margin-right: auto;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 6px; font-size: .95rem;
  font-weight: 600; cursor: pointer; transition: all var(--transition);
  border: none; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { background: var(--brand-bg); }

/* ----- Header ----- */
.header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); z-index: 1000;
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px; font-size: 1.15rem;
  font-weight: 700; color: var(--brand); text-decoration: none;
}
.logo-img { height: 36px; width: auto; flex-shrink: 0; }
.logo-icon {
  width: 40px; height: 40px; background: var(--brand); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-weight: 900; font-size: 1.2rem; flex-shrink: 0;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block; padding: 8px 16px; color: var(--text-secondary);
  font-size: .95rem; border-radius: 6px; transition: all var(--transition);
}
.nav a:hover, .nav a.active {
  color: var(--brand); background: var(--brand-bg);
}
.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(--text);
  border-radius: 2px; transition: var(--transition);
}

/* ----- Hero ----- */
.hero {
  padding: 160px 0 100px; background: linear-gradient(135deg, #f0f5fb 0%, #e8f2fa 50%, #dce8f4 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,82,155,.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,82,155,.05) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 60px; }
.hero-text { flex: 1; }
.hero-badge {
  display: inline-block; padding: 6px 16px; background: rgba(0,82,155,.1);
  color: var(--brand); border-radius: 20px; font-size: .85rem; font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 { font-size: 2.8rem; font-weight: 800; line-height: 1.3; color: var(--text); margin-bottom: 16px; }
.hero h1 span { color: var(--brand); }
.hero p { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 32px; max-width: 520px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 40px; padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 1.8rem; font-weight: 800; color: var(--brand); }
.hero-stat .label { font-size: .85rem; color: var(--text-muted); margin-top: 4px; }
.hero-visual { flex: 0 0 400px; }
.hero-card {
  background: #fff; border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-lg); position: relative;
}
.hero-card h3 { font-size: 1.1rem; color: var(--brand); margin-bottom: 16px; }
.hero-card ul li {
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .93rem;
  color: var(--text-secondary); display: flex; align-items: center; gap: 8px;
}
.hero-card ul li:last-child { border-bottom: none; }

/* ----- Section Bg ----- */
.bg-gray { background: var(--bg-section); }

/* ----- Service Cards ----- */
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
  background: #fff; border-radius: var(--radius-lg); padding: 36px 28px;
  box-shadow: var(--shadow); transition: all var(--transition);
  border: 1px solid transparent; position: relative; overflow: hidden;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.service-card-icon {
  width: 64px; height: 64px; background: linear-gradient(135deg, #e8f0fe 0%, #d0e2f7 100%);
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; transition: transform .3s, box-shadow .3s;
}
.service-card:hover .service-card-icon {
  transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,82,155,.18);
}
.service-card-icon img { width: 36px; height: 36px; }
.service-card { transition: transform .3s, box-shadow .3s; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,82,155,.12); }
.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.service-card p { font-size: .92rem; color: var(--text-secondary); line-height: 1.7; }

/* ----- Why Us ----- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-item { text-align: center; padding: 32px 20px; }
.why-icon {
  width: 56px; height: 56px; margin: 0 auto 12px;
  background: linear-gradient(135deg, #e8f0fe 0%, #d0e2f7 100%);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
}
.why-item:hover .why-icon { transform: scale(1.08); transition: transform .3s; }
.why-num {
  font-size: 2.2rem; font-weight: 800; color: var(--brand); margin-bottom: 8px;
}
.why-item h4 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.why-item p { font-size: .88rem; color: var(--text-muted); }

/* ----- CTA Section ----- */
.cta {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  color: #fff; text-align: center; padding: 72px 0;
}
.cta h2 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.cta p { font-size: 1.05rem; opacity: .85; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ----- Page Header (sub pages) ----- */
.page-header {
  padding: 150px 0 100px; background: linear-gradient(135deg, #f0f5fb 0%, #e8f2fa 100%);
  text-align: center;
}
.page-header h1 { font-size: 2.4rem; font-weight: 800; color: #fff; margin-bottom: 8px; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.page-header .breadcrumb { font-size: .9rem; color: rgba(255,255,255,.7); }
.page-header .breadcrumb a { color: rgba(255,255,255,.7); }
.page-header .breadcrumb a:hover { color: #fff; }
.page-header .breadcrumb span { color: #fff; }

/* ----- About Page ----- */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.about-text p { font-size: .98rem; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.8; }
.about-image {
  background: linear-gradient(135deg, var(--brand-bg) 0%, var(--brand) 100%);
  border-radius: var(--radius-lg); height: 360px; display: flex;
  align-items: center; justify-content: center; color: #fff; font-size: 1.5rem;
}

/* Timeline */
.timeline { position: relative; padding: 24px 0; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; background: var(--border); transform: translateX(-50%);
}
.timeline-item {
  display: flex; align-items: flex-start; margin-bottom: 40px;
  position: relative;
}
.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-dot {
  position: absolute; left: 50%; top: 8px; width: 12px; height: 12px;
  background: var(--brand); border-radius: 50%; transform: translateX(-50%);
  border: 3px solid #fff; box-shadow: 0 0 0 3px var(--brand);
}
.timeline-content {
  width: 44%; padding: 20px 24px; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.timeline-content .year { font-size: .85rem; color: var(--brand); font-weight: 700; margin-bottom: 6px; }
.timeline-content h4 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.timeline-content p { font-size: .9rem; color: var(--text-secondary); }

/* Quals */
.qual-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.qual-card {
  text-align: center; padding: 32px 20px; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow); transition: var(--transition);
}
.qual-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.qual-icon {
  font-size: 2.5rem; margin-bottom: 12px;
}
.qual-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.qual-card p { font-size: .85rem; color: var(--text-muted); }

/* ----- Products Page ----- */
.product-category { margin-bottom: 48px; }
.product-category h2 {
  font-size: 1.4rem; font-weight: 700; color: var(--brand); margin-bottom: 20px;
  padding-bottom: 10px; border-bottom: 2px solid var(--brand-bg);
  display: flex; align-items: center; gap: 10px;
}
.product-category h2 .cat-icon {
  width: 36px; height: 36px; background: var(--brand-bg); border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.product-tags {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.product-tag {
  display: inline-block; padding: 8px 18px; background: #fff;
  border: 1px solid var(--border); border-radius: 6px; font-size: .9rem;
  color: var(--text-secondary); transition: all var(--transition);
}
.product-tag:hover {
  border-color: var(--brand); color: var(--brand); background: var(--brand-bg);
}

/* Service flow */
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flow-item { text-align: center; padding: 28px 20px; position: relative; }
.flow-num {
  width: 48px; height: 48px; background: var(--brand); color: #fff; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700; margin-bottom: 16px;
}
.flow-item h4 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.flow-item p { font-size: .88rem; color: var(--text-muted); }

/* ----- Contact Page ----- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-info h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 28px; }
.contact-item {
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px;
  padding: 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
}
.contact-item-icon {
  width: 44px; height: 44px; background: var(--brand-bg); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item h4 { font-size: .95rem; font-weight: 600; margin-bottom: 4px; }
.contact-item p { font-size: .9rem; color: var(--text-secondary); }

.contact-form {
  background: #fff; border-radius: var(--radius-lg); padding: 36px;
  box-shadow: var(--shadow-lg);
}
.contact-form h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px;
  color: var(--text);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: 6px; font-size: .93rem; color: var(--text);
  font-family: inherit; transition: border-color var(--transition);
  background: #fafbfc;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,82,155,.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; }

/* ----- Footer ----- */
.footer {
  background: #0d1b2a; color: rgba(255,255,255,.7); padding: 56px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-about h3 { font-size: 1.2rem; color: #fff; margin-bottom: 16px; }
.footer-about p { font-size: .9rem; line-height: 1.7; margin-bottom: 12px; }
.footer-col h4 { font-size: 1rem; color: #fff; margin-bottom: 16px; }
.footer-col a {
  display: block; font-size: .9rem; color: rgba(255,255,255,.6);
  padding: 6px 0; transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0;
  text-align: center; font-size: .85rem; color: rgba(255,255,255,.4);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,.4); transition: color .2s; }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }

/* ----- Mobile Nav ----- */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 16px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 12px 16px; }
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .qual-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero p { max-width: 100%; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { flex: 0 0 auto; width: 100%; max-width: 400px; }
  .about-content { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .timeline::before { left: 20px; }
  .timeline-dot { left: 20px; }
  .timeline-item, .timeline-item:nth-child(even) { flex-direction: row; padding-left: 50px; }
  .timeline-content { width: 100%; }
}

@media (max-width: 640px) {
  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 1.8rem; }
  .service-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .qual-grid { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col:nth-child(2) { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
  .footer-col:nth-child(2) h4 { grid-column: 1 / -1; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .section { padding: 48px 0; }
}

/* ----- FAQ Page ----- */
.faq-section { max-width: 800px; margin: 0 auto; padding: 60px 0; }
.faq-item { background: #fff; border-radius: 12px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.06); overflow: hidden; border: 1px solid #e5e7eb; }
.faq-q { padding: 18px 24px; font-size: 1rem; font-weight: 600; color: #1f2937; cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none; }
.faq-q::after { content: '+'; font-size: 1.3rem; color: #00529B; transition: transform .2s; }
.faq-item.open .faq-q::after { content: '\2212'; }
.faq-a { padding: 0 24px 18px; font-size: .93rem; color: #4b5563; line-height: 1.7; display: none; }
.faq-item.open .faq-a { display: block; }
