/* ============================================
   飘窗诱惑 - 原创样式表
   品牌：飘窗诱惑 | huayangjiejie.cn
   配色：深海蓝黑 + 活力橙 + 科技青绿
   ============================================ */

/* CSS Variables */
:root {
  --primary: #1A1F3C;
  --secondary: #FF6B35;
  --accent: #00D4AA;
  --bg-dark: #0D1117;
  --bg-card: #161B2E;
  --text-main: #E8ECF1;
  --text-muted: #8B95A5;
  --text-dark: #2C3E50;
  --border: #2A3050;
  --gradient-1: linear-gradient(135deg, #1A1F3C 0%, #0D1117 100%);
  --gradient-2: linear-gradient(135deg, #FF6B35 0%, #FF8F5E 100%);
  --gradient-3: linear-gradient(135deg, #00D4AA 0%, #00B894 100%);
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-hover: 0 8px 40px rgba(255,107,53,0.2);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--secondary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; font-weight: 700; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 70px 0; }
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 2rem;
  color: var(--text-main);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-2);
  border-radius: 2px;
}
.section-title p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 16px;
}

/* ========== Header / Navigation ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13,17,23,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-wrap img {
  height: 42px;
  width: auto;
}
.logo-wrap span {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 1px;
}
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: var(--text-main);
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--secondary);
  background: rgba(255,107,53,0.1);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========== Search Bar ========== */
.search-bar-wrap {
  background: var(--primary);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-top: 68px;
}
.search-bar {
  display: flex;
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: 40px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.search-bar input {
  flex: 1;
  padding: 12px 24px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar button {
  padding: 12px 28px;
  background: var(--gradient-2);
  border: none;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}
.search-bar button:hover { opacity: 0.9; }

/* ========== Hero Banner ========== */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}
.hero-content h1 {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-content h1 em {
  font-style: normal;
  color: var(--secondary);
}
.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin: 0 auto 28px;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn-primary {
  background: var(--gradient-2);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,107,53,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255,107,53,0.4); color: #fff; }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ========== Breadcrumb ========== */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--secondary); }
.breadcrumb span { margin: 0 8px; }

/* ========== Video Cards ========== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.video-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--secondary);
}
.video-thumb {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
}
.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.video-card:hover .video-thumb img { transform: scale(1.05); }
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%) scale(0.8);
  width: 60px;
  height: 60px;
  background: rgba(255,107,53,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 3;
}
.play-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}
.video-card:hover .play-btn { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}
.video-info { padding: 16px; }
.video-info h3 {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.video-meta span { display: flex; align-items: center; gap: 4px; }
.video-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.video-tags span {
  padding: 2px 10px;
  background: rgba(0,212,170,0.1);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.75rem;
}

/* ========== Feature Grid ========== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--secondary);
  box-shadow: var(--shadow-hover);
}
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--gradient-2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.feature-icon.green { background: var(--gradient-3); }
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-main);
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========== Expert Section ========== */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.expert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
}
.expert-card:hover { border-color: var(--accent); box-shadow: var(--shadow-hover); }
.expert-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--secondary);
}
.expert-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.expert-card .role { color: var(--secondary); font-size: 0.9rem; margin-bottom: 10px; }
.expert-card .desc { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 16px; }
.expert-btns { display: flex; gap: 10px; justify-content: center; }
.expert-btns a {
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
}
.expert-btns .btn-sm-primary { background: var(--secondary); color: #fff; }
.expert-btns .btn-sm-outline { border: 1px solid var(--border); color: var(--text-muted); }
.expert-btns .btn-sm-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ========== Brand Wall ========== */
.brand-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
}
.brand-wall .brand-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 32px;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
}
.brand-wall .brand-item:hover { border-color: var(--secondary); color: var(--secondary); }

/* ========== FAQ ========== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}
.faq-q:hover { color: var(--secondary); }
.faq-q::after { content: '+'; font-size: 1.4rem; color: var(--secondary); transition: var(--transition); }
.faq-item.active .faq-q::after { content: '-'; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}
.faq-item.active .faq-a { max-height: 300px; padding: 0 24px 18px; }

/* ========== Reviews ========== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.review-stars { color: #FFD700; font-size: 0.9rem; margin-bottom: 12px; letter-spacing: 2px; }
.review-text { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 16px; line-height: 1.6; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}
.review-author-info .name { font-size: 0.9rem; font-weight: 600; }
.review-author-info .date { font-size: 0.78rem; color: var(--text-muted); }

/* ========== Contact Section ========== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.contact-card h4 { margin-bottom: 12px; color: var(--secondary); }
.contact-card p { color: var(--text-muted); font-size: 0.9rem; }
.contact-card img { margin: 12px auto 0; max-width: 140px; border-radius: 8px; }

/* ========== How-To Guide ========== */
.howto-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.howto-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  counter-increment: step;
}
.howto-step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gradient-2);
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 16px;
}
.howto-step h4 { margin-bottom: 8px; font-size: 1rem; }
.howto-step p { color: var(--text-muted); font-size: 0.85rem; }

/* ========== Social Share ========== */
.social-share {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.social-share a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition);
}
.social-share a:hover { border-color: var(--secondary); color: var(--secondary); }

/* ========== Footer ========== */
.site-footer {
  background: var(--primary);
  border-top: 1px solid var(--border);
  padding: 50px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo-wrap { margin-bottom: 14px; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; }
.footer-col h4 {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--secondary);
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 4px 0;
}
.footer-col a:hover { color: var(--secondary); }
.footer-qr { display: flex; gap: 16px; margin-top: 12px; }
.footer-qr img { width: 100px; border-radius: 6px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ========== Inner Page Styles ========== */
.page-hero {
  background: var(--gradient-1);
  padding: 100px 0 50px;
  text-align: center;
}
.page-hero h1 { font-size: 2.2rem; margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); font-size: 1rem; }
.content-section { padding: 50px 0; }
.content-section h2 { font-size: 1.6rem; margin-bottom: 20px; color: var(--text-main); }
.content-section p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 16px; line-height: 1.8; }
.content-section h3 { font-size: 1.2rem; margin: 24px 0 12px; color: var(--text-main); }

/* ========== Responsive ========== */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-content h1 { font-size: 2rem; }
}
@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(13,17,23,0.98);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    transform: translateY(-120%);
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .hero { height: 400px; }
  .hero-content h1 { font-size: 1.6rem; }
  .hero-content p { font-size: 0.95rem; }
  .video-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 40px 0; }
  .section-title h2 { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .search-bar { flex-direction: column; border-radius: var(--radius); }
  .search-bar button { border-radius: 0 0 var(--radius) var(--radius); }
  .hero-btns { flex-direction: column; align-items: center; }
}

/* ========== Lazy Load ========== */
img[data-src] { opacity: 0; transition: opacity 0.3s; }
img[data-src].loaded, img:not([data-src]) { opacity: 1; }

/* ========== 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); }
