/* =============================================
   夸克浏览器官网 - 公共样式
   Quark Browser Official Website - Common Styles
   ============================================= */

/* --- CSS Variables --- */
:root {
  --primary-color: #1677ff;
  --primary-dark: #0958d9;
  --primary-light: #e6f4ff;
  --text-primary: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #888;
  --bg-white: #ffffff;
  --bg-light: #f7f8fa;
  --bg-dark: #0d1117;
  --border-color: #e8e8e8;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all 0.3s ease;
  --font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

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

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

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

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

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

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

ul, ol {
  list-style: none;
}

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

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.site-logo .logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
}

.site-logo .logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-logo .logo-text {
  color: var(--primary-color);
  font-size: 18px;
  font-weight: 700;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-color);
  background: var(--primary-light);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-download-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--primary-color);
  color: #fff !important;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(22,119,255,0.3);
}

.btn-download-header:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(22,119,255,0.4);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

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

/* =============================================
   HERO / BANNER SECTION
   ============================================= */
.hero-section {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 50%, #f5f0ff 100%);
  overflow: hidden;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(22,119,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

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

.hero-text .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-text h1 .highlight {
  color: var(--primary-color);
  position: relative;
}

.hero-text .hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--primary-color);
  color: #fff;
  border-radius: var(--radius-xl);
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(22,119,255,0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(22,119,255,0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-xl);
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.hero-stats .stat-item {
  text-align: center;
}

.hero-stats .stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-color);
  display: block;
}

.hero-stats .stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-image {
  position: relative;
}

.hero-image .main-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

/* =============================================
   CAROUSEL / SLIDER
   ============================================= */
.carousel-section {
  padding: 60px 0;
  background: var(--bg-white);
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

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

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

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

.carousel-slide .slide-caption h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.carousel-slide .slide-caption p {
  font-size: 16px;
  opacity: 0.9;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: var(--bg-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 18px;
  color: var(--text-secondary);
}

.carousel-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  width: 24px;
  background: var(--primary-color);
}

/* =============================================
   SECTION COMMON STYLES
   ============================================= */
.section {
  padding: 80px 0;
}

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

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

.section-header .section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--primary-light);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

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

/* =============================================
   FEATURES GRID
   ============================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), #6366f1);
  opacity: 0;
  transition: var(--transition);
}

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

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
}

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

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

/* =============================================
   PRODUCT SHOWCASE
   ============================================= */
.showcase-section {
  padding: 80px 0;
}

.showcase-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}

.showcase-item:last-child {
  margin-bottom: 0;
}

.showcase-item.reverse {
  direction: rtl;
}

.showcase-item.reverse > * {
  direction: ltr;
}

.showcase-text .tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.showcase-text h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

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

.showcase-text .feature-list {
  margin-bottom: 32px;
}

.showcase-text .feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}

.showcase-text .feature-list li::before {
  content: '✓';
  color: var(--primary-color);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.showcase-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.showcase-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: var(--transition);
}

.showcase-image:hover img {
  transform: scale(1.02);
}

/* =============================================
   NEWS / ARTICLE LIST
   ============================================= */
.news-section {
  padding: 80px 0;
  background: var(--bg-light);
}

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

.news-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

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

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

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

.news-card .card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.news-card .card-category {
  display: inline-block;
  padding: 2px 10px;
  background: var(--primary-light);
  color: var(--primary-color);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

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

.news-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card h3 a {
  color: inherit;
}

.news-card h3 a:hover {
  color: var(--primary-color);
}

.news-card .card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.news-card .read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 4px;
}

.news-card .read-more:hover {
  gap: 8px;
}

.news-card .view-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* =============================================
   AWARDS / ACHIEVEMENTS
   ============================================= */
.awards-section {
  padding: 80px 0;
  background: var(--bg-white);
  overflow: hidden;
}

.awards-ticker {
  display: flex;
  gap: 24px;
  animation: ticker-scroll 30s linear infinite;
  width: max-content;
}

.awards-ticker:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.award-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  white-space: nowrap;
  border: 1px solid var(--border-color);
}

.award-item .award-icon {
  font-size: 22px;
}

.award-item .award-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-section {
  padding: 80px 0;
  background: var(--bg-light);
}

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

.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.testimonial-card .quote-icon {
  font-size: 36px;
  color: var(--primary-color);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 12px;
}

.testimonial-card .quote-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-card .user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card .user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-card .user-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.testimonial-card .user-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* =============================================
   DOWNLOAD SECTION
   ============================================= */
.download-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #0d1117 0%, #1a237e 100%);
  color: #fff;
  text-align: center;
}

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

.download-section p {
  font-size: 17px;
  opacity: 0.8;
  margin-bottom: 40px;
}

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

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

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

.platform-btn .platform-icon {
  font-size: 22px;
}

.platform-btn .platform-info {
  text-align: left;
}

.platform-btn .platform-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.platform-btn .platform-sub {
  display: block;
  font-size: 12px;
  opacity: 0.7;
}

.download-qr {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

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

.qr-item .qr-placeholder {
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  border: 1px solid rgba(255,255,255,0.2);
}

.qr-item .qr-label {
  font-size: 13px;
  opacity: 0.7;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #0d1117;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

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

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

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

.footer-brand .footer-desc {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.5);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary-color);
  color: #fff;
}

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

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

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

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

.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 .copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

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

.footer-bottom .footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-bottom .footer-links a:hover {
  color: rgba(255,255,255,0.8);
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
  padding: 16px 0;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumb nav a {
  color: var(--text-muted);
}

.breadcrumb nav a:hover {
  color: var(--primary-color);
}

.breadcrumb nav .separator {
  color: var(--border-color);
}

.breadcrumb nav .current {
  color: var(--text-secondary);
  font-weight: 500;
}

/* =============================================
   LIST PAGE
   ============================================= */
.list-page {
  padding-top: 64px;
}

.list-hero {
  padding: 60px 0 40px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
  text-align: center;
}

.list-hero h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.list-hero p {
  font-size: 16px;
  color: var(--text-secondary);
}

.list-content {
  padding: 48px 0;
}

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

.article-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.article-item:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
  transform: translateY(-2px);
}

.article-item .article-thumb {
  width: 160px;
  height: 110px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.article-item .article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.article-item:hover .article-thumb img {
  transform: scale(1.05);
}

.article-item .article-info {
  flex: 1;
}

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

.article-item .article-category {
  display: inline-block;
  padding: 2px 10px;
  background: var(--primary-light);
  color: var(--primary-color);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

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

.article-item h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.5;
}

.article-item h2 a {
  color: inherit;
}

.article-item h2 a:hover {
  color: var(--primary-color);
}

.article-item .article-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-item .article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

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

.article-item .article-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-color);
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}

.sidebar-widget {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-widget h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-color);
}

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

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

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

.sidebar-widget .widget-list li a:hover {
  color: var(--primary-color);
}

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

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: var(--transition);
}

.pagination a:hover,
.pagination .current {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* =============================================
   SHOW PAGE (Article Detail)
   ============================================= */
.show-page {
  padding-top: 64px;
}

.show-content {
  padding: 48px 0;
}

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

.article-detail {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 40px;
  border: 1px solid var(--border-color);
}

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

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

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

.article-detail .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.article-detail .article-cover {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 28px;
  max-height: 400px;
  object-fit: cover;
}

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

.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 16px;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 24px 0 12px;
}

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

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

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

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

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

.article-body blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 16px 20px;
  background: var(--primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article-tags {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

.article-tags .tag:hover {
  background: var(--primary-light);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Related Articles */
.related-articles {
  margin-top: 40px;
}

.related-articles h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

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

.related-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.related-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-color);
}

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

.related-card .related-info {
  padding: 12px;
}

.related-card .related-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card .related-info h4 a {
  color: inherit;
}

.related-card .related-info h4 a:hover {
  color: var(--primary-color);
}

/* =============================================
   DOWNLOAD PAGE
   ============================================= */
.download-page {
  padding-top: 64px;
}

.download-hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #0d1117 0%, #1a237e 50%, #0d1117 100%);
  color: #fff;
  text-align: center;
}

.download-hero h1 {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 16px;
}

.download-hero p {
  font-size: 18px;
  opacity: 0.8;
  margin-bottom: 40px;
}

.download-hero .version-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.2);
}

.download-main-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: var(--primary-color);
  color: #fff;
  border-radius: var(--radius-xl);
  font-size: 18px;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 24px rgba(22,119,255,0.4);
  margin-bottom: 16px;
}

.download-main-btn:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(22,119,255,0.5);
}

.download-platforms-section {
  padding: 60px 0;
  background: var(--bg-white);
}

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

.platform-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.platform-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
  transform: translateY(-4px);
}

.platform-card .platform-icon-lg {
  font-size: 48px;
  margin-bottom: 16px;
}

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

.platform-card .platform-version {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.platform-card .btn-download-platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.platform-card .btn-download-platform:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-4 { gap: 16px; }

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .sidebar {
    position: static;
  }

  .platforms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }

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

  .showcase-item,
  .showcase-item.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-header h2 {
    font-size: 26px;
  }

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

  .article-item .article-thumb {
    width: 100%;
    height: 180px;
  }

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

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

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

  .download-section h2 {
    font-size: 28px;
  }

  .carousel-slide img {
    height: 280px;
  }

  .hero-stats {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

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

  .download-platforms {
    flex-direction: column;
    align-items: center;
  }

  .platform-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

/* =============================================
   MOBILE MENU
   ============================================= */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px;
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  color: var(--primary-color);
}

/* =============================================
   SCROLL TO TOP
   ============================================= */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  font-size: 20px;
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* =============================================
   LOADING ANIMATION
   ============================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in-up-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-up-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-up-delay-3 { animation-delay: 0.3s; opacity: 0; }
