/* ============================================================
   旺旺商聊官网 - 全站公共样式
   符合谷歌SEO/GEO标准，响应式设计
   ============================================================ */

/* --- 基础重置 --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #333333;
  background-color: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #1E90FF;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #0066cc;
}

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

ul, ol {
  list-style: none;
}

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

.section {
  padding: 70px 0;
}

.section-alt {
  background-color: #f0f5ff;
}

/* --- 顶部导航 --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(30, 144, 255, 0.08);
  height: 64px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1E90FF;
}

.site-logo img {
  height: 40px;
  width: auto;
}

.site-logo span {
  color: #1E90FF;
  font-size: 1.2rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  color: #444;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #1E90FF;
  border-bottom-color: #1E90FF;
}

.nav-download-btn {
  background: linear-gradient(135deg, #1E90FF, #4096FF);
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 20px !important;
  border-bottom: none !important;
  font-weight: 600 !important;
  transition: box-shadow 0.2s ease !important;
}

.nav-download-btn:hover {
  box-shadow: 0 4px 16px rgba(30, 144, 255, 0.4) !important;
  color: #fff !important;
}

/* 汉堡菜单 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- 轮播图 Banner --- */
.hero-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: #e8f0fe;
}

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

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

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

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
  color: #fff;
}

.slide-caption h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.slide-caption p {
  font-size: 1rem;
  opacity: 0.9;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  color: #1E90FF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 10;
}

.slider-btn:hover {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.2s ease;
}

.slider-dots .dot.active {
  background: #ffffff;
  width: 24px;
  border-radius: 4px;
}

/* --- 平台下载按钮区 --- */
.platform-section {
  padding: 50px 0;
  background: #f7faff;
  text-align: center;
}

.platform-section h2 {
  font-size: 1.6rem;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.platform-section .subtitle {
  color: #666;
  margin-bottom: 36px;
  font-size: 1rem;
}

.platform-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 32px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(30, 144, 255, 0.1);
  min-width: 160px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: #333;
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(30, 144, 255, 0.2);
  color: #1E90FF;
}

.platform-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E90FF, #4096FF);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
}

.platform-card span {
  font-size: 0.95rem;
  font-weight: 600;
}

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

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

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.section-header p {
  color: #666;
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.feature-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: 16px;
  background: #f7faff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(30, 144, 255, 0.12);
}

.feature-card img {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.feature-card p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- 产品截图展示区 --- */
.showcase-section {
  padding: 80px 0;
  background: #f0f5ff;
}

.showcase-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.showcase-text {
  flex: 1;
}

.showcase-text h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 16px;
  line-height: 1.3;
}

.showcase-text p {
  color: #555;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.showcase-image {
  flex: 1.2;
}

.showcase-image img {
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(30, 144, 255, 0.15);
}

/* --- 更新公告区 --- */
.news-section {
  padding: 80px 0;
  background: #fff;
}

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

.news-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s ease;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background: #f7faff;
  padding-left: 8px;
  border-radius: 8px;
}

.news-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.badge-num {
  background: #1E90FF;
  color: #fff;
}

.badge-notice {
  background: #ff6b35;
  color: #fff;
}

.badge-update {
  background: #52c41a;
  color: #fff;
}

.news-title {
  flex: 1;
  font-size: 0.95rem;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-title a {
  color: #333;
}

.news-title a:hover {
  color: #1E90FF;
}

.news-date {
  font-size: 0.85rem;
  color: #999;
  flex-shrink: 0;
}

/* --- SEO文字内容区 --- */
.seo-content-section {
  padding: 70px 0;
  background: #f7faff;
}

.seo-content-section h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 20px;
}

.seo-content-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1E90FF;
  margin: 28px 0 12px;
}

.seo-content-section p {
  color: #555;
  font-size: 0.97rem;
  line-height: 1.9;
  margin-bottom: 14px;
}

/* --- 下载按钮区 --- */
.download-cta {
  padding: 70px 0;
  background: linear-gradient(135deg, #1E90FF 0%, #4096FF 100%);
  text-align: center;
  color: #fff;
}

.download-cta h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.download-cta p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 36px;
}

.download-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.download-btns a {
  display: inline-block;
}

.download-btns img {
  height: 52px;
  width: auto;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.download-btns img:hover {
  transform: scale(1.05);
}

/* --- 面包屑 --- */
.breadcrumb {
  padding: 14px 0;
  background: #f7faff;
  border-bottom: 1px solid #e8f0fe;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: #888;
}

.breadcrumb-list a {
  color: #888;
}

.breadcrumb-list a:hover {
  color: #1E90FF;
}

.breadcrumb-list .sep {
  color: #ccc;
}

.breadcrumb-list .current {
  color: #333;
  font-weight: 500;
}

/* --- 列表页 --- */
.list-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 50px 0;
}

.list-main {}

.list-sidebar {}

.list-header {
  padding-bottom: 20px;
  border-bottom: 2px solid #1E90FF;
  margin-bottom: 24px;
}

.list-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
}

.article-list {}

.article-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid #f0f0f0;
}

.article-item:last-child {
  border-bottom: none;
}

.article-thumb {
  flex-shrink: 0;
  width: 140px;
  height: 96px;
  border-radius: 8px;
  overflow: hidden;
  background: #e8f0fe;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-info {
  flex: 1;
}

.article-info h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
  line-height: 1.4;
}

.article-info h2 a {
  color: #1a1a2e;
}

.article-info h2 a:hover {
  color: #1E90FF;
}

.article-info .summary {
  font-size: 0.88rem;
  color: #777;
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: #aaa;
}

.article-meta .tag {
  background: #e8f0fe;
  color: #1E90FF;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 40px 0 20px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 0.9rem;
  border: 1px solid #e0e0e0;
  color: #555;
  transition: all 0.2s ease;
}

.pagination a:hover {
  background: #1E90FF;
  color: #fff;
  border-color: #1E90FF;
}

.pagination .current-page {
  background: #1E90FF;
  color: #fff;
  border-color: #1E90FF;
}

/* --- 侧边栏 --- */
.sidebar-widget {
  background: #f7faff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-widget h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1E90FF;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #555;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

.sidebar-links a:last-child {
  border-bottom: none;
}

.sidebar-links a:hover {
  color: #1E90FF;
}

.sidebar-links .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #1E90FF;
  color: #fff;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  display: inline-block;
  padding: 4px 12px;
  background: #e8f0fe;
  color: #1E90FF;
  border-radius: 20px;
  font-size: 0.82rem;
  transition: all 0.2s ease;
}

.tag-cloud a:hover {
  background: #1E90FF;
  color: #fff;
}

/* --- 内容页 --- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 50px 0;
}

.article-main {}

.article-header {
  margin-bottom: 28px;
}

.article-header h1 {
  font-size: 1.7rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.4;
  margin-bottom: 14px;
}

.article-header .article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
  color: #aaa;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.article-body {
  font-size: 0.97rem;
  color: #444;
  line-height: 1.9;
}

.article-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 32px 0 14px;
}

.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1E90FF;
  margin: 24px 0 10px;
}

.article-body p {
  margin-bottom: 16px;
}

.article-body img {
  border-radius: 8px;
  margin: 20px auto;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

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

.article-body ol {
  list-style: decimal;
}

.article-body li {
  margin-bottom: 6px;
}

.article-body blockquote {
  border-left: 4px solid #1E90FF;
  background: #f0f5ff;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  color: #555;
  font-style: italic;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid #f0f0f0;
  margin-top: 40px;
}

.article-nav a {
  flex: 1;
  padding: 14px 18px;
  background: #f7faff;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #555;
  transition: all 0.2s ease;
}

.article-nav a:hover {
  background: #e8f0fe;
  color: #1E90FF;
}

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

.article-nav .nav-label {
  font-size: 0.78rem;
  color: #aaa;
  display: block;
  margin-bottom: 4px;
}

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

.download-page-header {
  text-align: center;
  margin-bottom: 60px;
}

.download-page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.download-page-header p {
  color: #666;
  font-size: 1.05rem;
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}

.download-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(30, 144, 255, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #e8f0fe;
}

.download-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(30, 144, 255, 0.18);
}

.download-card .platform-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #1E90FF, #4096FF);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
}

.download-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.download-card .version {
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 6px;
}

.download-card .update-date {
  font-size: 0.82rem;
  color: #bbb;
  margin-bottom: 20px;
}

.download-card .sys-req {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 24px;
  line-height: 1.6;
}

.btn-download {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(135deg, #1E90FF, #4096FF);
  color: #fff;
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-download:hover {
  box-shadow: 0 6px 20px rgba(30, 144, 255, 0.4);
  transform: scale(1.03);
  color: #fff;
}

.download-faq {
  background: #f7faff;
  border-radius: 16px;
  padding: 40px;
  margin-top: 20px;
}

.download-faq h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 28px;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1E90FF;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 0.93rem;
  color: #555;
  line-height: 1.8;
}

/* --- 页脚 --- */
.site-footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 50px 0 24px;
}

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

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

.footer-brand .logo img {
  height: 36px;
  filter: brightness(0) invert(1);
}

.footer-brand .logo span {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #aaa;
  max-width: 280px;
}

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

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: #aaa;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: #1E90FF;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.83rem;
  color: #777;
}

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

.footer-links a {
  font-size: 0.83rem;
  color: #777;
}

.footer-links a:hover {
  color: #1E90FF;
}

/* --- 响应式 --- */
@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

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

  .list-sidebar {
    display: none;
  }

  .showcase-inner {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    gap: 16px;
  }

  .site-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .slide img {
    height: 280px;
  }

  .slide-caption h2 {
    font-size: 1.3rem;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .download-cards {
    grid-template-columns: 1fr 1fr;
  }

  .article-nav {
    flex-direction: column;
  }
}

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

  .download-cards {
    grid-template-columns: 1fr;
  }

  .platform-grid {
    gap: 12px;
  }

  .platform-card {
    min-width: 130px;
    padding: 20px 16px;
  }
}
