/* ========================================
   南能控股（福建省）有限公司 — 官网样式
   配色与风格与福建省生态产业协会官网一致
   ======================================== */

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

:root {
  --green-900: #1B5E20;
  --green-800: #2E7D32;
  --green-700: #388E3C;
  --green-600: #43A047;
  --green-500: #4CAF50;
  --green-300: #81C784;
  --green-200: #A5D6A7;
  --green-100: #C8E6C9;
  --green-50:  #E8F5E9;
  --green-25:  #F1F8E9;
  --white:    #ffffff;
  --gray-50:  #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-300: #E0E0E0;
  --gray-500: #9E9E9E;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-main: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-900); }

img { max-width: 100%; height: auto; }

ul { list-style: none; }

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

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-img { flex-shrink: 0; height: 42px; width: auto; object-fit: contain; }
.logo-text h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--green-900);
  line-height: 1.2;
  white-space: nowrap;
}
.logo-text .subtitle {
  font-size: 11px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav ul { display: flex; gap: 4px; }
.nav a {
  display: block;
  padding: 6px 14px;
  font-size: 14px;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: all .2s;
}
.nav a:hover, .nav a.active {
  color: var(--green-800);
  background: var(--green-50);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--green-800);
  border-radius: 1px;
  transition: all .3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 30%, #388E3C 60%, #43A047 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.05) 0%, transparent 50%);
}
.hero-content {
  position: relative; z-index: 2;
  color: var(--white);
  padding: 0 20px;
}
.hero-content h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.hero-content p {
  font-size: 20px;
  opacity: .9;
  margin-bottom: 40px;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .3s;
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--green-600);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--green-800);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(46,125,50,.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,.1);
}
.btn-sm { padding: 8px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--gray-50); }

.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.section-desc {
  font-size: 15px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 50px;
  align-items: start;
}

.about-text .lead {
  font-size: 17px;
  color: var(--green-800);
  margin-bottom: 16px;
  line-height: 1.9;
  padding-left: 16px;
  border-left: 4px solid var(--green-600);
}
.about-text p {
  margin-bottom: 14px;
  color: var(--gray-700);
  line-height: 1.85;
}
.about-stats {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}
.stat-item { text-align: center; flex: 1; }
.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--green-700);
}
.stat-label { font-size: 13px; color: var(--gray-500); }

.about-card { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 24px;
}
.info-card h3 {
  font-size: 16px;
  color: var(--green-800);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-200);
}
.info-card ul li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
}
.info-card ul li strong { color: var(--gray-900); }

/* ---------- Business Sectors ---------- */
.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.business-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.business-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-600), var(--green-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.business-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--green-200);
}
.business-card:hover::before { transform: scaleX(1); }

.business-icon { margin-bottom: 16px; }
.business-card h3 {
  font-size: 17px;
  color: var(--green-800);
  margin-bottom: 10px;
}
.business-card p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 12px;
}
.business-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.business-tag {
  font-size: 12px;
  color: var(--green-700);
  background: var(--green-50);
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid var(--green-100);
}

/* ---------- Core Technology ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tech-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .3s;
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
}
.tech-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.tech-illustration {
  height: 180px;
  background: var(--green-25);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--gray-100);
}
.tech-body {
  padding: 24px;
  flex: 1;
}
.tech-body h3 {
  font-size: 18px;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.tech-body p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 12px;
}
.tech-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tech-spec {
  font-size: 12px;
  color: var(--green-800);
  background: var(--green-50);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 1px solid var(--green-100);
}

/* ---------- News ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: all .3s;
  border: 1px solid var(--gray-100);
}
.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.news-date {
  flex-shrink: 0;
  width: 60px;
  height: 76px;
  background: var(--green-800);
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.news-date .day { font-size: 24px; font-weight: 700; line-height: 1; }
.news-date .month { font-size: 11px; margin-top: 2px; }
.news-date .year { font-size: 10px; margin-top: 2px; opacity: .8; }

.news-content h3 {
  font-size: 16px;
  color: var(--gray-900);
  margin-bottom: 6px;
  line-height: 1.5;
}
.news-content p {
  font-size: 14px;
  color: var(--gray-700);
  margin-bottom: 8px;
}
.news-link { font-size: 13px; font-weight: 600; }

/* ---------- Intellectual Property ---------- */
.ip-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}
.ip-stat {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  transition: all .3s;
}
.ip-stat:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--green-200);
}
.ip-stat-num {
  font-size: 40px;
  font-weight: 700;
  color: var(--green-700);
  line-height: 1;
}
.ip-stat-unit {
  font-size: 16px;
  color: var(--green-600);
  font-weight: 600;
}
.ip-stat-label {
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 8px;
}

.subsidiary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.subsidiary-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
  transition: all .3s;
}
.subsidiary-card:hover {
  border-color: var(--green-300);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.subsidiary-card.is-parent {
  background: linear-gradient(135deg, var(--green-50), var(--green-25));
  border-color: var(--green-200);
}
.subsidiary-card h4 {
  font-size: 14px;
  color: var(--gray-900);
  line-height: 1.5;
}
.subsidiary-card .sub-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--green-700);
  background: var(--green-100);
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 8px;
}
.subsidiary-card.is-parent .sub-tag {
  color: var(--white);
  background: var(--green-700);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-item svg { flex-shrink: 0; margin-top: 2px; }
.contact-item h4 {
  font-size: 16px;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.contact-item p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
}
.contact-item .postcode { color: var(--gray-500); font-size: 13px; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 30px;
}
.contact-form h3 {
  font-size: 20px;
  color: var(--gray-900);
  margin-bottom: 20px;
}
.form-row { display: flex; gap: 16px; }
.form-group { margin-bottom: 16px; flex: 1; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(76,175,80,.15);
}
.form-group textarea { resize: vertical; }

/* ---------- Footer ---------- */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 50px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand h3 { color: var(--white); font-size: 18px; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; }
.footer h4 { color: var(--white); font-size: 15px; margin-bottom: 14px; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul li a {
  font-size: 13px;
  color: var(--gray-500);
  transition: color .2s;
}
.footer-links ul li a:hover { color: var(--green-200); }

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.8;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
  box-shadow: var(--shadow-md);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--green-900); transform: translateY(-3px); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .business-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: 1fr; }
  .ip-stats { grid-template-columns: repeat(2, 1fr); }
  .subsidiary-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .menu-toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--white);
    padding: 20px;
    transform: translateX(100%);
    transition: transform .3s;
    z-index: 999;
    overflow-y: auto;
    height: calc(100vh - var(--header-h));
  }
  .nav.open { transform: translateX(0); }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav a { padding: 12px 16px; font-size: 16px; }

  .hero-content h2 { font-size: 32px; }
  .hero-content p { font-size: 16px; }
  .section { padding: 50px 0; }
  .section-header h2 { font-size: 26px; }

  .news-grid { grid-template-columns: 1fr; }
  .business-grid { grid-template-columns: 1fr; }
  .ip-stats { grid-template-columns: 1fr 1fr; }
  .subsidiary-grid { grid-template-columns: 1fr; }
  .about-stats { flex-wrap: wrap; gap: 20px; }
  .form-row { flex-direction: column; }
}

/* ==================== 南能小子·横幅互动角色 ==================== */
.hero-mascot {
  position: absolute;
  right: 5%;
  bottom: 90px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  cursor: pointer;
}

.hero-mascot-img-wrap {
  position: relative;
  width: 288px;
  height: 288px;
  flex-shrink: 0;
}

.hero-mascot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: mascotFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.25));
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}

.hero-mascot:hover .hero-mascot-img {
  transform: scale(1.1) translateY(-4px);
}

.hero-mascot-dot {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #66BB6A;
  border: 2px solid rgba(255,255,255,.92);
  animation: mascotDot 2.5s ease-in-out infinite;
}

@keyframes mascotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes mascotDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(102,187,106,.55); }
  50% { opacity: .85; box-shadow: 0 0 0 5px rgba(102,187,106,0); }
}

/* 对话气泡 */
.hero-mascot-bubble {
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px 16px 16px 4px;
  padding: 10px 16px;
  max-width: 200px;
  opacity: 0;
  transform: translateX(12px) scale(.95);
  transition: opacity .5s ease, transform .5s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
  margin-bottom: 18px;
}

.hero-mascot-bubble.show {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.hero-mascot-bubble span {
  font-size: 13px;
  color: rgba(255,255,255,.95);
  line-height: 1.5;
  white-space: nowrap;
}

/* 响应式 */
@media (max-width: 768px) {
  .hero-mascot {
    right: 12px;
    bottom: 72px;
  }
  .hero-mascot-img-wrap {
    width: 208px;
    height: 208px;
  }
  .hero-mascot-bubble {
    max-width: 150px;
    padding: 8px 12px;
    margin-bottom: 12px;
  }
  .hero-mascot-bubble span {
    font-size: 12px;
  }
}

/* ---------- 新闻动态·查看全部链接 ---------- */
.news-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.news-section-header .section-header { margin-bottom: 0; }
.news-view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 20px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: 24px;
  color: var(--green-700);
  font-size: 14px;
  font-weight: 600;
  transition: all .3s;
  white-space: nowrap;
}
.news-view-all:hover {
  background: var(--green-600);
  color: #fff;
  border-color: var(--green-600);
  transform: translateX(4px);
}

/* ---------- 新闻归档·时间线 ---------- */
.news-year-group { margin-bottom: 48px; }
.news-year-title {
  font-size: 22px;
  color: var(--green-900);
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green-200);
  margin-bottom: 24px;
}
.news-timeline {
  position: relative;
  padding-left: 28px;
}
.news-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: var(--green-200);
}
.news-timeline-item {
  position: relative;
  margin-bottom: 32px;
  padding-left: 24px;
}
.news-timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green-600);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--green-200);
}
.news-timeline-date {
  font-size: 14px;
  color: var(--green-700);
  font-weight: 600;
  margin-bottom: 8px;
}
.news-timeline-content {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, transform .3s;
}
.news-timeline-content:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.news-timeline-content h4 {
  font-size: 17px;
  color: var(--gray-900);
  margin-bottom: 10px;
  font-weight: 600;
}
.news-timeline-content p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.8;
}
.news-timeline-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.tag-important { background: #FFF3E0; color: #E65100; }
.tag-product { background: var(--green-100); color: var(--green-800); }
.tag-tech { background: #E3F2FD; color: #1565C0; }
.tag-company { background: var(--gray-100); color: var(--gray-700); }
.tag-policy { background: #FCE4EC; color: #C62828; }
.tag-ip { background: #F3E5F5; color: #7B1FA2; }

/* 新闻归档响应式 */
@media (max-width: 768px) {
  .news-section-header { flex-direction: column; gap: 16px; }
  .news-timeline { padding-left: 20px; }
  .news-timeline-item { padding-left: 16px; }
  .news-timeline-item::before { left: -20px; }
  .news-timeline-content { padding: 16px; }
}
