/* ============================================================
   JINDEKE Portal - Minimal Tech Theme
   ============================================================ */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(255,255,255,0.03);
  --border-color: rgba(255,255,255,0.06);
  --text-primary: #e4e4e7;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-glow: rgba(99,102,241,0.15);
  --gradient-1: linear-gradient(135deg, #6366f1, #8b5cf6);
  --gradient-2: linear-gradient(135deg, #06b6d4, #6366f1);
  --section-gap: 6rem;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--accent-hover); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(10,10,15,0.75);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}
.nav-logo span {
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text-primary);
}
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---- NAV SEARCH ---- */
.nav-search {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
}
.nav-search input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.8rem;
  width: 100px;
  outline: none;
  padding: 0.25rem;
}
.nav-search input::placeholder {
  color: var(--text-muted);
}
.nav-search button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.2rem;
  transition: color 0.2s;
}
.nav-search button:hover {
  color: var(--accent);
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.35em 1em;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.hero h1 .gradient-text {
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2rem;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-1);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.75rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
  color: #fff;
}

/* ---- SECTION ---- */
section {
  padding: var(--section-gap) 0;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.section-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 3rem;
  font-size: 1rem;
}

/* ---- SERVICES ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.2s;
}
.service-card:hover {
  border-color: rgba(99,102,241,0.25);
  transform: translateY(-2px);
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
  background: var(--accent-glow);
  color: var(--accent);
}
.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.service-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}
/* Service card as link */
a.service-card {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ---- ABOUT ---- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}
.stat-box .num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-box .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ---- TECH ---- */
.tech-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.tech-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  transition: border-color 0.3s;
}
.tech-item:hover {
  border-color: rgba(99,102,241,0.25);
}
.tech-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.tech-item span {
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.contact-item .ci-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.contact-item .ci-value {
  font-size: 0.95rem;
  font-weight: 500;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.contact-form input,
.contact-form textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-form button {
  align-self: flex-start;
  background: var(--gradient-1);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* ---- FORM MESSAGES ---- */
.form-message {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  animation: fadeIn 0.3s ease;
}
.form-message-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}
.form-message-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  :root {
    --section-gap: 4rem;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10,10,15,0.95);
    backdrop-filter: blur(16px);
    padding: 1rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-hamburger {
    display: block;
  }
  .nav-search {
    display: none;
  }
  .nav-links.open + .nav-search {
    display: flex;
  }
  .about-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- ANIMATIONS ---- */
/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 0 0 8px 8px;
  z-index: 200;
  font-size: 0.875rem;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Canvas background */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ============================================================
   NEWS / INSIGHTS MODULE
   ============================================================ */

main.news-page,
article.article-page {
  padding-top: 6rem;
  min-height: 100vh;
}

/* Nav active state */
.nav-links a.active {
  color: var(--text-primary);
}

/* News card grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.news-grid-home {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  border-color: rgba(99,102,241,0.25);
  transform: translateY(-2px);
}

.news-card-cover {
  height: 180px;
  overflow: hidden;
}
.news-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-card-placeholder .news-card-cat {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.news-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}

.news-cat-tag {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-glow);
  padding: 0.15em 0.6em;
  border-radius: 4px;
}

.news-card-meta time {
  color: var(--text-muted);
}

.news-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.news-card-title a {
  color: var(--text-primary);
}
.news-card-title a:hover {
  color: var(--accent);
}

.news-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.2s;
}
.news-read-more:hover {
  color: var(--accent-hover);
}

.news-cta {
  text-align: center;
  margin-top: 2rem;
}

.news-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 0;
  font-size: 0.95rem;
}

/* Category filters */
.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}
.filter-btn {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.4em 1em;
  border-radius: 999px;
  transition: all 0.2s;
}
.filter-btn:hover {
  border-color: rgba(99,102,241,0.3);
  color: var(--text-primary);
}
.filter-btn.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

/* RSS link */
.news-rss {
  margin-top: 2rem;
  text-align: center;
}
.news-rss a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.news-rss a:hover {
  color: var(--accent);
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}
.page-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}
.page-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}
.page-info {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- SEARCH PAGE ---- */
.search-form {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  min-width: 200px;
}
.search-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  padding: 0;
}
.search-input-wrap input::placeholder {
  color: var(--text-muted);
}
.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}
.search-btn {
  background: var(--gradient-1);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.search-info {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.search-info span {
  color: var(--accent);
  font-weight: 600;
}

/* Article detail page */
.article-page {
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.article-back:hover {
  color: var(--accent);
}

.article-header {
  margin-bottom: 2rem;
}

.article-cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 0.2em 0.7em;
  border-radius: 4px;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.article-title {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.article-date {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article-cover {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.article-body h2 { font-size: 1.5rem; }
.article-body h3 { font-size: 1.25rem; }
.article-body h4 { font-size: 1.1rem; }

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body ul,
.article-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.article-body li {
  margin-bottom: 0.5rem;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  margin: 1.25rem 0;
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
  color: var(--text-muted);
  font-style: italic;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2rem 0;
}

.article-body .md-code {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1.25rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.article-body .md-inline-code {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
  color: var(--accent);
}

.article-footer {
  max-width: 720px;
  margin: 2rem auto 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Enhanced footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.footer-brand span {
  color: var(--accent);
}
.footer h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer p,
.footer a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  display: block;
}
.footer a:hover {
  color: var(--accent);
}
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* News section responsive */
@media (max-width: 768px) {
  .news-grid,
  .news-grid-home {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .article-page {
    padding-top: 6rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}


/* ============================================================
   Service Detail Page (Finance / etc.)
   ============================================================ */

.service-detail-page {
  padding-top: 60px;
}

/* Service Hero Banner */
.service-hero {
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.service-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.service-hero .section-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

/* Overview */
.service-overview h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.service-overview > .container > .fade-in > p {
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.8;
}

/* Modules Grid */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.3s, transform 0.2s;
}
.module-card:hover {
  border-color: rgba(99,102,241,0.25);
  transform: translateY(-2px);
}
.module-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.module-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.module-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* Architecture Section */
.service-architecture {
  background: var(--bg-secondary);
}
.service-architecture h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.arch-diagram {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.arch-layer {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  flex-wrap: wrap;
}
.arch-layer-app {
  border-left: 3px solid #06b6d4;
}
.arch-layer-platform {
  border-left: 3px solid var(--accent);
}
.arch-layer-infra {
  border-left: 3px solid #f59e0b;
}
.layer-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
  min-width: 80px;
}
.layer-item {
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 6px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Deployment Section */
.service-deployment h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.deployment-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.deployment-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.2s;
}
.deployment-card:hover {
  border-color: rgba(99,102,241,0.25);
  transform: translateY(-2px);
}
.dep-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.deployment-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.deployment-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}
.deployment-card ul {
  list-style: none;
  padding: 0;
}
.deployment-card ul li {
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 0.3rem 0;
  padding-left: 1.25rem;
  position: relative;
}
.deployment-card ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* CTA Section */
.service-cta {
  text-align: center;
  background: var(--bg-secondary);
}
.service-cta h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.service-cta p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
.service-cta .hero-cta {
  display: inline-flex;
}

/* Responsive for service detail */
@media (max-width: 768px) {
  .service-hero {
    padding: 6rem 0 3rem;
  }
  .modules-grid,
  .deployment-cards {
    grid-template-columns: 1fr;
  }
  .arch-layer {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Police beian icon */

/* Police beian area — reference: government website footer style */
.beian-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.beian-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #003399;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
}

.beian-links a:hover {
  text-decoration: underline;
}

.beian-icon {
  height: 16px;
  width: auto;
  flex-shrink: 0;
}


/* ============================================================
   Auto Detail Page — Industrial Automation
   ============================================================ */

.service-section {
  padding: var(--section-gap) 0;
}

.service-alt {
  background: var(--bg-secondary);
}

/* Module Cards Grid */
.service-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.2s;
}

.service-module-card:hover {
  border-color: rgba(99,102,241,0.25);
  transform: translateY(-2px);
}

.service-module-card .module-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-module-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-module-card > p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.module-features {
  list-style: none;
  padding: 0;
}

.module-features li {
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 0.3rem 0 0.3rem 1.25rem;
  position: relative;
  line-height: 1.6;
}

.module-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Applications Grid */
.applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.3s, transform 0.2s;
}

.app-card:hover {
  border-color: rgba(99,102,241,0.25);
  transform: translateY(-2px);
}

.app-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.app-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* Cases List */
.cases-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.case-item {
  display: flex;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  align-items: flex-start;
  transition: border-color 0.3s;
}

.case-item:hover {
  border-color: rgba(99,102,241,0.25);
}

.case-badge {
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.case-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.case-item p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* Responsive for auto service page */
@media (max-width: 768px) {
  .service-modules-grid,
  .applications-grid {
    grid-template-columns: 1fr;
  }
  .case-item {
    flex-direction: column;
    gap: 0.75rem;
  }
}


/* ============================================================
   Energy Detail Page — New Energy Management
   ============================================================ */

/* Energy Data Table */
.energy-table-wrap {
  margin-top: 2rem;
  overflow-x: auto;
}

.energy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.energy-table thead {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.energy-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--border-color);
}

.energy-table td {
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.energy-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.04);
}

.energy-table .highlight {
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
}

.table-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .energy-table {
    font-size: 0.8rem;
  }
  .energy-table th,
  .energy-table td {
    padding: 0.6rem 0.5rem;
  }
}
