/*
 * 伊上槿云服务 · 企业站样式表 —— 潮流轻奢方向
 * ═══════════════════════════════════════════════════════════════════
 *
 * 风格取自 12 张参考素材的共性（2026-10-05 改版）：
 *   · 色调：米白 / 燕麦 / 浅驼 / 暖黑，**低饱和、偏暖**
 *   · 气质：quiet luxury —— 不靠装饰取胜，靠留白、字距与材质感
 *   · 构图：大留白、少元素、单一视觉焦点
 *
 * 设计纪律（改之前先读）：
 *   1. **不引任何外部资源**（字体、CSS、JS 一律本地）—— 首页要能在最差的网络
 *      与最旧的 WebView 里打开。这条从线上的 about.html 时代继承下来，不改。
 *   2. **视觉尽量由 CSS 承担，而不是堆图片** —— 轻奢本就克制；少一张图就少一份
 *      版权风险、少一次请求。
 *   3. 品牌橘 #C2603F 来自 H5 与后台（--brand / --yj-brand），**保留为唯一识别色**，
 *      但只在"当前页/链接/强调"这类小面积处使用。
 *   4. 颜色只写在这里的 :root，页面里不写死色值。
 *   5. ⚠️ 同一个选择器里**不要重复声明同一属性** —— 后者静默胜出，
 *      本项目在别处踩过（「看起来改了但没生效」）。
 */

:root {
  /* 底色系：米白纸感 */
  --paper: #f7f4ef;
  --surface: #ffffff;
  --sand: #efe8dc;
  --taupe: #ded4c4;

  /* 文字：暖黑而非纯黑 —— 纯黑在米白上会"发硬" */
  --ink: #1c1a17;
  --ink-body: #35322c;
  --ink-soft: #6e6659;
  --ink-faint: #9c948a;

  --line: #e4ded3;

  /* 识别色与点缀 */
  --brand: #c2603f;
  --gold: #a8876a;

  /* 页脚：深色收尾，给整页一个沉稳的落点 */
  --foot-bg: #1c1a17;
  --foot-ink: #ece7df;
  --foot-ink-soft: #948d82;

  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-body);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 760px; }

/* ══════════════ 页头 ══════════════ */

.site-head {
  padding: 26px 0 22px;
  /* 顶部一条 2px 品牌线：全站唯一的"重色"，用作识别锚点。
     轻奢版式里识别色只该出现在这种极窄的地方 —— 铺开就俗了。 */
  border-top: 2px solid var(--brand);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.brand { display: block; text-decoration: none; }
.brand-name {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: .18em;      /* 宽字距是"轻奢"最省力的信号 */
}
.brand-org {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: .06em;
}

.site-nav { display: flex; gap: 30px; flex-wrap: wrap; padding-top: 4px; }
.site-nav a {
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: .06em;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color .18s, border-color .18s;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--taupe); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }

/* ══════════════ 首页 Hero ══════════════ */

.hero { padding: 0 0 8px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: stretch;
  gap: 0;
  background: var(--sand);
  overflow: hidden;
}
.hero-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 56px;
}
.hero-kicker {
  margin: 0 0 20px;
  font-size: 11.5px;
  letter-spacing: .3em;
  color: var(--gold);
}
.hero-title {
  margin: 0;
  font-size: 46px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: .1em;
  color: var(--ink);
}
.hero-sub {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 2;
  letter-spacing: .16em;
  color: var(--ink-soft);
}
.hero-media {
  position: relative;
  min-height: 380px;
  background: var(--taupe);
}
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ══════════════ 通用段落标题 ══════════════ */

.section { padding: 68px 0 0; }
.section-head { margin-bottom: 30px; }
.section-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--gold);
}
.section-title {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--ink);
}
/* 标题下的一条短横线：给整块内容定一个"起手"，也是版面结构感的来源之一 */
.section-title::after {
  content: "";
  display: block;
  width: 30px;
  height: 1px;
  margin-top: 16px;
  background: var(--taupe);
}

/* ── 卡片（服务方向）══════════════ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
}
.card {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card-media {
  aspect-ratio: 4 / 3;
  background: var(--sand);
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px 22px 26px; }
.card-num {
  display: block;
  margin-bottom: 14px;
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--gold);
}
.card-title {
  margin: 0 0 10px;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--ink);
}
.card-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-soft);
}
/* 无配图的卡片：用一条细线起头，避免"四块白板"的观感 */
.card--text { border-top: 1px solid var(--taupe); }

/* ══════════════ 文章列表 ══════════════ */

.posts { list-style: none; margin: 0; padding: 0; }
.post { border-top: 1px solid var(--line); }
.post:first-child { border-top: 0; }
.post a {
  position: relative;
  display: flex;
  gap: 26px;
  align-items: flex-start;
  padding: 28px 0 28px 18px;
  text-decoration: none;
  transition: transform .22s ease;
}
/* 列表项左侧的细竖线：默认与分隔线同色，悬停换成品牌色。
   用一根线代替"加粗标题+变蓝"那种常见处理 —— 更克制，也更贴轻奢的调子。 */
.post a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: var(--line);
  transition: background .22s ease;
}
.post a:hover { transform: translateX(3px); }
.post a:hover::before { background: var(--brand); }
.post-media {
  flex: 0 0 190px;
  aspect-ratio: 4 / 3;
  background: var(--sand);
  overflow: hidden;
}
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-body { flex: 1; min-width: 0; }
.post-date {
  display: block;
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.post-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .04em;
  color: var(--ink);
  transition: color .18s;
}
.post a:hover .post-title { color: var(--brand); }
.post-sum {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}
.posts-compact .post a { padding: 22px 0; }
.posts-compact .post-media { flex: 0 0 120px; }
.posts-compact .post-title { font-size: 15.5px; }
.posts-compact .post-sum { display: none; }

/* ══════════════ 正文（文章页 / 栏目页）══════════════ */

.prose { max-width: 720px; }
.prose h1 {
  margin: 0 0 22px;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .06em;
  color: var(--ink);
}
.prose h2 {
  margin: 46px 0 14px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--ink);
}
.prose h3 {
  margin: 34px 0 12px;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink);
}
.prose p {
  margin: 0 0 20px;
  font-size: 15.5px;
  line-height: 2.05;
  color: var(--ink-body);
}
.prose ul { margin: 0 0 20px; padding-left: 0; list-style: none; }
.prose li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--ink-body);
}
.prose li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .82em;
  width: 6px;
  height: 1px;
  background: var(--gold);
}
.prose blockquote {
  margin: 0 0 20px;
  padding: 6px 0 6px 22px;
  border-left: 1px solid var(--taupe);
  color: var(--ink-soft);
}
.prose blockquote p { margin: 0; font-size: 14.5px; line-height: 1.95; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose a { color: var(--brand); text-decoration: none; border-bottom: 1px solid rgba(194, 96, 63, .3); }
.prose a:hover { border-bottom-color: var(--brand); }
.prose code {
  background: var(--sand);
  padding: 2px 6px;
  font-size: 13px;
  color: var(--ink);
}
.prose .meta {
  margin: -12px 0 34px;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--ink-faint);
}
.prose.center { text-align: center; max-width: 100%; }

/* 文章封面：有图才渲染（build.js 里缺图时整块不输出） */
.article-cover {
  margin: 0 0 38px;
  max-width: 720px;
  background: var(--sand);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.page-head { padding: 56px 0 6px; }
.page-head .prose h1 { font-size: 34px; }

.back { max-width: 720px; margin: 46px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; letter-spacing: .06em; }
.more { margin: 34px 0 0; }
.more a, .back a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13.5px;
  letter-spacing: .1em;
  border-bottom: 1px solid var(--taupe);
  padding-bottom: 2px;
}
.more a:hover, .back a:hover { color: var(--brand); border-bottom-color: var(--brand); }

/* ══════════════ 页脚 ══════════════ */

.site-foot {
  margin-top: 88px;
  background: var(--foot-bg);
  color: var(--foot-ink);
  padding: 56px 0 34px;
}
.foot-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(236, 231, 223, .12);
}
.foot-org {
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: .12em;
  color: var(--foot-ink);
}
.foot-tag {
  margin: 0;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--foot-ink-soft);
}
.foot-mail { margin: 0; font-size: 13px; letter-spacing: .06em; }
.foot-mail a { color: var(--foot-ink); text-decoration: none; border-bottom: 1px solid rgba(236, 231, 223, .3); padding-bottom: 2px; }
.foot-mail a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 26px;
}
.foot-bottom p { margin: 0; font-size: 11.5px; letter-spacing: .06em; color: var(--foot-ink-soft); }
.foot-beian a { color: var(--foot-ink-soft); text-decoration: none; }
.foot-beian a:hover { color: var(--foot-ink); }

/* ══════════════ 响应式 ══════════════ */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { min-height: 300px; order: -1; }
  .hero-body { padding: 44px 32px 48px; }
  .hero-title { font-size: 34px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .site-head { padding: 20px 0 16px; }
  .site-nav { gap: 20px; width: 100%; }
  .site-nav a { font-size: 13px; }
  .brand-name { font-size: 16px; letter-spacing: .14em; }
  .section { padding: 48px 0 0; }
  .section-title { font-size: 20px; }
  .hero-body { padding: 38px 24px 40px; }
  .hero-title { font-size: 27px; letter-spacing: .08em; }
  .prose h1 { font-size: 24px; }
  .page-head .prose h1 { font-size: 26px; }
  .post a { gap: 16px; padding: 22px 0; }
  .post-media { flex: 0 0 108px; }
  .post-title { font-size: 15.5px; }
  .post-sum { display: none; }
  .site-foot { margin-top: 64px; padding: 40px 0 28px; }
}
