:root {
  --primary: #6c5ce7;
  --primary-light: #a29bfe;
  --primary-dark: #5b4cdb;
  --accent: #00cec9;
  --accent-pink: #fd79a8;
  --bg: #eef1f8;
  --bg-deep: #e4e9f4;
  --card: #ffffff;
  --text: #1e272e;
  --muted: #636e72;
  --border: rgba(108, 92, 231, 0.12);
  --sidebar-w: 232px;
  --header-h: 60px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(108, 92, 231, 0.08);
  --shadow-hover: 0 12px 40px rgba(108, 92, 231, 0.18);
  --glow: 0 0 40px rgba(108, 92, 231, 0.15);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(108, 92, 231, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(0, 206, 201, 0.06), transparent),
    linear-gradient(180deg, #f0f3fa 0%, var(--bg) 40%, #e8ecf4 100%);
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 92, 231, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 92, 231, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
  z-index: -1;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #00cec9 100%);
  color: #fff;
  border-radius: 10px;
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 4px 14px rgba(108, 92, 231, 0.4);
}

.logo-icon.lg {
  width: 56px;
  height: 56px;
  font-size: 18px;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(108, 92, 231, 0.35);
}

/* ========== 顶栏 ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.logo-text {
  background: linear-gradient(135deg, #2d3436, #6c5ce7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.menu-toggle {
  display: none;
  background: rgba(108, 92, 231, 0.1);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 18px;
  color: var(--primary);
  cursor: pointer;
  margin-left: auto;
}

.top-nav {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.top-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 10px;
  transition: all 0.25s;
}

.top-nav a i { margin-right: 6px; opacity: 0.7; }

.top-nav a:hover {
  color: var(--primary);
  background: rgba(108, 92, 231, 0.08);
}

.top-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: 0 4px 14px rgba(108, 92, 231, 0.35);
}

/* ========== 布局 ========== */
.site-layout {
  display: flex;
  max-width: 1440px;
  margin: 0 auto;
  padding-top: var(--header-h);
  min-height: 100vh;
  gap: 0;
}

.site-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border-right: 1px solid var(--border);
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 0;
}

.sidebar-head {
  padding: 16px 18px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px dashed var(--border);
}

.cat-nav .cat-item { border-bottom: 1px solid rgba(0, 0, 0, 0.04); }

.cat-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.cat-link i.fa:first-child {
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 8px;
  background: rgba(108, 92, 231, 0.08);
  color: var(--primary);
  font-size: 13px;
}

.cat-arrow {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
  transition: transform 0.2s;
}

.cat-item.active > .cat-link,
.cat-link:hover {
  background: linear-gradient(90deg, rgba(108, 92, 231, 0.12), transparent);
  color: var(--primary);
  border-left-color: var(--primary);
}

.cat-sub {
  display: none;
  padding: 4px 0 10px 44px;
  background: rgba(108, 92, 231, 0.03);
}

.cat-sub.open { display: block; }

.cat-sub a {
  display: block;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--muted);
  border-radius: 8px;
  margin: 2px 8px 2px 0;
}

.cat-sub a.active,
.cat-sub a:hover {
  color: var(--primary);
  background: rgba(108, 92, 231, 0.1);
}

.site-main {
  flex: 1;
  min-width: 0;
  padding: 20px 24px 48px;
}

/* ========== 首页 Hero ========== */
.hero-search {
  text-align: center;
  padding: 36px 28px 32px;
  margin-bottom: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 255, 0.9) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow), var(--glow);
  position: relative;
  overflow: hidden;
}

.hero-search::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(162, 155, 254, 0.2), transparent 70%);
  pointer-events: none;
}

.hero-search::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 40%;
  height: 80%;
  background: radial-gradient(circle, rgba(0, 206, 201, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-brand {
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.hero-brand h1 {
  font-size: 26px;
  margin-top: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, #2d3436 20%, #6c5ce7 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

.search-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.search-tabs span {
  padding: 6px 16px;
  font-size: 13px;
  color: var(--muted);
  border-radius: 20px;
  cursor: default;
}

.search-tabs span.active {
  color: var(--primary);
  background: rgba(108, 92, 231, 0.12);
  font-weight: 600;
}

.search-box {
  display: flex;
  max-width: 620px;
  margin: 0 auto;
  background: #fff;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(108, 92, 231, 0.12);
  border: 2px solid rgba(108, 92, 231, 0.15);
  overflow: hidden;
  position: relative;
  z-index: 1;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 8px 40px rgba(108, 92, 231, 0.22);
}

.search-box i {
  padding: 0 18px;
  line-height: 52px;
  color: var(--primary);
  font-size: 16px;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  padding: 14px 0;
  background: transparent;
}

.search-box button {
  background: linear-gradient(135deg, var(--primary), #8b7cf7);
  color: #fff;
  border: none;
  padding: 0 28px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: filter 0.2s;
}

.search-box button:hover { filter: brightness(1.08); }

.search-engines {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.search-engines a {
  margin: 0 8px;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 6px;
}

.search-engines a:hover {
  color: var(--primary);
  background: rgba(108, 92, 231, 0.08);
}

.search-tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.search-tags a {
  background: #fff;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 13px;
  color: var(--text);
  border: 1px solid var(--border);
  transition: all 0.25s;
}

.search-tags a:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.15);
  transform: translateY(-1px);
}

/* 快捷入口卡片 */
.quick-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.quick-card::after {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.quick-card:hover {
  transform: translateY(-4px);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.quick-card i {
  font-size: 22px;
  opacity: 0.95;
}

.quick-card.qc-news { background: linear-gradient(135deg, #74b9ff, #0984e3); }
.quick-card.qc-hot { background: linear-gradient(135deg, #fd79a8, #e84393); }
.quick-card.qc-video { background: linear-gradient(135deg, #55efc4, #00b894); }
.quick-card.qc-design { background: linear-gradient(135deg, #a29bfe, #6c5ce7); }

/* ========== 内容区块 ========== */
.tools-section,
.content-panel {
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow);
}

.section-title {
  font-size: 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.section-title i {
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff7675, #fdcb6e);
  color: #fff;
  font-size: 14px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tools-grid.compact { grid-template-columns: repeat(3, 1fr); }

.tool-card {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  color: inherit;
  position: relative;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(108, 92, 231, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.28s;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.tool-card:hover::before { opacity: 1; }

.tool-card-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #f0eeff, #e8e4ff);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(108, 92, 231, 0.1);
}

.tool-card-icon img { width: 100%; height: 100%; object-fit: cover; }

.tool-letter {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tool-card-body h3 {
  font-size: 15px;
  margin-bottom: 6px;
  font-weight: 700;
  line-height: 1.35;
}

.tool-card-body p {
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.tool-card {
  position: relative;
  overflow: visible;
}

.tool-card-ribbon {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
  z-index: 2;
}

.tool-card-ribbon em {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  color: #fff;
  letter-spacing: 0.04em;
}

.ribbon-hot { background: linear-gradient(135deg, #e17055, #d63031); }
.ribbon-new { background: linear-gradient(135deg, #00b894, #00cec9); }

.tool-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  line-height: 1.4;
}

.tag-free { background: #e8f8f0; color: #00b894; border: 1px solid #b2f0d6; }
.tag-cn { background: #fff3e6; color: #e17055; border: 1px solid #ffd4b8; }
.tag-views { background: #f0eeff; color: var(--primary); border: 1px solid rgba(108, 92, 231, 0.15); }
.tag-hot { background: #ffeaea; color: #d63031; }
.tag-new { background: #e0faf5; color: #00b894; }

.tool-card-compact .tool-card-body p { display: none; }
.tool-card-compact .tool-card-icon { width: 44px; height: 44px; }

.quick-card.qc-office { background: linear-gradient(135deg, #ffeaa7, #fdcb6e); }
.quick-card.qc-code { background: linear-gradient(135deg, #81ecec, #0984e3); }

/* ========== 详情页 ========== */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.tool-detail,
.article-detail {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.tool-detail h1,
.article-detail h1 {
  font-size: 28px;
  margin-bottom: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  align-items: center;
}

.meta-row > span,
.meta-row .like-btn,
.meta-row .share-btn {
  padding: 6px 14px;
  background: #f8f9fc;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.meta-row .like-btn,
.meta-row .share-btn {
  cursor: pointer;
  background: #f8f9fc;
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

.meta-row .like-btn:hover { color: #e84393; border-color: #fab1c7; }

.tool-actions { margin-bottom: 24px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #8b7cf7);
  color: #fff;
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(108, 92, 231, 0.45);
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(108, 92, 231, 0.08);
  color: var(--primary-dark);
}

.tool-summary {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  padding: 16px 20px;
  background: #f8f9fc;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}

.tool-screenshot img {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
}

.related-section {
  margin-top: 32px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.related-section h3 {
  font-size: 17px;
  margin-bottom: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-section .section-block-title,
.related-articles .section-block-title,
.comments-section .section-block-title {
  margin-bottom: 18px;
}

.section-block-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.section-block-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  flex-shrink: 0;
}

.tone-purple .section-block-icon { background: linear-gradient(135deg, #6c5ce7, #a29bfe); }
.tone-cyan .section-block-icon { background: linear-gradient(135deg, #00cec9, #74b9ff); }
.tone-pink .section-block-icon { background: linear-gradient(135deg, #fd79a8, #e84393); }
.tone-orange .section-block-icon { background: linear-gradient(135deg, #fdcb6e, #e17055); }
.tone-red .section-block-icon { background: linear-gradient(135deg, #ff7675, #d63031); }
.tone-teal .section-block-icon { background: linear-gradient(135deg, #55efc4, #00b894); }

.detail-block { margin-top: 24px; }
.detail-block:first-of-type { margin-top: 8px; }
.detail-block-body { padding: 0 4px; }

.detail-header { margin-bottom: 8px; padding-bottom: 16px; border-bottom: 1px dashed var(--border); }

.meta-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.source-avatar {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.related-section h3::before {
  display: none;
}

/* ========== 评论 ========== */
.comments-section {
  margin-top: 32px;
  padding: 28px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.comments-section h3 {
  font-size: 17px;
  margin-bottom: 20px;
  font-weight: 700;
}

.comments-section h3 i { color: var(--primary); margin-right: 8px; }

.comment-form textarea {
  width: 100%;
  min-height: 110px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  resize: vertical;
  transition: border-color 0.2s;
}

.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
}

.comment-fields {
  display: flex;
  gap: 12px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.comment-fields input {
  flex: 1;
  min-width: 140px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.captcha-row input {
  width: 140px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.comment-item {
  padding: 16px 0;
  border-bottom: 1px dashed var(--border);
}

.comment-item strong { margin-right: 8px; color: var(--text); }

.comment-item span { font-size: 12px; color: var(--muted); }

/* ========== 资讯 ========== */
.page-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--primary), transparent) 1;
}

.news-timeline {
  position: relative;
  padding-left: 8px;
}

.news-timeline::before {
  content: "";
  position: absolute;
  left: 118px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-light), rgba(108, 92, 231, 0.08));
  border-radius: 2px;
}

.news-timeline .day-group { margin-bottom: 36px; }

.day-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.day-badge {
  font-weight: 800;
  color: #fff;
  font-size: 14px;
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.35);
}

.day-week {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  padding: 6px 12px;
  background: rgba(108, 92, 231, 0.1);
  border-radius: 8px;
}

.day-items { display: flex; flex-direction: column; gap: 12px; }

.news-item {
  display: grid;
  grid-template-columns: 72px 16px 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.25s;
  color: inherit;
  position: relative;
  box-shadow: var(--shadow);
}

.news-time-col { text-align: right; }

.news-time {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.news-node {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.15), 0 0 16px rgba(108, 92, 231, 0.4);
  justify-self: center;
}

.news-source {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6c5ce7, #00cec9);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.news-meta {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.news-meta i { margin-right: 4px; color: var(--primary); }

.news-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(108, 92, 231, 0.25);
}

.news-item-body h3 {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--text);
}

.news-item-body p { font-size: 14px; color: var(--muted); line-height: 1.6; }

.news-panel { padding: 24px; margin-top: 8px; }

.load-more { text-align: center; padding: 28px; }

.load-more .btn {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 12px 36px;
  border-radius: 30px;
}

.load-more .btn:hover {
  background: var(--primary);
  color: #fff;
}

.article-cover {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 20px 0;
  box-shadow: var(--shadow);
}

.article-content { line-height: 1.9; font-size: 16px; }

.article-content img { max-width: 100%; border-radius: 8px; }

.article-summary {
  font-size: 16px;
  color: var(--muted);
  padding: 16px 20px;
  background: linear-gradient(90deg, rgba(108, 92, 231, 0.08), transparent);
  border-radius: var(--radius);
  margin-bottom: 20px;
  border-left: 4px solid var(--primary);
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 32px 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, #fff, #f8f9ff);
  border-radius: var(--radius);
  font-size: 14px;
  border: 1px solid var(--border);
}

.article-nav span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.article-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: inherit;
  border: 1px solid var(--border);
  transition: all 0.28s;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.article-card img { width: 100%; height: 150px; object-fit: cover; }

.article-card .no-img {
  height: 150px;
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #00cec9 100%);
}

.article-card h4 {
  padding: 14px 16px 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.article-card .meta {
  display: block;
  padding: 0 16px 14px;
  font-size: 12px;
  color: var(--muted);
}

.related-articles { margin-top: 32px; }

.related-articles h3 {
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 700;
}

.related-articles h3 i { color: var(--primary); margin-right: 8px; }

/* ========== 页脚 ========== */
.site-footer {
  background: linear-gradient(180deg, #2d3436 0%, #1e272e 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 24px 32px;
  margin-top: 48px;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
}

.footer-inner { max-width: 1440px; margin: 0 auto; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  margin: 12px 0 20px;
  max-width: 560px;
  line-height: 1.8;
}

.footer-friends,
.footer-links {
  font-size: 13px;
  margin: 16px 0;
  line-height: 2.2;
}

.footer-friends span,
.footer-links span {
  color: rgba(255, 255, 255, 0.5);
  margin-right: 8px;
}

.footer-friends a,
.footer-links a {
  margin-right: 14px;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.footer-friends a:hover,
.footer-links a:hover {
  color: var(--primary-light);
}

.copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s;
  z-index: 50;
  box-shadow: 0 6px 24px rgba(108, 92, 231, 0.4);
}

.back-top.show {
  opacity: 1;
  transform: translateY(0);
}

.back-top:hover { transform: translateY(-4px); }

.empty-tip {
  text-align: center;
  color: var(--muted);
  padding: 48px 20px;
  grid-column: 1 / -1;
}

.alert.ok {
  background: linear-gradient(90deg, #d4edda, #e8f8ec);
  color: #155724;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  border: 1px solid #c3e6cb;
}

.alert.err {
  background: linear-gradient(90deg, #f8d7da, #fce8ea);
  color: #721c24;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.submit-form {
  max-width: 520px;
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.submit-form .form-group { margin-bottom: 18px; }

.submit-form label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; }

.submit-form input,
.submit-form select,
.submit-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.submit-form input:focus,
.submit-form select:focus,
.submit-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.search-box.inline {
  max-width: 100%;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

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

.page-hero {
  text-align: center;
  padding: 28px 24px 24px;
  margin-bottom: 20px;
}

.page-hero .page-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #2d3436 20%, #6c5ce7 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero .page-title i {
  -webkit-text-fill-color: #fff;
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fdcb6e, #e17055);
  font-size: 16px;
}

.page-desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-cards { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .news-timeline::before { left: 88px; }
  .news-item {
    grid-template-columns: 56px 12px 32px 1fr;
    grid-template-rows: auto auto;
  }
  .news-meta { grid-column: 1 / -1; padding-left: 60px; font-size: 11px; }
  .menu-toggle { display: block; }
  .top-nav { display: none; }
  .site-sidebar {
    position: fixed;
    left: -100%;
    top: var(--header-h);
    z-index: 99;
    transition: left 0.3s;
    box-shadow: var(--shadow-hover);
    width: 280px;
  }
  .site-sidebar.open { left: 0; }
  .tools-grid,
  .tools-grid.compact { grid-template-columns: repeat(2, 1fr); }
  .quick-cards { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .article-nav { flex-direction: column; }
  .site-main { padding: 16px; }
  .hero-search { padding: 24px 16px; }
  .tool-detail,
  .article-detail { padding: 20px; }
}

@media (max-width: 480px) {
  .tools-grid,
  .tools-grid.compact { grid-template-columns: 1fr; }
}
