/* ============================================
   免费看片 - 原创样式表
   品牌：免费看片 | 域名：169336.cn
   影视传媒公司 + 视频社区平台
   ============================================ */

/* --- CSS变量定义 --- */
:root {
  --xl-primary: #1A6FEF;
  --xl-primary-dark: #0D47A1;
  --xl-primary-light: #4A90E8;
  --xl-accent: #FF6B35;
  --xl-accent-light: #FF8F5E;
  --xl-bg-light: #F5F7FA;
  --xl-bg-dark: #0B1426;
  --xl-bg-card: #FFFFFF;
  --xl-text-primary: #2C3E50;
  --xl-text-secondary: #7F8C9B;
  --xl-text-light: #B0BEC5;
  --xl-border: #E8ECF1;
  --xl-shadow: 0 4px 20px rgba(26,111,239,0.08);
  --xl-shadow-hover: 0 8px 32px rgba(26,111,239,0.16);
  --xl-radius: 12px;
  --xl-radius-sm: 8px;
  --xl-transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --xl-max-width: 1280px;
  --xl-font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* --- 全局重置 --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--xl-font-family);
  color: var(--xl-text-primary);
  background-color: var(--xl-bg-light);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--xl-accent);
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--xl-text-primary);
}

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

/* --- 顶部导航 --- */
.xl-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--xl-border);
  transition: var(--xl-transition);
}

.xl-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.xl-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--xl-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.xl-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.xl-logo img {
  height: 42px;
  width: auto;
}

.xl-logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--xl-primary-dark);
  letter-spacing: -0.5px;
}

.xl-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.xl-nav a {
  padding: 8px 16px;
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--xl-text-primary);
  border-radius: var(--xl-radius-sm);
  transition: var(--xl-transition);
  white-space: nowrap;
}

.xl-nav a:hover,
.xl-nav a.active {
  color: var(--xl-primary);
  background: rgba(26,111,239,0.06);
}

/* 搜索框 */
.xl-search-bar {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 10px 20px;
  background: var(--xl-bg-light);
  border-bottom: 1px solid var(--xl-border);
}

.xl-search-bar input {
  width: 100%;
  padding: 10px 44px 10px 18px;
  border: 2px solid var(--xl-border);
  border-radius: 24px;
  font-size: 0.938rem;
  font-family: var(--xl-font-family);
  background: #fff;
  color: var(--xl-text-primary);
  transition: var(--xl-transition);
  outline: none;
}

.xl-search-bar input:focus {
  border-color: var(--xl-primary);
  box-shadow: 0 0 0 3px rgba(26,111,239,0.12);
}

.xl-search-bar input::placeholder {
  color: var(--xl-text-light);
}

.xl-search-bar button {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--xl-primary);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--xl-transition);
}

.xl-search-bar button:hover {
  background: var(--xl-primary-dark);
}

/* 移动端菜单按钮 */
.xl-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.xl-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--xl-text-primary);
  margin: 6px 0;
  transition: var(--xl-transition);
}

/* --- Banner区域 --- */
.xl-hero {
  position: relative;
  width: 100%;
  min-height: 520px;
  margin-top: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--xl-bg-dark);
}

.xl-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.xl-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(11,20,38,0.85) 0%, rgba(26,111,239,0.45) 100%);
}

.xl-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 20px;
  max-width: 800px;
}

.xl-hero-content h1 {
  font-size: 2.75rem;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.xl-hero-content h1 span {
  color: var(--xl-accent);
}

.xl-hero-content p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  line-height: 1.8;
}

.xl-hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- 按钮 --- */
.xl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  transition: var(--xl-transition);
  font-family: var(--xl-font-family);
  text-decoration: none;
}

.xl-btn-primary {
  background: var(--xl-primary);
  color: #fff;
}

.xl-btn-primary:hover {
  background: var(--xl-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,111,239,0.35);
}

.xl-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}

.xl-btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: #fff;
}

.xl-btn-accent {
  background: var(--xl-accent);
  color: #fff;
}

.xl-btn-accent:hover {
  background: var(--xl-accent-light);
  color: #fff;
  transform: translateY(-2px);
}

/* --- 区块通用 --- */
.xl-section {
  padding: 72px 0;
}

.xl-section-alt {
  background: #fff;
}

.xl-section-dark {
  background: var(--xl-bg-dark);
  color: #fff;
}

.xl-section-dark h2,
.xl-section-dark h3,
.xl-section-dark h4 {
  color: #fff;
}

.xl-section-dark p {
  color: rgba(255,255,255,0.8);
}

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

.xl-section-header h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.xl-section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--xl-primary), var(--xl-accent));
  border-radius: 2px;
  margin: 12px auto 0;
}

.xl-section-header p {
  font-size: 1.063rem;
  color: var(--xl-text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* --- 视频卡片网格 --- */
.xl-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.xl-video-card {
  background: var(--xl-bg-card);
  border-radius: var(--xl-radius);
  overflow: hidden;
  box-shadow: var(--xl-shadow);
  transition: var(--xl-transition);
  cursor: pointer;
}

.xl-video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--xl-shadow-hover);
}

.xl-video-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
}

.xl-video-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.xl-video-card:hover .xl-video-thumb img {
  transform: scale(1.06);
}

.xl-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 60px;
  height: 60px;
  background: rgba(26,111,239,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--xl-transition);
}

.xl-video-play::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;
}

.xl-video-card:hover .xl-video-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.xl-video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.813rem;
  padding: 2px 8px;
  border-radius: 4px;
}

.xl-video-info {
  padding: 16px;
}

.xl-video-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.xl-video-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.813rem;
  color: var(--xl-text-secondary);
}

.xl-video-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.xl-video-tags {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.xl-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.75rem;
  background: rgba(26,111,239,0.08);
  color: var(--xl-primary);
  border-radius: 12px;
  font-weight: 500;
}

/* --- 模块卡片 --- */
.xl-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.xl-feature-card {
  background: var(--xl-bg-card);
  border-radius: var(--xl-radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--xl-shadow);
  transition: var(--xl-transition);
  border: 1px solid var(--xl-border);
}

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

.xl-feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--xl-primary), var(--xl-primary-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #fff;
}

.xl-feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}

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

/* --- 专家展示 --- */
.xl-expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.xl-expert-card {
  background: var(--xl-bg-card);
  border-radius: var(--xl-radius);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--xl-shadow);
  transition: var(--xl-transition);
}

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

.xl-expert-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--xl-primary-light);
}

.xl-expert-card h3 {
  font-size: 1.063rem;
  margin-bottom: 4px;
}

.xl-expert-role {
  font-size: 0.875rem;
  color: var(--xl-primary);
  font-weight: 500;
  margin-bottom: 10px;
}

.xl-expert-card p {
  font-size: 0.875rem;
  color: var(--xl-text-secondary);
  margin-bottom: 16px;
}

.xl-expert-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.xl-expert-actions a {
  padding: 6px 16px;
  font-size: 0.813rem;
  border-radius: 20px;
  font-weight: 500;
}

/* --- 合作品牌 --- */
.xl-partner-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  align-items: center;
}

.xl-partner-item {
  padding: 16px 24px;
  background: #fff;
  border-radius: var(--xl-radius-sm);
  border: 1px solid var(--xl-border);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--xl-text-secondary);
  transition: var(--xl-transition);
  min-width: 160px;
  text-align: center;
}

.xl-partner-item:hover {
  border-color: var(--xl-primary);
  color: var(--xl-primary);
  box-shadow: var(--xl-shadow);
}

/* --- 用户评论 --- */
.xl-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.xl-review-card {
  background: var(--xl-bg-card);
  border-radius: var(--xl-radius);
  padding: 24px;
  box-shadow: var(--xl-shadow);
  border-left: 4px solid var(--xl-primary);
}

.xl-review-stars {
  color: #F5A623;
  font-size: 1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.xl-review-card blockquote {
  font-size: 0.938rem;
  color: var(--xl-text-primary);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.xl-review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.xl-review-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--xl-primary), var(--xl-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.xl-review-author-info strong {
  font-size: 0.875rem;
  display: block;
}

.xl-review-author-info span {
  font-size: 0.75rem;
  color: var(--xl-text-secondary);
}

/* --- FAQ --- */
.xl-faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.xl-faq-item {
  background: var(--xl-bg-card);
  border-radius: var(--xl-radius-sm);
  margin-bottom: 12px;
  box-shadow: var(--xl-shadow);
  overflow: hidden;
}

.xl-faq-question {
  padding: 18px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--xl-transition);
}

.xl-faq-question:hover {
  color: var(--xl-primary);
}

.xl-faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--xl-primary);
  transition: var(--xl-transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.xl-faq-item.active .xl-faq-question::after {
  content: '-';
}

.xl-faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.xl-faq-item.active .xl-faq-answer {
  padding: 0 24px 18px;
  max-height: 400px;
}

.xl-faq-answer p {
  font-size: 0.938rem;
  color: var(--xl-text-secondary);
  line-height: 1.7;
}

/* --- 底部 --- */
.xl-footer {
  background: var(--xl-bg-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.xl-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.xl-footer-brand img {
  height: 40px;
  margin-bottom: 16px;
}

.xl-footer-brand p {
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
}

.xl-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
}

.xl-footer-links a {
  display: block;
  padding: 4px 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

.xl-footer-links a:hover {
  color: var(--xl-accent);
}

.xl-footer-qr {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.xl-footer-qr img {
  width: 100px;
  height: 100px;
  border-radius: var(--xl-radius-sm);
}

.xl-footer-qr-label {
  font-size: 0.75rem;
  text-align: center;
  margin-top: 6px;
  color: rgba(255,255,255,0.5);
}

.xl-footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.813rem;
  color: rgba(255,255,255,0.4);
}

.xl-footer-bottom a {
  color: rgba(255,255,255,0.5);
}

.xl-footer-bottom a:hover {
  color: var(--xl-accent);
}

/* --- 社交分享 --- */
.xl-share-bar {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 20px 0;
}

.xl-share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  transition: var(--xl-transition);
  cursor: pointer;
}

.xl-share-btn:hover {
  transform: translateY(-3px);
}

.xl-share-wechat { background: #07C160; }
.xl-share-weibo { background: #E6162D; }
.xl-share-douyin { background: #161823; }
.xl-share-bilibili { background: #00A1D6; }

/* --- 面包屑 --- */
.xl-breadcrumb {
  padding: 16px 0;
  font-size: 0.875rem;
  color: var(--xl-text-secondary);
}

.xl-breadcrumb a {
  color: var(--xl-text-secondary);
}

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

.xl-breadcrumb span {
  margin: 0 8px;
  color: var(--xl-text-light);
}

/* --- 内页通用 --- */
.xl-page-header {
  background: linear-gradient(135deg, var(--xl-primary-dark), var(--xl-primary));
  padding: 80px 0 48px;
  margin-top: 68px;
  text-align: center;
  color: #fff;
}

.xl-page-header h1 {
  font-size: 2.25rem;
  color: #fff;
  margin-bottom: 12px;
}

.xl-page-header p {
  font-size: 1.063rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto;
}

.xl-page-content {
  padding: 48px 0;
}

/* --- 内容卡片 --- */
.xl-content-card {
  background: var(--xl-bg-card);
  border-radius: var(--xl-radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--xl-shadow);
}

.xl-content-card h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--xl-border);
}

.xl-content-card h3 {
  font-size: 1.188rem;
  margin-bottom: 12px;
  color: var(--xl-primary-dark);
}

.xl-content-card p {
  margin-bottom: 16px;
  line-height: 1.8;
}

/* --- 话题卡片 --- */
.xl-topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.xl-topic-card {
  background: var(--xl-bg-card);
  border-radius: var(--xl-radius);
  padding: 24px;
  box-shadow: var(--xl-shadow);
  transition: var(--xl-transition);
  border-top: 3px solid var(--xl-primary);
}

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

.xl-topic-card h3 {
  font-size: 1.063rem;
  margin-bottom: 8px;
}

.xl-topic-card p {
  font-size: 0.875rem;
  color: var(--xl-text-secondary);
  line-height: 1.7;
}

.xl-topic-hot {
  display: inline-block;
  background: var(--xl-accent);
  color: #fff;
  font-size: 0.688rem;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-weight: 600;
}

/* --- 统计数字 --- */
.xl-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 32px 0;
}

.xl-stat-item {
  text-align: center;
}

.xl-stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--xl-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.xl-section-dark .xl-stat-num {
  color: var(--xl-accent);
}

.xl-stat-label {
  font-size: 0.875rem;
  color: var(--xl-text-secondary);
}

.xl-section-dark .xl-stat-label {
  color: rgba(255,255,255,0.6);
}

/* --- 联系信息 --- */
.xl-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.xl-contact-item {
  background: var(--xl-bg-card);
  border-radius: var(--xl-radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--xl-shadow);
}

.xl-contact-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--xl-primary), var(--xl-primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
}

/* --- How-To指南 --- */
.xl-howto-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.xl-howto-step {
  background: var(--xl-bg-card);
  border-radius: var(--xl-radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--xl-shadow);
  position: relative;
  counter-increment: step;
}

.xl-howto-step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--xl-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 auto 16px;
}

.xl-howto-step h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.xl-howto-step p {
  font-size: 0.875rem;
  color: var(--xl-text-secondary);
}

/* --- 响应式 --- */
@media (max-width: 1024px) {
  .xl-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .xl-menu-toggle {
    display: block;
  }

  .xl-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-top: 1px solid var(--xl-border);
    z-index: 999;
  }

  .xl-nav.open {
    display: flex;
  }

  .xl-nav a {
    padding: 12px 16px;
    width: 100%;
  }

  .xl-hero {
    min-height: 360px;
  }

  .xl-hero-content h1 {
    font-size: 1.75rem;
  }

  .xl-hero-content p {
    font-size: 0.938rem;
    padding: 0 8px;
  }

  .xl-section {
    padding: 40px 0;
  }

  .xl-section-header h2 {
    font-size: 1.5rem;
  }

  .xl-video-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .xl-feature-grid,
  .xl-expert-grid,
  .xl-review-grid {
    grid-template-columns: 1fr;
  }

  .xl-topic-grid {
    grid-template-columns: 1fr;
  }

  .xl-howto-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .xl-partner-wall {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

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

  .xl-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .xl-stat-item {
    flex: 0 0 45%;
  }

  .xl-stat-num {
    font-size: 1.75rem;
  }

  .xl-page-header {
    padding: 60px 0 36px;
  }

  .xl-page-header h1 {
    font-size: 1.5rem;
  }

  .xl-content-card {
    padding: 20px;
  }

  .xl-search-bar {
    padding: 0 12px;
  }

  .xl-search-bar input {
    font-size: 0.875rem;
  }

  .xl-share-bar {
    gap: 12px;
  }

  .xl-breadcrumb {
    font-size: 0.813rem;
  }

  .xl-footer-qr {
    justify-content: flex-start;
  }

  .xl-video-play {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .xl-hero {
    min-height: 300px;
  }

  .xl-hero-content h1 {
    font-size: 1.25rem;
  }

  .xl-hero-content p {
    font-size: 0.875rem;
  }

  .xl-hero-btns {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .xl-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.875rem;
  }

  .xl-video-grid {
    gap: 16px;
  }

  .xl-section {
    padding: 32px 0;
  }

  .xl-section-header h2 {
    font-size: 1.25rem;
  }

  .xl-section-header p {
    font-size: 0.813rem;
  }

  .xl-stats {
    gap: 16px;
  }

  .xl-stat-num {
    font-size: 1.5rem;
  }

  .xl-stat-label {
    font-size: 0.75rem;
  }

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

  .xl-footer-bottom p {
    font-size: 0.75rem;
  }

  .xl-expert-card {
    padding: 20px;
  }

  .xl-review-card {
    padding: 20px;
  }

  .xl-faq-question {
    font-size: 0.938rem;
    padding: 14px 40px 14px 16px;
  }
}

/* --- 懒加载 --- */
img[data-src] {
  opacity: 0;
  transition: opacity 0.4s ease;
}

img[data-src].loaded {
  opacity: 1;
}

/* --- 动画 --- */
.xl-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.xl-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- 滚动条美化 --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--xl-bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--xl-primary-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--xl-primary);
}
