:root {
  --primary: #1A73E8;
  --primary-dark: #0D47A1;
  --secondary: #00ACC1;
  --dark: #1B2838;
  --dark-light: #2C3E50;
  --bg: #F8F9FA;
  --white: #FFFFFF;
  --gray: #6C757D;
  --gray-light: #ADB5BD;
  --gray-bg: #F0F2F5;
  --border: #E9ECEF;
  --success: #28A745;
  --warning: #FFC107;
  --danger: #DC3545;
  --text: #212529;
  --text-light: #6C757D;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ===== THEME: TaoBao Orange ===== */
[data-theme="taobao"] {
  --primary: #FF6A00;
  --primary-dark: #E65100;
  --secondary: #FF8F00;
  --dark: #2C1B0E;
  --bg: #FFF8F0;
  --gray-bg: #FFF0E0;
  --border: #FFE0C0;
  --shadow: 0 2px 12px rgba(255,106,0,0.08);
  --shadow-hover: 0 8px 24px rgba(255,106,0,0.15);
}

/* ===== THEME: JD Red ===== */
[data-theme="jd"] {
  --primary: #C91623;
  --primary-dark: #8B0000;
  --secondary: #E53935;
  --dark: #1A0A0A;
  --bg: #FFF5F5;
  --gray-bg: #FFE8E8;
  --border: #FFD0D0;
  --shadow: 0 2px 12px rgba(201,22,35,0.08);
  --shadow-hover: 0 8px 24px rgba(201,22,35,0.15);
}

/* ===== THEME: JD Red Dark Mode ===== */
[data-theme="jd"] .navbar {
  background: rgba(201,22,35,0.05);
}
[data-theme="taobao"] .navbar {
  background: rgba(255,106,0,0.05);
}



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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title .subtitle {
  display: inline-block;
  font-size: 12px;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}
.section-title h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
}
.section-title p {
  color: var(--text-light);
  margin-top: 8px;
  font-size: 15px;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}
.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}
.navbar .logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}
.navbar .logo-text small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--gray-light);
  letter-spacing: 1px;
}
.navbar .nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.navbar .nav-links a {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.navbar .nav-links a:hover,
.navbar .nav-links a.active {
  color: var(--primary);
}
.navbar .nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}
.navbar .nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark);
  padding: 4px;
}

/* ===== HERO / BANNER ===== */
.hero-section {
  padding-top: 64px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
}
.hero-section::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.hero-section::after {
  content: '';
  position: absolute;
  right: 100px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 0;
  color: #fff;
}
.hero-content .badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.9);
}
.hero-content h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}
.btn-primary {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  color: var(--primary-dark);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
}

/* ===== BANNER SWIPER ===== */
.banner-swiper {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.banner-slide {
  min-height: 460px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--secondary));
  color: #fff;
  padding: 80px 0;
}
.banner-slide .container {
  position: relative;
  z-index: 1;
}
.banner-slide h1 { font-size: 40px; font-weight: 800; margin-bottom: 12px; }
.banner-slide p { font-size: 16px; opacity: 0.85; margin-bottom: 24px; max-width: 500px; }
.banner-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
}
.banner-dots .dot {
  width: 24px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--transition);
}
.banner-dots .dot.active {
  background: #fff;
  width: 32px;
}

/* ===== SERVICES GRID ===== */
.services-section {
  padding: 60px 0;
  background: var(--white);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: default;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.service-card.featured {
  border-top: 3px solid var(--primary);
}
.service-card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}
.service-card p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== STATS ===== */
.stats-section {
  background: var(--dark);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stats-grid .stat-number {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
}
.stats-grid .stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

/* ===== CASES ===== */
.cases-section {
  padding: 60px 0;
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.case-card .case-cover {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
}
.case-card .case-body {
  padding: 20px;
}
.case-card .case-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.case-card .case-body .case-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.case-card .case-body .case-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.case-card .case-body .tag {
  padding: 2px 10px;
  background: var(--gray-bg);
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-light);
}

/* ===== ARTICLES ===== */
.articles-section {
  padding: 60px 0;
  background: var(--white);
}
.articles-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.article-item {
  display: flex;
  gap: 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: var(--transition);
  cursor: default;
}
.article-item:hover {
  box-shadow: var(--shadow);
}
.article-item .article-thumb {
  width: 80px;
  height: 80px;
  background: var(--gray-bg);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.article-item .article-info h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-item .article-info .meta {
  font-size: 12px;
  color: var(--text-light);
}

/* ===== CTA ===== */
.cta-section {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  text-align: center;
  color: #fff;
}
.cta-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}
.cta-section p {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 28px;
}
.cta-section .btn-primary {
  background: #fff;
  color: var(--primary);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  padding: 48px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.footer-brand .logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}
.footer-brand .logo span {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}
.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}
.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 2;
}
.footer-col ul li a {
  color: rgba(255,255,255,0.5);
}
.footer-col ul li a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding-top: 96px;
  padding-bottom: 40px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  text-align: center;
}
.page-header h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}
.page-header p {
  font-size: 15px;
  opacity: 0.8;
}

/* ===== FILTER TABS ===== */
.filter-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-tabs .tab {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-light);
}
.filter-tabs .tab:hover,
.filter-tabs .tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== SERVICE DETAIL PAGE ===== */
.detail-content {
  padding: 60px 0;
}
.detail-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}
.detail-card .detail-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.detail-card h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}
.detail-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ===== ABOUT PAGE ===== */
.about-section {
  padding: 60px 0;
}
.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}
.about-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}
.about-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-card .info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.about-card .info-item {
  background: var(--bg);
  padding: 16px;
  border-radius: var(--radius-sm);
}
.about-card .info-item .label {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 4px;
}
.about-card .info-item .value {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
}

/* ===== CONTACT PAGE ===== */
.contact-section {
  padding: 60px 0;
}
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}
.contact-form {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-form h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 4px;
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  transition: var(--transition);
  background: var(--bg);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}
.form-group textarea {
  min-height: 100px;
  resize: vertical;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-info-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-info-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}
.contact-info-card .info-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-light);
}
.contact-info-card .info-row .icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* ===== ARTICLE DETAIL ===== */
.article-detail {
  padding: 60px 0;
}
.article-detail-wrap {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.article-detail-wrap h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}
.article-detail-wrap .meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
}
.article-detail-wrap .content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}
.article-detail-wrap .content p {
  margin-bottom: 16px;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  top: 80px;
  right: 20px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}
.toast.show {
  opacity: 1;
  transform: translateX(0);
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 32px; }
}

@media (max-width: 768px) {
  .navbar .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 20px;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--border);
  }
  .navbar .nav-links.open { display: flex; }
  .navbar .nav-toggle { display: block; }

  .hero-section { min-height: auto; }
  .hero-content { padding: 48px 0; }
  .hero-content h1 { font-size: 28px; }
  .hero-content p { font-size: 14px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stats-grid .stat-number { font-size: 28px; }

  .services-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .articles-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .section-title h2 { font-size: 22px; }
  .page-header h1 { font-size: 24px; }
  .page-header { padding-top: 80px; padding-bottom: 28px; }

  .detail-card,
  .about-card,
  .article-detail-wrap {
    padding: 20px;
  }
  .about-card .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 24px; }
  .hero-content { padding: 32px 0; }
  .hero-content .badge { font-size: 11px; }
  .btn { padding: 10px 24px; font-size: 14px; }
  .container { padding: 0 16px; }
  .contact-form { padding: 20px; }
}
