/* ============================================================
   爱思助手官网模板 - 公共样式
   符合谷歌 SEO / GEO 标准
   ============================================================ */

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
a:hover { color: #1677ff; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ---------- Container ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============================================================
   Header / Nav
   ============================================================ */
#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

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

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-right: 32px;
}
.site-logo img { width: 36px; height: 36px; border-radius: 8px; }
.site-logo span {
  font-size: 18px;
  font-weight: 700;
  color: #1677ff;
  white-space: nowrap;
}

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.main-nav a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 14px;
  color: #333;
  border-radius: 6px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active { background: #e8f0fe; color: #1677ff; }

/* Search */
.header-search {
  display: flex;
  align-items: center;
  background: #f5f7fa;
  border-radius: 20px;
  padding: 5px 14px;
  gap: 6px;
  flex-shrink: 0;
}
.header-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  width: 140px;
  color: #333;
}
.header-search button {
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  padding: 0;
  line-height: 1;
}
.header-search button svg { width: 16px; height: 16px; }

/* Download Btn */
.btn-download-header {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #1677ff;
  color: #fff !important;
  border-radius: 20px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  margin-left: 12px;
  transition: background .2s;
  white-space: nowrap;
}
.btn-download-header:hover { background: #0958d9; }

/* ============================================================
   Banner / Swiper
   ============================================================ */
.banner-section { position: relative; overflow: hidden; background: #e8f4ff; }

.swiper-wrapper-custom {
  display: flex;
  transition: transform .5s ease;
}

.swiper-slide-custom {
  min-width: 100%;
  position: relative;
  overflow: hidden;
}

.swiper-slide-custom img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  text-align: right;
}
.slide-caption h2 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
  line-height: 1.3;
}
.slide-caption p {
  font-size: 16px;
  color: rgba(255,255,255,.9);
  margin: 10px 0 20px;
}
.btn-primary {
  display: inline-block;
  background: #1677ff;
  color: #fff;
  padding: 12px 32px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: #0958d9; transform: translateY(-2px); color: #fff; }

/* Swiper dots */
.swiper-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.swiper-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background .2s, width .2s;
  border: none;
}
.swiper-dot.active { background: #fff; width: 24px; border-radius: 4px; }

/* Swiper arrows */
.swiper-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.3);
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 18px;
  transition: background .2s;
  z-index: 10;
}
.swiper-arrow:hover { background: rgba(255,255,255,.6); color: #333; }
.swiper-prev { left: 16px; }
.swiper-next { right: 16px; }

/* ============================================================
   Section Common
   ============================================================ */
.section { padding: 60px 0; }
.section-alt { background: #f8faff; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  position: relative;
  padding-left: 14px;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0; top: 4px;
  width: 4px; height: 20px;
  background: #1677ff;
  border-radius: 2px;
}
.section-more {
  font-size: 13px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-more:hover { color: #1677ff; }

/* ============================================================
   Product Cards
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
  border: 1px solid #f0f0f0;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(22,119,255,.12); }

.product-card .product-icon {
  width: 72px; height: 72px;
  border-radius: 18px;
  margin: 0 auto 16px;
  object-fit: contain;
}
.product-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: #1a1a1a; }
.product-card p { font-size: 14px; color: #666; margin-bottom: 20px; line-height: 1.6; }

.btn-download-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1677ff;
  color: #fff;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s;
  margin-right: 8px;
}
.btn-download-card:hover { background: #0958d9; color: #fff; }

.btn-detail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #1677ff;
  font-size: 13px;
  border: 1px solid #1677ff;
  padding: 9px 16px;
  border-radius: 20px;
  transition: background .2s, color .2s;
}
.btn-detail:hover { background: #1677ff; color: #fff; }

/* ============================================================
   News List
   ============================================================ */
.news-list { display: flex; flex-direction: column; gap: 0; }

.news-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: background .15s;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: #f8faff; margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 8px; }

.news-thumb {
  flex-shrink: 0;
  width: 180px; height: 120px;
  border-radius: 10px;
  overflow: hidden;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-item:hover .news-thumb img { transform: scale(1.04); }

.news-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.news-body h3 { font-size: 16px; font-weight: 600; color: #1a1a1a; line-height: 1.5; margin-bottom: 8px; }
.news-body h3 a:hover { color: #1677ff; }
.news-excerpt { font-size: 13px; color: #888; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { display: flex; align-items: center; gap: 16px; font-size: 12px; color: #bbb; margin-top: 10px; }
.news-meta span { display: flex; align-items: center; gap: 4px; }

/* ============================================================
   Feature Highlights
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-item {
  text-align: center;
  padding: 28px 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: transform .2s;
}
.feature-item:hover { transform: translateY(-3px); }
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e8f0fe, #c7d9ff);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 26px;
}
.feature-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; color: #1a1a1a; }
.feature-item p { font-size: 13px; color: #888; line-height: 1.5; }

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb {
  padding: 14px 0;
  font-size: 13px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: #999; }
.breadcrumb a:hover { color: #1677ff; }
.breadcrumb .sep { color: #ccc; }
.breadcrumb .current { color: #333; }

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 0;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  font-size: 14px;
  color: #555;
  border: 1px solid #e8e8e8;
  transition: all .2s;
  cursor: pointer;
}
.page-btn:hover, .page-btn.active { background: #1677ff; color: #fff; border-color: #1677ff; }
.page-btn.disabled { opacity: .4; pointer-events: none; }

/* ============================================================
   Article Detail
   ============================================================ */
.article-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  padding: 32px 0 60px;
}

.article-main {}
.article-header { margin-bottom: 24px; }
.article-header h1 { font-size: 26px; font-weight: 700; color: #1a1a1a; line-height: 1.5; margin-bottom: 12px; }
.article-meta { display: flex; align-items: center; gap: 20px; font-size: 13px; color: #999; }
.article-meta span { display: flex; align-items: center; gap: 4px; }

.article-content {
  font-size: 15px;
  line-height: 1.9;
  color: #333;
}
.article-content h2 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; color: #1a1a1a; }
.article-content h3 { font-size: 17px; font-weight: 600; margin: 22px 0 10px; color: #1a1a1a; }
.article-content p { margin-bottom: 16px; }
.article-content img { border-radius: 10px; margin: 20px 0; max-width: 100%; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 16px; }
.article-content ul li { list-style: disc; margin-bottom: 6px; }
.article-content ol li { list-style: decimal; margin-bottom: 6px; }
.article-content blockquote {
  border-left: 4px solid #1677ff;
  padding: 12px 20px;
  background: #f0f6ff;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  color: #555;
  font-style: italic;
}

/* Sidebar */
.article-sidebar {}
.sidebar-widget {
  background: #f8faff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}
.sidebar-widget h4 {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8f0fe;
}
.sidebar-news-list { display: flex; flex-direction: column; gap: 12px; }
.sidebar-news-item { display: flex; gap: 10px; align-items: flex-start; }
.sidebar-news-item img { width: 72px; height: 48px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.sidebar-news-item a { font-size: 13px; color: #333; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar-news-item a:hover { color: #1677ff; }

/* Download Widget */
.download-widget {
  background: linear-gradient(135deg, #1677ff, #4096ff);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  color: #fff;
}
.download-widget h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.download-widget p { font-size: 13px; opacity: .85; margin-bottom: 16px; }
.btn-download-white {
  display: inline-block;
  background: #fff;
  color: #1677ff;
  padding: 10px 28px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  transition: transform .15s;
}
.btn-download-white:hover { transform: translateY(-2px); color: #0958d9; }

/* ============================================================
   Download Page
   ============================================================ */
.download-hero {
  background: linear-gradient(135deg, #1677ff 0%, #4096ff 60%, #69b1ff 100%);
  padding: 60px 0 80px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.download-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.download-hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 12px; }
.download-hero p { font-size: 17px; opacity: .9; margin-bottom: 32px; }

.download-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.download-tab {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.4);
  color: rgba(255,255,255,.8);
  transition: all .2s;
  background: transparent;
}
.download-tab.active, .download-tab:hover {
  background: #fff;
  color: #1677ff;
  border-color: #fff;
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 0;
}

.download-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
  border: 1px solid #f0f0f0;
}
.download-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(22,119,255,.12); }

.download-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.download-card-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  object-fit: contain;
}
.download-card-info h3 { font-size: 18px; font-weight: 700; color: #1a1a1a; }
.download-card-info .version { font-size: 13px; color: #888; margin-top: 2px; }

.download-options { display: flex; flex-direction: column; gap: 10px; }
.download-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8faff;
  border-radius: 10px;
  font-size: 13px;
}
.download-option .os-label { color: #555; font-weight: 500; }
.download-option .os-version { color: #aaa; font-size: 12px; }
.btn-dl {
  background: #1677ff;
  color: #fff;
  padding: 7px 18px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s;
  white-space: nowrap;
}
.btn-dl:hover { background: #0958d9; color: #fff; }

/* Version History */
.version-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.version-table th {
  background: #f0f6ff;
  color: #555;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid #e8f0fe;
}
.version-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
}
.version-table tr:hover td { background: #fafcff; }
.tag-new {
  display: inline-block;
  background: #ff4d4f;
  color: #fff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ============================================================
   Footer
   ============================================================ */
#footer {
  background: #1a1a2e;
  color: #aaa;
  padding: 40px 0 20px;
}

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

.footer-brand .site-logo span { color: #fff; }
.footer-brand p { font-size: 13px; color: #888; margin-top: 12px; line-height: 1.7; max-width: 280px; }

.footer-col h5 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: #888; transition: color .2s; }
.footer-col ul li a:hover { color: #1677ff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  font-size: 12px;
  color: #666;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: #666; }
.footer-bottom a:hover { color: #1677ff; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .download-cards { grid-template-columns: repeat(2, 1fr); }
  .article-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .download-cards { grid-template-columns: 1fr; }
  .swiper-slide-custom img { height: 220px; }
  .slide-caption h2 { font-size: 22px; }
  .download-hero h1 { font-size: 28px; }
  .news-thumb { width: 120px; height: 80px; }
}

/* ============================================================
   Utility
   ============================================================ */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.hidden { display: none; }
