/* =============================================
   网易有道词典官网模板 - 全局样式
   ============================================= */

/* CSS Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --brand-red: #e03131;
  --brand-red-dark: #c92a2a;
  --brand-red-light: #ff6b6b;
  --brand-orange: #f76707;
  --text-primary: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #888;
  --bg-white: #ffffff;
  --bg-light: #f7f8fa;
  --bg-gray: #f0f0f0;
  --border-color: #e8e8e8;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif;
  --transition: all 0.25s ease;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--brand-red);
}

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

ul, ol {
  list-style: none;
}

/* =============================================
   布局容器
   ============================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

/* =============================================
   顶部导航
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-right: 32px;
  text-decoration: none;
}

.site-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--brand-red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -1px;
}

.site-logo .logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-red);
  letter-spacing: 0;
}

.site-logo .logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.main-nav a {
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--brand-red);
  border-bottom-color: var(--brand-red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--brand-red);
  color: #fff !important;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-download:hover {
  background: var(--brand-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(224,49,49,0.35);
}

.btn-login {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.btn-login:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

/* =============================================
   轮播 Banner
   ============================================= */
.hero-carousel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff5f5 0%, #fff 50%, #f0f4ff 100%);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.carousel-slide .slide-inner {
  display: flex;
  align-items: center;
  min-height: 480px;
  padding: 60px 0;
}

.slide-content {
  flex: 1;
  padding-right: 40px;
}

.slide-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(224,49,49,0.1);
  color: var(--brand-red);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.slide-content h2 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.slide-content h2 em {
  color: var(--brand-red);
  font-style: normal;
}

.slide-content p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.8;
}

.slide-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--brand-red);
  color: #fff;
  border-radius: 28px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--brand-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224,49,49,0.4);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 2px solid var(--brand-red);
  color: var(--brand-red);
  border-radius: 28px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--brand-red);
  color: #fff;
  transform: translateY(-2px);
}

.slide-image {
  flex: 0 0 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-image img {
  max-height: 380px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(224,49,49,0.3);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background: var(--brand-red);
  width: 24px;
  border-radius: 4px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  font-size: 18px;
  color: var(--text-secondary);
}

.carousel-btn:hover {
  background: var(--brand-red);
  color: #fff;
  border-color: var(--brand-red);
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

/* =============================================
   搜索框区域
   ============================================= */
.search-section {
  background: #fff;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-color);
}

.search-box {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.search-box h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid var(--border-color);
  border-radius: 32px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.search-input-wrap:focus-within {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 4px rgba(224,49,49,0.1);
}

.search-lang-toggle {
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  border-right: 1px solid var(--border-color);
  cursor: pointer;
  height: 52px;
  white-space: nowrap;
}

.search-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 20px;
  font-size: 16px;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: transparent;
}

.search-input-wrap input::placeholder {
  color: #bbb;
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--brand-red);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  transition: var(--transition);
  flex-shrink: 0;
}

.search-btn:hover {
  background: var(--brand-red-dark);
}

.search-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.search-tags span {
  font-size: 13px;
  color: var(--text-muted);
}

.search-tags a {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 3px 10px;
  background: var(--bg-light);
  border-radius: 12px;
  transition: var(--transition);
}

.search-tags a:hover {
  background: rgba(224,49,49,0.1);
  color: var(--brand-red);
}

/* =============================================
   统计数字区域
   ============================================= */
.stats-bar {
  background: linear-gradient(135deg, var(--brand-red) 0%, #c92a2a 100%);
  padding: 28px 0;
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-number sup {
  font-size: 18px;
  font-weight: 600;
}

.stat-label {
  font-size: 13px;
  opacity: 0.85;
}

/* =============================================
   产品卡片区域
   ============================================= */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.section-header .section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(224,49,49,0.1);
  color: var(--brand-red);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

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

.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

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

.product-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.product-card-body {
  padding: 20px;
}

.product-card-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(224,49,49,0.1);
  color: var(--brand-red);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 10px;
}

.product-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.product-card-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-light);
}

.product-card-footer a {
  font-size: 13px;
  color: var(--brand-red);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-card-footer a:hover {
  gap: 8px;
}

/* =============================================
   AI功能特性区域
   ============================================= */
.features-section {
  padding: 80px 0;
  background: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

.features-content h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.features-content h2 em {
  color: var(--brand-red);
  font-style: normal;
}

.features-content p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.8;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(224,49,49,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.features-visual {
  position: relative;
}

.app-mockup {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* =============================================
   文章列表区域
   ============================================= */
.articles-section {
  padding: 64px 0;
  background: var(--bg-light);
}

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

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

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

.article-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.article-card-body {
  padding: 18px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.article-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-red);
  background: rgba(224,49,49,0.1);
  padding: 2px 8px;
  border-radius: 10px;
}

.article-date {
  font-size: 12px;
  color: var(--text-muted);
}

.article-card-body h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-body p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.read-more {
  font-size: 13px;
  color: var(--brand-red);
  font-weight: 600;
}

.article-views {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* =============================================
   下载区域
   ============================================= */
.download-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  text-align: center;
}

.download-section h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.download-section p {
  font-size: 16px;
  opacity: 0.8;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.download-platforms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.download-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  color: #fff;
}

.download-btn .icon {
  font-size: 24px;
}

.download-btn .text-wrap .sub {
  display: block;
  font-size: 11px;
  opacity: 0.7;
  font-weight: 400;
}

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

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

.qr-item .qr-img {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: 12px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qr-item p {
  font-size: 13px;
  opacity: 0.75;
  margin: 0;
}

/* =============================================
   页脚
   ============================================= */
.site-footer {
  background: #1a1a1a;
  color: #aaa;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--brand-red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 16px;
}

.footer-brand .logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 13px;
  color: #888;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--brand-red);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 12px;
  color: #666;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  font-size: 12px;
  color: #666;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--brand-red);
}

/* =============================================
   面包屑
   ============================================= */
.breadcrumb {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
  background: #fff;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb-list li a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.breadcrumb-list li a:hover {
  color: var(--brand-red);
}

.breadcrumb-list li.active {
  color: var(--text-primary);
  font-weight: 500;
}

.breadcrumb-sep {
  color: #ccc;
}

/* =============================================
   列表页
   ============================================= */
.list-page {
  padding: 40px 0 64px;
}

.list-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}

.list-main {}

.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--brand-red);
}

.list-header h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.list-header .total {
  font-size: 13px;
  color: var(--text-muted);
}

.list-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.list-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.list-item:hover .list-item-title {
  color: var(--brand-red);
}

.list-item-img {
  width: 140px;
  height: 90px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-gray);
}

.list-item-body {
  flex: 1;
}

.list-item-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
  transition: var(--transition);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-item-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.list-item-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-red);
  background: rgba(224,49,49,0.1);
  padding: 2px 8px;
  border-radius: 10px;
}

.list-item-date {
  font-size: 12px;
  color: var(--text-muted);
}

.list-item-views {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}

/* 分页 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
}

.page-btn:hover,
.page-btn.active {
  background: var(--brand-red);
  color: #fff;
  border-color: var(--brand-red);
}

.page-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* 侧边栏 */
.sidebar {}

.sidebar-widget {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-bottom: 24px;
}

.widget-header {
  padding: 14px 18px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-header::before {
  content: '';
  display: block;
  width: 3px;
  height: 16px;
  background: var(--brand-red);
  border-radius: 2px;
}

.widget-body {
  padding: 16px 18px;
}

.hot-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.hot-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hot-num {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 1px;
}

.hot-list li:nth-child(1) .hot-num,
.hot-list li:nth-child(2) .hot-num,
.hot-list li:nth-child(3) .hot-num {
  background: var(--brand-red);
  color: #fff;
}

.hot-list li a {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  transition: var(--transition);
}

.hot-list li a:hover {
  color: var(--brand-red);
}

/* =============================================
   内容页
   ============================================= */
.show-page {
  padding: 40px 0 64px;
}

.show-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}

.article-main {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.article-header {
  padding: 32px 36px 24px;
  border-bottom: 1px solid var(--border-color);
}

.article-header h1 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.article-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.article-info .cat {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-red);
  background: rgba(224,49,49,0.1);
  padding: 3px 10px;
  border-radius: 12px;
}

.article-info .date,
.article-info .views,
.article-info .author {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-body {
  padding: 32px 36px;
}

.article-body p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.article-body h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 14px;
  color: var(--text-primary);
  padding-left: 12px;
  border-left: 3px solid var(--brand-red);
}

.article-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 20px 0 10px;
  color: var(--text-primary);
}

.article-body ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-body ul li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.article-body img {
  border-radius: var(--radius-md);
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}

.article-body blockquote {
  border-left: 4px solid var(--brand-red);
  padding: 12px 20px;
  background: var(--bg-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-size: 15px;
  color: var(--text-secondary);
  font-style: italic;
}

.article-tags {
  padding: 20px 36px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.article-tags span {
  font-size: 13px;
  color: var(--text-muted);
}

.article-tag {
  font-size: 12px;
  padding: 4px 12px;
  background: var(--bg-light);
  border-radius: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.article-tag:hover {
  background: rgba(224,49,49,0.1);
  color: var(--brand-red);
}

/* 相关文章 */
.related-articles {
  padding: 24px 36px;
  border-top: 1px solid var(--border-color);
}

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

.related-articles h3::before {
  content: '';
  display: block;
  width: 3px;
  height: 16px;
  background: var(--brand-red);
  border-radius: 2px;
}

.related-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.related-list li:last-child {
  border-bottom: none;
}

.related-list li a {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.related-list li a::before {
  content: '›';
  color: var(--brand-red);
  font-size: 16px;
  font-weight: 700;
}

.related-list li a:hover {
  color: var(--brand-red);
}

/* =============================================
   下载页
   ============================================= */
.download-page {
  padding: 48px 0 80px;
}

.download-hero {
  background: linear-gradient(135deg, #fff5f5 0%, #fff 60%);
  padding: 64px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 48px;
}

.download-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.download-hero-content h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.download-hero-content h1 em {
  color: var(--brand-red);
  font-style: normal;
}

.download-hero-content p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

.download-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.dl-btn-ios {
  background: #000;
  color: #fff;
}

.dl-btn-android {
  background: var(--brand-red);
  color: #fff;
}

.dl-btn-windows {
  background: #0078d4;
  color: #fff;
}

.dl-btn-mac {
  background: #555;
  color: #fff;
}

.dl-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #fff;
}

.download-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.download-qr-wrap {
  text-align: center;
}

.download-qr-wrap .qr-box {
  width: 140px;
  height: 140px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.download-qr-wrap p {
  font-size: 13px;
  color: var(--text-muted);
}

.download-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.download-feature-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.download-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.download-feature-card .icon {
  font-size: 40px;
  margin-bottom: 14px;
}

.download-feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.download-feature-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =============================================
   通用工具类
   ============================================= */
.text-center { text-align: center; }
.text-red { color: var(--brand-red); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* =============================================
   响应式
   ============================================= */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .features-grid { gap: 24px; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .main-nav { display: none; }
  .slide-content h2 { font-size: 28px; }
  .carousel-slide .slide-inner { flex-direction: column; min-height: auto; }
  .slide-image { flex: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); padding: 16px; }
  .products-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .list-layout { grid-template-columns: 1fr; }
  .show-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .download-hero-inner { grid-template-columns: 1fr; }
  .download-features-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 24px; }
  .article-header { padding: 20px; }
  .article-body { padding: 20px; }
  .article-tags { padding: 16px 20px; }
  .related-articles { padding: 16px 20px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .download-btns { flex-direction: column; }
}

/* =============================================
   SVG图片占位符样式
   ============================================= */
.img-placeholder {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-size: 13px;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }
}

/* 顶部公告条 */
.notice-bar {
  background: var(--brand-red);
  color: #fff;
  text-align: center;
  padding: 8px 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.notice-bar a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

.notice-close {
  margin-left: auto;
  cursor: pointer;
  opacity: 0.8;
  font-size: 16px;
  line-height: 1;
}

/* 标签云 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  font-size: 12px;
  padding: 4px 12px;
  background: var(--bg-light);
  border-radius: 14px;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.tag-cloud a:hover {
  background: rgba(224,49,49,0.1);
  color: var(--brand-red);
  border-color: rgba(224,49,49,0.2);
}
