:root{
  --primary:var(--primary);
  --primary-light:var(--primary-light);
  --secondary:var(--secondary);
  --dark:var(--dark);
  --font:var(--font);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #65a30d;
  --primary-light: #84cc16;
  --secondary: #38bdf8;
  --dark: #0f172a;
  --light: #f8fafc;
  --gray: #64748b;
  --gradient: linear-gradient(135deg, #65a30d, #38bdf8);
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 10px 40px rgba(0,0,0,.06);
  --transition: all .3s ease;
  --font: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--dark); overflow-x: hidden; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============ HEADER ============ */
.header { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 15px 0; transition: var(--transition); }
.header.scrolled { background: rgba(15,23,42,.95); backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(0,0,0,.3); }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.header .logo { font-size: 1.4rem; font-weight: 800; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.3); display: flex; align-items: center; gap: 10px; }
.header .logo img { height: 40px; width: auto; }
.logo span { color: var(--primary-light); }
.nav { display: flex; align-items: center; }
.nav a { color: rgba(255,255,255,.85); margin-left: 30px; font-size: .95rem; font-weight: 500; transition: var(--transition); position: relative; }
.nav a:hover { color: #fff; }
.nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--gradient); transition: var(--transition); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: #fff; }
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.hamburger span { width: 28px; height: 3px; background: #fff; border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ HERO ============ */
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-position: center; background-size: cover; background-attachment: fixed; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); pointer-events: none; }
.hero-content { position: relative; z-index: 2; text-align: center; color: #fff; max-width: 800px; padding: 0 20px; }
.hero-content h1 { font-size: 4rem; font-weight: 900; margin-bottom: 20px; line-height: 1.1; text-shadow: 0 4px 30px rgba(0,0,0,.3); }
.hero-content h1 span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-content p { font-size: 1.3rem; margin-bottom: 35px; opacity: .9; }
.btn { display: inline-block; padding: 16px 40px; border-radius: 50px; font-weight: 700; font-size: 1rem; transition: var(--transition); border: none; cursor: pointer; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 30px rgba(101,163,13,.4); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(101,163,13,.5); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-lg { padding: 18px 48px; font-size: 1.1rem; }
.hero-scroll { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 2; color: #fff; text-align: center; animation: bounce 2s infinite; }
.hero-scroll span { display: block; font-size: .8rem; margin-bottom: 8px; opacity: .7; }
.hero-scroll .arrow { width: 24px; height: 24px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); margin: 0 auto; opacity: .7; }
@keyframes bounce { 0%,20%,50%,80%,100% { transform: translateX(-50%) translateY(0); } 40% { transform: translateX(-50%) translateY(-15px); } 60% { transform: translateX(-50%) translateY(-8px); } }

/* ============ SECTIONS ============ */
.section { padding: 120px 0; position: relative; }
.section.light { background: var(--light); }
.section.dark { background: var(--dark); color: #fff; }
.section.dark .section-subtitle { color: rgba(255,255,255,.6); }
.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; text-align: center; }
.section-title span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-subtitle { text-align: center; color: var(--gray); font-size: 1.1rem; margin-bottom: 60px; }

/* ============ SERVICES ============ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 30px; }
.service-card { background: #fff; border-radius: 20px; padding: 40px 30px; text-align: center; box-shadow: var(--shadow); transition: .5s; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--gradient); }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 60px rgba(101,163,13,.15); }
.service-icon { width: 80px; height: 80px; border-radius: 20px; background: var(--gradient); display: flex; align-items: center; justify-content: center; margin: 0 auto 25px; font-size: 2rem; color: #fff; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.service-card p { color: var(--gray); font-size: .95rem; }

/* ============ PARALLAX + PROJECTS ============ */
.parallax-section { position: relative; overflow: hidden; }
.parallax-bg { position: absolute; inset: 0; background-attachment: fixed; background-size: cover; background-position: center; z-index: 0; }
.parallax-section .section { background: rgba(15,23,42,.85); color: #fff; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 25px; }
.project-item { position: relative; border-radius: 16px; overflow: hidden; height: 300px; cursor: pointer; }
.project-item .project-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: .5s; }
.project-item:hover .project-img { transform: scale(1.1); }
.project-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.8), transparent); display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; color: #fff; pointer-events: none; }
.project-overlay h3 { font-size: 1.3rem; margin-bottom: 5px; }
.project-overlay p { font-size: .9rem; opacity: .8; }

/* ============ ADVANTAGE ============ */
.adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; text-align: center; }
.adv-item .num { font-size: 3rem; font-weight: 900; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: inline-block; }
.adv-item h4 { font-size: 1.1rem; margin: 10px 0 8px; }
.adv-item p { color: rgba(255,255,255,.6); font-size: .9rem; }

/* ============ HOME NEWS ============ */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.news-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: .3s; display: block; color: inherit; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 15px 50px rgba(0,0,0,.1); }
.news-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.news-body { padding: 25px; }
.news-date { color: var(--primary); font-size: .85rem; font-weight: 600; }
.news-body h3 { font-size: 1.1rem; margin: 10px 0; }
.news-body h3 a { color: inherit; }
.news-body h3 a:hover { color: var(--primary); }
.news-body p { color: var(--gray); font-size: .9rem; }
.news-more { text-align: center; margin-top: 40px; }

/* ============ FOOTER ============ */
.footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-brand h3 { color: #fff; font-size: 1.5rem; margin-bottom: 15px; }
.footer-brand h3 span { color: var(--primary-light); }
.footer-brand p { font-size: .9rem; line-height: 1.8; }
.footer-col h4 { color: #fff; font-size: 1.1rem; margin-bottom: 20px; }
.footer-col a { display: block; color: rgba(255,255,255,.6); margin-bottom: 12px; font-size: .9rem; transition: var(--transition); }
.footer-col a:hover { color: var(--primary-light); padding-left: 5px; }
.footer-contact p { margin-bottom: 10px; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 25px; text-align: center; font-size: .85rem; }

/* ============ PAGE BANNER ============ */
.page-header { height: 50vh; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; position: relative; }
.page-header-bg { position: absolute; inset: 0; background-position: center; background-size: cover; background-attachment: fixed; }
.page-header-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); pointer-events: none; }
.page-header-inner { position: relative; z-index: 1; }
.page-header-inner h1 { font-size: 3.5rem; font-weight: 900; margin-bottom: 10px; }
.page-header-inner p { font-size: 1.2rem; opacity: .9; }

/* ============ ABOUT ============ */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { width: 100%; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.1); }
.about-image img { width: 100%; display: block; }
.about-text h2 { font-size: 2rem; margin-bottom: 20px; }
.about-text h2 span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.about-text p { color: var(--gray); margin-bottom: 15px; line-height: 1.8; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.stat-item { text-align: center; padding: 20px; background: var(--light); border-radius: 12px; }
.stat-item .num { font-size: 2rem; font-weight: 900; color: var(--primary); }
.stat-item p { color: var(--gray); font-size: .85rem; margin: 0; }

/* 发展历程 */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; }
.timeline .tl-item { background: #fff; border-radius: 20px; padding: 40px 30px; text-align: center; box-shadow: var(--shadow); transition: .5s; position: relative; overflow: hidden; }
.timeline .tl-item::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--gradient); }
.timeline .tl-item:hover { transform: translateY(-10px); box-shadow: 0 20px 60px rgba(101,163,13,.15); }
.timeline .tl-year { font-size: 1.8rem; font-weight: 900; color: var(--primary); display: block; margin-bottom: 10px; }
.timeline .tl-item h3 { font-size: 1.2rem; margin-bottom: 8px; }
.timeline .tl-item p { color: var(--gray); font-size: .95rem; }

/* ============ PRODUCTS (业务领域) ============ */
.products-header { text-align: center; margin-bottom: 60px; }
.product-card-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 40px; }
.product-card-wide:nth-child(even) { direction: rtl; }
.product-card-wide:nth-child(even) .product-body { direction: ltr; }
.product-card-wide .product-img { width: 100%; height: 100%; min-height: 350px; background-size: cover; background-position: center; }
.product-body { padding: 50px; display: flex; flex-direction: column; justify-content: center; }
.product-body h3 { font-size: 1.8rem; margin-bottom: 15px; }
.product-body p { color: var(--gray); margin-bottom: 15px; }
.product-tag { display: inline-block; padding: 5px 15px; background: var(--gradient); color: #fff; border-radius: 20px; font-size: .8rem; font-weight: 600; margin-bottom: 15px; align-self: flex-start; }

/* ============ NEWS LIST ============ */
.news-list { max-width: 900px; margin: 0 auto; }
.news-article { display: grid; grid-template-columns: 300px 1fr; gap: 30px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 30px; transition: .3s; }
.news-article:hover { transform: translateX(5px); box-shadow: 0 15px 50px rgba(0,0,0,.1); }
.news-article .news-img { width: 100%; height: 100%; min-height: 220px; background-size: cover; background-position: center; }
.news-article-body { padding: 30px 30px 30px 0; display: flex; flex-direction: column; justify-content: center; }
.news-article-body .tag { display: inline-block; padding: 4px 12px; background: rgba(101,163,13,.1); color: var(--primary); border-radius: 20px; font-size: .8rem; font-weight: 600; margin-bottom: 10px; align-self: flex-start; }
.news-article-body h3 { font-size: 1.3rem; margin-bottom: 10px; }
.news-article-body h3 a { color: inherit; }
.news-article-body h3 a:hover { color: var(--primary); }
.news-article-body p { color: var(--gray); font-size: .9rem; }

/* ============ CONTACT ============ */
.contact-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info h3 { font-size: 1.5rem; margin-bottom: 20px; }
.contact-info p { color: var(--gray); margin-bottom: 30px; }
.contact-detail { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.contact-detail .icon { width: 50px; height: 50px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; font-size: 1.2rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 14px 18px; border: 2px solid #e2e8f0; border-radius: 12px; font-size: .95rem; margin-bottom: 15px; transition: .3s; outline: none; font-family: inherit; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(101,163,13,.1); }
.contact-form textarea { height: 140px; resize: vertical; }
.map-placeholder { width: 100%; height: 400px; border-radius: 16px; overflow: hidden; background: var(--gray-100); display: flex; align-items: center; justify-content: center; color: var(--gray-400); }
.map-placeholder iframe { width: 100%; height: 100%; border: 0; }

/* ============ CMS SHARED: 列表 / 详情 / 分页 ============ */
.cms-section{padding:140px 0 64px;}
.cms-section .container{max-width:1200px;margin:0 auto;padding:0 20px;}
.cms-section .section-title{font-size:30px;font-weight:800;text-align:center;margin-bottom:8px;}
.cms-section .section-title span{color:var(--primary);}
.cms-section .section-subtitle{text-align:center;color:#888;margin-bottom:36px;}
.cms-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:26px;}
.cms-card{display:block;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 8px 26px rgba(0,0,0,.07);transition:.25s;text-decoration:none;color:inherit;}
.cms-card:hover{transform:translateY(-6px);box-shadow:0 16px 40px rgba(0,0,0,.12);}
.cms-card img{width:100%;height:200px;object-fit:cover;display:block;}
.cms-card h3{margin:0;padding:18px 18px 4px;font-size:18px;}
.cms-card p{padding:0 18px 18px;color:#777;font-size:14px;margin:0;}
.cms-detail{max-width:860px;margin:0 auto;padding:0 20px;}
.cms-detail img{max-width:100%;border-radius:14px;margin:18px 0;}
.cms-detail h1{font-size:34px;margin:10px 0 6px;}
.cms-detail .lead{color:#888;font-size:16px;}
.cms-content{line-height:1.9;color:#444;margin-top:18px;}
.cms-content img{max-width:100%;}
.cms-back{display:inline-block;margin:8px 0 18px;color:var(--primary);text-decoration:none;font-weight:600;}
.cms-pager{margin:34px 0;text-align:center;}
.cms-pager a,.cms-pager span{padding:8px 14px;margin:0 3px;border-radius:8px;background:#fff;color:#444;text-decoration:none;box-shadow:0 2px 8px rgba(0,0,0,.06);}
.cms-pager .active{background:var(--primary);color:#fff;}

/* ============ FORM ============ */
.form-alert{padding:12px 14px;border-radius:10px;margin-bottom:12px;font-size:14px;}
.form-alert-ok{background:#eafaf0;color:#1c7a43;}
.form-alert-err{background:#fdecea;color:#b42318;}
.form-alert-err ul{margin:6px 0 0;padding-left:18px;}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
  .hero-content h1 { font-size: 3rem; }
  .about-wrap, .contact-page-grid { grid-template-columns: 1fr; }
  .product-card-wide { grid-template-columns: 1fr; }
  .product-card-wide:nth-child(even) { direction: ltr; }
  .product-card-wide .product-img { min-height: 250px; }
  .news-article { grid-template-columns: 1fr; }
  .news-article .news-img { min-height: 200px; }
  .news-article-body { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-header-inner h1 { font-size: 2.5rem; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: rgba(15,23,42,.98); padding: 20px; }
  .nav a { margin: 10px 0; }
  .hamburger { display: flex; }
  .hero-content h1 { font-size: 2.2rem; }
  .section { padding: 80px 0; }
  .section-title { font-size: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .page-header-inner h1 { font-size: 2rem; }
}
