/* ============ Touch New Energy — Global Styles ============ */
:root {
  --navy: #0b1b33;
  --navy-2: #0e2240;
  --navy-3: #132c52;
  --teal: #18c5d9;
  --teal-bright: #2ee6c8;
  --text: #1d2b3a;
  --text-light: #5a6b7d;
  --bg-light: #f4f8fb;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 27, 51, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Language visibility ---------- */
body.lang-zh .en, body.lang-en .zh { display: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 27, 51, 0.92);
  backdrop-filter: blur(10px);
  transition: background 0.3s;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.brand-text strong { display: block; color: var(--white); font-size: 1.05rem; letter-spacing: 0.5px; line-height: 1.25; }
.brand-text small { display: block; color: rgba(255,255,255,0.65); font-size: 0.72rem; line-height: 1.3; }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.main-nav a:hover { color: var(--teal-bright); border-bottom-color: var(--teal-bright); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  background: transparent;
  border: 1.5px solid var(--teal);
  color: var(--teal-bright);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s;
}
.lang-toggle:hover { background: var(--teal); color: var(--navy); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--white); border-radius: 2px; transition: all 0.3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: url("../images/hero.webp") center / cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(11,27,51,0.85) 0%, rgba(11,27,51,0.55) 55%, rgba(11,27,51,0.35) 100%);
}
.hero-content { position: relative; z-index: 2; color: var(--white); padding: 120px 0 80px; }
.hero-kicker { color: var(--teal-bright); font-weight: 600; letter-spacing: 2px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.25; max-width: 820px; }
.hero-tagline {
  margin-top: 16px;
  font-size: clamp(1.08rem, 2.2vw, 1.5rem);
  color: var(--teal-bright);
  font-weight: 700;
  letter-spacing: 2px;
}
.hero-sub { margin-top: 18px; max-width: 680px; color: rgba(255,255,255,0.85); font-size: 1rem; }
.hero-cta { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 34px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.98rem;
  transition: all 0.28s;
}
.btn-primary { background: linear-gradient(90deg, var(--teal), var(--teal-bright)); color: var(--navy); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(46,230,200,0.35); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.6); color: var(--white); }
.btn-ghost:hover { border-color: var(--teal-bright); color: var(--teal-bright); }

/* ---------- Stats bar ---------- */
.stats-bar { background: var(--navy); padding: 36px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-size: clamp(1.5rem, 2.6vw, 2.2rem); color: var(--teal-bright); font-weight: 800; }
.stat span { color: rgba(255,255,255,0.7); font-size: 0.85rem; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-head { text-align: center; margin-bottom: 54px; }
.section-tag {
  display: inline-block;
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 4px;
  font-size: 0.8rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--navy); }
.section-sub { color: var(--text-light); margin-top: 10px; font-size: 1.02rem; }

/* ---------- About ---------- */
.about { background: var(--bg-light); }
.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
  border-top: 4px solid var(--teal);
}
.about-card:hover { transform: translateY(-8px); }
.about-icon { font-size: 2rem; margin-bottom: 14px; }
.about-card h3 { color: var(--navy); font-size: 1.12rem; margin-bottom: 10px; }
.about-card p { color: var(--text-light); font-size: 0.93rem; }

/* ---------- Products ---------- */
.product-group-title {
  color: var(--navy);
  font-size: 1.3rem;
  margin: 46px 0 22px;
  padding-left: 14px;
  border-left: 5px solid var(--teal);
}
.product-group-title:first-of-type { margin-top: 0; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-grid.two { grid-template-columns: repeat(2, 1fr); }
.product-card {
  background: var(--white);
  border: 1px solid #e6edf3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(11,27,51,0.16); }
.product-img { aspect-ratio: 16/10; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-body { padding: 24px; flex: 1; }
.product-body h4 { color: var(--navy); font-size: 1.08rem; margin-bottom: 10px; }
.product-desc { color: var(--text-light); font-size: 0.92rem; margin-bottom: 16px; }
.spec-list { list-style: none; border-top: 1px dashed #dfe7ee; }
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 0.88rem;
  color: var(--text-light);
  border-bottom: 1px dashed #eef3f7;
}
.spec-list b { color: var(--navy); text-align: right; }

/* ---------- Solutions (detailed scenarios) ---------- */
.solutions { background: var(--navy-2); }
.solutions .section-head h2, .solutions .section-head .section-sub { color: var(--white); }
.solutions .section-sub { color: rgba(255,255,255,0.7); }

.scenario { padding: 46px 0; border-top: 1px solid rgba(255,255,255,0.08); }
.scenario:first-of-type { border-top: none; }

.scenario-head { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.sc-num {
  font-size: 2.2rem; font-weight: 800; color: transparent;
  -webkit-text-stroke: 1.5px var(--teal);
  line-height: 1; flex-shrink: 0;
}
.scenario-head h3 { color: var(--white); font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.sc-en-tag { color: var(--teal-bright); font-size: 0.82rem; letter-spacing: 1px; margin-top: 4px; }

.sc-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: start; }
.sc-grid.flip .sc-media { order: 2; }
.sc-media { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 90px; }
.sc-media img { border-radius: var(--radius); width: 100%; box-shadow: 0 10px 26px rgba(0,0,0,0.35); }

.sc-body h4 { color: var(--teal-bright); font-size: 1.05rem; margin: 26px 0 14px; }
.sc-body h4:first-child { margin-top: 0; }

.feature-list { list-style: none; }
.feature-list li {
  position: relative;
  padding: 7px 0 7px 26px;
  color: rgba(255,255,255,0.82);
  font-size: 0.93rem;
}
.feature-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 7px;
  color: var(--teal-bright); font-weight: 800;
}
.feature-list li b { color: var(--white); }
.feature-list.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }

.mini-cards { display: grid; gap: 14px; }
.mini-cards.three { grid-template-columns: repeat(3, 1fr); }
.mini-cards.two { grid-template-columns: repeat(2, 1fr); }
.mini-card {
  background: var(--navy-3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px;
}
.mini-card b { display: block; color: var(--teal-bright); font-size: 0.95rem; margin-bottom: 6px; }
.mini-card span { color: rgba(255,255,255,0.72); font-size: 0.85rem; line-height: 1.6; }

.sc-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.sc-stat { background: rgba(24,197,217,0.08); border-left: 3px solid var(--teal); border-radius: 0 10px 10px 0; padding: 12px 16px; }
.sc-stat b { display: block; color: var(--teal-bright); font-size: 1.12rem; font-weight: 800; }
.sc-stat span { color: rgba(255,255,255,0.65); font-size: 0.78rem; line-height: 1.5; }

.config-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.config-table th, .config-table td { padding: 9px 12px; text-align: left; }
.config-table th { color: var(--teal-bright); border-bottom: 2px solid var(--teal); font-weight: 700; white-space: nowrap; }
.config-table td { color: rgba(255,255,255,0.82); border-bottom: 1px solid rgba(255,255,255,0.08); }
.config-table tr td:first-child { color: var(--white); font-weight: 600; }

.vs-bar { display: flex; align-items: stretch; gap: 12px; margin: 4px 0 16px; }
.vs-item { flex: 1; border-radius: 12px; padding: 14px 16px; }
.vs-item b { display: block; font-size: 1.2rem; font-weight: 800; }
.vs-item span { font-size: 0.78rem; line-height: 1.5; }
.vs-item.bad { background: rgba(255,99,99,0.12); border: 1px solid rgba(255,99,99,0.35); }
.vs-item.bad b { color: #ff8f8f; }
.vs-item.bad span { color: rgba(255,255,255,0.65); }
.vs-item.good { background: rgba(46,230,200,0.12); border: 1px solid rgba(46,230,200,0.4); }
.vs-item.good b { color: var(--teal-bright); }
.vs-item.good span { color: rgba(255,255,255,0.72); }
.vs-arrow { align-self: center; color: var(--teal-bright); font-size: 1.6rem; font-weight: 800; }

.sc-note {
  margin-top: 18px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  line-height: 1.7;
}

/* ---------- Solution documents (downloads) ---------- */
.file-list { list-style: none; display: grid; gap: 10px; }
.file-item {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 12px 16px;
}
.file-icon {
  flex-shrink: 0;
  background: var(--teal);
  color: var(--navy);
  font-size: 0.7rem; font-weight: 800;
  padding: 4px 8px; border-radius: 6px;
  letter-spacing: 0.5px;
}
.file-name { flex: 1; color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.file-download {
  flex-shrink: 0;
  color: var(--navy);
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
  font-size: 0.8rem; font-weight: 700;
  padding: 6px 16px; border-radius: 999px;
  text-decoration: none;
  transition: transform 0.25s;
}
.file-download:hover { transform: translateY(-2px); }

/* ---------- Investment ---------- */
.invest-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.invest-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.invest-body h2 { color: var(--navy); font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 8px 0 16px; }
.invest-lead { color: var(--text-light); margin-bottom: 28px; }
.invest-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.invest-stat { background: var(--bg-light); border-radius: 12px; padding: 16px 12px; text-align: center; }
.invest-stat strong { display: block; color: var(--teal); font-size: 1.25rem; font-weight: 800; }
.invest-stat span { font-size: 0.76rem; color: var(--text-light); }
.revenue-channels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.channel {
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 18px;
  border-radius: 999px;
  text-align: center;
}

/* ---------- Contact ---------- */
.contact { background: var(--bg-light); }
.contact-inner { text-align: center; }
.contact-inner h2 { color: var(--navy); font-size: clamp(1.5rem, 3vw, 2.1rem); }
.contact-lead { color: var(--text-light); margin: 12px auto 42px; max-width: 620px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.contact-card:hover { transform: translateY(-6px); }
.contact-icon { font-size: 1.9rem; margin-bottom: 12px; }
.contact-card h4 { color: var(--navy); margin-bottom: 6px; }
.contact-card p { color: var(--text-light); font-size: 0.92rem; }
.contact-card a { color: var(--navy); font-weight: 700; text-decoration: none; border-bottom: 1.5px solid var(--teal); transition: color 0.25s; }
.contact-card a:hover { color: var(--teal); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 40px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-logo { width: 46px; height: 46px; border-radius: 10px; }
.footer-brand strong { display: block; color: var(--white); }
.footer-brand p { font-size: 0.82rem; color: var(--teal-bright); }
.footer-meta { text-align: right; }
.copyright { font-size: 0.85rem; }
.icp { display: inline-block; margin-top: 6px; color: rgba(255,255,255,0.55); font-size: 0.8rem; text-decoration: none; transition: color 0.25s; }
.icp:hover { color: var(--teal-bright); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ================= Tablet (768–1024px) ================= */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .invest-grid { grid-template-columns: 1fr; gap: 32px; }
  .invest-stats { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .sc-grid, .sc-grid.flip { grid-template-columns: 1fr; }
  .sc-grid.flip .sc-media { order: 0; }
  .sc-media { position: static; flex-direction: row; }
  .sc-media img { width: calc(50% - 7px); object-fit: cover; }
  .mini-cards.three { grid-template-columns: 1fr; }
}

/* ================= Mobile (<768px) ================= */
@media (max-width: 767px) {
  .section { padding: 64px 0; }
  .header-inner { height: 62px; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 62px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .main-nav.open { max-height: 320px; border-top: 1px solid rgba(255,255,255,0.1); }
  .main-nav a { padding: 15px 6%; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 1rem; }

  .hero { min-height: 86vh; }
  .hero-content { padding: 100px 0 60px; }
  .hero-cta .btn { width: 100%; text-align: center; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .product-grid, .product-grid.two { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .revenue-channels { grid-template-columns: 1fr; }
  .invest-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-meta { text-align: center; }
  .sc-media { flex-direction: column; }
  .sc-media img { width: 100%; }
  .feature-list.two-col { grid-template-columns: 1fr; }
  .mini-cards.two { grid-template-columns: 1fr; }
  .sc-stats { grid-template-columns: 1fr; }
  .vs-bar { flex-direction: column; }
  .vs-arrow { transform: rotate(90deg); text-align: center; }
  .config-table { font-size: 0.8rem; }
  .config-table th, .config-table td { padding: 7px 8px; }
}
