/* ========================================
   YaKeSys 雅克系统 — Shared Styles
   Modern B2B SaaS corporate website
   ======================================== */

/* CSS Custom Properties */
:root {
  --color-primary: #2563EB;
  --color-primary-dark: #1D4ED8;
  --color-primary-light: #DBEAFE;
  --color-accent: #F97316;
  --color-accent-dark: #EA580C;
  --color-text: #1F2937;
  --color-text-secondary: #4B5563;
  --color-text-muted: #6B7280;
  --color-bg: #FFFFFF;
  --color-bg-soft: #F8FAFC;
  --color-bg-blue: #EFF6FF;
  --color-border: #E5E7EB;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --radius-sm: 0.5rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --max-width: 1200px;
  --header-height: 72px;
  --transition: 0.3s ease;
}

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

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

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

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

a:hover {
  color: var(--color-primary-dark);
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10000;
  transition: top 0.2s;
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Typography */
.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}

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

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

.btn-accent:hover {
  background: var(--color-accent-dark);
  color: #fff;
}

.btn-outline {
  border: 2px solid var(--color-border);
  color: var(--color-text);
  background: #fff;
}

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

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  background: transparent;
}

.btn-outline-light:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn-white {
  background: #fff;
  color: var(--color-primary);
}

.btn-white:hover {
  background: var(--color-bg-soft);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
}

.logo:hover {
  color: var(--color-text);
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 800;
}

.logo-img {
  height: 36px;
  width: auto;
  max-width: 180px;
  flex-shrink: 0;
}

.logo span {
  color: var(--color-primary);
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

.nav-link {
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--color-primary);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.header-cta {
  display: none;
}

@media (min-width: 1024px) {
  .header-cta {
    display: inline-flex;
  }
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.menu-toggle:hover {
  background: var(--color-bg-soft);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

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

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

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

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 500;
}

.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.mobile-cta {
  margin-top: 0.75rem;
  width: 100%;
}

/* Main content spacing for fixed header */
main {
  padding-top: var(--header-height);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--color-bg-blue) 0%, #fff 100%);
}

@media (min-width: 768px) {
  .hero {
    padding: 6rem 0;
  }
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1.05fr;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-center {
  text-align: center;
}

.hero-center .hero-desc {
  margin-left: auto;
  margin-right: auto;
}

.hero-center .hero-actions {
  justify-content: center;
}

.hero-center .hero-stats {
  justify-content: center;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: left;
}

.hero-stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
}

.hero-stat span {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.hero-visual {
  position: relative;
}

/* Dashboard illustration card */
.dashboard-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-soft);
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dot.red { background: #EF4444; }
.window-dot.yellow { background: #F59E0B; }
.window-dot.green { background: #10B981; }

.dashboard-title {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.dashboard-body {
  padding: 1.25rem;
}

/* Mini stat cards inside dashboard */
.mini-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mini-stat {
  background: var(--color-bg-soft);
  border-radius: var(--radius);
  padding: 0.75rem;
}

.mini-stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.mini-stat-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
}

.mini-stat-value.up { color: #10B981; }
.mini-stat-value.down { color: #EF4444; }

/* Chart bars */
.chart {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 90px;
  padding-top: 0.5rem;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--color-primary), #60A5FA);
  border-radius: 4px 4px 0 0;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.chart-bar:nth-child(2) { height: 65%; }
.chart-bar:nth-child(3) { height: 85%; }
.chart-bar:nth-child(4) { height: 55%; }
.chart-bar:nth-child(5) { height: 95%; }
.chart-bar:nth-child(6) { height: 70%; }
.chart-bar:nth-child(7) { height: 100%; }
.chart-bar:nth-child(8) { height: 80%; }

.chart-bar.accent {
  background: linear-gradient(180deg, var(--color-accent), #FDBA74);
}

/* Section backgrounds */
.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 5rem 0;
  }
}

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

/* Cards */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-text {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

/* Grid layouts */
.grid-2 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Feature block */
.feature-block {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 4rem;
}

.feature-block:last-child {
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .feature-block {
    grid-template-columns: 1fr 1fr;
  }
  .feature-block.reverse .feature-content {
    order: 2;
  }
  .feature-block.reverse .feature-visual {
    order: 1;
  }
}

.feature-label {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.feature-title {
  font-size: 1.625rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-list {
  margin-top: 1rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-secondary);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563EB' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Solutions */
.solution-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.solution-visual {
  height: 160px;
  background: linear-gradient(135deg, var(--color-primary-light), #fff);
  display: grid;
  place-items: center;
}

.solution-visual svg {
  width: 80px;
  height: 80px;
  color: var(--color-primary);
}

.solution-body {
  padding: 1.5rem;
}

.solution-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.solution-body p {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

/* Cases */
.case-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.case-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-soft);
}

.case-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.case-industry {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.case-body {
  padding: 1.5rem;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.case-metric strong {
  display: block;
  font-size: 1.25rem;
  color: var(--color-primary);
}

.case-metric span {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* 案例列表：头区序号 + 行业标签 */
.case-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.case-index {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  opacity: 0.5;
}

.case-card .case-industry {
  margin-bottom: 0;
}

.case-card .card-title a {
  color: var(--color-text);
}

.case-card .card-title a:hover {
  color: var(--color-primary);
}

/* 首张案例跨列强调展示 */
@media (min-width: 768px) {
  .case-grid .case-card:first-child {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--color-bg-blue) 0%, #fff 65%);
  }

  .case-grid .case-card:first-child .case-header {
    background: transparent;
    border-bottom-color: transparent;
    padding-bottom: 0;
  }

  .case-grid .case-card:first-child .case-body {
    padding-top: 0.5rem;
  }

  .case-grid .case-card:first-child .case-index {
    font-size: 1.75rem;
    opacity: 1;
  }

  .case-grid .case-card:first-child .card-title {
    font-size: 1.5rem;
  }

  .case-grid .case-card:first-child .case-body p {
    font-size: 1rem;
    max-width: 760px;
  }
}

.testimonial-text {
  font-style: italic;
}

.testimonial-author {
  margin-top: 1rem;
}

.testimonial-author .role {
  font-size: 0.875rem;
}

/* Blog */
.blog-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.blog-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-bg-soft));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.blog-thumb svg {
  width: 64px;
  height: 64px;
  color: var(--color-primary);
}

.blog-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.blog-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.blog-title a{
  color: var(--color-text);
  text-decoration: none;
}

.blog-excerpt {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  flex: 1;
}

.blog-link {
  margin-top: 1rem;
  font-weight: 600;
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary), var(--shadow-lg);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 1rem;
  border-radius: 999px;
}

.pricing-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-desc {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.pricing-price span {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.pricing-features {
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

.pricing-features li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  margin-top: 0.15rem;
}

.pricing-card .btn {
  width: 100%;
}

/* FAQ */
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform var(--transition);
}

.faq-item[open] .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--color-text-secondary);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

/* About */
.about-hero {
  background: linear-gradient(180deg, var(--color-bg-blue) 0%, #fff 100%);
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.55rem;
  top: 0.25rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--color-primary);
}

.timeline-year {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-text {
  color: var(--color-text-secondary);
}

.team-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.team-card {
  text-align: center;
}

.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-bg-soft));
  display: grid;
  place-items: center;
  color: var(--color-primary);
  font-size: 1.75rem;
  font-weight: 700;
}

.team-name {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

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

/* Contact */
.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.form-lead {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
}

/* 安全设置未开启验证码时，隐藏留言/联系表单中的验证码项 */
html[data-captcha="0"] .captcha-group {
  display: none !important;
}

.form-error {
  display: none;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #DC2626;
}

.form-error.is-visible {
  display: block;
}

.form-group input.is-invalid,
.form-group textarea.is-invalid,
.form-group select.is-invalid {
  border-color: #DC2626;
}

.form-group input.is-invalid:focus,
.form-group textarea.is-invalid:focus,
.form-group select.is-invalid:focus {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.form-success {
  padding: 1rem;
  background: #D1FAE5;
  color: #047857;
  border-radius: var(--radius);
}

.btn-block {
  width: 100%;
}

.contact-info-card {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 2rem;
}

.contact-info-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-info-list {
  margin-top: 1.5rem;
}
.contact-info-list a{
  color: #fff;
}


.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.contact-info-list li svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 0.15rem;
}

.contact-wechat {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
}

.contact-wechat img {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  padding: 6px;
  background: #fff;
  border-radius: var(--radius);
}

.contact-wechat-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.contact-wechat-text strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #fff;
  font-size: 1rem;
}

.office-map {
  height: 320px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #DBEAFE, #EFF6FF);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.office-map-inner {
  text-align: center;
  color: var(--color-primary);
}

.office-map-inner svg {
  margin: 0 auto 1rem;
}

.office-map-address {
  margin: 0;
  font-weight: 700;
}

.office-map-note {
  margin: 0.25rem 0 0;
  font-size: 0.9375rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  text-align: center;
  padding: 4rem 0;
}

.cta-section .section-title {
  color: #fff;
}

.cta-section .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--color-border);
}

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

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb [aria-current="page"] {
  color: var(--color-text);
  font-weight: 500;
}

/* Footer */
.site-footer {
  background: #0F172A;
  color: #CBD5E1;
  padding: 4rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.9fr;
  }
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #94A3B8;
}

.footer-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  color: #94A3B8;
}

.footer-contact svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
}

.footer-contact li a {
  color: #94A3B8;
  text-decoration: none;
}

.footer-contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem;
}

.footer-contact-row .footer-contact {
  flex: 1 1 180px;
  min-width: 0;
}

.footer-wechat {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-wechat-qr {
  width: 96px;
  height: 96px;
  padding: 5px;
  background: #fff;
  border-radius: var(--radius);
}

.footer-wechat-tip {
  max-width: 120px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #64748B;
  text-align: center;
  word-break: break-all;
}

.footer-wechat-tip strong {
  color: #CBD5E1;
  font-weight: 600;
}


.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  font-size: 0.875rem;
  color: #64748B;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom a {
  color: #94A3B8;
}

/* Scroll reveal animations — fail open */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* No-JS fallback: content must be visible */
.no-js .reveal,
html:not(.js) .reveal {
  opacity: 1;
  transform: none;
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tag */
.tag {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
}

.tag-accent {
  background: #FFEDD5;
  color: var(--color-accent-dark);
}

/* ========================================
   AnQiCMS 集成补充样式
   ======================================== */

/* 内容容器宽度 */
/* .container.narrow {
  max-width: 820px;
} */

/* 紧凑型 hero（列表/搜索/单页标题区） */
.hero-compact {
  padding: 3rem 0 2rem;
}

.hero-compact .hero-title {
  margin-bottom: 0.75rem;
}

/* 博客缩略图图片 */
.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 空状态提示 */
.empty-tip {
  text-align: center;
  color: var(--color-text-muted);
  padding: 3rem 0;
}

/* 分页 */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
}

.pagination .page-link:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.pagination .page-link.is-current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  cursor: default;
}

.pagination .page-link.is-gap {
  border-color: transparent;
  background: transparent;
  cursor: default;
}

/* 详情页（文章 / 案例 / 单页） */
.single-wrap {
  padding: 3rem 0 4rem;
}

.single-head {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.single-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.single-cat {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
}

.single-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.3;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.single-desc {
  color: var(--color-text-secondary);
  font-size: 1rem;
}

.single-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.single-tags-label {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.single-nav {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

@media (min-width: 640px) {
  .single-nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

.single-nav-item {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-soft);
  color: var(--color-text);
}

.single-nav-item:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
}

.single-nav-item span {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.single-nav-item strong {
  font-size: 0.9375rem;
  line-height: 1.5;
}

.single-nav-item.next {
  text-align: right;
}

/* 富文本正文排版 */
.single-arc {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.9;
}

.single-arc > *:first-child {
  margin-top: 0;
}

.single-arc h1,
.single-arc h2,
.single-arc h3,
.single-arc h4 {
  color: var(--color-text);
  line-height: 1.4;
  margin: 2rem 0 1rem;
}

.single-arc h2 { font-size: 1.5rem; }
.single-arc h3 { font-size: 1.25rem; }

.single-arc p {
  margin: 0 0 1.25rem;
}

.single-arc a {
  text-decoration: underline;
}

.single-arc ul,
.single-arc ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.single-arc li {
  margin-bottom: 0.5rem;
}

.single-arc img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.single-arc blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--color-primary);
  background: var(--color-bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--color-text-secondary);
}

.single-arc table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.single-arc th,
.single-arc td {
  border: 1px solid var(--color-border);
  padding: 0.625rem 0.875rem;
  text-align: left;
}

.single-arc th {
  background: var(--color-bg-soft);
  color: var(--color-text);
}

/* 单页正文区（后台可视化编辑内容，兼容设计中的 .section 结构） */
.page-arc {
  padding: 3rem 0 4rem;
}

.page-arc > .section:first-child {
  padding-top: 0;
}

.page-arc :where(h1, h2, h3, h4) {
  margin: 2rem 0 1rem;
}

.page-arc :where(p) {
  margin: 0 0 1.25rem;
}

.page-arc :where(ul, ol) {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.page-arc :where(img) {
  border-radius: var(--radius);
}

.page-arc > .container,
.page-arc > .section > .container {
  max-width: var(--max-width);
}

/* 表单：单选/多选/验证码 */
.option-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.option-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.captcha-row {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
}

.captcha-row input[type="text"] {
  flex: 1;
}

.captcha-row img {
  width: 150px;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  cursor: pointer;
}

/* 标签云 */
.tag-cloud {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tag-letter {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list .tag {
  font-size: 0.8125rem;
}

/* 404 */
.error-page {
  padding: 6rem 0;
}

.error-code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary-light);
  letter-spacing: 0.05em;
}

.error-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 1rem 0 0.75rem;
}

.error-desc {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}
