/* ============================================
   丁亮亮律师法律科普博客 - 全局样式
   ============================================ */

/* --- 字体与重置 --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700;900&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
  --primary: #1a3a5c;
  --primary-light: #2c5784;
  --primary-dark: #0f2540;
  --accent: #c9a961;
  --accent-light: #d4b87a;
  --accent-dark: #b08d3f;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --text: #2c3e50;
  --text-light: #6c7a89;
  --text-lighter: #9aa7b4;
  --border: #e1e8ed;
  --tag-bg: #eef2f7;
  --tag-hover: #dce6f0;
  --danger: #c0392b;
  --success: #27ae60;
  --shadow-sm: 0 1px 3px rgba(26, 58, 92, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 58, 92, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 58, 92, 0.12);
  --radius: 8px;
  --radius-lg: 14px;
  --max-width: 1140px;
  --header-h: 68px;
  --serif: 'Noto Serif SC', 'Songti SC', serif;
  --sans: 'Noto Sans SC', -apple-system, 'Segoe UI', sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-dark);
}

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

/* --- 导航栏 --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: var(--header-h);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.navbar-brand .logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
}

.navbar-brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.navbar-brand .brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.navbar-brand .brand-sub {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 1px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.navbar-links a {
  display: block;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}

.navbar-links a:hover {
  background: var(--tag-bg);
  color: var(--primary);
}

.navbar-links a.active {
  color: var(--primary);
  font-weight: 700;
}

.navbar-links a.active::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  margin: 4px auto 0;
  border-radius: 2px;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
}

.navbar-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- 通用容器 --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.page-wrapper {
  min-height: calc(100vh - var(--header-h) - 280px);
  padding: 40px 0 60px;
}

/* --- Hero 区域 --- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff;
  padding: 56px 0 32px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -60px;
  width: 300px;
  height: 300px;
  border: 2px solid rgba(201, 169, 97, 0.08);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(201, 169, 97, 0.06);
  border-radius: 50%;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(201, 169, 97, 0.15);
  border: 1px solid rgba(201, 169, 97, 0.3);
  border-radius: 20px;
  font-size: 13px;
  color: var(--accent-light);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.hero p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  line-height: 1.8;
}

.hero-search {
  margin-top: 28px;
  position: relative;
  max-width: 480px;
}

.hero-search input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 15px;
  font-family: var(--sans);
  outline: none;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.hero-search input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.hero-search .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
}

/* --- 区块标题 --- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--accent);
  border-radius: 2px;
}

.section-count {
  font-size: 14px;
  color: var(--text-light);
}

/* --- 文章列表 --- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.article-card-banner {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}

.article-card-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(0,0,0,0.15) 100%);
}

.article-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.article-card-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-excerpt {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-lighter);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.article-card-meta .meta-date {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-card-meta .meta-read {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* --- 标签样式 --- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  background: var(--tag-bg);
  color: var(--primary-light);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.tag:hover {
  background: var(--tag-hover);
}

.tag.tag-lg {
  padding: 6px 16px;
  font-size: 14px;
  border-radius: 6px;
}

.tag.tag-active {
  background: var(--primary);
  color: #fff;
}

.tag-count {
  margin-left: 4px;
  opacity: 0.7;
}

/* --- 标签页布局 --- */
.tags-page-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
}

.tags-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.tags-sidebar-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}

.tags-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tags-list .tag-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.tags-list .tag-item:hover {
  background: var(--tag-bg);
}

.tags-list .tag-item.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.tags-list .tag-item .tag-num {
  font-size: 12px;
  opacity: 0.7;
}

/* --- 文章详情页 --- */
.article-detail {
  max-width: 820px;
  margin: 0 auto;
}

.article-detail-header {
  text-align: center;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.article-detail-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.article-detail-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 16px;
}

.article-detail-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
  color: var(--text-light);
}

.article-detail-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-detail-content {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
}

.article-detail-content h1,
.article-detail-content h2,
.article-detail-content h3 {
  font-family: var(--serif);
  color: var(--primary);
  margin-top: 36px;
  margin-bottom: 16px;
  font-weight: 700;
}

.article-detail-content h1 {
  font-size: 26px;
}

.article-detail-content h2 {
  font-size: 22px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  position: relative;
}

.article-detail-content h2::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.article-detail-content h3 {
  font-size: 18px;
}

.article-detail-content p {
  margin-bottom: 18px;
}

.article-detail-content ul,
.article-detail-content ol {
  margin: 12px 0 20px 0;
  padding-left: 24px;
}

.article-detail-content li {
  margin-bottom: 8px;
}

.article-detail-content blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--accent);
  background: rgba(201, 169, 97, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
}

.article-detail-content blockquote p {
  margin-bottom: 0;
}

.article-detail-content strong {
  color: var(--primary);
  font-weight: 700;
}

.article-detail-content code {
  background: var(--tag-bg);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--primary);
  font-family: 'Consolas', 'Monaco', monospace;
}

.article-detail-content pre {
  background: var(--primary-dark);
  color: #e0e6ed;
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 20px 0;
}

.article-detail-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.article-detail-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.article-detail-content th,
.article-detail-content td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}

.article-detail-content th {
  background: var(--tag-bg);
  font-weight: 700;
  color: var(--primary);
}

.article-detail-content hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 32px 0;
}

.article-detail-content a {
  color: var(--primary-light);
  border-bottom: 1px dashed var(--primary-light);
}

.article-detail-content a:hover {
  border-bottom-style: solid;
}

/* --- 法律提示框 --- */
.article-detail-content .legal-tip {
  margin: 24px 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.08), rgba(201, 169, 97, 0.03));
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.article-detail-content .legal-tip p {
  margin-bottom: 0;
}

/* --- 文章底部 --- */
.article-footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.article-footer-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.article-footer-tags .label {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.article-nav-item {
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.article-nav-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.article-nav-item .nav-label {
  font-size: 12px;
  color: var(--text-lighter);
  margin-bottom: 4px;
}

.article-nav-item .nav-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-nav-item.next {
  text-align: right;
}

/* --- 首页律师简介卡片 --- */
.lawyer-profile-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  padding: 24px 0 56px;
}

.lawyer-profile-section .section-header {
  margin-bottom: 28px;
}

.lawyer-profile-section .section-title {
  color: #fff;
}

.lawyer-profile-section .section-title::before {
  background: var(--accent);
}

.lawyer-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  gap: 36px;
  align-items: flex-start;
  backdrop-filter: blur(10px);
}

.lawyer-card-left {
  flex-shrink: 0;
}

.lawyer-photo {
  width: 140px;
  height: 180px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.lawyer-card-right {
  flex: 1;
  min-width: 0;
}

.lawyer-card-right h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.lawyer-title {
  font-size: 15px;
  color: var(--accent-light);
  margin-bottom: 8px;
}

.lawyer-phone a {
  display: inline-block;
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  margin-bottom: 14px;
  transition: color var(--transition);
}

.lawyer-phone a:hover {
  color: var(--accent-light);
}

.lawyer-intro {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 16px;
}

.lawyer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.lawyer-tags .tag {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: default;
}

.btn-view-profile {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.btn-view-profile:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

@media (max-width: 680px) {
  .lawyer-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
  }

  .lawyer-photo {
    width: 120px;
    height: 150px;
  }

  .lawyer-tags {
    justify-content: center;
  }
}

/* --- 关于页面 --- */
.about-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.about-hero .avatar-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  margin: 0 auto 20px;
  display: block;
  border: 4px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.about-hero h1 {
  font-family: var(--serif);
  font-size: 32px;
  margin-bottom: 8px;
}

.about-hero .hero-phone {
  margin-bottom: 10px;
}

.about-hero .hero-phone a {
  display: inline-block;
  font-size: 18px;
  font-weight: 500;
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--transition);
}

.about-hero .hero-phone a:hover {
  color: #fff;
}

.about-hero .subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
}

.about-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px;
}

.about-section {
  margin-bottom: 40px;
}

.about-section h2 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-section h2::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--accent);
  border-radius: 2px;
}

.about-section p {
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 12px;
}

.profile-title {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 16px;
}

.profile-title strong {
  font-weight: 700;
}

.profile-quote {
  margin: 20px 0 8px;
  padding: 16px 20px;
  background: var(--tag-bg);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.profile-quote p {
  margin-bottom: 6px;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
}

.profile-quote p:last-child {
  margin-bottom: 0;
}

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* --- 执业领域详细列表 --- */
.practice-areas {
  margin-top: 8px;
}

.practice-group {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.practice-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.practice-group h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.practice-group h3 span {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--accent-dark);
  background: rgba(201, 169, 97, 0.12);
  padding: 2px 10px;
  border-radius: 4px;
}

.practice-group ul {
  list-style: none;
  padding-left: 0;
}

.practice-group li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.8;
}

.practice-group li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.practice-group li strong {
  color: var(--primary);
  font-weight: 600;
}

.about-contact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}

.about-contact h3 {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 16px;
}

.contact-items {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.contact-item .contact-label {
  font-size: 12px;
  color: var(--text-lighter);
}

.contact-item .contact-value {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

/* --- 空状态 --- */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-state .empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state h3 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--text);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-light);
  font-size: 14px;
}

/* --- 回到顶部 --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
  font-size: 18px;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
}

/* --- 页脚 --- */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 12px;
}

.footer-brand h4 {
  font-family: var(--serif);
  color: #fff;
  font-size: 18px;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 400px;
}

.footer-links {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-disclaimer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 8px;
  line-height: 1.6;
}

/* --- 加载动画 --- */
.skeleton-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.skeleton-banner {
  height: 140px;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-body {
  padding: 20px;
}

.skeleton-line {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 10px;
}

.skeleton-line.short {
  width: 60%;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- 淡入动画 --- */
.fade-in {
  animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.15s; }
.fade-in:nth-child(4) { animation-delay: 0.2s; }
.fade-in:nth-child(5) { animation-delay: 0.25s; }
.fade-in:nth-child(6) { animation-delay: 0.3s; }

/* --- 响应式 --- */
@media (max-width: 900px) {
  .tags-page-layout {
    grid-template-columns: 1fr;
  }

  .tags-sidebar {
    position: static;
  }

  .tags-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .tags-list .tag-item {
    flex-direction: row;
    gap: 6px;
  }
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border);
  }

  .navbar-links.open {
    display: flex;
  }

  .navbar-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 15px;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-detail-title {
    font-size: 24px;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-nav-item.next {
    text-align: left;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .container,
  .navbar-inner,
  .hero-inner,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding: 36px 0 32px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .article-card-banner {
    height: 110px;
    font-size: 36px;
  }

  .contact-items {
    flex-direction: column;
    gap: 16px;
  }
}
