/*
 * Z-BlogPHP 主题 - 阿猫阿狗科技
 * style.css - 全站样式
 * 设计风格：Soft UI · 粉色系 · 可爱温馨
 */

/* ==================== 变量 & 重置 ==================== */
:root {
  --pink:       #EC4899;
  --pink-light: #F9A8D4;
  --pink-bg:    #FDF2F8;
  --purple:     #8B5CF6;
  --text:       #831843;
  --text-muted: #666666;
  --white:      #ffffff;
  --shadow-sm:  0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md:  0 4px 20px rgba(236, 72, 153, 0.12);
  --shadow-lg:  0 8px 30px rgba(236, 72, 153, 0.2);
  --radius-sm:  0.75rem;
  --radius-md:  1rem;
  --radius-lg:  1.5rem;
  --radius-xl:  2rem;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--pink-bg);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3, h4, h5 {
  font-family: 'Varela Round', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

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

ul { list-style: none; }

/* ==================== 布局通用 ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  color: var(--pink);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.section-desc {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-more {
  text-align: center;
  margin-top: 2.5rem;
}

.text-center { text-align: center; }

/* ==================== 按钮 ==================== */
.btn-primary {
  background: var(--purple);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.btn-primary:hover {
  background: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--pink);
  border: 2px solid var(--pink);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.btn-secondary:hover {
  background: var(--pink);
  color: var(--white);
}

/* ==================== 导航栏 ==================== */
#main-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.15);
  z-index: 1000;
  transition: all 0.3s;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--pink-light), var(--pink));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.logo-text h1 {
  font-size: 1.25rem;
  color: var(--text);
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--pink);
  display: block;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  font-weight: 600;
  color: var(--text);
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--pink-bg);
  color: var(--pink);
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ==================== Hero 区域 ==================== */
.hero {
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='%23F9A8D4' fill-opacity='0.2'%3E%3Cellipse cx='30' cy='35' rx='8' ry='10'/%3E%3Cellipse cx='20' cy='20' rx='5' ry='6'/%3E%3Cellipse cx='40' cy='20' rx='5' ry='6'/%3E%3Cellipse cx='15' cy='32' rx='4' ry='5'/%3E%3Cellipse cx='45' cy='32' rx='4' ry='5'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  width: 100%;
}

.hero-text { text-align: left; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  color: var(--pink);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--text);
}

.hero h1 span {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero > .hero-content > .hero-text > p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
}

.stat { text-align: center; }

.stat-num {
  font-family: 'Varela Round', sans-serif;
  font-size: 2rem;
  font-weight: bold;
  color: var(--pink);
}
.stat-num.purple { color: var(--purple); }

.stat-label {
  font-size: 0.875rem;
  color: #aaa;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-circle {
  width: 320px;
  height: 320px;
  background: linear-gradient(135deg, var(--pink-light), var(--purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 40px rgba(236, 72, 153, 0.3);
  animation: float 3s ease-in-out infinite;
}

.hero-circle-inner {
  width: 270px;
  height: 270px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-emoji { font-size: 5rem; }

.hero-circle-text {
  font-family: 'Varela Round', sans-serif;
  font-size: 1.25rem;
  color: var(--text);
  margin-top: 0.5rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-18px); }
}

/* ==================== 服务卡片 ==================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}
.service-icon.pink   { background: var(--pink-bg); }
.service-icon.purple { background: #f3e8ff; }
.service-icon.blue   { background: #dbeafe; }
.service-icon.green  { background: #dcfce7; }

.service-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.service-card p  { color: #888; font-size: 0.875rem; }

/* ==================== 为什么选我们 ==================== */
.why-bg { background: linear-gradient(180deg, var(--white) 0%, var(--pink-bg) 100%); }

.why-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.why-desc { color: var(--text-muted); margin-bottom: 1.5rem; }

.why-list { display: flex; flex-direction: column; gap: 1rem; }

.why-item {
  display: flex;
  gap: 1rem;
  background: var(--white);
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s;
}
.why-item:hover { box-shadow: var(--shadow-lg); }

.why-icon {
  width: 48px;
  height: 48px;
  background: var(--pink-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
}

.why-item h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.why-item p  { font-size: 0.875rem; color: #888; }

.why-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.why-img {
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.why-img:nth-child(1) { background: linear-gradient(135deg, var(--pink-light), var(--pink)); height: 160px; }
.why-img:nth-child(2) { background: linear-gradient(135deg, #e9d5ff, var(--purple)); height: 110px; }
.why-img:nth-child(3) { background: linear-gradient(135deg, #fecdd3, #fda4af); height: 110px; }
.why-img:nth-child(4) { background: linear-gradient(135deg, var(--pink), var(--purple)); height: 160px; }

/* ==================== 客户评价 ==================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s;
}
.testimonial:hover { box-shadow: var(--shadow-lg); }

.testimonial-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }

.testimonial-avatar {
  width: 52px;
  height: 52px;
  background: var(--pink-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.testimonial-name { font-weight: 700; }
.testimonial-pet  { font-size: 0.875rem; color: #888; }
.testimonial-stars { color: #fbbf24; margin-bottom: 0.75rem; font-size: 1.125rem; }
.testimonial-text { color: var(--text-muted); font-style: italic; }

/* ==================== CTA 召唤 ==================== */
.cta {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  padding: 5rem 2rem;
  text-align: center;
  color: var(--white);
}

.cta h2 { font-size: 2rem; margin-bottom: 1rem; }
.cta p  { opacity: 0.9; margin-bottom: 2rem; font-size: 1.05rem; }

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  background: var(--white);
  color: var(--pink);
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.125rem;
  transition: all 0.2s;
  display: inline-block;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--pink);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 2px solid var(--white);
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: all 0.2s;
  display: inline-block;
}
.btn-outline:hover {
  background: var(--white);
  color: var(--pink);
}

/* ==================== 页面 Banner ==================== */
.page-header {
  padding: 10rem 2rem 4rem;
  text-align: center;
  background: linear-gradient(180deg, var(--pink-bg) 0%, var(--white) 100%);
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.page-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ==================== 新闻/文章列表 ==================== */
.news-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.news-home-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
}
.news-home-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.news-home-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--pink-light), var(--purple));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
  overflow: hidden;
}
.news-home-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-home-content { flex: 1; }
.news-home-meta    { display: flex; gap: 0.75rem; margin-bottom: 0.5rem; flex-wrap: wrap; align-items: center; }

.news-home-content h3 { font-size: 1.05rem; margin-bottom: 0.5rem; line-height: 1.4; }
.news-home-content h3 a:hover { color: var(--pink); }
.news-home-content p {
  color: #888;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 文章列表（列表页 & 分类页） */
.news-list { display: flex; flex-direction: column; gap: 1rem; }

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
}
.news-card:hover { box-shadow: var(--shadow-lg); }

.news-img {
  width: 110px;
  height: 110px;
  background: linear-gradient(135deg, var(--pink-light), var(--purple));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  flex-shrink: 0;
  overflow: hidden;
}
.news-img img { width: 100%; height: 100%; object-fit: cover; }

.news-content { flex: 1; min-width: 0; }
.news-meta     { display: flex; gap: 0.75rem; margin-bottom: 0.5rem; flex-wrap: wrap; align-items: center; }

.news-tag {
  background: var(--pink-bg);
  color: var(--pink);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.75rem;
  border-radius: 1rem;
}
.news-tag.purple { background: #f3e8ff; color: var(--purple); }
.news-tag.blue   { background: #dbeafe; color: #3b82f6; }

.news-date, .news-views {
  color: #aaa;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.news-card h3 { font-size: 1rem; margin-bottom: 0.5rem; line-height: 1.4; }
.news-card h3 a:hover { color: var(--pink); }
.news-card p {
  color: #888;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.news-tags span { font-size: 0.75rem; color: var(--pink); }

.news-more {
  color: var(--pink);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}
.news-more:hover { text-decoration: underline; }

/* ==================== 分页 ==================== */
.pagination {
  margin-top: 3rem;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  background: var(--white);
  border: 2px solid var(--pink-bg);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.pagination a:hover {
  background: var(--pink-bg);
  color: var(--pink);
  border-color: var(--pink-light);
}

.pagination .current,
.pagination span.current {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
}

/* ==================== 空状态 ==================== */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.empty-state h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.empty-state p   { color: var(--text-muted); margin-bottom: 2rem; }

/* ==================== 文章详情页 ==================== */
.article-header { text-align: left; }

.article-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.article-intro {
  margin-top: 1rem;
  max-width: 700px;
  color: var(--text-muted);
  font-size: 1rem;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

.article-thumb {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}
.article-thumb img { width: 100%; height: auto; }

.article-body {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

/* 文章内容排版 */
.article-content {
  color: #444;
  line-height: 1.9;
  font-size: 1rem;
}
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 1.5rem 0 0.75rem;
  color: var(--text);
}
.article-content h2 { font-size: 1.5rem; }
.article-content h3 { font-size: 1.25rem; }
.article-content p  { margin-bottom: 1rem; }
.article-content ul,
.article-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-content li { margin-bottom: 0.5rem; }
.article-content img {
  border-radius: var(--radius-md);
  margin: 1rem 0;
}
.article-content blockquote {
  border-left: 4px solid var(--pink-light);
  padding: 0.75rem 1.25rem;
  background: var(--pink-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}
.article-content code {
  background: #f3f4f6;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}
.article-content pre {
  background: #1f2937;
  color: #f9fafb;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 1rem;
}
.article-content a { color: var(--pink); text-decoration: underline; }

/* 文章标签 */
.article-tags {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--pink-bg);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tags-label { font-weight: 600; color: var(--text-muted); }
.article-tag {
  background: var(--pink-bg);
  color: var(--pink);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
}
.article-tag:hover { background: var(--pink); color: var(--white); }

/* 上下篇导航 */
.article-nav {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--pink-bg);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-nav-prev,
.article-nav-next {
  flex: 1;
  min-width: 200px;
  background: var(--pink-bg);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: all 0.2s;
}
.article-nav-prev:hover,
.article-nav-next:hover { background: var(--pink); color: var(--white); }
.article-nav-next { text-align: right; }

.nav-label {
  display: block;
  font-size: 0.75rem;
  color: inherit;
  opacity: 0.7;
  margin-bottom: 0.25rem;
}
.nav-title {
  font-weight: 600;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 评论区 */
.comments-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--pink-bg);
}
.comments-title { font-size: 1.5rem; margin-bottom: 1.5rem; }
.comments-list  { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }

.comment-item {
  display: flex;
  gap: 1rem;
}
.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pink-bg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }

.comment-body   { flex: 1; }
.comment-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.comment-author { font-weight: 700; color: var(--text); }
.comment-date   { font-size: 0.75rem; color: #aaa; }
.comment-content { color: #555; line-height: 1.7; margin-bottom: 0.5rem; }
.comment-reply-link a { font-size: 0.875rem; color: var(--pink); }

.comment-form-wrap  { background: var(--pink-bg); border-radius: var(--radius-lg); padding: 1.5rem; }
.comment-form-title { font-size: 1.25rem; margin-bottom: 1.25rem; }

/* 侧边栏 */
.article-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.sidebar-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--pink-bg);
  color: var(--text);
}

.sidebar-brand { text-align: center; }
.sidebar-logo { font-size: 3.5rem; margin-bottom: 0.75rem; }
.sidebar-brand p { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 1.25rem; }
.sidebar-btn    { display: block; text-align: center; }

.sidebar-related { display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-related a {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text);
  transition: all 0.2s;
}
.sidebar-related a:hover { background: var(--pink-bg); color: var(--pink); }
.related-dot { flex-shrink: 0; }

.sidebar-service-list { display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-service-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--pink-bg);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.sidebar-service-item:hover { background: var(--pink); color: var(--white); }

/* ==================== 页脚 ==================== */
#main-footer {
  background: linear-gradient(180deg, var(--pink-bg), #fce7f3);
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.footer-brand p { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 1rem; }

.footer-social { display: flex; gap: 0.5rem; }
.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--pink-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  transition: all 0.2s;
  color: var(--text);
}
.footer-social a:hover { background: var(--pink); color: var(--white); }

.footer-col h4 { margin-bottom: 1rem; font-size: 1rem; color: var(--text); }

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; font-size: 0.875rem; color: var(--text-muted); }

.footer-col a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--pink); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(236, 72, 153, 0.2);
  text-align: center;
  color: #aaa;
  font-size: 0.875rem;
}

.footer-paws {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--pink-light);
  font-size: 1.75rem;
  letter-spacing: 0.5rem;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar { order: -1; }
}

@media (max-width: 768px) {
  /* 导航 */
  .nav-toggle { display: flex; }
  .nav-links, #main-nav .btn-primary {
    display: none;
  }
  #main-nav.nav-open .nav-links,
  #main-nav.nav-open .btn-primary {
    display: flex;
    width: 100%;
    order: 3;
  }
  #main-nav.nav-open .nav-links {
    flex-direction: column;
  }

  /* Hero */
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text { text-align: center; }
  .hero h1 { font-size: 2.25rem; }
  .hero-buttons { justify-content: center; }
  .hero-stats  { justify-content: center; }
  .hero-visual { display: none; }

  /* Why */
  .why-grid { grid-template-columns: 1fr; }
  .why-images { display: none; }

  /* 文章 */
  .article-body { padding: 1.5rem; }
  .article-nav  { flex-direction: column; }

  /* Page Header */
  .page-header { padding: 8rem 1.5rem 3rem; }
  .page-header h1 { font-size: 1.875rem; }

  /* 新闻卡片 */
  .news-card, .news-home-card { flex-direction: column; }
  .news-img, .news-home-icon { width: 100%; height: 140px; }

  /* Section */
  .section { padding: 3rem 1.25rem; }
  .section-title { font-size: 1.5rem; }

  /* 页脚 */
  #main-footer { padding: 3rem 1.5rem 1.5rem; }
}

@media (max-width: 480px) {
  #main-nav { top: 0.5rem; left: 0.5rem; right: 0.5rem; }
  .hero { padding-top: 7rem; }
  .hero h1 { font-size: 1.875rem; }
  .stat-num { font-size: 1.5rem; }
}

/* ==================== 评论表单（Z-Blog 默认兼容） ==================== */
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--pink-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text);
  margin-bottom: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
#commentform input:focus,
#commentform textarea:focus {
  border-color: var(--pink);
}
#commentform textarea { min-height: 130px; resize: vertical; }

#commentform input[type="submit"],
#commentform button[type="submit"] {
  background: var(--pink);
  color: var(--white);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
#commentform input[type="submit"]:hover,
#commentform button[type="submit"]:hover {
  background: var(--purple);
  transform: translateY(-2px);
}

/* ==================== 工具类 ==================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
