/*
Theme Name: Shangqiu Park Theme
Theme URI: https://shangqiu-park.com
Author: Shangqiu Park Dev
Description: 商丘园区 WordPress 主题
Version: 1.0.0
License: GPL v2 or later
Text Domain: shangqiu-park
*/

:root {
  --primary: #C41A1A;
  --primary-dark: #8B0000;
  --accent: #D4A745;
  --accent-dark: #B8922F;
  --bg: #F5F5F5;
  --bg-alt: #FAFAFA;
  --bg-white: #FFFFFF;
  --text: #333333;
  --text-light: #666666;
  --text-lighter: #999999;
  --border: #E0E0E0;
  --border-light: #EEEEEE;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
  --radius: 4px;
  --radius-lg: 8px;
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-serif: 'Noto Serif SC', 'STSong', 'SimSun', 'Songti SC', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--primary-dark); }

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

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

h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.35; font-weight: 700; }

.section-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.section-subtitle {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 40px;
  letter-spacing: 1px;
}
.text-center { text-align: center; }

.section { padding: 80px 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 40px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-sans);
  text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; border-color: var(--primary-dark); }
.btn-secondary { background: transparent; color: #fff; border-color: #fff; }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-link { color: var(--primary); padding: 8px 0; border: none; background: none; font-size: 14px; }
.btn-link:hover { color: var(--primary-dark); }
.btn-sm { padding: 10px 24px; font-size: 13px; }
.btn-lg { padding: 16px 48px; font-size: 16px; }

/* ===== HEADER ===== */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 999;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo { display: flex; align-items: center; }
.logo .site-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
}
.logo img { max-height: 48px; width: auto; }

.nav-menu { display: flex; list-style: none; gap: 4px; }
.nav-menu > li > a {
  display: block;
  padding: 8px 20px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  transition: all 0.3s;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a { color: var(--primary); background: rgba(196,26,26,0.04); }

.header-phone a {
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
  line-height: 1;
}

/* ===== Banner Carousel (tbea-inspired) ===== */
.banner-carousel {
  position: relative;
  height: 100vh;
  min-height: 520px;
  max-height: 920px;
  overflow: hidden;
  background: #1a1a1a;
}
.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 1;
}
.banner-slide.active { opacity: 1; z-index: 2; }
.banner-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}
.banner-content {
  position: absolute;
  left: 10%;
  bottom: 10%;
  z-index: 2;
  color: #fff;
  max-width: 900px;
  text-align: left;
  padding: 0 24px;
}
.banner-content h1 {
  font-size: 54px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 4px;
  line-height: 1.2;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
  min-height: 1.2em;
}
.banner-content h1 .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
}
.banner-content .banner-subtitle {
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 40px;
  margin-top: 0;
  line-height: 1.8;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.6s ease;
}
.banner-slide.active .banner-content .banner-subtitle {
  opacity: 1;
  transform: translateY(0);
}


/* Arrows — show on hover only */
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s;
  opacity: 0;
  backdrop-filter: blur(4px);
}
.banner-carousel:hover .banner-arrow { opacity: 1; }
.banner-arrow:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}
.banner-arrow-prev {
  left: 16px;
  border-radius: 50%;
}
.banner-arrow-next {
  right: 16px;
  border-radius: 50%;
}

/* Dots — bottom center */
.banner-dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}
.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.3s;
}
.banner-dot.active {
  background: #fff;
  width: 28px;
  border-radius: 4px;
}
.banner-dot:hover { background: rgba(255,255,255,0.7); }

/* Character reveal animation */
@keyframes bannerCharIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== ABOUT PREVIEW ===== */
.about-preview { padding: 80px 0; background: var(--bg-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-content { font-size: 15px; line-height: 2; color: var(--text-light); margin-bottom: 24px; }
.about-content p { margin-bottom: 16px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stat-item {
  text-align: center;
  padding: 32px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}
.stat-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.stat-item .stat-number {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  display: block;
  line-height: 1.1;
  margin-bottom: 4px;
}
.stat-item .stat-label { font-size: 16px; color: var(--text-light); letter-spacing: 1px; }

/* ===== ADVANTAGES ===== */
.advantages { padding: 60px 0; background: var(--bg-alt); }
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.advantage-card {
  background: var(--bg-white);
  padding: 30px 20px;
  text-align: center;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.4s;
}
.advantage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.advantage-card .advantage-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
  border-radius: 50%;
  background: rgba(196,26,26,0.06);
  transition: all 0.4s;
}
.advantage-card:hover .advantage-icon { background: var(--primary); color: #fff; }
.advantage-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.advantage-card p { font-size: 14px; color: var(--text-light); line-height: 1.8; }

/* ===== ENVIRONMENT GALLERY ===== */
.env-gallery { padding: 60px 0; background: var(--bg-white); }
.env-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.env-item {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.env-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.env-item:hover img { transform: scale(1.08); }
.env-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.env-item:hover .env-overlay { background: rgba(0,0,0,0.35); }
.env-overlay i { color: #fff; font-size: 28px; opacity: 0; transform: scale(0.5); transition: all 0.3s; }
.env-item:hover .env-overlay i { opacity: 1; transform: scale(1); }

/* ===== CERTIFICATIONS ===== */
.certifications { padding: 60px 0; background: var(--bg-alt); }
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cert-item {
  text-align: center;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px 20px;
  transition: all 0.3s;
}
.cert-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--accent); }
.cert-image {
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cert-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.5px;
  line-height: 1.5;
}

/* ===== NEWS SECTION ===== */
.news-section { padding: 80px 0; background: var(--bg-white); }
.news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}
.news-header .section-title { margin-bottom: 0; font-size: 28px; }
.news-categories { display: flex; gap: 15px; flex-wrap: wrap; }
.news-categories a {
  font-size: 14px;
  color: var(--text-light);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}
.news-categories a:hover,
.news-categories a.active { color: var(--primary); border-bottom-color: var(--primary); }

.news-body {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 48px;
  align-items: start;
  position: relative;
}
.news-body::before {
  content: '';
  position: absolute;
  left: 45%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-light);
  margin-left: -24px;
}

/* Featured */
.news-featured {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
}
.news-featured a { display: block; width: 100%; height: 100%; }
.news-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.news-featured:hover img { transform: scale(1.06); }
.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%, rgba(0,0,0,0.85));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: #fff;
}
.featured-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 3px;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(196,26,26,0.35);
}
.featured-overlay h3 {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.featured-overlay p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* List */
.news-list-wrap { padding-left: 12px; }
.news-list-item {
  padding: 16px 0 16px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  position: relative;
  transition: all 0.3s;
  border-radius: var(--radius);
}
.news-list-item + .news-list-item { border-top: 1px solid #f0f0f0; }
.news-list-item:hover {
  background: rgba(196,26,26,0.02);
  padding-left: 20px;
}
.news-list-item::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--primary);
  border-radius: 2px;
  transition: height 0.3s;
}
.news-list-item:hover::before { height: 22px; }
.news-list-item:first-child { padding-top: 0; }
.news-list-item:first-child::before { top: calc(50% + 8px); }
.news-list-item:last-child { padding-bottom: 0; }
.list-date {
  font-size: 13px;
  color: var(--text-lighter);
  width: 80px;
  flex-shrink: 0;
  line-height: 1.8;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.list-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-title:hover { color: var(--primary); }
.list-excerpt {
  width: 100%;
  font-size: 13px;
  color: var(--text-lighter);
  line-height: 1.6;
  margin-top: 2px;
}

/* ===== SERVICES ===== */
.services { padding: 60px 0; background: var(--bg-white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--bg-white);
  padding: 36px 20px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.service-card .service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
  transition: all 0.4s;
}
.service-card:hover .service-icon { background: var(--accent); }
.service-card h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.service-card p { font-size: 13px; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }
.service-card .btn-sm {
  display: inline-block;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  transition: all 0.3s;
}
.service-card .btn-sm:hover { background: var(--primary); color: #fff; }

/* ===== CTA ===== */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
  color: #fff;
}
.cta-section .cta-phone {
  font-size: 40px;
  font-weight: 800;
  font-family: var(--font-serif);
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.cta-section h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: 2px;
}
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-cta-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-cta-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-cta-secondary { background: transparent; color: #fff; border-color: #fff; }
.btn-cta-secondary:hover { background: rgba(255,255,255,0.1); }

/* ===== ABOUT PAGE ===== */
.about-intro {
  font-size: 16px;
  line-height: 2.2;
  color: var(--text-light);
}
.about-intro p { margin-bottom: 0; }

.about-intro img {
  display: inline-block;
  vertical-align: top;
  margin: 8px 6px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  max-width: calc(50% - 12px);
}
.about-intro .alignleft { float: left; margin: 8px 16px 8px 0; max-width: 50%; }
.about-intro .alignright { float: right; margin: 8px 0 8px 16px; max-width: 50%; }
.about-intro .aligncenter { display: block; margin: 16px auto; max-width: 100%; }
.about-intro .wp-block-image { display: inline-block; vertical-align: top; margin: 8px 6px; }
.about-intro .wp-block-image img { margin: 0; max-width: 100%; }

.page-content .content-area {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 0;
}

/* ===== FOOTER ===== */
.site-footer { background: #1C1C1C; color: rgba(255,255,255,0.55); padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-col h4 {
  font-family: var(--font-serif);
  color: #fff;
  font-size: 16px;
  margin-bottom: 20px;
  letter-spacing: 2px;
  padding-bottom: 14px;
  position: relative;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.footer-brand img { max-height: 48px; width: auto; margin-bottom: 12px; }
.footer-desc { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,0.5); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.5); font-size: 14px; transition: all 0.3s; }
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }
.footer-col p { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: rgba(255,255,255,0.4);
  font-size: 18px;
  transition: all 0.3s;
}
.social-links a:hover { border-color: var(--accent); color: var(--accent); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}
.footer-bottom .copyright,
.footer-bottom .icp {
  margin: 0;
}
.footer-bottom .icp a {
  color: inherit;
}
.footer-bottom .icp a:hover {
  color: rgba(255,255,255,0.6);
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 100px 0 48px;
  background: var(--text);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent);
}
.page-header h1 { font-family: var(--font-serif); font-size: 36px; letter-spacing: 4px; }

/* ===== FANCYBOX OVERRIDES ===== */
.fancybox__container { z-index: 99999 !important; }
.fancybox__toolbar {
  top: 24px !important;
  padding: 0 24px !important;
  background: none !important;
}
.fancybox__toolbar button {
  width: 48px !important;
  height: 48px !important;
  font-size: 22px !important;
}
.fancybox__slide { padding: 40px 0 !important; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== BREADCRUMB ===== */
.breadcrumb { font-size: 14px; color: rgba(255,255,255,0.5); margin-top: 8px; }
.breadcrumb a { color: rgba(255,255,255,0.65); }
.breadcrumb a:hover { color: #fff; }
.sep { margin: 0 8px; color: rgba(255,255,255,0.25); }

/* ===== ARCHIVE HEADER ===== */
.archive-header {
  padding: 100px 0 48px;
  background: var(--text);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.archive-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent);
}
.archive-header h1 { font-family: var(--font-serif); font-size: 36px; letter-spacing: 4px; }

/* ===== PAGE CONTENT WRAPPER ===== */
.page-content { background: var(--bg-white); }

/* ===== PAGINATION ===== */
.pagination {
  text-align: center;
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  background: var(--bg-white);
  transition: all 0.3s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== POST LIST (archive, index, search) ===== */
.post-list { display: flex; flex-direction: column; gap: 24px; }
.post-item {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
}
.post-item:hover { box-shadow: var(--shadow-sm); }
.post-item .thumb { width: 240px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; }
.post-item .thumb img { width: 100%; height: 160px; object-fit: cover; }
.post-item .body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.post-item .meta { font-size: 13px; color: var(--text-lighter); margin-bottom: 8px; }
.post-item h3 { font-size: 18px; margin-bottom: 8px; }
.post-item h3 a { color: var(--text); }
.post-item h3 a:hover { color: var(--primary); }
.post-item .excerpt { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ===== SINGLE CONTENT (single-news) ===== */
.single-content .meta {
  font-size: 14px;
  color: var(--text-lighter);
  margin-bottom: 24px;
}
.single-content .meta i { margin-right: 4px; }
.the-content { font-size: 16px; line-height: 2; color: var(--text-light); }
.the-content p { margin-bottom: 16px; }

/* ===== SEARCH FORM ===== */
.search-form { display: flex; gap: 12px; max-width: 500px; }
.search-form input[type="text"] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s;
}
.search-form input[type="text"]:focus { border-color: var(--primary); }

/* ===== FILTER BAR (invest, project archive) ===== */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  align-items: center;
}
.filter-item {
  display: inline-block;
  padding: 8px 20px;
  font-size: 14px;
  color: var(--text-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
  cursor: pointer;
}
.filter-item:hover,
.filter-item.active { color: var(--primary); border-color: var(--primary); background: rgba(196,26,26,0.03); }

/* ===== PROJECT GRID (invest, project archive) ===== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
}
.project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.project-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.project-card:hover .thumb img { transform: scale(1.05); }
.project-card .body { padding: 20px; }
.project-card .body h3 { font-size: 16px; margin-bottom: 12px; }
.project-card .body h3 a { color: var(--text); }
.project-card .body h3 a:hover { color: var(--primary); }

.project-card .location { font-size: 13px; color: var(--text-light); margin-bottom: 6px; }
.project-card .location i { color: var(--primary); margin-right: 4px; }

.status-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
}
.status-tag.active { background: rgba(196,26,26,0.08); color: var(--primary); }
.status-tag.occupied { background: rgba(212,167,69,0.12); color: var(--accent-dark); }
.status-tag.sold { background: rgba(102,102,102,0.08); color: var(--text-light); }

/* ===== SERVICES DETAIL (page-services) ===== */
.services-list { display: flex; flex-direction: column; gap: 24px; }
.service-detail-card {
  display: flex;
  gap: 24px;
  padding: 32px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all 0.3s;
}
.service-detail-card:hover { border-color: var(--border); box-shadow: var(--shadow-sm); }
.service-detail-card .icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
}
.service-detail-card .content { flex: 1; }
.service-detail-card .content h3 { font-size: 18px; margin-bottom: 8px; }
.service-detail-card .content div { font-size: 14px; color: var(--text-light); line-height: 1.8; }

/* ===== PROCESS STEPS (page-services) ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.process-step {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all 0.3s;
}
.process-step:hover { box-shadow: var(--shadow-sm); }
.step-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
  font-family: var(--font-serif);
}
.process-step h4 { font-size: 16px; margin-bottom: 8px; }
.process-step p { font-size: 13px; color: var(--text-light); line-height: 1.7; }

/* ===== ADVANTAGE GRID (page-about) ===== */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===== PLAN IMAGE (page-about) ===== */
.plan-image {
  margin: 32px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.plan-image a { display: block; }
.plan-image img { width: 100%; }

/* ===== TIMELINE (page-about) ===== */
.timeline {
  position: relative;
  padding-left: 32px;
  margin-bottom: 48px;
  border-left: 2px solid var(--border);
}
.timeline-item {
  position: relative;
  padding: 0 0 32px 24px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--bg-white);
  box-shadow: var(--shadow-sm);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item .year {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.timeline-item .desc { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ===== PROJECT DETAIL (single-project) ===== */
.project-detail-header {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 480px;
  margin-bottom: 32px;
  margin-top: 32px;
}
.project-detail-header img { width: 100%; max-height: 480px; object-fit: cover; }
.project-detail-info { max-width: 960px; margin: 0 auto; padding-bottom: 48px; }
.project-info-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
  padding: 24px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
}
.info-item { display: flex; flex-direction: column; gap: 4px; }
.info-item .label { font-size: 13px; color: var(--text-lighter); }
.info-item .value { font-size: 15px; color: var(--text); font-weight: 500; }
.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.project-gallery a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.project-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.project-gallery a:hover img { transform: scale(1.05); }
.project-actions {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===== HEADER SCROLLED ===== */
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

/* ===== FOOTER CONTACT ===== */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}
.footer-contact-item i { width: 16px; margin-top: 3px; color: var(--accent); flex-shrink: 0; }
.footer-contact-item span { flex: 1; }

/* ===== ERROR 404 ===== */
.error-404 {
  text-align: center;
  padding: 120px 24px;
  background: var(--bg-white);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.error-404 h1 {
  font-family: var(--font-serif);
  font-size: 120px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.15;
}
.error-404 p { font-size: 18px; color: var(--text-light); margin-bottom: 32px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .banner-content { margin: 0 auto 0 6%; max-width: 600px; }
  .banner-content h1 { font-size: 42px; letter-spacing: 4px; }
  .banner-content .banner-subtitle { font-size: 16px; }
  .banner-dots { bottom: 90px; right: 6%; }
  .banner-values { gap: 32px; padding: 36px 24px 24px; }
  .stat-item .stat-number { font-size: 38px; }
  .cta-section .cta-phone { font-size: 32px; }
  .header-phone { display: none; }
  .env-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .news-body { grid-template-columns: 1fr; }
  .news-body::before { display: none; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .post-item { flex-direction: column; }
  .post-item .thumb { width: 100%; }
  .post-item .thumb img { height: 200px; }
  .project-info-table { grid-template-columns: 1fr; }
  .service-detail-card { flex-direction: column; align-items: flex-start; }
  .page-header h1, .archive-header h1 { font-size: 30px; }
  .error-404 h1 { font-size: 80px; }
}

@media (max-width: 767px) {
  .menu-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 16px 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.4s;
    pointer-events: none;
    flex-direction: column;
    z-index: 998;
  }
  .nav-menu.active { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-menu > li > a { padding: 14px 0; border-bottom: 1px solid var(--border-light); }
  .banner-carousel { height: 70vh; min-height: 400px; }
  .banner-content { margin: 0 auto 0 5%; max-width: 480px; }
  .banner-content h1 { font-size: 32px; letter-spacing: 3px; padding-bottom: 18px; }
  .banner-content h1::after { width: 40px; }
  .banner-slide.active .banner-content h1::after { width: 56px; }
  .banner-content .banner-subtitle { font-size: 15px; margin-bottom: 32px; }
  .banner-buttons { flex-direction: column; align-items: flex-start; }
  .banner-buttons .btn-primary,
  .banner-buttons .btn-secondary { padding: 12px 28px; font-size: 14px; }
  .banner-arrow { width: 40px; height: 40px; font-size: 18px; }
  .banner-dots { bottom: 80px; right: 5%; gap: 6px; }
  .banner-dot { width: 8px; height: 8px; }
  .banner-dot.active { height: 22px; }
  .banner-values { gap: 20px; padding: 28px 16px 20px; }
  .banner-value .en { font-size: 12px; }
  .banner-value .cn { font-size: 11px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 24px; }
  .about-preview { padding: 48px 0; }
  .about-stats { gap: 16px; }
  .stat-item { padding: 24px 16px; }
  .stat-item .stat-number { font-size: 32px; }
  .stat-item .stat-label { font-size: 14px; }
  .advantages-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .env-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-image { width: 100px; height: 100px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-section { padding: 48px 0; }
  .cta-section .cta-phone { font-size: 28px; }
  .cta-section h2 { font-size: 22px; }
  .page-header { padding: 80px 0 36px; }
  .page-header h1 { font-size: 26px; }
  .news-body { grid-template-columns: 1fr; }
  .news-body::before { display: none; }
  .news-featured { aspect-ratio: auto; }
  .news-featured img { height: 200px; }
  .news-header .section-title { font-size: 24px; }
  .news-header { flex-direction: column; align-items: flex-start; }
  .list-date { width: auto; margin-right: 8px; }
  .project-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .advantage-grid { grid-template-columns: 1fr; }
  .project-gallery { grid-template-columns: repeat(2, 1fr); }
  .post-item .thumb img { height: 180px; }
  .post-item h3 { font-size: 16px; }
  .archive-header { padding: 80px 0 36px; }
  .archive-header h1 { font-size: 26px; }
  .error-404 h1 { font-size: 64px; }
  .page-content .content-area { padding: 32px 0; }
  .service-detail-card { padding: 24px; }
  .project-detail-info { padding-bottom: 32px; }
}
