/* ========================================
   XYDZQ.COM Style Template - Main Stylesheet
   White Marketing Style - Flexbox Layout
   Mobile Responsive
   ======================================== */

/* --- CSS Variables --- */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --dark: #1e293b;
  --text: #334155;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --bg-gray: #f1f5f9;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --header-height: 72px;
  --gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
  --gradient-light: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-light { color: var(--text-light); }
.text-white { color: #fff; }
.bg-light { background: var(--bg-light); }
.bg-gray { background: var(--bg-gray); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 13px;
}

/* --- Header & Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.logo-text span {
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: #eff6ff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-search-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--bg-gray);
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--text);
  transition: var(--transition);
}

.header-search-btn:hover {
  background: #eff6ff;
  color: var(--primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Banner / Slideshow --- */
.hero {

  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 560px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  z-index: 2;
  position: relative;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-content h1 .highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-inner {
  width: 420px;
  height: 320px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.hero-visual-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  animation: rotate-bg 20s linear infinite;
}

@keyframes rotate-bg {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-visual-inner .icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  z-index: 1;
}

.hero-visual-inner .icon-item {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: var(--transition);
}

.hero-visual-inner .icon-item:hover {
  background: rgba(255,255,255,0.15);
  transform: scale(1.05);
}

.hero-stats {
  display: flex;
  gap: 40px;
  z-index: 1;
  margin-top: 8px;
}

.hero-stats .stat {
  text-align: center;
}

.hero-stats .stat-num {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.hero-stats .stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* Slider Controls */
.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.hero-dots .dot.active {
  background: #fff;
  width: 30px;
  border-radius: 5px;
}

.hero-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 10;
  pointer-events: none;
}

.hero-arrow {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.hero-arrow:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-50%) scale(1.1);
}

/* --- Section Styles --- */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: #eff6ff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: #eff6ff;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* --- Product Showcase --- */
.showcase {
  position: relative;
}

.showcase-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.showcase-text {
  flex: 1;
}

.showcase-text h2 {
  font-size: 34px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 20px;
}

.showcase-text p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 28px;
}

.showcase-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.showcase-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
}

.showcase-list .check {
  width: 24px;
  height: 24px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #16a34a;
  font-size: 14px;
  flex-shrink: 0;
}

.showcase-image {
  flex: 1;
  position: relative;
}

.showcase-image-box {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--gradient-light);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.showcase-image-box .placeholder {
  font-size: 48px;
  opacity: 0.3;
}

/* Floating elements */
.floating-card {
  position: absolute;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.floating-card .fc-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.floating-card:nth-child(2) {
  animation-delay: -1s;
}

/* --- Link Columns Sections --- */
.link-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.link-column {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

.link-column:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.link-column-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-gray);
}

.link-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text);
  border-bottom: 1px solid var(--bg-gray);
  transition: var(--transition);
  border-radius: var(--radius);
  font-weight: 500;
}

.link-row:last-child {
  border-bottom: none;
}

.link-row:hover {
  color: var(--primary);
  background: #eff6ff;
  padding-left: 20px;
}

.link-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--bg-gray);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-lighter);
  flex-shrink: 0;
  transition: var(--transition);
}

.link-row:hover .link-num {
  background: var(--primary);
  color: #fff;
}

.bg-light .link-column {
  background: var(--bg);
}

@media (max-width: 768px) {
  .link-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .link-columns {
    grid-template-columns: 1fr;
  }
}

/* --- Stats Section --- */
.stats-section {
  background: var(--gradient);
  padding: 60px 0;
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .stat-unit {
  font-size: 20px;
  font-weight: 500;
}

.stat-item .stat-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.pricing-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.pricing-card .price {
  margin: 20px 0;
}

.pricing-card .price .amount {
  font-size: 48px;
  font-weight: 800;
  color: var(--dark);
}

.pricing-card .price .currency {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-light);
}

.pricing-card .price .period {
  font-size: 14px;
  color: var(--text-light);
}

.pricing-card .price-desc {
  font-size: 13px;
  color: var(--text-lighter);
  margin-bottom: 24px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 28px;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-gray);
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features .pf-check {
  color: #22c55e;
  font-weight: 700;
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.testimonial-info .name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

.testimonial-info .role {
  font-size: 12px;
  color: var(--text-lighter);
}

/* --- CTA Section --- */
.cta-section {
  background: var(--gradient);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.cta-section h2 {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-section p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.cta-section .btn {
  position: relative;
  z-index: 1;
}

.cta-section .btn-white {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.cta-section .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* --- Partners --- */
.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.partner-logo {
  width: 120px;
  height: 50px;
  background: var(--bg-gray);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-lighter);
  font-size: 14px;
  font-weight: 600;
  opacity: 0.6;
  transition: var(--transition);
}

.partner-logo:hover {
  opacity: 1;
}

/* --- Footer --- */
.footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.6);
}

.footer a {
  color: inherit;
}

.footer a:hover {
  color: #fff;
}

.friend-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.fl-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-right: 12px;
  white-space: nowrap;
}

.friend-links a {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  text-decoration: none;
  padding: 3px 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
  transition: var(--transition);
}

.friend-links a:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  padding: 48px 0 36px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-slogan {
  flex: 1.2;
  min-width: 180px;
}

.footer-slogan .footer-logo {
  display: inline-block;
  margin-bottom: 14px;
}

.footer-slogan-text {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
}

.footer-col {
  flex: 1;
  min-width: 100px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  padding: 5px 0;
  transition: var(--transition);
}

.footer-col a:hover {
  color: rgba(255,255,255,0.85);
}

.footer-contact-item {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  display: inline;
  padding: 0;
}

.footer-contact-item a:hover {
  color: #fff;
  padding-left: 0;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-links-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 14px;
}

.footer-links-row a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links-row a:hover {
  color: rgba(255,255,255,0.8);
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
  line-height: 1.8;
}

.footer-copyright a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.footer-copyright a:hover {
  color: #fff;
}

.footer-record {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

.footer-record a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
}

.footer-record a:hover {
  color: rgba(255,255,255,0.7);
}

.footer-sep {
  margin: 0 10px;
  color: rgba(255,255,255,0.15);
}

@media (max-width: 768px) {
  .footer-main {
    flex-wrap: wrap;
    gap: 28px;
  }

  .footer-slogan {
    flex: 1 1 100%;
  }

  .footer-col {
    flex: 1 1 45%;
  }

  .friend-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-col {
    flex: 1 1 100%;
  }

  .footer-links-row {
    flex-wrap: wrap;
    gap: 12px;
  }
}
  color: rgba(255,255,255,0.3);
}

.footer-bottom a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .friend-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* --- Page Content Layout (Inner/List/Search) --- */
.page-content {
  min-height: calc(100vh - var(--header-height));
}

.page-banner {
  background: var(--gradient);
  padding: 56px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-banner h1 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-top: 12px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.page-banner .breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  position: relative;
  z-index: 1;
}

.page-banner .breadcrumb a {
  color: rgba(255,255,255,0.7);
}

.page-banner .breadcrumb a:hover {
  color: #fff;
}

.page-banner .breadcrumb .sep {
  color: rgba(255,255,255,0.4);
}

/* --- Layout: Sidebar --- */
.content-layout {
  display: flex;
  gap: 36px;
  padding: 40px 0 60px;
}

.content-main {
  flex: 1;
  min-width: 0;
}

.content-sidebar {
  width: 300px;
  flex-shrink: 0;
}

/* --- Article Card (List) --- */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-card {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.article-card-thumb {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-lighter);
  font-size: 32px;
}

.article-card-body {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.article-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-card-body h3 a:hover {
  color: var(--primary);
}

.article-card-body .desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-lighter);
}

.article-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
}

.pagination a:hover {
  background: #eff6ff;
  color: var(--primary);
  border-color: var(--primary);
}

.pagination .active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pagination .dots {
  border: none;
  color: var(--text-lighter);
}

/* --- Sidebar Widgets --- */
.sidebar-widget {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-widget h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-gray);
}

.widget-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.widget-tag {
  padding: 6px 14px;
  background: var(--bg-gray);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text);
  transition: var(--transition);
}

.widget-tag:hover {
  background: #eff6ff;
  color: var(--primary);
}

.widget-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-gray);
  font-size: 14px;
}

.widget-list li:last-child {
  border-bottom: none;
}

.widget-list li a {
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget-list li a:hover {
  color: var(--primary);
}

.widget-list li .count {
  font-size: 12px;
  color: var(--text-lighter);
  background: var(--bg-gray);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* --- Inner Article --- */
.article-detail {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 32px;
}

.article-detail-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-detail-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-lighter);
  flex-wrap: wrap;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin: 32px 0 16px;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin: 24px 0 12px;
}

.article-body p {
  margin-bottom: 16px;
}

.article-body img {
  border-radius: var(--radius);
  margin: 24px 0;
}

.article-body ul, .article-body ol {
  margin: 16px 0;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
  list-style: disc;
}

.article-body ol li {
  list-style: decimal;
}

.article-body blockquote {
  border-left: 4px solid var(--primary);
  background: #eff6ff;
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
}

.article-body code {
  background: var(--bg-gray);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--primary-dark);
}

.article-body pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 20px 0;
}

.article-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
}

.article-nav a {
  flex: 1;
  padding: 16px 20px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
}

.article-nav a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #eff6ff;
}

.article-nav a .label {
  font-size: 12px;
  color: var(--text-lighter);
  margin-bottom: 4px;
}

.article-nav a .title {
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Search Page --- */
.search-box-section {
  background: var(--gradient);
  padding: 56px 0 48px;
  text-align: center;
}

.search-box-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.search-box-wrapper h1 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
}

.search-input-group {
  display: flex;
  gap: 0;
  background: var(--bg);
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.search-input-group input {
  flex: 1;
  padding: 16px 24px;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--text);
  background: transparent;
}

.search-input-group input::placeholder {
  color: var(--text-lighter);
}

.search-input-group button {
  padding: 16px 32px;
  background: var(--gradient);
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.search-input-group button:hover {
  opacity: 0.9;
}

.search-hot-tags {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.search-hot-tag {
  padding: 6px 16px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  transition: var(--transition);
}

.search-hot-tag:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.search-results-info {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-light);
}

.search-results-info strong {
  color: var(--primary);
}

.search-result-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.search-result-item h3 a {
  color: var(--dark);
}

.search-result-item h3 a:hover {
  color: var(--primary);
}

.search-result-item .url {
  font-size: 13px;
  color: #16a34a;
  margin-bottom: 8px;
}

.search-result-item .summary {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

.search-result-item .summary em {
  color: var(--primary);
  font-style: normal;
  font-weight: 600;
}

/* --- Filter Bar --- */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--bg-light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.filter-tabs {
  display: flex;
  gap: 4px;
}

.filter-tab {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: none;
}

.filter-tab:hover {
  color: var(--text);
}

.filter-tab.active {
  background: var(--primary);
  color: #fff;
}

.filter-sort select {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  cursor: pointer;
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid,
  .pricing-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-visual {
    display: none;
  }

  .content-sidebar {
    width: 260px;
  }

  .article-card-thumb {
    width: 200px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 12px 16px;
    width: 100%;
    text-align: left;
  }

  .header-actions .btn {
    display: none;
  }

  .hero-slider {
    height: auto;
    padding: 60px 0;
  }

  .hero-slide {
    position: relative;
    display: none;
  }

  .hero-slide.active {
    display: flex;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 30px;
  }

  .hero-content p {
    font-size: 15px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-arrows {
    display: none;
  }

  .section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-header h2 {
    font-size: 26px;
  }

  .features-grid,
  .pricing-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }

  .stats-grid {
    flex-wrap: wrap;
    gap: 32px;
  }

  .stat-item {
    width: calc(50% - 16px);
  }

  .showcase-content {
    flex-direction: column;
    gap: 32px;
  }

  .content-layout {
    flex-direction: column;
  }

  .content-sidebar {
    width: 100%;
  }

  .article-card {
    flex-direction: column;
  }

  .article-card-thumb {
    width: 100%;
    height: 180px;
  }

  .article-detail {
    padding: 24px;
  }

  .article-detail-header h1 {
    font-size: 22px;
  }

  .article-nav {
    flex-direction: column;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .page-banner h1 {
    font-size: 26px;
  }

  .cta-section h2 {
    font-size: 26px;
  }

  .search-input-group {
    flex-direction: column;
    border-radius: var(--radius-lg);
  }

  .search-input-group input {
    padding: 14px 20px;
  }

  .search-input-group button {
    justify-content: center;
    padding: 14px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .stat-item .stat-number {
    font-size: 32px;
  }

  .article-detail {
    padding: 16px;
  }
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-gray);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
