/* 宠物医疗（haoxian-linear）：由原模板的手写 CSS 移植（Linear 风格的深色界面）。
   类名统一加 ln- 前缀，避免与 _shared/base.css 的公共类互相覆盖。 */
:root {
  --ln-primary: #5a68c9;
  --ln-primary-hover: #7682e0;
  --ln-ink: #f7f8f8;
  --ln-ink-muted: #d0d6e0;
  --ln-ink-subtle: #8a8f98;
  --ln-canvas: #010102;
  --ln-surface-1: #0f1011;
  --ln-surface-2: #141516;
  --ln-surface-3: #18191a;
  --ln-hairline: #23252a;
  --ln-hairline-strong: #34343a;
  --ln-font: 'Inter', -apple-system, system-ui, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* 公共页面配色 */
  --page-accent: #7682e0;
  --page-bg: #010102;
  --page-ink: #f7f8f8;
  --page-muted: #8a8f98;
  --page-surface: #0f1011;
  --page-font: var(--ln-font);
  --page-radius: 12px;
}
body { background: var(--ln-canvas); color: var(--ln-ink); font-family: var(--ln-font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { text-wrap: balance; }
::selection { background: var(--ln-primary); color: #fff; }
:focus-visible { outline: 2px solid var(--ln-primary); outline-offset: 2px; }

.ln-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .ln-wrap { padding: 0 48px; } }

/* 导航 */
.ln-nav { position: sticky; top: 0; z-index: 100; background: rgba(1,1,2,.85); border-bottom: 1px solid var(--ln-hairline); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.ln-nav__in { max-width: 1280px; margin: 0 auto; padding: 0 20px; height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ln-logo { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ln-ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.ln-logo img { height: 24px; width: auto; }
.ln-logo span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln-logo__icon { flex-shrink: 0; width: 24px; height: 24px; border-radius: 6px; background: var(--ln-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.ln-links { display: none; gap: 4px; align-items: center; }
.ln-links a, .ln-menu__panel a { font-size: 14px; color: var(--ln-ink-muted); text-decoration: none; padding: 6px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.ln-links a:hover, .ln-menu__panel a:hover { color: var(--ln-ink); background: var(--ln-surface-1); }
.ln-menu { position: relative; }
.ln-menu > summary { list-style: none; cursor: pointer; padding: 8px; color: var(--ln-ink); }
.ln-menu > summary::-webkit-details-marker { display: none; }
.ln-menu__panel { position: absolute; right: 0; top: calc(100% + 8px); width: 200px; display: flex; flex-direction: column; gap: 4px; padding: 8px; background: var(--ln-surface-1); border: 1px solid var(--ln-hairline); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
@media (min-width: 900px) { .ln-links { display: flex; } .ln-menu { display: none; } .ln-nav__in { padding: 0 48px; } }

/* 按钮 */
.ln-btn-primary, .ln-btn-secondary, .ln-btn-ghost { display: inline-block; border-radius: 8px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.ln-btn-primary { background: var(--ln-primary); color: #fff; padding: 10px 20px; }
.ln-btn-primary:hover { background: var(--ln-primary-hover); }
.ln-btn-primary--sm { padding: 7px 14px; }
.ln-btn-secondary { background: var(--ln-surface-1); color: var(--ln-ink); border: 1px solid var(--ln-hairline); padding: 9px 19px; }
.ln-btn-secondary:hover { background: var(--ln-surface-2); border-color: var(--ln-hairline-strong); }

/* 首屏 */
.ln-hero { position: relative; text-align: center; padding: 112px 0 96px; overflow: hidden; }
.ln-hero::before { content: ''; position: absolute; left: 50%; top: -20%; width: 900px; max-width: 140vw; height: 600px; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(94,106,210,.22) 0%, transparent 65%); pointer-events: none; }
.ln-hero > * { position: relative; }
.ln-eyebrow { margin-bottom: 24px; color: var(--ln-primary-hover); font-size: 13px; font-weight: 500; letter-spacing: .4px; text-transform: uppercase; }
.ln-headline { max-width: 900px; margin: 0 auto 24px; font-size: clamp(36px, 7vw, 80px); font-weight: 600; line-height: 1.05; letter-spacing: -.04em; overflow-wrap: anywhere; }
.ln-sub { max-width: 560px; margin: 0 auto 48px; color: var(--ln-ink-muted); font-size: 18px; line-height: 1.6; }
.ln-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ln-panel { max-width: 1100px; margin: 72px auto 0; aspect-ratio: 16 / 7; border-radius: 16px; border: 1px solid var(--ln-hairline); background: linear-gradient(180deg, var(--ln-surface-2), var(--ln-canvas)); position: relative; overflow: hidden; }
.ln-panel::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--ln-hairline) 1px, transparent 1px), linear-gradient(90deg, var(--ln-hairline) 1px, transparent 1px); background-size: 48px 48px; opacity: .45; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.ln-panel__mark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: clamp(64px, 14vw, 160px); font-weight: 700; color: rgba(118,130,224,.18); letter-spacing: -.04em; }

/* 版块 */
.ln-section { padding: 88px 0; border-top: 1px solid var(--ln-hairline); }
.ln-kicker { margin-bottom: 16px; color: var(--ln-primary-hover); font-size: 13px; font-weight: 500; letter-spacing: .4px; text-transform: uppercase; }
.ln-title { margin: 0 0 16px; font-size: clamp(28px, 4vw, 48px); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; }
.ln-title--spaced { margin-bottom: 40px; }
.ln-links a.ln-btn-primary { color: #fff; background: var(--ln-primary); margin-left: 8px; }
.ln-links a.ln-btn-primary:hover { background: var(--ln-primary-hover); }
.ln-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.ln-more { color: var(--ln-ink-muted); font-size: 14px; text-decoration: none; }
.ln-more:hover { color: var(--ln-ink); }
.ln-split { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .ln-split { grid-template-columns: 1fr 1.6fr; } .ln-split--even { grid-template-columns: 1fr 1fr; } }
.ln-prose { color: var(--ln-ink-muted); font-size: 17px; line-height: 1.75; }
.ln-prose p + p { margin-top: 18px; }

/* 卡片 */
.ln-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .ln-grid { grid-template-columns: repeat(3, 1fr); } }
.ln-card { display: block; overflow: hidden; background: var(--ln-surface-1); border: 1px solid var(--ln-hairline); border-radius: 12px; color: var(--ln-ink); text-decoration: none; transition: background .2s, border-color .2s, transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s; }
.ln-card:hover { background: var(--ln-surface-2); border-color: var(--ln-hairline-strong); transform: translateY(-4px); box-shadow: 0 20px 48px rgba(30,40,80,.25); }
.ln-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; border-bottom: 1px solid var(--ln-hairline); }
.ln-card__body { padding: 24px 28px 28px; }
.ln-card__tag { display: inline-block; margin-bottom: 12px; padding: 2px 10px; border-radius: 9999px; border: 1px solid var(--ln-hairline-strong); color: var(--ln-ink-subtle); font-size: 12px; }
.ln-card__title { margin: 0 0 8px; font-size: 18px; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; }
.ln-card__desc { color: var(--ln-ink-subtle); font-size: 14px; line-height: 1.6; }

/* 列表 */
.ln-box { background: var(--ln-surface-1); border: 1px solid var(--ln-hairline); border-radius: 12px; padding: 8px; min-width: 0; }
.ln-box__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 15px; font-weight: 600; }
.ln-list { list-style: none; margin: 0; padding: 0; }
.ln-list a { display: block; padding: 14px 16px; border-radius: 8px; color: var(--ln-ink); text-decoration: none; transition: background .2s; }
.ln-list a:hover { background: var(--ln-surface-3); }
.ln-list__date { display: block; margin-bottom: 2px; color: var(--ln-ink-subtle); font-size: 12px; font-variant-numeric: tabular-nums; }
.ln-list__title { display: block; font-size: 15px; line-height: 1.5; }
.ln-list__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; color: var(--ln-ink-subtle); font-size: 13px; }
.ln-faq a { display: flex; gap: 12px; align-items: flex-start; }
.ln-faq__q { flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px; background: rgba(94,106,210,.18); color: var(--ln-primary-hover); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }

/* 联系 */
.ln-cta { max-width: 1100px; margin: 0 auto; padding: 56px 24px; border-radius: 12px; background: var(--ln-surface-1); border: 1px solid var(--ln-hairline); text-align: center; }
@media (min-width: 768px) { .ln-cta { padding: 64px 48px; } }
.ln-contact { display: grid; gap: 12px; max-width: 760px; margin: 40px auto 0; text-align: left; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ln-contact { grid-template-columns: repeat(2, 1fr); } }
.ln-contact div { padding: 16px 20px; border-radius: 10px; background: var(--ln-surface-2); border: 1px solid var(--ln-hairline); min-width: 0; }
.ln-contact dt { color: var(--ln-ink-subtle); font-size: 12px; margin-bottom: 4px; }
.ln-contact dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.ln-contact a { color: var(--ln-primary-hover); }
.ln-contact-img { display: block; max-width: 200px; width: 100%; margin: 28px auto 0; border-radius: 10px; background: #fff; padding: 10px; }

/* 页脚 */
.ln-footer { border-top: 1px solid var(--ln-hairline); padding: 56px 0 40px; color: var(--ln-ink-subtle); font-size: 13px; }
.ln-footer__grid { display: grid; gap: 32px; margin-bottom: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .ln-footer__grid { grid-template-columns: 2fr 1fr; } }
.ln-footer__brand { color: var(--ln-ink); font-size: 16px; font-weight: 600; }
.ln-footer__desc { max-width: 420px; margin-top: 12px; line-height: 1.7; }
.ln-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; overflow-wrap: anywhere; }
.ln-footer__bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--ln-hairline); font-size: 12px; }
.ln-footer a { color: inherit; text-decoration: none; }
.ln-footer a:hover { color: var(--ln-ink); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }
