:root {
  --red: #d32f2f;
  --red-dark: #b71c1c;
  --black: #1a1a1a;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --light-gray: #f5f5f5;
  --lighter-gray: #fafafa;
  --border-gray: #e0e0e0;
  --white: #ffffff;
  --max-width: 1200px;
  --radius: 6px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--dark-gray);
  background: var(--white);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: 92%; max-width: var(--max-width); margin: 0 auto; }

/* Header */
.site-header {
  background: var(--black);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}
.logo span { color: var(--red); }
.logo small { font-size: 0.75rem; color: #aaa; font-weight: 400; margin-left: 6px; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.6rem;
}
.main-nav a { color: #ddd; font-size: 0.95rem; }
.main-nav a:hover { color: var(--red); }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Footer */
.site-footer {
  background: var(--black);
  color: #bbb;
  padding: 48px 0 24px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h3 { color: var(--white); margin: 0 0 14px; font-size: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #bbb; }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; text-align: center; color: #888; }
.footer-bottom a { color: #bbb; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); text-decoration: none; }
.btn-outline { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn-outline:hover { background: var(--red); color: var(--white); text-decoration: none; }
.btn-secondary { background: var(--black); color: var(--white); }
.btn-secondary:hover { background: #333; text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}
.hero h1 { font-size: 2.2rem; margin: 0 0 18px; line-height: 1.3; }
.hero .lead { font-size: 1.15rem; max-width: 800px; margin: 0 auto 28px; color: #ddd; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { padding: 56px 0; }
.section-gray { background: var(--light-gray); }
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 { font-size: 1.8rem; color: var(--black); margin: 0 0 10px; }
.section-title p { color: var(--medium-gray); margin: 0; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
  margin-bottom: 48px;
}
.stat-card { background: var(--white); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--red); }
.stat-label { color: var(--medium-gray); font-size: 0.9rem; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.card-body { padding: 22px; flex: 1; }
.card-body h3 { margin: 0 0 10px; font-size: 1.15rem; color: var(--black); }
.card-body p { margin: 0; color: var(--medium-gray); font-size: 0.95rem; }
.card-footer { padding: 14px 22px; border-top: 1px solid var(--border-gray); }
.card-footer a { font-weight: 600; }
.card-icon {
  width: 52px; height: 52px; background: var(--red); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 14px;
}

/* Service pages */
.service-hero { background: var(--black); color: var(--white); padding: 56px 0; }
.service-hero h1 { margin: 0 0 14px; font-size: 2rem; }
.service-hero .conclusion { max-width: 800px; font-size: 1.1rem; color: #ddd; }
.service-section { padding: 40px 0; }
.service-section h2 { color: var(--black); font-size: 1.5rem; margin-bottom: 16px; border-left: 4px solid var(--red); padding-left: 12px; }
.service-section ul { padding-left: 20px; }
.service-section li { margin-bottom: 8px; }
.price-tag { display: inline-block; background: var(--red); color: var(--white); padding: 10px 22px; border-radius: var(--radius); font-size: 1.2rem; font-weight: 700; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; margin-top: 16px; background: var(--white); }
.data-table th, .data-table td { padding: 14px; border: 1px solid var(--border-gray); text-align: left; }
.data-table th { background: var(--black); color: var(--white); }
.data-table tr:nth-child(even) { background: var(--light-gray); }

/* Lists */
.item-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.item-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.item-card .thumb { width: 100%; height: 180px; object-fit: cover; background: var(--light-gray); }
.item-card .meta { padding: 18px; }
.item-card .meta h3 { margin: 0 0 8px; font-size: 1.05rem; }
.item-card .meta .info { color: var(--medium-gray); font-size: 0.85rem; margin-bottom: 8px; }
.item-card .meta .summary { color: var(--medium-gray); font-size: 0.9rem; }

/* Detail pages */
.detail-header { background: var(--light-gray); padding: 40px 0; }
.detail-header h1 { margin: 0 0 12px; font-size: 1.8rem; color: var(--black); }
.detail-meta { color: var(--medium-gray); font-size: 0.9rem; }
.detail-body { padding: 40px 0; }
.detail-body img { margin: 16px 0; border-radius: var(--radius); }
.detail-body p { margin: 0 0 14px; }

/* Breadcrumb */
.breadcrumb { background: var(--lighter-gray); padding: 14px 0; font-size: 0.9rem; color: var(--medium-gray); }
.breadcrumb a { color: var(--medium-gray); }
.breadcrumb span { color: var(--red); }

/* FAQ */
.faq-list { max-width: 900px; margin: 0 auto; }
details { background: var(--white); border: 1px solid var(--border-gray); border-radius: var(--radius); margin-bottom: 14px; padding: 16px 20px; }
summary { font-weight: 600; cursor: pointer; color: var(--black); }
details[open] summary { color: var(--red); margin-bottom: 10px; }

/* About / Contact */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.info-card { background: var(--white); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.info-card h3 { margin-top: 0; color: var(--black); }
.qual-list { list-style: none; padding: 0; }
.qual-list li { padding: 8px 0; border-bottom: 1px solid var(--border-gray); }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px; border: 1px solid var(--border-gray); border-radius: var(--radius); font-family: inherit; font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--red); }
.contact-form { max-width: 600px; }

/* Back to top */
#back-to-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 44px; height: 44px; background: var(--red); color: var(--white);
  border: none; border-radius: 50%; cursor: pointer; display: none;
  align-items: center; justify-content: center; font-size: 1.2rem; z-index: 999;
}

/* Filter Bar (ASP) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  justify-content: center;
}
.filter-tag {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--border-gray);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--medium-gray);
  transition: background 0.2s, color 0.2s;
}
.filter-tag:hover { background: var(--light-gray); text-decoration: none; }
.filter-tag.active { background: var(--red); color: var(--white); border-color: var(--red); }

/* Pagination (ASP) */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border-gray);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--medium-gray);
  transition: background 0.2s;
}
.page-num:hover { background: var(--light-gray); text-decoration: none; }
.page-num.current { background: var(--red); color: var(--white); border-color: var(--red); }

/* Detail Nav */
.detail-nav { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-gray); }

/* ===================== */
/* Homepage beautification */
/* ===================== */

/* Hero enhanced */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #333333 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(211,47,47,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(211,47,47,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 { font-size: 2.4rem; max-width: 900px; margin: 0 auto 18px; line-height: 1.3; position: relative; z-index: 1; }
.hero .lead { font-size: 1.15rem; max-width: 800px; margin: 0 auto 28px; color: #ccc; position: relative; z-index: 1; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.hero .btn { padding: 14px 36px; font-size: 1.05rem; }

/* Stats enhanced */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
  margin-top: -32px;
  position: relative;
  z-index: 2;
}
.stat-card {
  background: var(--white);
  padding: 28px 20px;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: 0 8px 28px rgba(0,0,0,0.15); }
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--red); }
.stat-label { color: var(--medium-gray); font-size: 0.9rem; margin-top: 4px; }

/* Animated section */
.section { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title h2 { font-size: 1.8rem; color: var(--black); margin: 0 0 10px; position: relative; display: inline-block; }
.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-title p { color: var(--medium-gray); margin: 0; font-size: 1.05rem; }

/* Card enhanced */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border-gray);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 8px 28px rgba(0,0,0,0.12); border-color: var(--red); }
.card-body { padding: 26px 24px; flex: 1; }
.card-body h3 { margin: 0 0 10px; font-size: 1.15rem; color: var(--black); }
.card-body p { margin: 0; color: var(--medium-gray); font-size: 0.95rem; line-height: 1.6; }
.card-body p + p { margin-top: 10px; }
.card-scene { font-size: 0.9rem; color: var(--medium-gray); background: var(--light-gray); padding: 10px 12px; border-radius: 6px; }
.card-meta { font-size: 0.95rem; color: var(--black); font-weight: 500; padding-top: 4px; }
.price { color: var(--red); font-weight: 700; font-size: 1.05rem; }
.card-footer { padding: 14px 24px; border-top: 1px solid var(--border-gray); }
.card-footer a { font-weight: 600; font-size: 0.9rem; }
.card-icon {
  width: 54px; height: 54px; background: var(--red); color: var(--white);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px; font-weight: 700;
  transition: border-radius 0.3s, background 0.3s;
}
.card:hover .card-icon { border-radius: 50%; background: var(--red-dark); }

/* AI Service badge */
.ai-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
}

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 56px 0;
}
.cta-section h2 { font-size: 1.8rem; margin: 0 0 12px; }
.cta-section p { font-size: 1.1rem; opacity: 0.9; margin: 0 0 28px; }
.cta-section .btn { background: var(--white); color: var(--red); font-weight: 700; }
.cta-section .btn:hover { background: #f5f5f5; }

/* Process steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.process-step {
  text-align: center;
  padding: 28px 16px;
  position: relative;
}
.process-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 16px;
}
.process-step h3 { font-size: 1.05rem; color: var(--black); margin: 0 0 8px; }
.process-step p { font-size: 0.9rem; color: var(--medium-gray); margin: 0; }

/* Trust badges */
.trust-bar {
  background: var(--black);
  color: var(--white);
  padding: 20px 0;
  text-align: center;
}
.trust-bar .trust-items {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  align-items: center;
}
.trust-bar .trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ccc;
  font-size: 0.9rem;
}
.trust-bar .trust-item strong { color: var(--white); }

/* Enhanced info-grid */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.info-card {
  background: var(--white);
  padding: 28px 24px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--border-gray);
  transition: transform 0.3s, box-shadow 0.3s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.info-card h3 { margin-top: 0; color: var(--black); font-size: 1.1rem; }
.info-card ul { padding-left: 18px; color: var(--medium-gray); }
.info-card li { margin-bottom: 6px; }

/* Testimonial / quote */
.testimonial-card {
  background: var(--white);
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--border-gray);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  font-size: 4rem;
  color: var(--red);
  opacity: 0.2;
  position: absolute;
  top: 8px;
  left: 16px;
  line-height: 1;
  font-family: Georgia, serif;
}
.testimonial-card p { font-size: 1.05rem; color: var(--dark-gray); line-height: 1.7; font-style: italic; }
.testimonial-card .author { color: var(--medium-gray); font-size: 0.9rem; margin-top: 16px; font-style: normal; }

/* Mobile */
@media (max-width: 768px) {
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--black); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 16px; gap: 0.8rem; }
  .menu-toggle { display: block; }
  .hero h1 { font-size: 1.6rem; }
  .hero .lead { font-size: 1rem; }
  .hero { padding: 48px 0; }
  .section-title h2 { font-size: 1.45rem; }
  .card-grid, .item-list { grid-template-columns: 1fr; }
  .stats-grid { margin-top: 0; }
  .stat-card { padding: 20px; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .trust-bar .trust-items { gap: 16px; }
  .cta-section h2 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.3rem; }
  .hero .lead { font-size: 0.95rem; }
  .section { padding: 40px 0; }
}

/* ============================================ */
/* Enhanced items grid with thumbnails         */
/* ============================================ */

.item-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.item-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden;
  border: 1px solid var(--border-gray);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  border-color: var(--red);
}

.thumb-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--light-gray);
  position: relative;
  display: block;
}

.item-card .thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.item-card:hover .thumb {
  transform: scale(1.05);
}

.item-card .meta {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.item-card .meta h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.item-card .meta .info {
  color: var(--medium-gray);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.item-card .meta .summary {
  color: var(--medium-gray);
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
}

/* ============================================ */
/* Enhanced Detail page styles                 */
/* ============================================ */

.detail-hero {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  margin-bottom: 24px;
  border-radius: 8px;
  background: var(--light-gray);
}

.detail-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.detail-header {
  text-align: center;
  padding: 32px 0;
  background: var(--light-gray);
  border-radius: 8px;
  margin-bottom: 32px;
}

.detail-header h1 {
  font-size: 1.8rem;
  margin: 0 0 12px;
  color: var(--black);
}

.detail-meta {
  color: var(--medium-gray);
  font-size: 0.9rem;
}

.detail-meta span {
  margin: 0 6px;
}

.detail-body {
  padding: 0 0 40px;
}

.detail-body img {
  margin: 16px 0;
  border-radius: 6px;
}

.detail-body p {
  margin: 0 0 16px;
  line-height: 1.8;
}

.detail-body h2,
.detail-body h3 {
  color: var(--black);
  margin: 24px 0 12px;
}

.detail-nav {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-gray);
  text-align: center;
}

/* ============================================ */
/* Enhanced Filter bar styles                  */
/* ============================================ */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  justify-content: center;
}

.filter-tag {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--border-gray);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--medium-gray);
  transition: all 0.2s;
  cursor: pointer;
  background: none;
  font-family: inherit;
}

.filter-tag:hover {
  background: var(--light-gray);
  text-decoration: none;
}

.filter-tag.active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

/* ============================================ */
/* Enhanced Pagination styles                  */
/* ============================================ */

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border-gray);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--medium-gray);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--white);
  font-family: inherit;
}

.page-num:hover {
  background: var(--light-gray);
  text-decoration: none;
}

.page-num.current {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  color: var(--medium-gray);
}

/* ============================================ */
/* Loading state                               */
/* ============================================ */

.loading {
  text-align: center;
  padding: 60px 0;
  color: var(--medium-gray);
}

.spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-gray);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================ */
/* Thumb placeholder for news without images   */
/* ============================================ */

.thumb-placeholder {
  width: 100%;
  height: 100%;
}

/* ============================================ */
/* Responsive adjustments for enhanced pages   */
/* ============================================ */

@media (max-width: 768px) {
  .item-list {
    grid-template-columns: 1fr;
  }
  .thumb-wrap {
    height: 180px;
  }
  .filter-bar {
    gap: 6px;
  }
  .filter-tag {
    padding: 4px 12px;
    font-size: 0.8rem;
  }
  .detail-hero,
  .detail-hero img {
    max-height: 260px;
  }
  .detail-header {
    padding: 24px 0;
  }
  .detail-header h1 {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .pagination {
    gap: 4px;
  }
  .page-num {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 0.8rem;
  }
}

/* ============================================ */
/* Case card with image                         */
/* ============================================ */

.case-card {
  overflow: hidden;
  border-radius: 8px;
}

.case-card .thumb-wrap {
  height: 200px;
  position: relative;
  overflow: hidden;
}

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

.case-card:hover .thumb {
  transform: scale(1.08);
}

/* No-pic placeholder */
.nopic-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  color: #999;
  font-size: 0.9rem;
}

/* ============================================ */
/* Hero with background image                   */
/* ============================================ */

.hero-bg {
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,26,0.92) 0%, rgba(51,51,51,0.85) 100%);
}

.hero-bg .container {
  position: relative;
  z-index: 2;
}

/* ============================================ */
/* Grid background decoration                   */
/* ============================================ */

.grid-bg {
  background-image: 
    linear-gradient(rgba(211,47,47,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(211,47,47,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ============================================ */
/* Animated card top border                     */
/* ============================================ */

.card {
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: var(--red);
  transition: left 0.3s;
  z-index: 1;
}

.card:hover::before {
  left: 0;
}

/* ============================================ */
/* Card icon hover effect                       */
/* ============================================ */

.card-icon {
  transition: all 0.3s ease;
  cursor: pointer;
}

.card:hover .card-icon {
  transform: rotate(-5deg) scale(1.1);
  box-shadow: 0 4px 12px rgba(211,47,47,0.4);
}

/* ============================================ */
/* Pulse animation for CTA buttons              */
/* ============================================ */

@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(211,47,47,0.4); }
  50% { box-shadow: 0 0 0 10px rgba(211,47,47,0); }
}

.pulse {
  animation: pulse-red 2s infinite;
}

/* ============================================ */
/* Process steps with connecting line           */
/* ============================================ */

.process-steps {
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--red) 0, var(--red) 8px, transparent 8px, transparent 16px);
  opacity: 0.3;
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .process-steps::before {
    display: none;
  }
}

/* ============================================ */
/* Contact page - image + info layout           */
/* ============================================ */

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

.contact-image-wrap {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--border-gray);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-image-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.contact-img {
  width: 100%;
  display: block;
  border-bottom: 3px solid var(--red);
}

.contact-info-below {
  padding: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-gray);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-icon {
  font-size: 1.4rem;
  line-height: 1.4;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-gray);
  border-radius: 8px;
}

.contact-item strong {
  display: block;
  color: var(--black);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.contact-item p {
  margin: 0;
  color: var(--medium-gray);
  font-size: 0.9rem;
  line-height: 1.5;
}

.contact-details-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail-card {
  background: var(--white);
  padding: 22px 24px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--border-gray);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.contact-detail-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  border-color: var(--red);
}

.contact-detail-card h3 {
  margin: 0 0 10px;
  color: var(--black);
  font-size: 1.05rem;
}

.contact-detail-card p {
  margin: 0 0 4px;
  color: var(--medium-gray);
  font-size: 0.92rem;
}

.phone-number {
  font-size: 1.3rem !important;
  font-weight: 700;
  color: var(--red) !important;
  letter-spacing: 1px;
}

.contact-tip {
  font-size: 0.82rem !important;
  color: #999 !important;
  margin-top: 6px !important;
}

.qrcode-placeholder {
  width: 140px;
  height: 140px;
  background: var(--light-gray);
  border: 2px dashed var(--border-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
  transition: border-color 0.3s;
}

.qrcode-placeholder:hover {
  border-color: var(--red);
}

.qrcode-inner {
  text-align: center;
  color: var(--medium-gray);
}

.qrcode-inner span {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.qrcode-icon {
  font-size: 2.5rem;
  opacity: 0.4;
  color: var(--black);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-img {
    max-height: 240px;
    object-fit: cover;
  }
  .phone-number {
    font-size: 1.1rem !important;
  }
}

/* ============================================ */
/* Sub-service navigation (website.html)        */
/* ============================================ */

.sub-service-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 10px 0;
}

.sub-service-link {
  display: inline-block;
  padding: 12px 24px;
  background: var(--white);
  color: var(--dark-gray);
  border: 2px solid var(--border-gray);
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.sub-service-link:hover,
.sub-service-link.active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(211,47,47,0.3);
  text-decoration: none;
}

@media (max-width: 768px) {
  .sub-service-nav {
    gap: 8px;
  }
  .sub-service-link {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

/* ============================================ */
/* Sub-page content layout                      */
/* ============================================ */

/* Content wrapper */
.page-content {
  padding: 40px 0;
}

.page-content h2 {
  font-size: 1.6rem;
  color: var(--black);
  margin: 0 0 20px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.page-content h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 10px auto 0;
  border-radius: 2px;
}

.page-content h2 span {
  color: var(--red);
}

.page-content h3 {
  font-size: 1.2rem;
  color: var(--dark-gray);
  margin: 0 0 10px;
}

.page-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin: 0 0 15px;
}

.page-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Info grid (2-column) */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 30px 0;
}

.info-grid .info-item {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.info-grid .info-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-color: var(--red);
}

.info-grid .info-item img {
  max-height: 80px;
  margin-bottom: 15px;
  box-shadow: none;
  border-radius: 0;
}

.info-grid .info-item h3 {
  font-size: 1.1rem;
  color: var(--black);
  margin-bottom: 8px;
}

.info-grid .info-item p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.feature-list li {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 20px;
  position: relative;
  padding-left: 50px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 18px;
  top: 18px;
  color: var(--red);
  font-weight: bold;
  font-size: 1.2rem;
}

.feature-list li strong {
  display: block;
  color: var(--black);
  margin-bottom: 4px;
  font-size: 1rem;
}

/* Content highlight box */
.highlight-box {
  background: var(--section-gray);
  border-left: 4px solid var(--red);
  padding: 25px 30px;
  margin: 25px 0;
  border-radius: 0 8px 8px 0;
}

.highlight-box h3 {
  color: var(--black);
  margin-bottom: 10px;
}

.highlight-box p {
  margin: 0;
  color: #555;
}

/* Image showcase */
.img-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}

.img-showcase img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
  .feature-list {
    grid-template-columns: 1fr;
  }
  .img-showcase {
    grid-template-columns: 1fr;
  }
  .page-content h2 {
    font-size: 1.3rem;
  }
}

/* ============================================ */
/* Fade-in scroll animation                     */
/* ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================ */
/* Service hero section                         */
/* ============================================ */

.service-hero {
  padding: 60px 0 40px;
  text-align: center;
  background: var(--black);
  color: var(--white);
}

.service-hero h1 {
  margin: 0 0 16px;
  font-size: 2rem;
}

.service-hero .conclusion {
  font-size: 1.05rem;
  color: #ccc;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

.service-hero .conclusion strong {
  color: var(--red);
}

@media (max-width: 768px) {
  .service-hero { padding: 40px 0 30px; }
  .service-hero h1 { font-size: 1.5rem; }
  .service-hero .conclusion { font-size: 0.95rem; }
}