/* ===== 寰能能源 - 主样式表 ===== */
:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --primary-light: #e8f0fe;
  --green: #34a853;
  --green-light: #e6f4ea;
  --text: #333;
  --text-light: #666;
  --bg: #fff;
  --bg-gray: #f5f7fa;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 12px;
  --max-width: 1200px;
  --header-h: 70px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; color: var(--text); line-height: 1.6; background: var(--bg); }

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

/* ===== Header ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.97); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); height: var(--header-h);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { flex-shrink: 0; }
.logo-text h1 { font-size: 20px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.logo-sub { font-size: 11px; color: var(--text-light); display: block; }
.nav { display: flex; gap: 6px; }
.nav a {
  padding: 8px 18px; border-radius: 8px; text-decoration: none;
  color: var(--text); font-size: 15px; font-weight: 500;
  transition: all .25s;
}
.nav a:hover, .nav a.active { background: var(--primary-light); color: var(--primary); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ===== Hero ===== */
.hero {
  padding-top: var(--header-h); min-height: 85vh;
  display: flex; align-items: center; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #0a2540 0%, #1a73e8 50%, #1557b0 100%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(52,168,83,.15) 0%, transparent 60%),
              radial-gradient(ellipse at 30% 30%, rgba(255,255,255,.05) 0%, transparent 50%);
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 720px; color: #fff; }
.hero-content h1 { font-size: 52px; font-weight: 800; line-height: 1.15; margin-bottom: 16px; letter-spacing: -1px; }
.hero-subtitle { font-size: 22px; font-weight: 500; margin-bottom: 10px; opacity: .9; }
.hero-desc { font-size: 17px; opacity: .75; margin-bottom: 36px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px; border-radius: 50px; font-size: 16px; font-weight: 600;
  text-decoration: none; transition: all .3s; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: #fff; color: var(--primary); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,.2); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn-small { padding: 8px 20px; font-size: 14px; border-color: var(--primary); color: var(--primary); }
.btn-small:hover { background: var(--primary); color: #fff; }

/* ===== Section ===== */
.section { padding: 80px 0; }
.section:nth-child(even) { background: var(--bg-gray); }
.section-title { font-size: 32px; font-weight: 700; text-align: center; margin-bottom: 8px; color: var(--text); }
.section-desc { text-align: center; color: var(--text-light); margin-bottom: 48px; font-size: 17px; }

/* ===== Business Grid ===== */
.business-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.business-card {
  background: #fff; border-radius: var(--radius); padding: 36px 28px;
  text-align: center; border: 1px solid var(--border);
  transition: all .3s; cursor: default;
}
.business-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--primary); }
.card-icon { margin-bottom: 20px; }
.business-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; color: var(--text); }
.business-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ===== Advantages ===== */
.advantages-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.advantage-item { text-align: center; padding: 30px 20px; }
.advantage-num { font-size: 42px; font-weight: 800; color: var(--primary); opacity: .3; display: block; margin-bottom: 12px; }
.advantage-item h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.advantage-item p { font-size: 14px; color: var(--text-light); }

/* ===== Social ===== */
.social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; justify-items: center; }
.social-card { text-align: center; width: 100%; max-width: 340px; }
.social-card h3 { font-size: 18px; margin: 12px 0 16px; }
.qr-placeholder { display: flex; justify-content: center; }
.qr-box { width: 200px; height: 200px; background: #fff; border: 2px dashed #ccc; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.qr-pattern { width: 160px; height: 160px; background: repeating-conic-gradient(#1a73e8 0% 25%, #fff 0% 50%) 0 0 / 16px 16px; opacity: .15; position: absolute; }
.qr-douyin { background: repeating-conic-gradient(#000 0% 25%, #fff 0% 50%) 0 0 / 16px 16px; opacity: .1; }
.qr-tip { position: relative; z-index: 1; font-size: 13px; color: var(--text-light); background: rgba(255,255,255,.9); padding: 4px 12px; border-radius: 4px; }
.social-info { font-size: 13px; color: var(--text-light); margin-top: 8px; }

/* ===== Beian ===== */
.beian-card {
  background: #fff; border-radius: var(--radius); padding: 36px;
  border: 1px solid var(--border); display: flex; align-items: center; gap: 30px;
  max-width: 700px; margin: 0 auto; flex-wrap: wrap; justify-content: center;
}
.beian-icon { flex-shrink: 0; }
.beian-info p { font-size: 14px; margin-bottom: 6px; }
.beian-info p:last-child { margin-bottom: 0; }

/* ===== Page Banner ===== */
.page-banner {
  padding: calc(var(--header-h) + 40px) 0 50px;
  background: linear-gradient(135deg, #0a2540, #1a73e8);
  color: #fff; text-align: center;
}
.page-banner h1 { font-size: 36px; font-weight: 700; margin-bottom: 8px; }
.page-banner p { font-size: 16px; opacity: .8; }
.page-content { padding: 60px 0; min-height: 40vh; }

/* ===== Business Detail ===== */
.biz-detail { margin-bottom: 50px; }
.biz-detail:last-child { margin-bottom: 0; }
.biz-detail h3 { font-size: 22px; color: var(--primary); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-light); }
.biz-detail p { font-size: 15px; color: var(--text-light); line-height: 1.8; margin-bottom: 12px; }
.biz-detail ul { list-style: none; padding: 0; }
.biz-detail li { padding: 8px 0 8px 24px; position: relative; font-size: 14px; color: var(--text-light); }
.biz-detail li::before { content: '▸'; position: absolute; left: 0; color: var(--primary); font-weight: bold; }
.biz-flow { display: flex; gap: 16px; flex-wrap: wrap; margin: 20px 0; }
.biz-flow span { background: var(--primary-light); color: var(--primary); padding: 8px 20px; border-radius: 20px; font-size: 14px; font-weight: 500; }

/* ===== About ===== */
.about-intro { max-width: 800px; margin: 0 auto; }
.about-intro p { font-size: 15px; line-height: 1.9; color: var(--text-light); margin-bottom: 16px; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-top: 40px; }
.about-stat { text-align: center; padding: 30px 20px; background: var(--bg-gray); border-radius: var(--radius); }
.about-stat .num { font-size: 36px; font-weight: 800; color: var(--primary); }
.about-stat .label { font-size: 14px; color: var(--text-light); margin-top: 4px; }
.about-qual { margin-top: 40px; }
.about-qual h3 { font-size: 20px; margin-bottom: 16px; color: var(--primary); }
.about-qual ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; list-style: none; }
.about-qual li { padding: 12px 16px; background: var(--bg-gray); border-radius: 8px; font-size: 14px; border-left: 3px solid var(--primary); }

/* ===== Cases ===== */
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.case-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: all .3s; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-img { height: 200px; background: linear-gradient(135deg, var(--primary-light), #d2e3fc); display: flex; align-items: center; justify-content: center; }
.case-img svg { opacity: .4; }
.case-body { padding: 24px; }
.case-body h3 { font-size: 18px; margin-bottom: 8px; }
.case-body .case-tag { display: inline-block; background: var(--primary-light); color: var(--primary); padding: 3px 10px; border-radius: 4px; font-size: 12px; margin-bottom: 10px; }
.case-body p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.contact-item { text-align: center; padding: 30px 20px; background: var(--bg-gray); border-radius: var(--radius); }
.contact-item h3 { font-size: 16px; color: var(--text-light); margin: 12px 0 8px; }
.contact-item .val { font-size: 20px; font-weight: 600; color: var(--text); }

/* ===== Beian Page ===== */
.beian-detail { max-width: 700px; margin: 0 auto; }
.beian-detail table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.beian-detail td, .beian-detail th { padding: 12px 16px; border: 1px solid var(--border); font-size: 14px; text-align: left; }
.beian-detail th { background: var(--bg-gray); font-weight: 600; width: 140px; }
.beian-entry { background: var(--primary-light); border-radius: 12px; padding: 24px; margin-top: 30px; text-align: center; }
.beian-entry a { color: var(--primary); text-decoration: none; font-weight: 500; }
.beian-entry a:hover { text-decoration: underline; }

/* ===== Footer ===== */
.footer { background: #1a1a2e; color: rgba(255,255,255,.7); padding: 50px 0 30px; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-bottom: 30px; }
.footer-info h3 { color: #fff; font-size: 17px; margin-bottom: 12px; }
.footer-info p { font-size: 13px; margin-bottom: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: rgba(255,255,255,.6); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 12px; }
.footer-bottom a { color: rgba(255,255,255,.5); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav { display: none; 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); }
  .nav.open { display: flex; }
  .menu-toggle { display: flex; }
  .hero-content h1 { font-size: 32px; }
  .hero-subtitle { font-size: 17px; }
  .hero { min-height: 60vh; }
  .section-title { font-size: 26px; }
  .business-grid { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .beian-card { flex-direction: column; text-align: center; }
  .page-banner h1 { font-size: 28px; }
}
