/* CSS Variables & Reset */
:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #14b8a6;
  --accent: #f59e0b;
  --text: #1f2937;
  --text-light: #4b5563;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --bg-dark: #134e4a;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 1001;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 54px;
  width: auto;
  max-width: 180px;
  display: block;
}

@media (max-width: 480px) {
  .logo-img {
    height: 46px;
    max-width: 150px;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--primary);
}

.main-nav a:hover::after,
.main-nav a:focus::after {
  width: 100%;
}

.nav-cta {
  margin-left: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline:hover,
.btn-outline:focus {
  background: rgba(255, 255, 255, 0.15);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.92), rgba(19, 78, 74, 0.88)),
              url("images/hero.jpg") center/cover no-repeat;
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 80px;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero h1 span {
  font-size: 0.55em;
  font-weight: 400;
  opacity: 0.95;
  display: block;
  margin-top: 10px;
}

.hero > .container > p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 32px;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-hours {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Sections */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
}

.section-header.light h2 {
  color: #fff;
}

.section-header.light p {
  color: rgba(255, 255, 255, 0.85);
}

/* About */
.about {
  background: var(--bg-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--text-light);
}

.about-text strong {
  color: var(--primary-dark);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  list-style: none;
  margin-top: 24px;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  font-weight: 500;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  width: 100%;
}

/* Services */
.services {
  background: var(--bg-dark);
  color: #fff;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: transform var(--transition), background var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.12);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

/* Advantages */
.advantages {
  background: var(--bg-light);
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.advantage-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.advantage-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.adv-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-light);
  margin-bottom: 12px;
  line-height: 1;
}

.advantage-item h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--text);
}

.advantage-item p {
  font-size: 0.92rem;
  color: var(--text-light);
}

/* Gallery */
.gallery {
  background: var(--bg-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
}

.gallery-item.large {
  grid-row: span 2;
  grid-column: span 2;
}

/* Contact */
.contact {
  background: var(--bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 20px;
}

.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.contact-card p {
  color: var(--text-light);
}

.contact-card a {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
}

.contact-card a:hover {
  text-decoration: underline;
}

.license-block {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.license-block h3 {
  margin-bottom: 16px;
  color: var(--primary-dark);
}

.license-block img {
  border-radius: 8px;
  margin: 0 auto;
}

.license-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.05rem;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: var(--shadow);
}

.license-link:hover,
.license-link:focus {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.license-link-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.license-note {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Footer */
.footer-brand strong {
  font-size: 1.25rem;
  color: #fff;
}
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 48px 0 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand .logo-icon {
  font-size: 2rem;
  margin-right: 8px;
}

.footer-brand strong {
  color: #fff;
  font-size: 1.25rem;
}

.footer-brand p {
  margin-top: 8px;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #cbd5e1;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer-bottom p {
  margin-bottom: 6px;
}

/* Responsive */
@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantage-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-item.large {
    grid-row: span 2;
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 16px;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-lg);
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .main-nav li {
    border-bottom: 1px solid var(--border);
  }

  .main-nav a {
    display: block;
    padding: 14px 0;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .advantage-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }

  .gallery-item.large {
    grid-row: span 1;
    grid-column: span 2;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 60px 0;
  }
}

/* ===========================================================
   News / Article components (home section, listing page, detail page)
   =========================================================== */
.news {
  background: linear-gradient(180deg, var(--bg-light) 0%, #fff 100%);
}

.news-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.news-card {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
  position: relative;
  border: 1px solid var(--border);
}

.news-card:hover,
.news-card:focus {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-card-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-light);
}

.news-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-cover img {
  transform: scale(1.05);
}

.news-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.news-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-card-category {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  background: rgba(13, 148, 136, 0.08);
  padding: 3px 10px;
  border-radius: 12px;
  align-self: flex-start;
}

.news-card-title {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  /* show only 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card.feature .news-card-title {
  font-size: 1.35rem;
  -webkit-line-clamp: 3;
}

.news-card-summary {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card.feature .news-card-summary {
  -webkit-line-clamp: 4;
}

.news-card-meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-light);
}

.news-card-arrow {
  color: var(--primary);
  font-weight: 700;
  transition: transform var(--transition);
}

.news-card:hover .news-card-arrow {
  transform: translateX(4px);
}

/* Featured (large) card on home */
.news-card.feature .news-card-cover {
  aspect-ratio: 16/9;
}

.news-card.feature .news-card-body {
  padding: 28px;
}

/* Side cards: shorter on home */
.news-card.side .news-card-body {
  padding: 18px;
}

.news-card.side .news-card-cover {
  aspect-ratio: 4/3;
}

/* News loading / empty states */
.news-loading,
.news-empty-inline,
.news-error {
  text-align: center;
  color: var(--text-light);
  padding: 60px 0;
  grid-column: 1 / -1;
}

.news-error p {
  margin: 6px 0;
}

.news-more {
  text-align: center;
  margin-top: 40px;
}

/* News listing page (news.html) */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 100px 0 60px;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.5rem;
  margin: 8px 0;
  font-weight: 700;
}

.page-hero-eyebrow {
  font-size: 0.95rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0;
}

.page-hero-subtitle {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-top: 6px;
}

.news-listing {
  padding: 60px 0 80px;
  background: var(--bg-light);
}

.news-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.news-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.news-count {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Reuse news-grid but on listing page use 3 cols */
.news-listing .news-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 12px;
}

/* Article detail page */
.article-page {
  padding: 60px 0 80px;
  background: var(--bg-light);
}

.breadcrumb {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 28px;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--text);
}

.article {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.article-header {
  padding: 40px 48px 24px;
}

.article-category {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  background: rgba(13, 148, 136, 0.08);
  padding: 4px 12px;
  border-radius: 16px;
  margin-bottom: 16px;
}

.article-header h1 {
  font-size: 2rem;
  line-height: 1.3;
  color: var(--text);
  font-weight: 700;
  margin: 0 0 14px;
}

.article-meta {
  font-size: 0.92rem;
  color: var(--text-light);
  display: flex;
  gap: 8px;
  align-items: center;
}

.article-cover {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-body {
  padding: 36px 48px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}

.article-body p {
  margin: 16px 0;
}

.article-body h2 {
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin: 32px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
}

.article-body ul,
.article-body ol {
  margin: 14px 0 14px 28px;
}

.article-body li {
  margin: 6px 0;
}

.article-body blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  background: var(--bg-light);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  color: var(--text-light);
  font-style: italic;
}

.article-body strong {
  color: var(--primary-dark);
}

.article-body a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px dotted var(--primary);
}

.article-body a:hover {
  border-bottom-style: solid;
}

.article-footer {
  padding: 28px 48px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-listing .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card.feature .news-card-cover {
    aspect-ratio: 16/10;
  }

  .article-header,
  .article-body,
  .article-footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .article-header h1 {
    font-size: 1.5rem;
  }

  .article-body {
    font-size: 1rem;
  }

  .page-hero {
    padding: 80px 0 48px;
  }

  .page-hero h1 {
    font-size: 1.9rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .gallery-item.large {
    grid-column: span 1;
  }

  .footer-content {
    flex-direction: column;
  }
}
