/* 主题变量与基础 */
:root {
  --primary: #1e4a7d;
  --secondary: #4a7eb5;
  --accent: #2c8bc0;
  --light: #f0f7ff;
  --dark: #333;
  --gray: #6c757d;
  --light-gray: #efefef;
  --border-radius: 8px;
  --shadow: 0 4px 12px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

/* 顶部导航 */
.navbar {
  background-color: #fff;
  box-shadow: var(--shadow);
  position: sticky; top: 0; z-index: 1000;
}
.nav-container {
  display: flex; justify-content: space-between; align-items: center; padding: 15px 0;
}
.logo {
  display: flex; align-items: center; font-size: 24px; font-weight: 700; color: var(--primary); text-decoration: none;
}
.logo .fa-chart-line { margin-right: 10px; color: var(--accent); }
.nav-links { display: flex; list-style: none; }
.nav-links li { margin: 0 15px; }
.nav-links a {
  text-decoration: none; color: var(--primary); font-weight: 500; transition: color .3s; position: relative;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); font-weight: 600; }
.nav-links a.active::after {
  content: ""; position: absolute; bottom: -5px; left: 0; width: 100%; height: 3px; background-color: var(--accent); border-radius: 3px;
}
.nav-buttons { display: flex; align-items: center; }

/* 按钮 */
.btn {
  padding: 10px 20px; border-radius: var(--border-radius); font-weight: 500;
  text-decoration: none; transition: all .3s; cursor: pointer; display: inline-block; text-align: center;
}
.btn-primary { background-color: var(--primary); color: #fff; margin-left: 15px; }
.btn-primary:hover { background-color: var(--secondary); transform: translateY(-2px); }
.btn-secondary { background-color: #fff; color: var(--primary); border: 1px solid var(--light-gray); }
.btn-secondary:hover { background-color: var(--light-gray); transform: translateY(-2px); }

/* Hero */
.hero {
  background: linear-gradient(to right, rgba(30,74,125,.9), rgba(44,139,192,.8)),
              url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1920&q=80');
  background-size: cover; background-position: center; color: #fff; padding: 100px 0; text-align: center;
}
.hero h1 { font-size: 48px; margin-bottom: 20px; font-weight: 800; }
.hero p { font-size: 20px; max-width: 700px; margin: 0 auto 30px; }
.hero-buttons { display: flex; justify-content: center; gap: 20px; }

/* 区块通用 */
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 36px; color: var(--primary); margin-bottom: 15px; }
.section-title p { color: var(--gray); max-width: 700px; margin: 0 auto; }

/* 服务板块 */
.services { padding: 80px 0; background-color: #fff; }
.service-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px;
}
.service-card {
  background-color: var(--light); border-radius: var(--border-radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .3s;
}
.service-card:hover { transform: translateY(-10px); }
.service-img { height: 200px; background-size: cover; background-position: center; }
.service-content { padding: 20px; }
.service-content h3 { color: var(--primary); margin-bottom: 10px; }
.service-content p { color: var(--dark); margin-bottom: 15px; }
.service-content a { color: var(--accent); font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; }
.service-content a i { margin-left: 6px; transition: transform .3s; }
.service-content a:hover i { transform: translateX(5px); }

/* 成功案例 */
.cases { padding: 80px 0; background-color: var(--light); }
.case-filters {
  display: flex; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; gap: 10px;
}
.filter-btn {
  padding: 8px 20px; background-color: #fff; border: 1px solid var(--secondary);
  border-radius: 30px; color: var(--secondary); cursor: pointer; transition: all .3s;
}
.filter-btn.active, .filter-btn:hover { background-color: var(--secondary); color: #fff; }
.case-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(450px, 1fr)); gap: 30px;
}
.case-card {
  background-color: #fff; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow);
}
.case-img { height: 250px; background-size: cover; background-position: center; }
.case-content { padding: 20px; }
.case-content h3 { color: var(--primary); margin-bottom: 10px; }
.case-tags { display: flex; gap: 10px; margin-bottom: 15px; }
.case-tag { background-color: var(--light); color: var(--accent); padding: 4px 12px; border-radius: 30px; font-size: 14px; }

/* 新闻与洞察 */
.insights { padding: 80px 0; background-color: #fff; }
.insight-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px;
}
.insight-card {
  border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow); background-color: var(--light);
}
.insight-img { height: 200px; background-size: cover; background-position: center; }
.insight-content { padding: 20px; }
.insight-content .date { color: var(--accent); font-size: 14px; margin-bottom: 10px; }
.insight-content h3 { color: var(--primary); margin-bottom: 10px; }
.insight-content p { color: var(--dark); margin-bottom: 15px; }

/* 仪表盘 */
.dashboard-section { padding: 80px 0; background-color: var(--light); }
.dashboard-heading { margin-bottom: 30px; display: flex; justify-content: space-between; align-items: center; }
.dashboard-container { display: grid; grid-template-columns: 300px 1fr; gap: 30px; }
.dashboard-sidebar {
  background-color: #fff; border-radius: var(--border-radius); padding: 20px; box-shadow: var(--shadow);
}
.sidebar-menu { list-style: none; }
.sidebar-menu li { margin-bottom: 10px; }
.sidebar-menu a {
  display: block; padding: 10px 15px; color: var(--dark); text-decoration: none; border-radius: 5px; transition: all .3s;
}
.sidebar-menu a:hover, .sidebar-menu a.active { background-color: var(--light); color: var(--accent); }
.sidebar-menu a i { margin-right: 10px; width: 20px; text-align: center; }
.dashboard-main {
  background-color: #fff; border-radius: var(--border-radius); padding: 30px; box-shadow: var(--shadow);
}
.dashboard-stats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px;
}
.stat-card { background-color: var(--light); border-radius: var(--border-radius); padding: 20px; text-align: center; }
.stat-card h3 { font-size: 28px; color: var(--accent); margin-bottom: 10px; }
.stat-card p { color: var(--gray); }
.chart-container { height: 350px; margin-bottom: 30px; }
.project-list { margin-top: 30px; }
.project-item {
  display: flex; align-items: center; padding: 15px; border-bottom: 1px solid var(--light-gray);
}
.project-item:last-child { border-bottom: none; }
.project-icon {
  width: 40px; height: 40px; background-color: var(--light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-right: 15px; color: var(--accent);
}
.project-info { flex: 1; }
.project-info h4 { margin-bottom: 5px; color: var(--primary); }
.project-progress {
  width: 100%; height: 8px; background-color: var(--light-gray); border-radius: 4px; margin-top: 10px; overflow: hidden;
}
.progress-bar { height: 100%; background-color: var(--accent); border-radius: 4px; }

/* 页脚 */
.footer { background-color: var(--dark); color: #fff; padding: 60px 0 20px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; margin-bottom: 40px;
}
.footer-section h3 { font-size: 20px; margin-bottom: 20px; color: var(--light-gray); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #b1b1b1; text-decoration: none; transition: color .3s; }
.footer-links a:hover { color: #fff; }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; background-color: rgba(255,255,255,.1); color: #fff; transition: all .3s;
}
.social-links a:hover { background-color: var(--accent); transform: translateY(-5px); }
.qr-code {
  width: 120px; height: 120px; background-color: #fff; padding: 10px; border-radius: 5px;
  display: flex; justify-content: center; align-items: center; margin-top: 10px;
}
.qr-code span { color: var(--dark); padding: 30px; border: 1px dashed var(--gray); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; text-align: center; font-size: 14px; color: #b1b1b1; }

/* 登录模态框 */
.modal {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0,0,0,.5); z-index: 2000; justify-content: center; align-items: center;
}
.modal-content {
  background-color: #fff; border-radius: var(--border-radius); width: 100%; max-width: 400px; padding: 30px; position: relative;
}
.close-modal {
  position: absolute; top: 15px; right: 15px; font-size: 24px; cursor: pointer; color: var(--gray); background: none; border: none;
}
.modal-title { text-align: center; margin-bottom: 20px; color: var(--primary); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; color: var(--dark); font-weight: 500; }
.form-control {
  width: 100%; padding: 10px 15px; border: 1px solid var(--light-gray); border-radius: var(--border-radius); font-size: 16px; transition: border-color .3s;
}
.form-control:focus { border-color: var(--accent); outline: none; }
.remember-forgot {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
}
.remember { display: flex; align-items: center; gap: 6px; }
.forgot-password { color: var(--accent); text-decoration: none; }

/* 文化区块（使命/愿景/价值观）居中布局 */
#culture .section-title p { max-width: 820px; }
#culture .service-grid {
  max-width: 1020px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-items: center; /* 让子项在栅格中居中 */
}
#culture .service-card {
  width: 100%;
  max-width: 320px; /* 控制卡片宽度，形成居中三列 */
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .case-grid { grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); }
  #culture .service-grid { grid-template-columns: repeat(2, 1fr); max-width: 680px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 18px; }
  .dashboard-container { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; gap: 10px; }
  .btn { width: 100%; }
  .case-grid { grid-template-columns: 1fr; }
}