﻿/* ======== Agent  ======== */
:root {
  --primary: #6C63FF;
  --primary-light: #8B85FF;
  --primary-dark: #5A52D5;
  --secondary: #00D4AA;
  --accent: linear-gradient(135deg, #6C63FF, #00D4AA);
  --bg: #0B0C1A;
  --bg2: #111226;
  --glass: rgba(255,255,255,0.06);
  --glass-hover: rgba(255,255,255,0.10);
  --glass-border: rgba(255,255,255,0.08);
  --text: #F0F0FF;
  --text2: #A0A0C0;
  --text3: #6B6B8D;
  --danger: #FF4757;
  --success: #2ED573;
  --warning: #FFA502;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --max-w: 1200px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--secondary); }
img { max-width: 100%; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108,99,255,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,99,255,0.5);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--glass-border);
}
.btn-outline:hover {
  background: var(--glass);
  border-color: var(--primary);
  color: var(--primary-light);
}

/* ===== Glass Card ===== */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.glass-card:hover {
  background: var(--glass-hover);
  transform: translateY(-4px);
  border-color: rgba(108,99,255,0.2);
}

/* ===== Section ===== */
.section {
  padding: 100px 0;
  position: relative;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(108,99,255,0.12);
  color: var(--primary-light);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  border: 1px solid rgba(108,99,255,0.2);
}
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text2);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Gradient BG ===== */
.gradient-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.gradient-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
}
.gradient-bg .orb:nth-child(1) {
  width: 500px; height: 500px;
  background: var(--primary);
  top: -200px; left: -200px;
}
.gradient-bg .orb:nth-child(2) {
  width: 400px; height: 400px;
  background: var(--secondary);
  bottom: -150px; right: -150px;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(30px); }
  to { opacity:1; transform:translateY(0); }
}
@keyframes spin { to { transform:rotate(360deg); } }

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4,0,0.2,1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Top Bar ===== */
.top-bar {
  background: rgba(11,12,26,0.95);
  border-bottom: 1px solid var(--glass-border);
  padding: 8px 0;
  font-size: 13px;
  color: var(--text2);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar svg { vertical-align: middle; margin-right: 6px; }
.top-tagline {
  color: var(--primary-light);
  font-weight: 500;
}

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11,12,26,0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(11,12,26,0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
}
.logo-text { line-height: 1.2; }
.logo-main {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: block;
}
.logo-sub {
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 1px;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}
.nav-links a {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--glass);
  color: var(--text);
}
.nav-links a.active { color: var(--primary-light); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  background: #FFF8E1;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide.active { opacity: 1; }
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,rgba(11,12,26,0.85),rgba(108,99,255,0.25),rgba(11,12,26,0.85));
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 40px;
}
.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg,#fff,var(--primary-light),var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p {
  font-size: 1.2rem;
  color: var(--text2);
  margin-bottom: 32px;
}
/* ===== 轮播箭头 =====
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  background: rgba(0,0,0,0.3);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  backdrop-filter: blur(4px);
}
.hero:hover .slider-btn { opacity: 1; }
.slider-btn:hover { background: rgba(0,0,0,0.6); }
.slider-btn:active { transform: translateY(-50%) scale(0.95); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }


.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.slider-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--transition);
}
.slider-dots span.active {
  background: var(--primary);
  width: 28px;
  border-radius: 5px;
}

/* ===== Products ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.product-card {
  padding: 28px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: var(--transition);
}
.product-card:hover::before { opacity: 1; }
.product-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(108,99,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.product-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.product-card p {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(108,99,255,0.1);
  color: var(--primary-light);
  border-radius: 100px;
  font-size: 12px;
}
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text3);
}

/* ===== Cases ===== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}
.case-card {
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}
.case-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.case-body {
  padding: 24px;
}
.case-body h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.case-body p {
  font-size: 13px;
  color: var(--text2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Videos ===== */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}
.video-card {
  padding: 0;
  overflow: hidden;
}
.video-card video {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #000;
}
.video-info {
  padding: 20px;
}
.video-info h4 {
  font-size: 15px;
  margin-bottom: 6px;
}
.video-info p {
  font-size: 13px;
  color: var(--text2);
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.about-content p {
  color: var(--text2);
  margin-bottom: 16px;
  font-size: 15px;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat-card {
  text-align: center;
  padding: 24px;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 13px;
  color: var(--text3);
  margin-top: 4px;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-card {
  padding: 32px;
}
.contact-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text2);
  font-size: 14px;
}
.info-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary-light);
  margin-top: 2px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ===== Modal ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-box {
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}
.modal-close:hover {
  background: rgba(255,71,87,0.2);
  color: var(--danger);
}
.modal-box h2 {
  font-size: 22px;
  margin-bottom: 16px;
}
.modal-box p {
  color: var(--text2);
  font-size: 14px;
  line-height: 1.8;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 30px;
  background: rgba(0,0,0,0.3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--text3);
  line-height: 1.7;
}
.footer-links h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 16px;
}
.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text3);
}
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text3);
}
.footer-icp a {
  color: var(--text3);
  font-size: 13px;
}
.footer-icp a:hover { color: var(--primary-light); }

/* ===== Toast ===== */
.toast-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  max-width: 360px;
}
.toast.show { transform: translateX(0); }
.toast.success {
  background: rgba(46,213,115,0.15);
  border: 1px solid rgba(46,213,115,0.3);
  color: var(--success);
}
.toast.error {
  background: rgba(255,71,87,0.15);
  border: 1px solid rgba(255,71,87,0.3);
  color: var(--danger);
}
.toast.info {
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  color: var(--primary-light);
}

/* ===== AI Chat ===== */
.ai-chat-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(108,99,255,0.4);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.ai-chat-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(108,99,255,0.6);
}

.ai-chat-panel {
  display: none;
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 380px;
  aspect-ratio: 16 / 9;
    
  background: rgba(18,19,40,0.97);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  z-index: 501;
  flex-direction: column;
  overflow: hidden;
}
.ai-chat-panel.show { display: flex; }
.ai-chat-head {
  padding: 18px 20px;
  background: var(--accent);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ai-chat-head h3 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.ai-chat-head .close-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 18px;
}
.ai-msgs {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
}
.ai-msg.bot {
  background: var(--glass);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.ai-msg.user {
  background: rgba(108,99,255,0.2);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.ai-input-area {
  padding: 16px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  gap: 10px;
}
.ai-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.ai-input:focus { border-color: var(--primary); }
.ai-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.ai-send:hover { transform: scale(1.1); }
.ai-send:disabled { opacity: 0.4; cursor: not-allowed; }
.ai-loading {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 2rem; }
  .hero-content h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-title { font-size: 1.8rem; }
  .hero { aspect-ratio: 16 / 9; }
  background: #FFF8E1;
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
  .products-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .videos-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(11,12,26,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    flex-direction: column;
    padding: 16px;
  }
  .nav-links.active { display: flex; }
  .hamburger { display: flex; }
  .ai-chat-panel {
    width: calc(100vw - 24px);
    height: 60vh;
    bottom: 12px;
    right: 12px;
  }
  .ai-chat-btn { bottom: 20px; right: 20px; width: 48px; height: 48px; }
}

@media (max-width: 480px) {
  .section-title { font-size: 1.5rem; }
  .hero-content h1 { font-size: 1.6rem; }
  .stat-num { font-size: 1.5rem; }
}

/* ===== Trending News ===== */
#trending { padding: 80px 0; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.trending-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}
.trending-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(108,99,255,0.1);
}

.trending-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.trending-rank {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}
.trending-source {
  font-size: 12px;
  color: var(--text3);
}
.trending-cat {
  font-size: 11px;
  color: var(--primary-light);
  background: rgba(108,99,255,0.12);
  padding: 2px 10px;
  border-radius: 100px;
  margin-left: auto;
}

.trending-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--text);
}
.trending-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text2);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
  font-size: 12px;
}
.trending-author { color: var(--secondary); font-weight: 500; }
.trending-hot { color: var(--text3); }
.trending-link {
  margin-left: auto;
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 14px;
  border: 1px solid var(--primary-light);
  border-radius: 100px;
  transition: var(--transition);
  font-size: 12px;
}
.trending-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== Nav Crystal Button ===== */
.nav-weibo a {
  background: linear-gradient(135deg, #E6162D, #FF6B6B);
  color: #fff !important;
  padding: 5px 14px !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  box-shadow: 0 0 14px rgba(230,22,45,0.2);
  transition: var(--transition);
}
.nav-weibo a:hover {
  box-shadow: 0 0 20px rgba(230,22,45,0.4);
  transform: scale(1.05);
}

/* ===== Product Grid ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  #trending { padding: 40px 0; }
}

/* ===== White Cards for Products ===== */
.products-grid .glass-card.product-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
}
.products-grid .glass-card.product-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(108,99,255,0.15);
  transform: translateY(-3px);
}
.products-grid .glass-card.product-card h3 {
  color: #1a1a2e;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.products-grid .glass-card.product-card p {
  color: #555;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.products-grid .glass-card.product-card .product-tag {
  display: inline-block;
  background: rgba(108,99,255,0.1);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}
.products-grid .glass-card.product-card:hover .product-tag {
  background: var(--primary);
  color: #fff;
}

/* Icon color */
.products-grid .glass-card.product-card .product-icon svg {
  stroke: var(--primary);
}

/* Case cards matching style */
.cases-grid .glass-card.case-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
}
.cases-grid .glass-card.case-card h3 { color: #1a1a2e; }
.cases-grid .glass-card.case-card p { color: #555; }
/* ==========================================
   Full Theme Optimization
   ========================================== */

/* --- Hero --- */
.hero { background: #FFF8E1; }
.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 16px;
  line-height: 1.15;
}
.hero-content p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 24px;
  max-width: 600px;
}

/* --- Section Headers --- */
.section { padding: 80px 0; }
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text2);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Product Cards (White) --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.products-grid .glass-card.product-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
}
.products-grid .glass-card.product-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(108,99,255,0.12);
  transform: translateY(-4px);
}
.products-grid .glass-card.product-card .product-icon {
  width: 48px; height: 48px;
  background: rgba(108,99,255,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.products-grid .glass-card.product-card .product-icon svg { stroke: var(--primary); }
.products-grid .glass-card.product-card h3 {
  color: #1a1a2e;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}
.products-grid .glass-card.product-card p {
  color: #666;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.products-grid .glass-card.product-card .product-tag {
  display: inline-block;
  background: rgba(108,99,255,0.08);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}
.products-grid .glass-card.product-card:hover .product-tag {
  background: var(--primary);
  color: #fff;
}

/* --- Service Cards --- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.service-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 28px;
  transition: var(--transition);
}
.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(108,99,255,0.1);
}
.service-card .service-icon {
  width: 48px; height: 48px;
  background: rgba(108,99,255,0.08);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.service-card .service-icon svg { stroke: var(--primary); }
.service-card h3 { color: #1a1a2e; font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.service-card p { color: #666; font-size: 13px; line-height: 1.7; }

/* --- Case Cards --- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.cases-grid .glass-card.case-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 24px;
  transition: var(--transition);
}
.cases-grid .glass-card.case-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(108,99,255,0.1);
}
.cases-grid .glass-card.case-card h3 { color: #1a1a2e; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.cases-grid .glass-card.case-card p { color: #666; font-size: 13px; line-height: 1.7; }
.cases-grid .glass-card.case-card .case-img { border-radius: 8px; margin-bottom: 12px; }

/* --- Stats --- */
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.stat-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}
.stat-card .stat-num { font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.stat-card .stat-label { font-size: 14px; color: #888; margin-top: 4px; }

/* --- Nav --- */
.navbar {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.navbar .logo-main { color: #1a1a2e; }
.navbar .logo-sub { color: #888; }
.nav-links a {
  color: #555;
  font-weight: 500;
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  background: rgba(108,99,255,0.06);
}

/* --- Gradient Backgrounds --- */
.gradient-bg { display: none; }

/* --- Buttons --- */
.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108,99,255,0.3);
}

/* --- Contact --- */
.contact-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 32px;
}
.contact-form input, .contact-form textarea {
  background: #f8f9fa;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: #333;
  width: 100%;
  outline: none;
  transition: var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.1);
}

/* --- Editor --- */
.editor-dropzone {
  background: #fff;
  border: 2px dashed #ddd;
  border-radius: 16px;
  padding: 60px 20px;
}
.editor-dropzone:hover { border-color: var(--primary); }
.editor-sidebar { background: #fff; }

/* --- Footer --- */
.footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.7);
  padding: 40px 0;
}
.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: #fff; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }

/* --- Fade Animations --- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .section-title { font-size: 1.5rem; }
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
  .products-grid, .service-grid, .cases-grid, .news-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .section { padding: 32px 0; }
  .hero-content h1 { font-size: 1.5rem; }
}

/* ===== Nature Theme - Light Green ===== */
:root {
  --bg: #E8F5E9;
  --bg2: #C8E6C9;
  --glass: rgba(255,255,255,0.7);
  --glass-hover: rgba(255,255,255,0.85);
  --glass-border: rgba(0,0,0,0.08);
  --text: #2E7D32;
  --text2: #558B2F;
  --text3: #8DAA78;
  --primary: #4CAF50;
  --primary-light: #81C784;
  --primary-dark: #388E3C;
  --secondary: #66BB6A;
  --accent: linear-gradient(135deg, #4CAF50, #81C784);
}

/* Section backgrounds */
.section { background: #E8F5E9; }
#products { background: #F1F8E9; }
#cases { background: #E8F5E9; }
#videos { background: #F1F8E8; }
#about { background: #E8F5E9; }
#contact { background: #F1F8E8; }
#imageEditor { background: #E8F5E9; }
#trending { background: #F1F8E8; }

/* Section titles on light bg */
.section-title { color: #2E7D32; }
.section-subtitle { color: #558B2F; }

/* Hero */
.hero { background: #C8E6C9 !important; }
.hero-content h1 { color: #1B5E20; }
.hero-content p { color: #33691E; }
.hero-content .btn-primary { background: #4CAF50; }
.hero-content .btn-primary:hover { background: #388E3C; }

/* Footer */
.footer { background: #2E7D32; color: rgba(255,255,255,0.85); }
.footer a { color: rgba(255,255,255,0.75); }
.footer a:hover { color: #fff; }

/* Nav */
.navbar { background: rgba(255,255,255,0.92); border-bottom-color: rgba(0,0,0,0.06); }
.nav-links a { color: #33691E; }
.nav-links a:hover, .nav-links a.active { color: #4CAF50; background: rgba(76,175,80,0.08); }

/* Buttons */
.btn-primary { background: #4CAF50; }
.btn-primary:hover { background: #388E3C; box-shadow: 0 8px 24px rgba(76,175,80,0.3); }

/* Product tags */
.products-grid .glass-card.product-card .product-tag { color: #4CAF50; background: rgba(76,175,80,0.08); }
.products-grid .glass-card.product-card:hover .product-tag { background: #4CAF50; color: #fff; }
.products-grid .glass-card.product-card:hover { border-color: #4CAF50; }
.products-grid .glass-card.product-card .product-icon { background: rgba(76,175,80,0.08); }
.products-grid .glass-card.product-card .product-icon svg { stroke: #4CAF50; }

/* Service cards */
.service-card:hover { border-color: #4CAF50; }
.service-card .service-icon { background: rgba(76,175,80,0.08); }
.service-card .service-icon svg { stroke: #4CAF50; }

/* Case cards */
.cases-grid .glass-card.case-card:hover { border-color: #4CAF50; }

/* Trending cards */
.trending-rank { background: #4CAF50; }
.trending-cat { color: #81C784; background: rgba(76,175,80,0.12); }
.trending-link { color: #81C784; border-color: #81C784; }
.trending-link:hover { background: #4CAF50; border-color: #4CAF50; }
.trending-card:hover { border-color: #4CAF50; }
.trending-title { color: #2E7D32; }
.trending-desc { color: #558B2F; }
.trending-author { color: #66BB6A; }

/* Stats */
.stat-card .stat-num { color: #4CAF50; }

/* Section tags */
.section-tag { color: #81C784; background: rgba(76,175,80,0.1); }

/* Nav crystal button */
.nav-weibo a { background: linear-gradient(135deg, #43A047, #66BB6A) !important; box-shadow: 0 0 14px rgba(76,175,80,0.25) !important; }
.nav-weibo a:hover { box-shadow: 0 0 20px rgba(76,175,80,0.4) !important; }

/* Editor */
.editor-dropzone:hover { border-color: #4CAF50; }
.editor-sidebar h3 { color: #2E7D32; }

/* Form focus */
.contact-form input:focus, .contact-form textarea:focus { border-color: #4CAF50; box-shadow: 0 0 0 3px rgba(76,175,80,0.1); }

/* Scrollbar */
::-webkit-scrollbar-thumb { background: rgba(76,175,80,0.3); }
::-webkit-scrollbar-thumb:hover { background: rgba(76,175,80,0.5); }
/* ===== Products Redesigned ===== */
.products-grid { margin-top: 0; }

.prod-category { margin-bottom: 40px; }
.prod-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(76,175,80,0.15);
}
.prod-cat-icon { font-size: 20px; }
.prod-cat-title {
  font-size: 18px;
  font-weight: 700;
  color: #2E7D32;
}
.prod-cat-count {
  margin-left: auto;
  font-size: 12px;
  color: #8DAA78;
  background: rgba(76,175,80,0.08);
  padding: 3px 12px;
  border-radius: 100px;
}

.prod-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.prod-card {
  display: block;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  transition: all 0.25s ease;
}
.prod-card:hover {
  border-color: #4CAF50;
  box-shadow: 0 6px 20px rgba(76,175,80,0.1);
  transform: translateY(-2px);
}

.prod-card-top { display: flex; align-items: center; gap: 12px; }
.prod-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #4CAF50;
  flex-shrink: 0;
}
.prod-card-info { flex: 1; min-width: 0; }
.prod-card-name {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prod-card-desc {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prod-card-stars {
  font-size: 12px;
  font-weight: 700;
  color: #F57C00;
  white-space: nowrap;
  flex-shrink: 0;
}
.prod-card-stars::before { content: "★ "; }

.prod-card-tags {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}
.prod-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.prod-tag-framework { background: rgba(76,175,80,0.1); color: #4CAF50; }
.prod-tag-tool { background: rgba(255,152,0,0.1); color: #F57C00; }
.prod-tag-platform { background: rgba(33,150,243,0.1); color: #1976D2; }
.prod-tag-python { background: rgba(156,39,176,0.08); color: #7B1FA2; }

/* ===== Products Enhanced ===== */
.products-grid { margin-top: 0; }

/* Category header */
.prod-category {
  margin-bottom: 36px;
  background: rgba(255,255,255,0.5);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(76,175,80,0.08);
}
.prod-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(76,175,80,0.12);
}
.prod-cat-icon { font-size: 22px; }
.prod-cat-title {
  font-size: 17px;
  font-weight: 700;
  color: #2E7D32;
}
.prod-cat-count {
  margin-left: auto;
  font-size: 12px;
  color: #8DAA78;
  background: rgba(76,175,80,0.1);
  padding: 4px 14px;
  border-radius: 100px;
  font-weight: 500;
}

/* Card grid */
.prod-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

/* Individual card */
.prod-card {
  display: block;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
}
.prod-card:hover {
  border-color: #4CAF50;
  box-shadow: 0 8px 24px rgba(76,175,80,0.12);
  transform: translateY(-3px);
}

/* Featured badge */
.prod-card[data-featured=true] {
  border-color: #4CAF50;
  border-width: 2px;
}

/* Card top row */
.prod-card-top { display: flex; align-items: center; gap: 14px; }

/* Avatar-style icon */
.prod-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #4CAF50;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

/* Info area */
.prod-card-info { flex: 1; min-width: 0; }
.prod-card-name {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.prod-card-desc {
  font-size: 12px;
  color: #999;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Stars badge */
.prod-card-stars {
  font-size: 12px;
  font-weight: 700;
  color: #F57C00;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Tags row */
.prod-card-tags {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f2f2f2;
  flex-wrap: wrap;
}
.prod-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.2px;
  transition: var(--transition);
}
.prod-tag-framework { background: rgba(76,175,80,0.1); color: #4CAF50; }
.prod-tag-framework:hover { background: #4CAF50; color: #fff; }
.prod-tag-tool { background: rgba(255,152,0,0.1); color: #F57C00; }
.prod-tag-tool:hover { background: #F57C00; color: #fff; }
.prod-tag-platform { background: rgba(33,150,243,0.1); color: #1976D2; }
.prod-tag-platform:hover { background: #1976D2; color: #fff; }

/* Difficulty indicator */
.prod-diff {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: #bbb;
}
.prod-diff .dot { width: 6px; height: 6px; border-radius: 50%; background: #ddd; }
.prod-diff .dot.filled { background: #4CAF50; }

/* Section description enhancement */
#products .section-header {
  margin-bottom: 36px;
}
#products .section-subtitle {
  font-size: 0.95rem;
  color: #8DAA78;
}

/* Mobile */
@media (max-width: 768px) {
  .prod-category { padding: 16px; }
  .prod-cat-grid { grid-template-columns: 1fr; }
}

/* Featured badge */
.prod-featured {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  background: linear-gradient(135deg, #4CAF50, #66BB6A);
  color: #fff;
  padding: 1px 8px;
  border-radius: 4px;
  margin-right: 4px;
  letter-spacing: 0.3px;
  vertical-align: middle;
}

/* ===== Products Dark Mode ===== */
#products {
  background: #1a1a2e !important;
}
#products .section-title { color: #e8e8e8; }
#products .section-subtitle { color: #999; }
#products .section-tag { color: #81C784; background: rgba(76,175,80,0.15); }

/* Category wrapper */
#products .prod-category {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.06);
}
#products .prod-cat-header {
  border-bottom-color: rgba(255,255,255,0.08);
}
#products .prod-cat-title { color: #c8e6c9; }
#products .prod-cat-count {
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
}

/* Cards */
#products .prod-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
}
#products .prod-card:hover {
  border-color: #4CAF50;
  background: rgba(255,255,255,0.09);
  box-shadow: 0 8px 24px rgba(76,175,80,0.15);
}

/* Card text */
#products .prod-card-name { color: #e8e8e8; }
#products .prod-card-desc { color: rgba(255,255,255,0.5); }
#products .prod-card-stars { color: #FFB74D; }

/* Tags */
#products .prod-tag-framework { background: rgba(76,175,80,0.15); color: #81C784; }
#products .prod-tag-framework:hover { background: #4CAF50; color: #fff; }
#products .prod-tag-tool { background: rgba(255,152,0,0.15); color: #FFB74D; }
#products .prod-tag-tool:hover { background: #F57C00; color: #fff; }
#products .prod-tag-platform { background: rgba(33,150,243,0.15); color: #64B5F6; }
#products .prod-tag-platform:hover { background: #1976D2; color: #fff; }

/* Card divider */
#products .prod-card-tags { border-top-color: rgba(255,255,255,0.06); }

/* Featured badge on dark */
#products .prod-featured {
  background: linear-gradient(135deg, #4CAF50, #66BB6A);
  color: #fff;
}

/* Section gradient bg */
#products .gradient-bg { display: block; }
#products .gradient-bg .orb {
  background: radial-gradient(circle, rgba(76,175,80,0.08) 0%, transparent 70%);
}

/* ===== Products Custom ===== */
#products {
  background: #ffffff !important;
}
#products .section-title { color: #000; }
#products .section-subtitle { color: #666; }
#products .section-tag { color: #4CAF50; background: rgba(76,175,80,0.1); }

/* Category wrapper */
#products .prod-category {
  background: #f5faf5;
  border: 1px solid #e0f0e0;
}
#products .prod-cat-header { border-bottom-color: #d0e8d0; }
#products .prod-cat-title { color: #2E7D32; }
#products .prod-cat-count { color: #8DAA78; background: rgba(76,175,80,0.08); }

/* Cards - green */
#products .prod-card {
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
}
#products .prod-card:hover {
  border-color: #4CAF50;
  box-shadow: 0 8px 24px rgba(76,175,80,0.15);
  background: #c8e6c9;
}

/* Card text - black */
#products .prod-card-name { color: #000; }
#products .prod-card-desc { color: #333; }
#products .prod-card-stars { color: #E65100; }

/* Tags - black */
#products .prod-tag { color: #000 !important; }
#products .prod-tag-framework { background: rgba(76,175,80,0.15); }
#products .prod-tag-framework:hover { background: #4CAF50; color: #fff !important; }
#products .prod-tag-tool { background: rgba(255,152,0,0.15); }
#products .prod-tag-tool:hover { background: #F57C00; color: #fff !important; }
#products .prod-tag-platform { background: rgba(33,150,243,0.15); }
#products .prod-tag-platform:hover { background: #1976D2; color: #fff !important; }

/* Divider */
#products .prod-card-tags { border-top-color: #d0e8d0; }

/* Gradient bg hide */
#products .gradient-bg { display: none; }

/* ===== Learning Resources Redesigned ===== */
#products { padding: 60px 0; }
#products .section-header { margin-bottom: 10px; }
#products .section-title { color: #000; font-size: 1.8rem; }
#products .section-subtitle { color: #666; font-size: 0.95rem; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.prod-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.prod-card:hover {
  border-color: #4CAF50;
  box-shadow: 0 8px 28px rgba(76,175,80,0.12);
  transform: translateY(-3px);
}

.prod-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  align-self: flex-start;
  background: rgba(76,175,80,0.1);
  color: #4CAF50;
}
.prod-card .prod-badge:contains(工具) { background: rgba(255,152,0,0.1); color: #F57C00; }
.prod-card .prod-badge:contains(平台) { background: rgba(33,150,243,0.1); color: #1976D2; }

.prod-name {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.prod-use {
  font-size: 13px;
  color: #4CAF50;
  font-weight: 500;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.prod-features {
  flex: 1;
  margin-bottom: 16px;
}
.prod-feature {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  padding: 3px 0;
}

.prod-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
}
.prod-stars {
  font-size: 13px;
  font-weight: 700;
  color: #F57C00;
}
.prod-link {
  font-size: 13px;
  color: #4CAF50;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}
.prod-link:hover { color: #2E7D32; }

/* Badge colors */
.prod-card:nth-child(6) .prod-badge,
.prod-card:nth-child(7) .prod-badge,
.prod-card:nth-child(8) .prod-badge { background: rgba(255,152,0,0.1); color: #F57C00; }
.prod-card:nth-child(9) .prod-badge { background: rgba(33,150,243,0.1); color: #1976D2; }

@media (max-width: 768px) {
  .products-grid { grid-template-columns: 1fr; }
  #products { padding: 40px 0; }
}
