/* =============================================================================
 * 作者 ：wjt
 * 创建时间 ：2026/08/03（北京时间）
 * 功能概述 ：chickgo.asia 萌宠信息展示站样式 · 贴纸风冷蓝 + 六边形主题
 * 所属板块 ：Web/chickgo-site
 * -----------------------------------------------------------------------------
 * 变更记录：
 * - 2026/08/07 功能：ICP 备案号链接增加下划线与 hover，便于识别可点击
 * ============================================================================= */

:root {
  --blue-900: #0d2b4a;
  --blue-800: #123a5c;
  --blue-700: #1a5082;
  --blue-600: #2563a8;
  --blue-500: #3b82d6;
  --blue-100: #dbeafe;
  --yellow-400: #ffd54f;
  --yellow-500: #ffc107;
  --orange-500: #ff8f00;
  --green-400: #66bb6a;
  --white: #ffffff;
  --gray-100: #f1f5f9;
  --gray-300: #cbd5e1;
  --gray-600: #475569;
  --shadow: 0 8px 32px rgba(13, 43, 74, 0.18);
  --radius: 16px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--blue-900);
  background: linear-gradient(160deg, #e8f4fd 0%, #d0e8f7 40%, #b8daf0 100%);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

a {
  color: var(--blue-600);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* 六边形背景 */
.hex-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 0 L56 14 L56 42 L28 56 L0 42 L0 14 Z' fill='none' stroke='%231a5082' stroke-width='1'/%3E%3Cpath d='M28 44 L56 58 L56 86 L28 100 L0 86 L0 58 Z' fill='none' stroke='%231a5082' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 100px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--blue-100);
  box-shadow: 0 2px 12px rgba(13, 43, 74, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.brand-logo {
  display: block;
  height: 56px;
  width: auto;
  object-fit: contain;
}

.hero-logo {
  display: block;
  width: min(320px, 80vw);
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 16px rgba(13, 43, 74, 0.12));
}

.brand-title {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue-700);
  letter-spacing: 0.02em;
}

.brand-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-600);
  font-weight: 500;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: var(--blue-800);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--blue-500);
  text-decoration: none;
}

.lang-switch {
  padding: 6px 14px;
  border: 2px solid var(--blue-500);
  background: var(--white);
  color: var(--blue-700);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-switch:hover {
  background: var(--blue-700);
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  padding: 64px 0 80px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.hero-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--blue-700);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--blue-900);
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: var(--yellow-400);
  color: var(--blue-900);
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(255, 193, 7, 0.5);
}

.btn-ghost {
  background: var(--white);
  color: var(--blue-700);
  border-color: var(--blue-300, var(--blue-100));
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue-700);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* CSS 小鸡吉祥物 */
.hero-mascot {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 220px;
  height: 220px;
}

.mascot-chick {
  position: relative;
  width: 100%;
  height: 100%;
  animation: float 3s ease-in-out infinite;
}

.chick-body {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 130px;
  background: var(--yellow-400);
  border-radius: 50% 50% 45% 45%;
  box-shadow: inset -8px -12px 0 rgba(255, 143, 0, 0.15), var(--shadow);
}

.chick-face {
  position: absolute;
  bottom: 55px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 60px;
}

.eye {
  position: absolute;
  top: 10px;
  width: 14px;
  height: 14px;
  background: var(--blue-900);
  border-radius: 50%;
}

.eye.left { left: 22px; }
.eye.right { right: 22px; }

.beak {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 16px solid var(--orange-500);
}

.chick-comb {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 20px;
  background: var(--orange-500);
  border-radius: 50% 50% 0 0;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--blue-800);
  margin-bottom: 8px;
}

.section-head p {
  color: var(--gray-600);
}

/* Filter */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 8px 20px;
  border: 2px solid var(--blue-100);
  background: var(--white);
  color: var(--blue-700);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--blue-500);
  color: var(--blue-500);
}

.filter-btn.active {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: var(--white);
}

/* Pet Grid */
.pet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.pet-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 2px solid var(--blue-100);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fadeIn 0.4s ease;
}

.pet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(13, 43, 74, 0.15);
}

.pet-card.hidden {
  display: none;
}

.pet-emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.pet-card h3 {
  font-size: 1.2rem;
  color: var(--blue-800);
  margin-bottom: 4px;
}

.pet-en {
  font-size: 0.8rem;
  color: var(--gray-600);
  font-style: italic;
  margin-bottom: 8px;
}

.pet-tag {
  display: inline-block;
  padding: 2px 10px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 10px;
}

.pet-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.5;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Timeline */
.story {
  background: rgba(255, 255, 255, 0.6);
}

.timeline {
  display: grid;
  gap: 20px;
}

.timeline-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  border-left: 4px solid var(--yellow-400);
  box-shadow: 0 4px 16px rgba(13, 43, 74, 0.06);
}

.chapter-num {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--blue-500);
  background: var(--blue-100);
  padding: 2px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.timeline-item h3 {
  font-size: 1.15rem;
  color: var(--blue-800);
  margin-bottom: 6px;
}

.timeline-item p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.about-card h2,
.about-card h3 {
  color: var(--blue-800);
  margin-bottom: 16px;
}

.about-card p {
  color: var(--gray-600);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.contact-card ul {
  list-style: none;
  margin-bottom: 16px;
}

.contact-card li {
  padding: 6px 0;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.contact-note {
  font-size: 0.85rem;
  color: var(--gray-600);
  font-style: italic;
}

.info-list {
  list-style: none;
  margin-bottom: 16px;
}

.info-list li {
  padding: 6px 0;
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* Compliance section */
.compliance {
  background: rgba(255, 255, 255, 0.55);
  padding-top: 48px;
  padding-bottom: 64px;
}

.compliance-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
  border: 2px solid var(--blue-100);
  max-width: 720px;
  margin: 0 auto;
}

.compliance-card h2 {
  font-size: 1.35rem;
  color: var(--blue-800);
  margin-bottom: 24px;
  text-align: center;
}

.compliance-dl {
  display: grid;
  gap: 16px;
}

.compliance-dl div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--blue-100);
}

.compliance-dl dt {
  font-weight: 700;
  color: var(--blue-700);
  font-size: 0.9rem;
}

.compliance-dl dd {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin: 0;
}

.noscript-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--blue-800);
  color: var(--white);
  text-align: center;
  padding: 10px 16px;
  font-size: 0.85rem;
  z-index: 999;
}

/* Footer */
.site-footer {
  background: var(--blue-900);
  color: var(--blue-100);
  padding: 32px 0;
  text-align: center;
}

.footer-inner p {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.icp-line a {
  color: var(--gray-300);
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.icp-line a:hover {
  color: var(--white);
}

.compliance-dl dd a {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.compliance-dl dd a:hover {
  color: var(--blue-900);
}

.footer-links {
  margin-bottom: 6px;
}

.footer-links a {
  color: var(--blue-100);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--white);
}

.legal-links {
  margin-top: 12px;
  font-size: 0.9rem;
}

.legal-links a {
  font-weight: 600;
}

/* Legal pages */
.legal-page {
  padding: 48px 0 72px;
}

.legal-doc {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 48px);
  box-shadow: var(--shadow);
  max-width: 820px;
  margin: 0 auto;
}

.legal-doc h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--blue-800);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--yellow-400);
}

.legal-doc h2 {
  font-size: 1.25rem;
  color: var(--blue-700);
  margin: 28px 0 12px;
}

.legal-doc h3 {
  font-size: 1.05rem;
  color: var(--blue-600);
  margin: 20px 0 8px;
}

.legal-doc p,
.legal-doc li {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.legal-doc ul {
  padding-left: 1.4em;
  margin-bottom: 12px;
}

.legal-meta {
  background: var(--gray-100);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--blue-100);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--blue-100);
  color: var(--blue-800);
  font-weight: 700;
}

.legal-table td {
  color: var(--gray-600);
}

.legal-back {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--blue-100);
}

.legal-back a {
  font-weight: 700;
  color: var(--blue-600);
}

.nav a[aria-current="page"] {
  color: var(--blue-500);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .brand-logo {
    height: 44px;
  }

  .legal-table {
    font-size: 0.8rem;
  }

  .legal-table th,
  .legal-table td {
    padding: 8px;
  }
}

/* Modal */
.pet-modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 520px;
  width: 92vw;
}

.pet-modal::backdrop {
  background: rgba(13, 43, 74, 0.5);
  backdrop-filter: blur(4px);
}

.modal-inner {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--gray-600);
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--blue-700);
}

.modal-emoji {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 16px;
}

.modal-inner h2 {
  text-align: center;
  color: var(--blue-800);
  margin-bottom: 4px;
}

.modal-en {
  text-align: center;
  color: var(--gray-600);
  font-style: italic;
  margin-bottom: 16px;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.modal-tag {
  padding: 4px 12px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
}

.modal-body p {
  color: var(--gray-600);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.modal-traits {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--blue-100);
}

.modal-traits h4 {
  font-size: 0.9rem;
  color: var(--blue-700);
  margin-bottom: 8px;
}

.modal-traits ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-traits li {
  padding: 4px 12px;
  background: var(--yellow-400);
  color: var(--blue-900);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .compliance-dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .nav a {
    font-size: 0.85rem;
  }

  .hero-mascot {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin: 40px auto 0;
    width: 160px;
    height: 160px;
  }

  .chick-body {
    width: 100px;
    height: 95px;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-num {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .header-inner {
    flex-direction: column;
    gap: 12px;
  }

  .filter-bar {
    gap: 6px;
  }

  .filter-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
  }
}
