/* ===========================================================
   爪宠小居 · Web 端样式
   设计基调：清新 / 留白 / 柔和薄荷绿 + 暖黄点缀
   =========================================================== */

:root {
  --mint-50: #f2faf7;
  --mint-100: #e4f5ef;
  --mint-200: #c9ebe1;
  --mint-400: #5fc4b0;
  --mint-500: #35a894;
  --mint-600: #27897a;
  --mint-700: #1f6f63;
  --sun: #ffc857;
  --sun-soft: #fff3d6;
  --ink: #16302c;
  --ink-2: #3d5955;
  --muted: #6f8681;
  --line: #e6efec;
  --bg: #fbfdfc;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(22, 48, 44, .04), 0 4px 14px rgba(22, 48, 44, .05);
  --shadow-md: 0 8px 30px rgba(22, 48, 44, .09);
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1140px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--mint-600); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--mint-500); }

h1, h2, h3, h4 { line-height: 1.32; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 4vw, 40px); }
h2 { font-size: clamp(22px, 2.6vw, 30px); }
h3 { font-size: clamp(18px, 2vw, 21px); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--mint-600); color: #fff;
  padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .08em; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--ink-2); font-size: 15px; padding: 8px 14px; border-radius: 10px;
  white-space: nowrap;
}
.nav a:hover { background: var(--mint-50); color: var(--mint-700); }
.nav a.active { color: var(--mint-700); font-weight: 600; background: var(--mint-50); }

.header-cta {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  background: var(--mint-500); color: #fff; font-size: 14px; font-weight: 600;
  padding: 9px 18px; border-radius: 999px; box-shadow: 0 6px 16px rgba(53, 168, 148, .26);
}
.header-cta:hover { background: var(--mint-600); color: #fff; }
.header-cta svg { width: 16px; height: 16px; }

/* ---------------- 首屏 ---------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(168deg, #eefaf5 0%, #f7fdfa 46%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none;
}
.hero::before { width: 420px; height: 420px; right: -140px; top: -160px; background: radial-gradient(circle at 30% 30%, rgba(95, 196, 176, .28), rgba(95, 196, 176, 0) 68%); }
.hero::after { width: 300px; height: 300px; left: -110px; bottom: -150px; background: radial-gradient(circle at 50% 50%, rgba(255, 200, 87, .22), rgba(255, 200, 87, 0) 70%); }

.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center; padding: 76px 0 84px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--mint-700); background: var(--mint-100); padding: 6px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.02em; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--mint-600); }
.hero-sub { font-size: 17px; color: var(--ink-2); max-width: 30em; margin-bottom: 30px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: all .18s ease; font-family: inherit;
}
.btn-primary { background: var(--mint-500); color: #fff; box-shadow: 0 8px 22px rgba(53, 168, 148, .28); }
.btn-primary:hover { background: var(--mint-600); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--mint-200); color: var(--mint-700); }

.hero-stats { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 25px; letter-spacing: -.02em; }
.hero-stats div span { font-size: 13px; color: var(--muted); }

.hero-art { position: relative; }
.hero-art .art-card {
  background: #fff; border-radius: 24px; box-shadow: var(--shadow-md); padding: 10px;
  transform: rotate(-1.4deg);
}
.hero-art .art-card img { border-radius: 16px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hero-art .badge {
  position: absolute; left: -14px; bottom: 26px; background: #fff; border-radius: 14px;
  box-shadow: var(--shadow-sm); padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600;
}
.hero-art .badge i {
  width: 30px; height: 30px; border-radius: 9px; background: var(--sun-soft); display: grid; place-items: center;
}
.hero-art .badge i svg { width: 16px; height: 16px; }

/* ---------------- 通用区块 ---------------- */
.section { padding: 68px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head h2 { margin: 0 0 6px; }
.section-head p { margin: 0; color: var(--muted); font-size: 15px; }
.section-head .more { font-size: 14px; font-weight: 600; white-space: nowrap; }

/* 卡片网格 */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--mint-200); }
.card:hover .card-title { color: var(--mint-700); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 17px; font-weight: 700; margin: 0; color: var(--ink); transition: color .18s ease; }
.card-desc { font-size: 14px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); margin-top: auto; padding-top: 4px; }
.card-thumb { display: block; aspect-ratio: 16 / 10; background: var(--mint-50); overflow: hidden; position: relative; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-thumb img { transform: scale(1.035); }

.tag {
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px; background: var(--mint-100); color: var(--mint-700);
}
.tag-sun { background: var(--sun-soft); color: #96690d; }
.tag-plain { background: #f1f5f3; color: var(--ink-2); }

.thumb-fallback {
  width: 100%; height: 100%; display: grid; place-items: center;
  background:
    radial-gradient(circle at 28% 22%, #ffffff 0%, rgba(255,255,255,0) 62%),
    repeating-linear-gradient(135deg, rgba(95,196,176,.07) 0 10px, rgba(95,196,176,0) 10px 20px),
    linear-gradient(150deg, #eafaf5 0%, #f7fdfb 60%, #eef8ff 100%);
}
.thumb-fallback svg { width: 44px; height: 44px; opacity: .42; }

/* 特色三栏 */
.feature { display: flex; gap: 16px; padding: 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.feature .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--mint-50); flex: none; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 16px; margin: 0 0 6px; }
.feature p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------------- 列表页 ---------------- */
.page-head { background: linear-gradient(180deg, var(--mint-50), var(--bg)); padding: 52px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: 10px; }
.page-head p { color: var(--muted); margin: 0; max-width: 44em; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 28px; }
.chip {
  font-size: 14px; padding: 7px 16px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); color: var(--ink-2);
}
.chip:hover { border-color: var(--mint-200); color: var(--mint-700); }
.chip.on { background: var(--mint-500); border-color: var(--mint-500); color: #fff; font-weight: 600; }

.empty { padding: 70px 0; text-align: center; color: var(--muted); }

/* ---------------- 文章详情 ---------------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); padding: 22px 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--mint-600); }
.breadcrumb span { color: #b9cbc7; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding: 34px 0 76px; align-items: start; }
.article-head { margin-bottom: 28px; }
.article-head h1 { font-size: clamp(25px, 3.2vw, 34px); margin: 14px 0 14px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; border: 1px solid var(--line); }

.prose { font-size: 16.5px; line-height: 1.9; color: #223b37; }
.prose h2 { font-size: 22px; margin: 2em 0 .7em; padding-left: 14px; border-left: 4px solid var(--mint-400); line-height: 1.4; }
.prose h3 { font-size: 18px; margin: 1.7em 0 .6em; }
.prose p { margin: 0 0 1.15em; }
.prose ul, .prose ol { padding-left: 1.35em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose img { border-radius: var(--radius-sm); margin: 1.4em 0; }
.prose blockquote {
  margin: 1.6em 0; padding: 16px 20px; background: var(--mint-50);
  border-left: 4px solid var(--mint-400); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-2); font-size: 15.5px;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--mint-50); font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.article-foot { margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); }
.share-note { font-size: 13.5px; color: var(--muted); }

.sidebar { position: sticky; top: 88px; display: grid; gap: 20px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.side-card h3 { font-size: 15px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.side-list a { font-size: 14px; color: var(--ink-2); display: block; line-height: 1.5; }
.side-list a:hover { color: var(--mint-600); }
.side-list .n { font-size: 12px; color: var(--muted); display: block; margin-top: 2px; }
.side-cta { background: linear-gradient(160deg, var(--mint-100), #f6fffb); border-color: var(--mint-200); }
.side-cta p { font-size: 14px; color: var(--ink-2); margin-bottom: 16px; }

/* 相关阅读 */
.related { border-top: 1px solid var(--line); padding: 56px 0 72px; }

/* ---------------- 工具 ---------------- */
.tool-shell { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.field-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; height: 46px; padding: 0 14px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 12px; background: #fcfefd; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { height: auto; padding: 12px 14px; min-height: 96px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--mint-400); box-shadow: 0 0 0 3px rgba(95, 196, 176, .16); background: #fff;
}
.result-box {
  margin-top: 24px; padding: 22px 24px; border-radius: var(--radius-sm);
  background: var(--mint-50); border: 1px dashed var(--mint-200);
}
.result-box .big { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--mint-700); line-height: 1.2; }
.result-box .sub { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.result-box ul { margin: 10px 0 0; padding-left: 1.2em; font-size: 14px; color: var(--ink-2); }

/* ---------------- 表单 / 留资 ---------------- */
.form-inline { display: flex; gap: 10px; flex-wrap: wrap; }
.form-inline input {
  flex: 1; min-width: 180px; height: 48px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 15px; font-family: inherit; background: #fff;
}
.form-inline input:focus { outline: none; border-color: var(--mint-400); }
.notice { padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; }
.notice-ok { background: var(--mint-50); color: var(--mint-700); border: 1px solid var(--mint-200); }
.notice-err { background: #fff2f0; color: #b23a2a; border: 1px solid #f6d3cc; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 56px 0 30px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand p { font-size: 14px; color: var(--muted); margin: 14px 0 0; max-width: 26em; }
.footer-col h4 { font-size: 14px; margin: 0 0 14px; color: var(--ink); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { font-size: 14px; color: var(--muted); }
.footer-col a:hover { color: var(--mint-600); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 13px; color: var(--muted);
}
.footer-bottom a { color: var(--muted); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 60px; }
  .hero-art { order: -1; max-width: 460px; }
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  .sidebar { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .field-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .wrap { padding: 0 18px; }
  .header-inner { height: 60px; gap: 14px; overflow: hidden; }
  .nav { gap: 0; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 7px 10px; font-size: 14px; }
  .header-cta { display: none; }
  .brand small { display: none; }
  .section { padding: 48px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .field-grid { grid-template-columns: 1fr; }
  .tool-shell { padding: 20px; }
  .hero-stats { gap: 22px; }
  .hero-stats div strong { font-size: 21px; }
  .prose { font-size: 16px; }
  .article-layout { padding: 20px 0 50px; }
}
