/* 蒙算科技 - 全局样式 */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #0ea5e9;
  --accent: #8b5cf6;
  --dark: #1e293b;
  --gray: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
}

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

/* 导航栏 */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

.nav-cta {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

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

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

.btn-white:hover {
  background: var(--light);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.1rem;
}

/* 页面标题区 */
.page-hero {
  background: var(--gradient);
  color: var(--white);
  padding: 80px 0 60px;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.page-hero .subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* 面包屑导航 */
.breadcrumb {
  background: var(--light);
  padding: 16px 0;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--gray);
  text-decoration: none;
}

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

.breadcrumb .sep {
  margin: 0 8px;
  color: var(--gray);
}

.breadcrumb .current {
  color: var(--dark);
  font-weight: 500;
}

/* 内容区块 */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  color: var(--dark);
}

.section-title p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

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

/* 特性卡片 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  text-align: center;
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.8rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--dark);
}

.feature-card p {
  color: var(--gray);
  line-height: 1.7;
}

/* 两栏布局 */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-col .content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.two-col .content p {
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.8;
}

.two-col .content ul {
  list-style: none;
  margin-top: 20px;
}

.two-col .content ul li {
  padding: 8px 0;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.two-col .content ul li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
}

.visual {
  background: var(--gradient);
  border-radius: 16px;
  padding: 60px 40px;
  color: white;
  text-align: center;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.visual h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

/* 流程步骤 */
.steps {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 40px;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step::after {
  content: '';
  position: absolute;
  top: 30px;
  right: -15px;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.step:last-child::after {
  display: none;
}

.step-num {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 20px;
}

.step h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.step p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* 表格 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.data-table th,
.data-table td {
  padding: 16px 24px;
  text-align: left;
}

.data-table th {
  background: var(--gradient);
  color: white;
  font-weight: 600;
}

.data-table tr:nth-child(even) {
  background: var(--light);
}

.data-table tr:hover {
  background: #e0e7ff;
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 4px 12px;
  background: #dbeafe;
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.85rem;
  margin: 4px;
}

/* CTA区块 */
.cta-section {
  background: var(--gradient);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

/* 案例卡片 */
.case-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

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

.case-card .case-header {
  background: var(--gradient);
  color: white;
  padding: 30px;
}

.case-card .case-header h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.case-card .case-body {
  padding: 30px;
}

.case-card .case-body p {
  color: var(--gray);
  margin-bottom: 16px;
}

.case-results {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.case-result {
  text-align: center;
  flex: 1;
}

.case-result .num {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary);
}

.case-result .label {
  font-size: 0.85rem;
  color: var(--gray);
}

/* FAQ */
.faq-item {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--gray);
  line-height: 1.7;
}

/* 博客卡片 */
.blog-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

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

.blog-card .blog-image {
  height: 180px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.blog-card .blog-body {
  padding: 24px;
}

.blog-card .blog-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--gray);
}

.blog-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--dark);
}

.blog-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 页脚 */
.footer {
  background: var(--dark);
  color: white;
  padding: 60px 0 30px;
}

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

.footer-brand h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.footer-brand p {
  color: #94a3b8;
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: white;
}

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

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

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 30px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* 响应式 */
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .page-hero h1 { font-size: 2rem; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .steps { flex-direction: column; }
  .step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .case-results { flex-direction: column; }
  .section { padding: 60px 0; }
}

/* 动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out;
}

/* Schema标记隐藏 */
.schema-markup {
  display: none;
}
