/* ===== 免费吃瓜 · 全局样式 ===== */
:root {
  --primary: #ff4757;
  --primary-dark: #e0243a;
  --primary-light: #ff6b81;
  --accent: #ffa502;
  --dark: #1a1a2e;
  --dark-2: #16213e;
  --dark-3: #0f3460;
  --text: #2f3542;
  --text-light: #747d8c;
  --bg: #f7f8fc;
  --bg-card: #ffffff;
  --border: #eef0f5;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 14px 40px rgba(26, 26, 46, 0.14);
  --gradient: linear-gradient(135deg, #ff4757 0%, #ff6b81 45%, #ffa502 100%);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color .3s ease; }
ul, ol { list-style: none; }

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* ===== 顶部通知栏 ===== */
.topbar {
  background: var(--dark);
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
  overflow: hidden;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-tag {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  white-space: nowrap;
}
.topbar-news { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; gap: 16px; white-space: nowrap; }
.topbar-actions a { color: #aab; }
.topbar-actions a:hover { color: var(--primary-light); }

/* ===== 导航栏 ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: 1px;
}
.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 71, 87, 0.35);
}
.brand-name {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.nav-links a:hover { color: var(--primary); background: rgba(255, 71, 87, 0.06); }
.nav-links a.active { color: #fff; background: var(--gradient); }
.nav-cta {
  padding: 9px 20px;
  border-radius: 30px;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(255, 71, 87, 0.3);
  transition: transform .3s ease, box-shadow .3s ease;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(255, 71, 87, 0.4); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all .3s ease;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(180deg, #fff5f6 0%, #fef8ef 55%, #f7f8fc 100%);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 71, 87, 0.14), transparent 70%);
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -160px;
  left: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 165, 2, 0.16), transparent 70%);
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(255, 71, 87, 0.2);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(255, 71, 87, 0.08);
}
.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.hero h1 .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc {
  font-size: 17px;
  color: var(--text-light);
  max-width: 560px;
  margin-bottom: 30px;
}
.hero-stats {
  display: flex;
  gap: 34px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.stat-item .stat-num {
  font-size: 30px;
  font-weight: 800;
  color: var(--primary);
}
.stat-item .stat-label { font-size: 13px; color: var(--text-light); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 71, 87, 0.32);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(255, 71, 87, 0.42); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: rgba(255, 71, 87, 0.06); transform: translateY(-3px); }
.btn-light {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow);
}
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.hero-visual img { width: 100%; height: 460px; object-fit: cover; }
.hero-float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-float-card .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ed573;
  animation: pulse 1.6s ease-in-out infinite;
}
.hero-float-card.card-1 { top: 24px; left: -18px; }
.hero-float-card.card-2 { bottom: 40px; right: -14px; }

/* ===== Section 通用 ===== */
.section { padding: 80px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-tag {
  display: inline-block;
  background: rgba(255, 71, 87, 0.08);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 30px;
  margin-bottom: 14px;
  letter-spacing: 1px;
}
.section-head h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 14px;
  line-height: 1.3;
}
.section-head p { color: var(--text-light); font-size: 16px; }

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform .4s ease, box-shadow .4s ease;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--gradient);
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px rgba(255, 71, 87, 0.3);
}
.feature-card h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-light); }

/* ===== Services ===== */
.services {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform .4s ease, box-shadow .4s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card img { width: 100%; height: 200px; object-fit: cover; }
.service-body { padding: 26px 24px; }
.service-body .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(255, 71, 87, 0.08);
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.service-body h3 { font-size: 19px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.service-body p { font-size: 14px; color: var(--text-light); margin-bottom: 16px; }
.service-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-light); }

/* ===== News ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-card img { width: 100%; height: 190px; object-fit: cover; }
.news-body { padding: 24px; }
.news-cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--gradient);
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.news-body h3 { font-size: 17px; font-weight: 700; color: var(--dark); line-height: 1.5; margin-bottom: 10px; }
.news-body h3 a:hover { color: var(--primary); }
.news-body p { font-size: 14px; color: var(--text-light); margin-bottom: 14px; }
.news-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-light); }

/* ===== FAQ ===== */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow .3s ease;
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--dark);
  font-size: 16px;
}
.faq-q .arrow { transition: transform .3s ease; color: var(--primary); }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 24px 20px;
  color: var(--text-light);
  font-size: 14px;
}

/* ===== CTA ===== */
.cta {
  background: var(--dark);
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 71, 87, 0.25), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255, 165, 2, 0.2), transparent 40%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
}
.cta p { color: rgba(255, 255, 255, 0.8); font-size: 16px; max-width: 640px; margin: 0 auto 32px; }

/* ===== Page hero (内页) ===== */
.page-hero {
  background: linear-gradient(135deg, #fff0f1 0%, #fef8ef 100%);
  padding: 70px 0 60px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 14px;
}
.page-hero p { color: var(--text-light); max-width: 640px; margin: 0 auto; font-size: 16px; }
.breadcrumb { font-size: 13px; color: var(--text-light); margin-top: 18px; }
.breadcrumb a { color: var(--primary); }

/* ===== Detail ===== */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.detail-article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.detail-article h1 {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--dark);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 16px;
}
.detail-article img { border-radius: var(--radius); margin: 24px 0; }
.detail-article h2 { font-size: 22px; color: var(--dark); margin: 28px 0 14px; font-weight: 700; }
.detail-article h3 { font-size: 18px; color: var(--dark); margin: 22px 0 12px; font-weight: 700; }
.detail-article p { margin-bottom: 16px; color: var(--text); }
.detail-article blockquote {
  border-left: 4px solid var(--primary);
  background: rgba(255, 71, 87, 0.05);
  padding: 14px 20px;
  border-radius: 0 12px 12px 0;
  margin: 20px 0;
  color: var(--text-light);
}
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.side-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.side-card h3 { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.side-link-list li { margin-bottom: 12px; font-size: 14px; }
.side-link-list a { color: var(--text); }
.side-link-list a:hover { color: var(--primary); }
.side-hot li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
}
.side-hot .rank {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 71, 87, 0.1);
  color: var(--primary);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* ===== 列表筛选 ===== */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn {
  padding: 8px 22px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .3s ease;
  color: var(--text);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--gradient); color: #fff; border-color: transparent; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.page-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all .3s ease;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--gradient); color: #fff; border-color: transparent; }

/* ===== 表单 ===== */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 720px;
  margin: 0 auto;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; color: var(--dark); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-family: var(--font);
  transition: border-color .3s ease, box-shadow .3s ease;
  background: #fafbfe;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 71, 87, 0.1);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 50px; }
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.contact-card h3 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.contact-card p { font-size: 13px; color: var(--text-light); }

/* ===== 产品/分类卡片 ===== */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.product-card img { width: 100%; height: 210px; object-fit: cover; }
.product-body { padding: 26px 24px; }
.product-body h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.product-body p { font-size: 14px; color: var(--text-light); margin-bottom: 14px; }
.product-price { font-size: 20px; font-weight: 800; color: var(--primary); margin-bottom: 14px; }
.product-price span { font-size: 13px; color: var(--text-light); font-weight: 400; }

/* ===== 页脚 ===== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer h4 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 18px; }
.footer-brand { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 14px; }
.footer-brand .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-desc { font-size: 14px; line-height: 1.8; }
.footer-links li { margin-bottom: 10px; font-size: 14px; }
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
}

/* ===== 动画 ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.fade-in { animation: fadeIn 1s ease both; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .news-grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual img { height: 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; text-align: center; padding: 12px; }
  .nav-cta { display: none; }
  .hero { padding: 56px 0 60px; }
  .hero-stats { gap: 22px; }
  .topbar-actions { display: none; }
  .features-grid, .services-grid, .news-grid, .products-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .detail-article { padding: 24px; }
  .hero-float-card.card-1 { left: 8px; }
  .hero-float-card.card-2 { right: 8px; }
}
