/* ═══════════════════════════════════════════
   Zerora 企业站 — Hugo 主题样式
   白色背景 · Apple 风格 · 留白驱动
   从 WordPress GeneratePress 主题迁移
   ═══════════════════════════════════════════ */

/* ─── 全局变量 ─── */
:root {
  --zr-bg: #ffffff;
  --zr-text: #1a1a1a;
  --zr-text-secondary: #555555;
  --zr-text-muted: #999999;
  --zr-accent: #0071e3;
  --zr-accent-hover: #0077ed;
  --zr-border: #e8e8e8;
  --zr-radius: 12px;
}

/* ─── 基础重置 ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: #ffffff;
  color: var(--zr-text-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--zr-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--zr-text);
}

img {
  max-width: 100%;
  height: auto;
}

/* ─── 顶部导航 ╴ Apple 风格 ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--zr-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 56px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 28px;
  width: auto;
}

/* 桌面导航 */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  color: var(--zr-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--zr-text);
}

.main-nav a.active {
  font-weight: 600;
}

/* 汉堡菜单按钮 */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.hamburger {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--zr-text);
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--zr-text);
  left: 0;
  transition: transform 0.3s ease;
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  top: 6px;
}

/* 汉堡菜单打开状态 - 变成 X */
.hamburger.open {
  background: transparent;
}

.hamburger.open::before {
  top: 0;
  transform: rotate(45deg);
}

.hamburger.open::after {
  top: 0;
  transform: rotate(-45deg);
}

/* 移动端导航 */
.mobile-nav {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  width: 100%;
  height: calc(100vh - 56px);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 99;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  font-size: 1.1rem;
  color: var(--zr-text);
  font-weight: 500;
}

/* ─── 主内容区 ─── */
.site-main {
  min-height: calc(100vh - 56px - 60px);
}

/* ─── 子页面卡片（原站样式） ─── */
.page-content {
  max-width: 720px;
  margin: 2rem auto;
  padding: 2.5rem;
  background: #ffffff;
  border-radius: var(--zr-radius);
  border: 1px solid var(--zr-border);
  color: var(--zr-text-secondary);
  line-height: 1.8;
}

/* 首页不需要卡片样式 */
body.home .page-content {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  max-width: none;
}

/* ─── 子页面内容 ─── */
.page-content h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--zr-text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.page-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--zr-text);
  margin: 2rem 0 0.75rem;
  line-height: 1.4;
}

.page-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--zr-text);
  margin: 1.5rem 0 0.5rem;
}

.page-content .subtitle {
  font-size: 1.1rem;
  color: var(--zr-text-muted);
  margin-bottom: 2rem;
  letter-spacing: 2px;
}

.page-content p {
  font-size: 1rem;
  color: var(--zr-text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.page-content strong {
  color: var(--zr-text);
  font-weight: 700;
}

.page-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.page-content li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--zr-border);
  font-size: 1rem;
  color: var(--zr-text-secondary);
  line-height: 1.7;
}

.page-content li:last-child {
  border-bottom: none;
}

.page-content li strong {
  color: var(--zr-text);
}

.page-content .member {
  margin-bottom: 1.5rem;
}

.page-content .member h3 {
  margin-bottom: 0.25rem;
}

.page-content .qa-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--zr-border);
}

.page-content .qa-item:last-child {
  border-bottom: none;
}

.page-content .qa-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.page-content .qa-item p {
  margin: 0;
}

.page-content .cta-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

/* ─── Hero 区域 ─── */
.zr-hero {
  text-align: center;
  padding: 8rem 2rem 5rem;
  background: #ffffff;
}

.zr-hero-badge {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--zr-text-secondary);
  margin-bottom: 2rem;
}

.zr-hero-title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--zr-text);
  margin-bottom: 1.5rem;
}

.zr-hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--zr-text-secondary);
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

.zr-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ─── 按钮 ─── */
.zr-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, background-color 0.2s, border-color 0.2s;
  text-decoration: none;
  line-height: 1;
  border: none;
}

.zr-btn-primary {
  background: var(--zr-accent);
  color: #fff;
}

.zr-btn-primary:hover {
  background: var(--zr-accent-hover);
  opacity: 1;
}

.zr-btn-secondary {
  background: transparent;
  color: var(--zr-text);
  border: 1.5px solid var(--zr-border);
}

.zr-btn-secondary:hover {
  border-color: var(--zr-text);
}

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

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

.zr-btn-sm {
  padding: 10px 24px;
  font-size: 0.875rem;
}

.zr-btn-link {
  padding: 0;
  color: var(--zr-text);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 0;
}

.zr-btn-link:hover {
  text-decoration: underline;
  opacity: 1;
}

/* ─── 通用区块 ─── */
.zr-section {
  padding: 6rem 2rem;
}

.zr-section-inner {
  max-width: 800px;
  margin: 0 auto;
}

.zr-section + .zr-section {
  margin-top: 10px;
}

.zr-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--zr-text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.zr-section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--zr-text);
  margin-bottom: 2.5rem;
  line-height: 1.3;
}

/* ─── Lyker 区块 ─── */
.zr-section-lyker {
  background: #fcf9f4;
  text-align: center;
  padding: 5rem 2rem;
}

.zr-lyker-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.zr-lyker-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: #3d2e1e;
  margin-bottom: 0.5rem;
}

.zr-lyker-sub {
  font-size: 1.1rem;
  font-weight: 600;
  color: #5D4E37;
  margin-bottom: 0.75rem;
}

.zr-lyker-desc {
  font-size: 0.95rem;
  color: #8B7D6B;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── About 区块 ─── */
.zr-about-headline {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--zr-text);
  margin-bottom: 1.5rem;
  line-height: 1.4;
  text-align: center;
}

.zr-about-text {
  font-size: 1.05rem;
  color: var(--zr-text-secondary);
  line-height: 2;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

/* ─── Philosophy 区块 ─── */
.zr-section-philosophy {
  background: #fafafa;
}

.zr-section-philosophy .zr-section-label,
.zr-section-philosophy .zr-section-title {
  text-align: center;
}

.zr-philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.zr-philosophy-item {
  padding: 1rem 0;
}

.zr-philosophy-num {
  font-size: 1.5rem;
  font-weight: 300;
  color: #c9a84c;
  margin-bottom: 1rem;
  line-height: 1;
}

.zr-philosophy-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--zr-text);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.zr-philosophy-desc {
  font-size: 0.9rem;
  color: var(--zr-text-muted);
  line-height: 1.6;
}

/* ─── 页脚 ─── */
.site-footer {
  background-color: var(--zr-bg);
  border-top: 1px solid var(--zr-border);
  color: var(--zr-text-muted);
  padding: 1.5rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--zr-text-muted);
}

.footer-links a:hover {
  color: var(--zr-text);
}

.copyright {
  font-size: 0.85rem;
}

.copyright a {
  color: var(--zr-text-muted);
}

.copyright a:hover {
  color: var(--zr-text);
}

/* ─── 新闻列表 ─── */
.news-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--zr-border);
}

.news-item:last-child {
  border-bottom: none;
}

.news-item h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--zr-text);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.news-item h2 a {
  color: var(--zr-text);
  text-decoration: none;
}

.news-item h2 a:hover {
  color: var(--zr-accent);
}

.news-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--zr-text-muted);
  margin-bottom: 0.75rem;
}

.news-summary {
  font-size: 0.95rem;
  color: var(--zr-text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.news-read-more {
  font-size: 0.85rem;
  color: var(--zr-text-muted);
  font-weight: 400;
}

.news-read-more:hover {
  color: var(--zr-text);
}

/* ─── 文章详情图片 ─── */
.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
  display: block;
}

.page-content img.img-portrait {
  max-width: 55%;
  margin-left: auto;
  margin-right: auto;
}

.page-content img.img-square {
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
}

/* ─── 移动端响应式 ─── */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 1rem;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .page-content {
    padding: 1.5rem;
    margin: 1rem auto;
  }

  .page-content img.img-portrait,
  .page-content img.img-square {
    max-width: 100%;
  }

  .zr-hero {
    padding: 6rem 1.25rem 3.5rem;
  }

  .zr-section {
    padding: 4rem 1.25rem;
  }

  .zr-section-lyker {
    padding: 3.5rem 1.25rem;
  }

  .zr-hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .zr-btn {
    width: 100%;
    justify-content: center;
  }

  .zr-philosophy-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .zr-philosophy-item {
    padding: 0.75rem 0;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .page-content {
    margin: 1.5rem auto;
    padding: 1.25rem;
  }

  .page-content h1 {
    font-size: 1.5rem;
  }

  .page-content h2 {
    font-size: 1.2rem;
  }
}
