/*
Theme Name: Lingxing Style
Theme URI: https://www.lingxing.com/
Author: Trae AI
Description: 仿照领星ERP官网设计的WordPress主题，适用于SaaS/企业服务类网站
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: lingxing
*/

:root {
  --primary: #1F56E0;
  --primary-dark: #1A45B8;
  --primary-light: #E8EEFC;
  --text-dark: #1A1A2E;
  --text-gray: #666680;
  --text-light: #9999B3;
  --bg-white: #FFFFFF;
  --bg-light: #F7F9FC;
  --bg-gray: #F0F2F5;
  --border: #E5E8EF;
  --shadow-sm: 0 2px 8px rgba(31, 86, 224, 0.06);
  --shadow-md: 0 8px 32px rgba(31, 86, 224, 0.08);
  --shadow-lg: 0 16px 48px rgba(31, 86, 224, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(31, 86, 224, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-large {
  padding: 18px 40px;
  font-size: 16px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-logo span {
  color: var(--primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-dark);
}

/* Hero Section */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, #F7F9FC 0%, #FFFFFF 100%);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-gray);
  margin-bottom: 16px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-desc {
  font-size: 18px;
  color: var(--text-gray);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-desc .highlight {
  color: var(--primary);
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-source {
  font-size: 13px;
  color: var(--text-light);
}

/* Dashboard Mockup */
.dashboard-mockup {
  margin-top: 60px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}

.dashboard-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dashboard-dot.red { background: #FF5F57; }
.dashboard-dot.yellow { background: #FEBC2E; }
.dashboard-dot.green { background: #28C840; }

.dashboard-body {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 24px;
}

.dashboard-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: left;
}

.dashboard-card .label {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 8px;
}

.dashboard-card .value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
}

.dashboard-card .trend {
  font-size: 12px;
  margin-top: 4px;
}

.dashboard-card .trend.up { color: #22C55E; }
.dashboard-card .trend.down { color: #EF4444; }

/* Customer Logos */
.customer-logos {
  padding: 80px 0;
  text-align: center;
}

.customer-logos-title {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 32px;
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px;
}

.logos-grid .logo-item {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-light);
  opacity: 0.6;
  transition: opacity 0.2s, color 0.2s;
}

.logos-grid .logo-item:hover {
  opacity: 1;
  color: var(--primary);
}

/* Section Common */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--text-gray);
  margin-bottom: 48px;
}

/* Features Grid */
.features {
  background: var(--bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-card.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, #FFFFFF 0%, #F0F5FF 100%);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 28px;
}

.feature-icon.blue { background: #E8EEFC; color: var(--primary); }
.feature-icon.green { background: #E8F8EF; color: #22C55E; }
.feature-icon.orange { background: #FFF3E8; color: #F59E0B; }
.feature-icon.purple { background: #F0EBFC; color: #8B5CF6; }
.feature-icon.pink { background: #FCE8F0; color: #EC4899; }
.feature-icon.teal { background: #E8F8F8; color: #14B8A6; }
.feature-icon.red { background: #FCE8E8; color: #EF4444; }
.feature-icon.indigo { background: #E8EEFC; color: #4F46E5; }

.feature-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* Feature Detail */
.feature-detail {
  display: none;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-top: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.feature-detail.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.feature-detail-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.feature-detail-desc {
  font-size: 15px;
  color: var(--text-gray);
  margin-bottom: 24px;
  line-height: 1.7;
}

.feature-detail-list {
  list-style: none;
}

.feature-detail-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-dark);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feature-detail-list li:last-child {
  border-bottom: none;
}

.feature-detail-list li::before {
  content: "●";
  color: var(--primary);
  font-size: 10px;
  margin-top: 6px;
  flex-shrink: 0;
}

.feature-visual {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Why Choose Us */
.why-us {
  background: var(--bg-white);
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.why-us-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.3s;
}

.why-us-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.why-us-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: var(--primary);
}

.why-us-stat {
  font-size: 42px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.why-us-stat-label {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 20px;
}

.why-us-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.why-us-list {
  list-style: none;
  text-align: left;
}

.why-us-list li {
  font-size: 14px;
  color: var(--text-gray);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.why-us-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 600;
}

/* Testimonials */
.testimonials {
  background: var(--bg-light);
}

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.testimonial-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.testimonial-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.testimonial-content {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.7;
}

/* Certifications */
.certifications {
  background: var(--bg-white);
  text-align: center;
}

.cert-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.cert-logo {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-gray);
  text-align: center;
  padding: 8px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #1F56E0 0%, #4B7BEC 100%);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  color: #fff;
  margin: 0 24px;
}

.cta-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--primary);
}

.cta-section .btn-primary:hover {
  background: #F0F2F5;
  color: var(--primary-dark);
}

/* Footer */
.site-footer {
  background: #1A1A2E;
  color: #A0A0B8;
  padding: 64px 0 24px;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .site-logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #A0A0B8;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #2D2D44;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
}

.footer-bottom a {
  color: #A0A0B8;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-bottom-links {
  margin-bottom: 8px;
}

.footer-bottom-links a {
  margin: 0 8px;
}

/* Responsive */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-body {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .why-us-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-cards {
    grid-template-columns: 1fr;
  }

  .feature-detail.active {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-title {
    font-size: 28px;
  }

  .cta-section {
    margin: 0 16px;
    padding: 40px 24px;
  }

  .cta-title {
    font-size: 24px;
  }

  .dashboard-body {
    grid-template-columns: 1fr;
  }

  .logos-grid {
    gap: 32px;
  }
}