/* ============================================
   上海晓江南园林有限公司 - 网站样式
   PC/手机自适应
   ============================================ */

/* CSS变量 */
:root {
  --primary: #2d7d46;
  --primary-dark: #1e5c32;
  --primary-light: #4a9e65;
  --accent: #8BC34A;
  --accent-light: #aed581;
  --gold: #c8a45c;
  --gold-light: #dfc088;
  --dark: #1a1a2e;
  --dark-light: #2d2d44;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --bg-white: #ffffff;
  --bg-light: #f8f9f5;
  --bg-section: #f0f2eb;
  --border: #e0e0d8;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
  --font-main: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   顶部导航栏
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 10px rgba(0,0,0,0.06);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo img {
  height: 48px;
  width: auto;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}

.logo-text span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0;
  margin-top: -2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  padding: 8px 18px;
  font-size: 15px;
  color: var(--text);
  border-radius: 6px;
  position: relative;
  font-weight: 500;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

.nav a:hover::after,
.nav a.active::after {
  width: 24px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

.header-phone svg {
  width: 18px;
  height: 18px;
}

/* 汉堡菜单 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Banner / 轮播
   ============================================ */
.banner {
  margin-top: 80px;
  position: relative;
  height: 600px;
  min-height: 500px;
  overflow: hidden;
  background: #1a1a2e;
}

.banner-slider {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.banner-slide {
  width: 100vw;
  height: 100%;
  position: relative;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-slide .overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg, rgba(26,26,46,0.72) 0%, rgba(45,125,70,0.35) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-content {
  text-align: center;
  color: #fff;
  padding: 20px;
  position: relative;
  z-index: 3;
}

.banner-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 4px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.banner-content p {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 32px;
  letter-spacing: 2px;
}

.banner-btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
  transition: var(--transition);
}

.banner-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45,125,70,0.4);
}

.banner-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.banner-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}

.banner-dots span.active {
  background: #fff;
  width: 30px;
  border-radius: 5px;
}

.banner-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
  z-index: 5;
}

.banner-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: all;
  transition: var(--transition);
  color: #fff;
  font-size: 20px;
}

.banner-arrow:hover {
  background: rgba(255,255,255,0.4);
}

/* ============================================
   通用区块标题
   ============================================ */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-section);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 32px;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.section-header p {
  font-size: 15px;
  color: var(--text-light);
  margin-top: 16px;
}

.section-header .en {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-top: 6px;
}

/* ============================================
   公司介绍 (首页)
   ============================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-intro-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.about-intro-img img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-intro-img:hover img {
  transform: scale(1.05);
}

.about-intro-img .badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
}

.about-intro-text h3 {
  font-size: 26px;
  color: var(--text);
  margin-bottom: 20px;
}

.about-intro-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.9;
  font-size: 15px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.stat-item {
  text-align: center;
  padding: 20px 10px;
  background: var(--bg-light);
  border-radius: var(--radius);
}

.stat-item .num {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.stat-item .num span {
  font-size: 16px;
  font-weight: 400;
}

.stat-item .label {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

/* ============================================
   产品展示
   ============================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.product-card-img {
  height: 220px;
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.08);
}

.product-card-body {
  padding: 20px;
}

.product-card-body h4 {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 600;
}

.product-card-body p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-body .tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--bg-light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 12px;
  margin-top: 10px;
}

/* ============================================
   案例展示
   ============================================ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  background: #fff;
  display: block;
  text-decoration: none;
  color: inherit;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.case-card-img {
  height: 260px;
  overflow: hidden;
  position: relative;
}

.case-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.case-card:hover .case-card-img img {
  transform: scale(1.08);
}

.case-card-img .case-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.case-card:hover .case-overlay {
  opacity: 1;
}

.case-overlay span {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.case-card-body {
  padding: 20px;
}

.case-card-body h4 {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 600;
}

.case-card-body p {
  font-size: 13px;
  color: var(--text-light);
}

/* ============================================
   通知公告
   ============================================ */
.notice-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.notice-block {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}

.notice-block h3 {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.notice-block h3 svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.notice-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}

.notice-list li:last-child {
  border-bottom: none;
}

.notice-list li a {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 16px;
}

.notice-list li a:hover {
  color: var(--primary);
}

.notice-list li .date {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ============================================
   页脚
   ============================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-about .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-about .footer-logo img {
  height: 40px;
  border-radius: 4px;
}

.footer-about .footer-logo span {
  font-size: 18px;
  color: #fff;
  font-weight: 600;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.footer-col h4 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact p {
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact p svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ============================================
   内页 Banner
   ============================================ */
.page-banner {
  margin-top: 80px;
  height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(26,26,46,0.65) 0%, rgba(45,125,70,0.35) 100%),
    url("../images/banner2.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-banner h1 {
  font-size: 36px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 4px;
  position: relative;
  z-index: 1;
}

.page-banner .breadcrumb {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  text-align: center;
}

.page-banner .breadcrumb a {
  color: rgba(255,255,255,0.8);
}

.page-banner .breadcrumb a:hover {
  color: #fff;
}

/* ============================================
   关于我们页面
   ============================================ */
.about-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-detail.reverse {
  direction: rtl;
}

.about-detail.reverse > * {
  direction: ltr;
}

.about-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-detail-img img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.about-detail-text h3 {
  font-size: 24px;
  color: var(--text);
  margin-bottom: 16px;
}

.about-detail-text p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 12px;
}

/* 发展历程 */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--border);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  width: 50%;
  padding-right: 50px;
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
  padding-right: 0;
  padding-left: 50px;
  justify-content: flex-start;
}

.timeline-item::after {
  content: '';
  position: absolute;
  top: 6px;
  right: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--primary);
}

.timeline-item:nth-child(even)::after {
  left: -7px;
  right: auto;
}

.timeline-content {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 400px;
}

.timeline-content .year {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.timeline-content h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* 荣誉资质 */
.honor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.honor-card {
  text-align: center;
  background: #fff;
  padding: 30px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.honor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.honor-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.honor-card .icon svg {
  width: 30px;
  height: 30px;
  color: var(--primary);
}

.honor-card h4 {
  font-size: 15px;
  margin-bottom: 8px;
}

.honor-card p {
  font-size: 13px;
  color: var(--text-light);
}

/* ============================================
   产品详情页
   ============================================ */
.product-detail-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.product-gallery {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-gallery img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.product-info h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.product-info .price {
  font-size: 28px;
  color: #e53935;
  font-weight: 700;
  margin-bottom: 20px;
}

.product-info .price span {
  font-size: 14px;
  font-weight: 400;
}

.product-info .meta {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-light);
  border-radius: var(--radius);
}

.product-info .meta p {
  font-size: 14px;
  margin-bottom: 6px;
}

.product-info .meta p strong {
  color: var(--text);
}

.product-info .desc {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 36px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45,125,70,0.3);
}

.btn-outline {
  display: inline-block;
  padding: 12px 36px;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  border-radius: 50px;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  margin-left: 12px;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ============================================
   新闻资讯
   ============================================ */
.news-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.news-tab {
  padding: 10px 28px;
  border-radius: 50px;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-light);
  color: var(--text);
  border: none;
  font-weight: 500;
}

.news-tab.active,
.news-tab:hover {
  background: var(--primary);
  color: #fff;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.news-card {
  display: flex;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.news-card-img {
  width: 260px;
  height: 200px;
  flex-shrink: 0;
  overflow: hidden;
}

.news-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-card:hover .news-card-img img {
  transform: scale(1.08);
}

.news-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-card-body .date {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 8px;
}

.news-card-body h4 {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.5;
}

.news-card-body p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-body .read-more {
  font-size: 14px;
  color: var(--primary);
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.news-card-body .read-more:hover {
  gap: 8px;
}

/* 新闻卡片可点击 */
.news-card {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
}

/* 新闻详情页 */
.news-article {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 48px 52px;
}

.news-article-tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 16px;
}

.news-article-title {
  font-size: 26px;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 12px;
}

.news-article-date {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.news-article-content {
  line-height: 1.9;
  font-size: 15px;
  color: var(--text);
}

.news-article-content p { margin-bottom: 16px; }

.news-article-content ul,
.news-article-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.news-article-content li { margin-bottom: 8px; }

.news-article-content strong { color: var(--dark); }

.news-article-back {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.news-article-back a {
  color: var(--primary);
  font-size: 15px;
  text-decoration: none;
}

.news-article-back a:hover {
  color: var(--primary-dark);
}

/* ============================================
   案例详情页
   ============================================ */
.case-article {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.case-article-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.case-article-body {
  padding: 36px 48px 0;
}

.case-article-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.case-article-tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
}

.case-article-title {
  font-size: 26px;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 12px;
}

.case-article-desc {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.case-article-content { line-height: 1.9; font-size: 15px; color: var(--text); padding-bottom: 36px; }
.case-article-content p { margin-bottom: 16px; }
.case-article-content ul { padding-left: 24px; margin-bottom: 16px; }
.case-article-content li { margin-bottom: 8px; }
.case-article-content strong { color: var(--dark); }

.case-article-back {
  padding: 24px 48px 48px;
}

.case-article-back a {
  color: var(--primary);
  font-size: 15px;
  text-decoration: none;
}

.case-article-back a:hover {
  color: var(--primary-dark);
}

@media(max-width:768px) {
  .case-article-img { height: 260px; }
  .case-article-body { padding: 28px 20px 0; }
  .case-article-title { font-size: 20px; }
  .case-article-content { font-size: 14px; }
  .case-article-back { padding: 24px 20px 48px; }
}

/* ============================================
   联系我们
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-card {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.contact-card .icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.contact-card .icon-wrap svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.contact-card h4 {
  font-size: 15px;
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 14px;
  color: var(--text-light);
}

/* 留言表单 */
.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 22px;
  margin-bottom: 24px;
  color: var(--text);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-main);
  transition: var(--transition);
  background: var(--bg-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(45,125,70,0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ============================================
   服务特色
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  text-align: center;
  padding: 40px 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.feature-card .icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(0deg);
  transition: var(--transition);
}

.feature-card:hover .icon {
  transform: rotate(5deg) scale(1.05);
}

.feature-card .icon svg {
  width: 34px;
  height: 34px;
  color: #fff;
}

.feature-card h4 {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   分页
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
}

.pagination a:hover,
.pagination span.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============================================
   回到顶部
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(45,125,70,0.3);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   在线咨询按钮
   ============================================ */
.online-consult {
  position: fixed;
  bottom: 100px;
  right: 40px;
  z-index: 999;
}

.online-consult a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 50px;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(45,125,70,0.3);
  transition: var(--transition);
}

.online-consult a:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.online-consult svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   动画
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 滚动入场动画：默认可见，visible时触发动画 */
.fade-in {
  opacity: 1;
  transform: none;
}

.fade-in.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* ============================================
   响应式 - 平板
   ============================================ */
@media (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding: 0 24px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .honor-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .about-intro {
    gap: 40px;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   响应式 - 手机
   ============================================ */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 100px 30px 30px;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    align-items: flex-start;
    gap: 0;
  }

  .nav.open {
    right: 0;
  }

  .nav a {
    padding: 14px 0;
    font-size: 16px;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav a::after {
    display: none;
  }

  .header-phone {
    display: none;
  }

  .header .container {
    height: 64px;
  }

  .banner {
    height: 400px;
    margin-top: 64px;
  }

  .banner-content h1 {
    font-size: 28px;
    letter-spacing: 2px;
  }

  .banner-content p {
    font-size: 15px;
  }

  .section {
    padding: 50px 0;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .section-header p {
    font-size: 14px;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-intro-img img {
    height: 240px;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item .num {
    font-size: 26px;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .product-card-img {
    height: 160px;
  }

  .case-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .case-card-img {
    height: 200px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 30px 20px;
  }

  .notice-section {
    grid-template-columns: 1fr;
  }

  .honor-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .about-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-detail.reverse {
    direction: ltr;
  }

  .about-detail-img img {
    height: 240px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 0;
  }

  .timeline-item:nth-child(even) {
    margin-left: 0;
    padding-left: 60px;
  }

  .timeline-item::after {
    left: 13px;
    right: auto;
  }

  .timeline-item:nth-child(even)::after {
    left: 13px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card {
    flex-direction: column;
  }

  .news-card-img {
    width: 100%;
    height: 200px;
  }

  .news-article {
    padding: 28px 20px;
  }

  .news-article-title {
    font-size: 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-cards {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .product-detail-wrap {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   美化弹窗 Toast
   ============================================ */
.custom-toast {
  position: fixed;
  top: 100px;
  right: -400px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  transition: right 0.3s ease;
  min-width: 280px;
  max-width: 380px;
}

.custom-toast.show {
  right: 30px;
}

.custom-toast .toast-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  flex-shrink: 0;
}

.custom-toast.toast-success .toast-icon {
  background: linear-gradient(135deg, #2d7d46, #4a9e65);
  color: #fff;
}

.custom-toast.toast-error .toast-icon {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
}

.custom-toast .toast-content {
  font-size: 15px;
  color: #333;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .custom-toast {
    left: 20px;
    right: 20px;
    max-width: none;
    top: 80px;
  }
  .custom-toast.show {
    right: 20px;
  }

  .product-gallery img {
    height: 300px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-banner {
    margin-top: 64px;
    height: 220px;
  }

  .page-banner h1 {
    font-size: 26px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }

  .online-consult {
    bottom: 72px;
    right: 20px;
  }

  .online-consult a span {
    display: none;
  }

  .online-consult a {
    padding: 12px;
    border-radius: 50%;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card-img {
    height: 200px;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* 遮罩层 */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.nav-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   地图容器
   ============================================ */
.map-container {
  width: 100%;
  height: 350px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 30%, rgba(72, 132, 72, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(72, 132, 72, 0.06) 0%, transparent 50%),
    linear-gradient(135deg, #e8f0e8 0%, #d4e4d4 25%, #e0ece0 50%, #d8e8d8 75%, #e4efe4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* 模拟地图网格线 */
.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(72, 132, 72, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 132, 72, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* 装饰性路径 */
.map-placeholder::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 10%;
  width: 80%;
  height: 70%;
  border: 2px dashed rgba(72, 132, 72, 0.12);
  border-radius: 40%;
  pointer-events: none;
}

.map-pin {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  animation: mapPinBounce 2s ease-in-out infinite;
}

.map-pin svg {
  filter: drop-shadow(0 2px 6px rgba(72, 132, 72, 0.35));
}

.map-pin-shadow {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 6px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  animation: mapShadowPulse 2s ease-in-out infinite;
}

@keyframes mapPinBounce {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-6px); }
}

@keyframes mapShadowPulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.8; }
  50% { transform: translateX(-50%) scale(1.6); opacity: 0.3; }
}

.map-overlay-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(72, 132, 72, 0.1);
  z-index: 2;
}

.map-overlay-card h4 {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 600;
}

.map-addr,
.map-tel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
}

.map-tags {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.map-tags span {
  font-size: 11px;
  color: var(--primary);
  background: rgba(72, 132, 72, 0.08);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
}

/* ============================================
   门店展示
   ============================================ */
.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.store-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.store-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.store-card-img {
  height: 200px;
  overflow: hidden;
}

.store-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-card-body {
  padding: 24px;
}

.store-card-body h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--primary);
}

.store-card-body p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .store-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   案例筛选标签
   ============================================ */
.filter-tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-tag {
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.filter-tag.active,
.filter-tag:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* 查看更多按钮 */
.view-more {
  text-align: center;
  margin-top: 40px;
}

.view-more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 36px;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
}

.view-more a:hover {
  background: var(--primary);
  color: #fff;
}
