/* ========================================
   闫宝龙 - 泰语网站建设
   Design: 丝路起点·泰风金辉·专业笃定
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #0f172a;
  --color-primary-light: #1e293b;
  --color-accent: #d4a853;
  --color-accent-dark: #b8922e;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-bg: #f8fafc;
  --color-card: #ffffff;
  --color-border: #e2e8f0;
  --font-main: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --section-gap: 80px;
  --container-width: 1200px;
  --nav-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

/* --- Container --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.transparent {
  background: transparent;
}

.navbar.solid {
  background: rgba(15, 23, 42, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
}

.nav-logo-text .reg-mark {
  font-size: 10px;
  vertical-align: super;
  color: var(--color-accent);
  margin-left: 1px;
}

.nav-logo-divider {
  color: var(--color-accent);
  margin: 0 10px;
  font-size: 20px;
  font-weight: 300;
}

.nav-logo-sub {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 1px;
  white-space: nowrap;
}

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

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 400;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease-out;
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--color-accent) !important;
  color: var(--color-primary) !important;
  padding: 8px 20px !important;
  border-radius: 6px;
  font-weight: 500 !important;
  transition: background 0.3s ease, transform 0.3s ease !important;
}

.nav-cta:hover {
  background: var(--color-accent-dark) !important;
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none !important;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-primary);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #0f172a 0%,
    #162033 25%,
    #1a2744 50%,
    #162033 75%,
    #0f172a 100%
  );
  background-size: 400% 400%;
  animation: heroGradient 15s ease infinite;
  z-index: 0;
}

@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Decorative geometric lines - Thai stupa silhouette */
.hero-decor {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-decor::before {
  content: '';
  position: absolute;
  right: -5%;
  top: 15%;
  width: 400px;
  height: 500px;
  border: 1px solid rgba(212, 168, 83, 0.12);
  clip-path: polygon(50% 0%, 65% 15%, 60% 30%, 70% 45%, 65% 55%, 75% 70%, 50% 100%, 25% 70%, 35% 55%, 30% 45%, 40% 30%, 35% 15%);
}

.hero-decor::after {
  content: '';
  position: absolute;
  left: 10%;
  bottom: 20%;
  width: 200px;
  height: 250px;
  border: 1px solid rgba(212, 168, 83, 0.08);
  clip-path: polygon(50% 0%, 65% 15%, 60% 30%, 70% 45%, 65% 55%, 75% 70%, 50% 100%, 25% 70%, 35% 55%, 30% 45%, 40% 30%, 35% 15%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid rgba(212, 168, 83, 0.4);
  border-radius: 100px;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: 52px;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: 2px;
  line-height: 1.2;
}

.hero h1 .accent {
  color: var(--color-accent);
}

.hero-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

/* --- Section Common --- */
.section {
  padding: var(--section-gap) 0;
}

.section-dark {
  background: var(--color-primary);
  color: #ffffff;
}

.section-light {
  background: var(--color-bg);
}

.section-white {
  background: var(--color-card);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .label {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-dark .section-header .label {
  color: var(--color-accent);
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 16px;
  color: var(--color-text);
}

.section-dark .section-header h2 {
  color: #ffffff;
}

.section-header p {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.6);
}

/* --- Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 36px 28px;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, border-color 0.3s ease-out;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-out;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(212, 168, 83, 0.3);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.1), rgba(212, 168, 83, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  color: var(--color-accent);
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--color-text);
}

.service-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Advantages Section --- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.adv-item {
  text-align: center;
  padding: 32px 20px;
}

.adv-num {
  font-size: 42px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 8px;
}

.adv-num span {
  font-size: 18px;
  font-weight: 400;
}

.adv-item h3 {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 8px;
}

.adv-item p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

/* --- Process Section --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(to right, var(--color-accent), rgba(212, 168, 83, 0.2));
}

.process-step {
  text-align: center;
  position: relative;
  padding: 0 12px;
}

.step-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-card);
  border: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  color: var(--color-accent);
  position: relative;
  z-index: 1;
  transition: background 0.3s ease, color 0.3s ease;
}

.process-step:hover .step-circle {
  background: var(--color-accent);
  color: var(--color-primary);
}

.step-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.process-step h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--color-text);
}

.process-step p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --- Industries Section --- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.industry-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.industry-card:hover {
  border-color: rgba(212, 168, 83, 0.4);
  background: rgba(212, 168, 83, 0.05);
}

.industry-card .icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
}

.industry-card h3 {
  font-size: 17px;
  color: #ffffff;
  margin-bottom: 8px;
}

.industry-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

/* --- About Section --- */
.about-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}

.about-photo {
  position: relative;
}

.about-photo img {
  width: 100%;
  border-radius: 12px;
  border: 3px solid var(--color-accent);
  aspect-ratio: 3/4;
  object-fit: cover;
}

.about-photo::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: -12px;
  bottom: -12px;
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: 12px;
  z-index: -1;
}

.about-info h3 {
  font-size: 28px;
  color: var(--color-text);
  margin-bottom: 8px;
}

.about-info .title-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(212, 168, 83, 0.1);
  color: var(--color-accent-dark);
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  margin-bottom: 20px;
}

.about-info p {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.highlight-item {
  padding: 20px 16px;
  background: var(--color-bg);
  border-radius: 8px;
  text-align: center;
}

.highlight-item .num {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-accent-dark);
  line-height: 1;
  margin-bottom: 6px;
}

.highlight-item .num span {
  font-size: 14px;
  font-weight: 400;
}

.highlight-item .desc {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* --- FAQ Section --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(212, 168, 83, 0.3);
}

.faq-item.active {
  border-color: rgba(212, 168, 83, 0.4);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  background: var(--color-card);
  transition: background 0.3s ease;
  gap: 16px;
  width: 100%;
  border: none;
  text-align: left;
  font-family: var(--font-main);
}

.faq-question:hover {
  background: #fefdfb;
}

.faq-question h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  flex: 1;
}

.faq-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(212, 168, 83, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}

.faq-arrow svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent-dark);
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  background: rgba(212, 168, 83, 0.2);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* --- Contact Section --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(212, 168, 83, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent-dark);
  font-size: 20px;
}

.contact-item .info h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.contact-item .info p {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
}

.contact-item .info a {
  color: var(--color-accent-dark);
  transition: color 0.3s ease;
}

.contact-item .info a:hover {
  color: var(--color-accent);
}

.contact-qr {
  text-align: center;
  padding: 32px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.contact-qr img {
  width: 180px;
  height: 180px;
  border-radius: 8px;
  margin: 0 auto 12px;
}

.contact-qr p {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* --- Footer --- */
.footer {
  background: #080d1a;
  padding: 48px 0 0;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  margin-bottom: 32px;
}

.footer-links h4 {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px 16px;
}

.footer-links-grid a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.3s ease;
  line-height: 1.8;
  display: inline-block;
}

.footer-links-grid a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--color-accent);
}

/* --- Scroll Animation --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-accent);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
  z-index: 999;
  border: none;
  font-size: 20px;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-accent-dark);
}

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

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

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

  .process-steps::before {
    display: none;
  }

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

  .about-layout {
    grid-template-columns: 240px 1fr;
    gap: 32px;
  }

  .footer-links-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 56px;
    --nav-height: 60px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-badge {
    font-size: 12px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

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

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

  .process-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step-circle {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }

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

  .about-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-photo {
    max-width: 240px;
    margin: 0 auto;
  }

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

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

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

  .btn-primary, .btn-outline {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hero-decor::before,
  .hero-decor::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
  }

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

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

  .footer-links-grid {
    grid-template-columns: 1fr;
  }
}
