/*
Theme Name: 浩轩云智选
Theme URI: https://haoxuanyun.com
Description: 浩轩云智选企业官网主题 - 字节跳动风格，蓝白配色，专注SEO/GEO优化
Version: 3.3
Author: WorkBuddy
*/

/* ===== 字节跳动风格变量 ===== */
:root {
  --blue: #1664FF;
  --blue-dark: #0A3CC7;
  --blue-light: #E8F0FE;
  --text: #1D2129;
  --text-secondary: #4E5969;
  --text-light: #86909C;
  --bg: #FFFFFF;
  --bg-gray: #F7F8FA;
  --border: #E5E6EB;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --max-width: 1200px;
}

/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* ===== 导航栏 ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.logo { font-size: 22px; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: -0.5px; display: flex; align-items: center; gap: 6px; }
.logo-img { height: 28px; width: auto; display: inline-block; vertical-align: middle; border-radius: 4px; }
.logo span { color: var(--blue); }
.nav-links { display: flex; gap: 48px; list-style: none; align-items: center; }
.nav-links a { color: var(--text-light); text-decoration: none; font-size: 16px; font-weight: 400; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 500; }

/* 移动端汉堡按钮 */
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text); }

/* ===== Hero ===== */
.hero {
  padding: 140px 24px 80px;
  text-align: center;
  background: linear-gradient(180deg, #F0F5FF 0%, #FFFFFF 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(22,100,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero h1 {
  font-size: 42px; font-weight: 700; line-height: 1.3;
  margin-bottom: 20px; position: relative;
}
.hero h1 .highlight { color: var(--blue); }
.hero p.hero-sub {
  font-size: 18px; color: var(--text-secondary);
  margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; position: relative; }
.btn-primary {
  background: var(--blue); color: #fff; border: none;
  padding: 14px 36px; border-radius: 28px; font-size: 16px;
  cursor: pointer; font-weight: 600; transition: all 0.3s;
  text-decoration: none; display: inline-block;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(22,100,255,0.35); }
.btn-outline {
  background: #fff; color: var(--blue); border: 1.5px solid var(--blue);
  padding: 14px 36px; border-radius: 28px; font-size: 16px;
  cursor: pointer; font-weight: 600; transition: all 0.3s;
  text-decoration: none; display: inline-block;
}
.btn-outline:hover { background: var(--blue-light); }

/* ===== 业务标签 ===== */
.tagline-bar {
  text-align: center; padding: 0 24px 80px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.tag {
  background: var(--bg-gray); color: var(--text-secondary);
  padding: 8px 20px; border-radius: 20px; font-size: 14px;
  font-weight: 500; transition: all 0.2s;
}
.tag:hover { background: var(--blue-light); color: var(--blue); }

/* ===== 通用 Section ===== */
.section {
  max-width: var(--max-width); margin: 0 auto; padding: 80px 24px;
}
.section-label {
  font-size: 13px; color: var(--blue); font-weight: 600;
  letter-spacing: 2px; margin-bottom: 8px; text-transform: uppercase;
}
.section-title {
  font-size: 32px; font-weight: 700; margin-bottom: 12px; line-height: 1.3;
}
.section-desc {
  font-size: 16px; color: var(--text-secondary); max-width: 600px;
  margin: 0 auto 48px;
}

/* ===== 服务卡片网格 ===== */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
  background: #fff; border-radius: var(--radius); padding: 32px;
  border: 1px solid var(--border); transition: all 0.3s; cursor: default;
}
.service-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: transparent;
}
.service-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.service-tags span {
  font-size: 12px; background: var(--bg-gray); color: var(--text-light);
  padding: 4px 10px; border-radius: 12px;
}

/* ===== 信任信号 ===== */
.trust-bar {
  background: var(--bg-gray); padding: 40px 24px;
  text-align: center;
}
.trust-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 32px; justify-content: center; align-items: center;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; color: var(--text-secondary);
}
.trust-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}

/* ===== 合作流程 ===== */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.process-step {
  text-align: center; padding: 32px 20px;
}
.step-number {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* ===== 新闻资讯 ===== */
.news-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.news-card {
  display: block; text-decoration: none; color: var(--text);
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); transition: all 0.3s;
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: transparent; }
.news-thumb { height: 200px; background: var(--bg-gray); }
.news-body { padding: 24px; }
.news-tag {
  font-size: 12px; font-weight: 600; color: var(--blue); background: var(--blue-light);
  padding: 3px 10px; border-radius: 10px; display: inline-block; margin-bottom: 12px;
}
.news-body h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; line-height: 1.5; }
.news-body p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; margin-bottom: 12px; }
.news-date { color: var(--text-light); font-size: 13px; }
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-item {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px; text-decoration: none; color: var(--text);
  border-bottom: 1px solid var(--border); transition: background 0.2s;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: var(--bg-gray); }
.news-tag-sm {
  font-size: 11px; font-weight: 600; color: var(--blue); background: var(--blue-light);
  padding: 2px 8px; border-radius: 8px; white-space: nowrap; flex-shrink: 0;
}
.news-item-title { font-size: 15px; flex: 1; line-height: 1.5; }
.news-date-sm { font-size: 13px; color: var(--text-light); white-space: nowrap; flex-shrink: 0; }

/* ===== CTA区 ===== */
.cta-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 80px 24px; text-align: center; color: #fff;
}
.cta-title { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.cta-desc { font-size: 16px; opacity: 0.85; margin-bottom: 32px; }
.btn-white {
  background: #fff; color: var(--blue); border: none;
  padding: 14px 40px; border-radius: 28px; font-size: 16px;
  font-weight: 600; cursor: pointer; transition: all 0.3s;
  text-decoration: none; display: inline-block;
}
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }

/* ===== 页脚 ===== */
.site-footer {
  background: #1D2129; color: rgba(255,255,255,0.6);
  padding: 64px 24px 32px;
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand h3 { color: #fff; font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.footer-brand h3 span { color: #5B8DEF; }
.footer-brand p { font-size: 14px; line-height: 1.8; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); transition: all 0.2s;
}
.footer-social a:hover { background: var(--blue); color: #fff; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.footer-col a {
  display: block; font-size: 14px; color: rgba(255,255,255,0.5);
  padding: 4px 0; transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-width); margin: 0 auto;
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: #fff; }

/* ===== 联系区（页面内） ===== */
.contact-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 60px 32px; text-align: center; color: #fff;
}
.contact-section h2 { font-size: 28px; font-weight: 700; margin-bottom: 14px; }
.contact-section p { font-size: 16px; opacity: 0.85; margin: 0 auto 28px; max-width: 500px; }
.contact-info { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.contact-info div { font-size: 15px; }

/* ===== 单页模板 ===== */
.single-page { max-width: 800px; margin: 0 auto; padding: 100px 24px 60px; }
.breadcrumb { font-size: 13px; color: var(--text-light); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--blue); }
.single-title { font-size: 28px; font-weight: 700; margin-bottom: 16px; line-height: 1.4; }
.single-meta {
  display: flex; gap: 16px; font-size: 13px; color: var(--text-light);
  margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.single-content { font-size: 16px; line-height: 1.8; color: var(--text); }
.single-content h2 { font-size: 22px; margin: 32px 0 16px; font-weight: 700; }
.single-content h3 { font-size: 18px; margin: 24px 0 12px; font-weight: 600; }
.single-content p { margin-bottom: 16px; }
.single-content ul { padding-left: 20px; margin-bottom: 16px; }
.single-content li { margin-bottom: 8px; }
.single-content blockquote {
  border-left: 4px solid var(--blue); padding: 16px 20px;
  background: var(--blue-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
}
.single-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.single-content th, .single-content td { border: 1px solid var(--border); padding: 10px 14px; font-size: 14px; }
.single-content th { background: var(--bg-gray); font-weight: 600; }

/* 相关文章 */
.related-posts { margin-top: 48px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
  background: var(--bg-gray); border-radius: var(--radius);
  padding: 20px; border: 1px solid var(--border); transition: all 0.3s;
}
.related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.related-thumb { margin-bottom: 12px; border-radius: var(--radius-sm); overflow: hidden; }
.related-card h4 { font-size: 14px; font-weight: 600; line-height: 1.5; }
.related-card h4 a:hover { color: var(--blue); }

/* ===== 页面模板 ===== */
.page-content {
  max-width: 800px; margin: 0 auto; padding: 100px 24px 60px;
}
.page-content h1 { font-size: 28px; font-weight: 700; margin-bottom: 24px; }
.page-content-inner { font-size: 16px; line-height: 1.8; color: var(--text); }

/* 服务页图标块 */
.service-blocks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; }
.service-block {
  background: var(--bg-gray); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--border); transition: all 0.3s;
}
.service-block:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-block-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.service-block h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.service-block p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.service-block ul { margin-top: 10px; padding-left: 16px; }
.service-block li { font-size: 13px; color: var(--text-light); margin-bottom: 4px; list-style: disc; }

/* 为什么选择我们 */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.why-card {
  text-align: center; padding: 28px; background: var(--bg-gray);
  border-radius: var(--radius); border: 1px solid var(--border);
}
.why-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.why-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.why-card p { font-size: 13px; color: var(--text-light); }

/* ===== 新闻归档页 ===== */
.news-list-archive {
  max-width: 800px; margin: 0 auto;
}
.news-list-archive article {
  display: flex; gap: 20px; padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.news-list-archive .news-arch-date { font-size: 12px; color: var(--blue); margin-bottom: 6px; }
.news-list-archive h2 { font-size: 16px; font-weight: 500; margin: 0 0 8px; line-height: 1.5; }
.news-list-archive h2 a:hover { color: var(--blue); }
.news-list-archive p { font-size: 14px; color: var(--text-secondary); margin: 0; }

/* ===== 分页 ===== */
.pagination {
  display: flex; gap: 8px; justify-content: center; margin-top: 32px;
}
.page-numbers {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); font-size: 14px;
  color: var(--text-secondary); border: 1px solid var(--border);
  background: #fff; cursor: pointer; transition: all 0.2s;
}
.page-numbers:hover,
a.page-numbers.current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ===== 微信弹出 ===== */
.wechat-popup {
  display: none;
  position: fixed; bottom: 88px; right: 24px;
  background: #fff; border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow-lg);
  z-index: 999; text-align: center;
}
.wechat-popup.show { display: block; }
.wechat-popup p { font-size: 12px; color: var(--text-secondary); margin-top: 8px; }

/* 浮动按钮 */
.float-btn {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: var(--blue); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px;
  box-shadow: 0 4px 16px rgba(22,100,255,0.4);
  cursor: pointer; z-index: 999; transition: transform 0.2s;
  border: none;
}
.float-btn:hover { transform: scale(1.1); }

/* ===== 搜索框 ===== */
.search-box {
  max-width: 500px; margin: 0 auto 32px; display: flex;
}
.search-box input {
  flex: 1; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 14px; outline: none;
}
.search-box input:focus { border-color: var(--blue); }
.search-box button {
  background: var(--blue); color: #fff; border: none;
  padding: 0 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px; cursor: pointer; font-weight: 500;
}

/* ===== 侧边栏 ===== */
.archive-layout { display: flex; gap: 32px; }
.archive-main { flex: 1; }
.archive-sidebar {
  width: 300px; flex-shrink: 0;
  background: #fff; border-radius: var(--radius);
  padding: 24px; border: 1px solid var(--border);
  height: fit-content; position: sticky; top: 80px;
}
.sidebar-block { margin-bottom: 28px; }
.sidebar-block:last-child { margin-bottom: 0; }
.sidebar-title {
  font-size: 15px; font-weight: 600;
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--blue);
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .service-blocks { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 16px;
  }
  .hero { padding: 100px 20px 60px; }
  .hero h1 { font-size: 28px; }
  .hero p.hero-sub { font-size: 16px; }
  .section { padding: 48px 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .archive-layout { flex-direction: column; }
  .archive-sidebar { width: 100%; position: static; }
  .related-grid { grid-template-columns: 1fr; }
  .contact-info { flex-direction: column; gap: 12px; }
}

/* ===== WordPress 注入样式强制覆盖 ===== */
/* WordPress 编辑器会注入紫色主题变量，这里用 !important 强制还原字节跳动蓝白风格 */
html, body { background-color: #FFFFFF !important; }
.nav-container { background: rgba(255,255,255,0.92) !important; backdrop-filter: blur(12px) !important; }
.nav.scrolled { background: #FFFFFF !important; border-bottom: 1px solid #E5E6EB !important; }
.btn-primary { background-color: #1664FF !important; color: #FFFFFF !important; border: none !important; }
.btn-primary:hover { background-color: #0A3CC7 !important; }
.btn-outline { background-color: #FFFFFF !important; color: #1664FF !important; border: 1.5px solid #1664FF !important; }
.hero { background: linear-gradient(180deg, #F0F5FF 0%, #FFFFFF 100%) !important; }
.logo span, .highlight, .tag.active { color: #1664FF !important; }
.section-label { color: #1664FF !important; }
a { color: inherit !important; }
.service-card:hover { border-color: transparent !important; }
