/* ==========================================
   官网公共样式 - 对外展示
   ========================================== */
:root {
  --primary-color: #1e3a5f;
  --primary-light: #2d5a8f;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --text-color: #1f2937;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-white: #ffffff;
  --bg-white: #ffffff;
  --bg-gray: #f8fafc;
  --border-color: #e5e7eb;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 10px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --sidebar-width: 220px;
  /* 间距变量 */
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 20px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-xxl: 80px;
}

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

body {
  font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.7;
}

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

/* 顶部导航 */
.header {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.nav-bar {
  display: flex;
  align-items: center;
  padding: 16px 0;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: 1px;
  white-space: nowrap;
}

.logo-text {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 36px;
  margin-left: 70px;
  margin-right: 40px;
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.2s;
}

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

.nav-phone {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.nav-phone > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.phone-number {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
}

.phone-label {
  font-size: 12px;
  color: var(--text-light);
  margin-left: 4px;
}

.admin-entry-btn {
  margin-left: 24px;
  padding: 9px 20px;
  border: 1.5px solid var(--primary-color);
  border-radius: 8px;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

.admin-entry-btn:hover {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 12px rgba(30,58,95,0.3);
}

/* 首屏Banner */
.hero-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
  text-align: center;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 40px;
}

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

/* 按钮 */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 15px rgba(30,58,95,0.3);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30,58,95,0.4);
}

.btn-outline {
  border: 1.5px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

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

/* 区块 */
.section {
  padding: 90px 0;
}

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

.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 60px;
  font-size: 17px;
}

/* 产品卡片网格 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 1px solid var(--border-color);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.product-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.product-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.product-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* 优势网格 */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

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

.advantage-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.advantage-desc {
  font-size: 15px;
  color: var(--text-light);
}

/* 统计数字 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 15px;
  color: var(--text-light);
}

/* 客户案例 */
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.case-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 24px;
  border: 1px solid var(--border-color);
}

.case-item h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.case-item p {
  font-size: 14px;
  color: var(--text-light);
}

/* 常见问题 */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
}

.faq-item h4 {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.faq-item p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
}

/* CTA区块 */
.cta-box {
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border-radius: 16px;
  padding: 60px 40px;
  color: #fff;
}

.cta-title {
  font-size: 32px;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 30px;
}

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

/* 页脚 */
.footer {
  background: #1a2744;
  color: rgba(255,255,255,0.75);
  padding: 60px 0 24px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-title {
  color: #fff;
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-desc {
  line-height: 1.8;
  font-size: 14px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer-contact li {
  list-style: none;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}

/* 移动端 */
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-phone { display: none; }
  .hero-title { font-size: 32px; }
  .product-grid, .advantage-grid, .stats-grid, .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-content { grid-template-columns: 1fr; }
}
