/* =========================================================
   TechCorp 科技企业官网主题
   浅色 SaaS 风格 · 品牌主色可通过主题设置覆盖
   ========================================================= */
:root {
  --brand: #4A6BF5;
  --brand-dark: #3B56C8;
  --brand-light: #EEF2FF;
  --text: #1f2430;
  --text-2: #5b6472;
  --text-3: #8a93a2;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --border: #e6eaf1;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(31, 41, 66, 0.08);
  --shadow-lg: 0 16px 48px rgba(31, 41, 66, 0.12);
  --max-w: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
ul { list-style: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 2px 12px rgba(31,41,66,0.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand-logo { height: 32px; width: auto; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; flex: none;
}
.main-nav ul { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  display: inline-block; padding: 8px 14px; border-radius: 8px;
  color: var(--text-2); font-size: 15px; font-weight: 500;
}
.main-nav a:hover { color: var(--brand); background: var(--brand-light); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: 0.25s; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 10px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: 0.2s ease;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(74,107,245,0.35); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 110px 0 130px;
  background:
    radial-gradient(60% 80% at 70% 10%, var(--brand-light) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(50% 70% at 10% 90%, #e8f4ff 0%, rgba(255,255,255,0) 55%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0,0,0,0.5), transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0,0,0,0.5), transparent 75%);
  opacity: 0.45;
}
.hero-inner { position: relative; text-align: center; max-width: 780px; margin: 0 auto; }
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); color: var(--brand);
  font-size: 13px; font-weight: 600; box-shadow: var(--shadow); margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 56px); line-height: 1.22; font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 22px;
  background: linear-gradient(120deg, var(--text) 30%, var(--brand) 80%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 18px; color: var(--text-2); margin-bottom: 38px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 统计条 ---------- */
.stats { margin-top: -70px; position: relative; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat-item { padding: 30px 20px; text-align: center; border-left: 1px solid var(--border); }
.stat-item:first-child { border-left: none; }
.stat-item b { display: block; font-size: 34px; font-weight: 800; color: var(--brand); letter-spacing: -0.02em; }
.stat-item span { color: var(--text-3); font-size: 14px; }

/* ---------- 通用板块 ---------- */
.section { padding: 90px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-head .kicker {
  display: inline-block; color: var(--brand); font-weight: 700; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.section-head p { color: var(--text-2); }

/* ---------- 业务卡片 ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 26px; transition: 0.25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon {
  width: 52px; height: 52px; border-radius: 13px; background: var(--brand-light);
  display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 18px;
}
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 15px; }

/* ---------- 新闻列表 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.news-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: 0.25s ease;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-cover { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--brand-light), #e8f4ff); }
.news-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.news-meta { display: flex; gap: 14px; color: var(--text-3); font-size: 13px; margin-bottom: 10px; }
.news-body h3 { font-size: 17px; line-height: 1.5; margin-bottom: 10px; }
.news-body h3 a:hover { color: var(--brand); }
.news-body p { color: var(--text-2); font-size: 14px; flex: 1; }
.news-more { text-align: center; margin-top: 42px; }

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.about-text h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; margin-bottom: 18px; }
.about-text p { color: var(--text-2); margin-bottom: 12px; }
.about-media {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3; background: linear-gradient(135deg, var(--brand-light), #e8f4ff);
  display: flex; align-items: center; justify-content: center;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-media .placeholder { font-size: 64px; opacity: 0.55; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(120deg, var(--brand), var(--brand-dark));
  border-radius: calc(var(--radius) + 6px); color: #fff; text-align: center;
  padding: 64px 40px; position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(40% 90% at 85% 10%, rgba(255,255,255,0.22), transparent 60%);
}
.cta h2 { font-size: clamp(24px, 3.6vw, 34px); font-weight: 800; margin-bottom: 12px; position: relative; }
.cta p { opacity: 0.88; margin-bottom: 30px; position: relative; }
.cta .btn-white { background: #fff; color: var(--brand-dark); position: relative; }
.cta .btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.18); }

/* ---------- 页脚 ---------- */
.site-footer { background: #0f1420; color: #a7b0c0; margin-top: 40px; }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding: 64px 0 40px;
}
.site-footer .brand { color: #fff; }
.footer-desc { margin-top: 14px; font-size: 14px; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 24px; font-size: 13px; }
.footer-bottom a { color: #7f8b9e; margin-left: 12px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 内页通用 ---------- */
.page-head {
  background: var(--bg-soft); border-bottom: 1px solid var(--border);
  padding: 24px 0; text-align: center;
}
.page-head h1 { font-size: clamp(20px, 3vw, 28px); font-weight: 800; }
.page-head .crumbs { color: var(--text-3); font-size: 13px; margin-top: 4px; }
.page-head .crumbs a:hover { color: var(--brand); }
.page-main { min-height: 60vh; }

/* ---------- 文章详情 ---------- */
.post-wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 44px 24px 80px; }
.post-head { margin-bottom: 32px; }
.post-head h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; line-height: 1.35; margin-bottom: 16px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--text-3); font-size: 14px; }
.post-meta a:hover { color: var(--brand); }
.post-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 34px; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--brand-light), #e8f4ff); }
.post-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-content { font-size: 16.5px; color: #2b3242; }
.post-content h2, .post-content h3, .post-content h4 { margin: 1.6em 0 0.7em; font-weight: 700; }
.post-content h2 { font-size: 24px; border-left: 4px solid var(--brand); padding-left: 12px; }
.post-content h3 { font-size: 20px; }
.post-content p { margin: 0.8em 0; }
.post-content ul, .post-content ol { padding-left: 1.6em; margin: 0.8em 0; }
.post-content blockquote {
  margin: 1.2em 0; padding: 14px 20px; background: var(--bg-soft);
  border-left: 4px solid var(--brand); border-radius: 0 8px 8px 0; color: var(--text-2);
}
.post-content pre {
  background: #0f1420; color: #e6edf3; padding: 18px 20px; border-radius: 10px;
  overflow-x: auto; font-size: 14px; line-height: 1.7; margin: 1.2em 0;
}
.post-content code { background: var(--bg-soft); padding: 2px 6px; border-radius: 5px; font-size: 0.9em; }
.post-content pre code { background: none; padding: 0; }
.post-content img { border-radius: 10px; margin: 1em 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.post-content th, .post-content td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.post-content th { background: var(--bg-soft); }
.post-tags { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px; }
.tag-chip {
  padding: 5px 14px; border-radius: 999px; background: var(--bg-soft);
  border: 1px solid var(--border); font-size: 13px; color: var(--text-2);
}
.tag-chip:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-light); }
.comments-section { max-width: 780px; margin: 0 auto; padding: 0 24px 80px; }
.comments-section h3 { margin-bottom: 20px; }

/* ---------- 归档时间线 ---------- */
.timeline { max-width: 780px; margin: 0 auto; padding: 56px 24px 80px; }
.timeline-year { font-size: 24px; font-weight: 800; color: var(--brand); margin: 34px 0 18px; }
.timeline-month { font-size: 15px; font-weight: 700; color: var(--text-2); margin: 22px 0 12px; }
.timeline ul li { position: relative; padding: 0 0 18px 24px; border-left: 2px solid var(--border); margin-left: 6px; }
.timeline ul li::before {
  content: ""; position: absolute; left: -6px; top: 8px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--brand);
}
.timeline-item a:hover { color: var(--brand); }
.timeline-item time { color: var(--text-3); font-size: 13px; margin-right: 12px; }

/* ---------- 列表/分页 ---------- */
.list-wrap { max-width: 860px; margin: 0 auto; padding: 48px 24px 80px; }
.list-item {
  display: flex; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--border);
}
.list-cover { width: 200px; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; flex: none;
  background: linear-gradient(135deg, var(--brand-light), #e8f4ff); }
.list-cover img { width: 100%; height: 100%; object-fit: cover; }
.list-body h3 { font-size: 18px; margin-bottom: 8px; }
.list-body h3 a:hover { color: var(--brand); }
.list-body p { color: var(--text-2); font-size: 14.5px; }
.list-meta { color: var(--text-3); font-size: 13px; margin-bottom: 8px; display: flex; gap: 14px; }
.pagination { display: flex; gap: 10px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span {
  padding: 9px 18px; border-radius: 9px; border: 1px solid var(--border);
  font-size: 14px; color: var(--text-2); background: #fff;
}
.pagination a:hover { color: var(--brand); border-color: var(--brand); }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }
.empty-tip { text-align: center; color: var(--text-3); padding: 80px 0; }

/* ---------- 分类/标签墙 ---------- */
.chips-grid { display: flex; flex-wrap: wrap; gap: 14px; max-width: 860px; margin: 0 auto; padding: 48px 24px 90px; }
.chip-card {
  padding: 14px 26px; border: 1px solid var(--border); border-radius: 12px;
  background: #fff; font-size: 15px; transition: 0.2s;
}
.chip-card:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.chip-card small { color: var(--text-3); margin-left: 8px; }

/* ---------- 友情链接 ---------- */
.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px;
  max-width: 960px; margin: 0 auto; padding: 48px 24px 90px; }
.link-card {
  display: flex; gap: 14px; align-items: center; padding: 20px;
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff; transition: 0.2s;
}
.link-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.link-card img { width: 44px; height: 44px; border-radius: 10px; }
.link-card b { display: block; font-size: 15px; }
.link-card span { color: var(--text-3); font-size: 13px; }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .list-cover { width: 120px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 68px 0 auto 0; background: #fff;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    transform: translateY(-130%); transition: transform 0.28s ease; padding: 12px 24px 18px;
  }
  .main-nav.open { transform: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { display: block; padding: 12px 10px; }
  .hero { padding: 70px 0 100px; }
  .section { padding: 64px 0; }
  .stat-item { border-left: none; border-top: 1px solid var(--border); }
  .stat-item:nth-child(-n+1) { border-top: none; }
  .list-item { flex-direction: column; }
  .list-cover { width: 100%; }
}
