/* ============================================
   黄片 - 动物写真与视频社区 品牌样式表
   域名: 858658.cn
   版本: 1.0
   ============================================ */

/* === 基础重置与变量 === */
:root {
  --brand-primary: #1A5C3A;
  --brand-secondary: #FF6B35;
  --brand-dark: #0D2E1D;
  --brand-light: #E8F5E9;
  --brand-accent: #2E7D52;
  --text-primary: #1a1a1a;
  --text-secondary: #555;
  --text-light: #888;
  --bg-white: #fff;
  --bg-light: #f7faf8;
  --bg-dark: #111;
  --border-color: #e0e0e0;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.16);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all .3s ease;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--brand-secondary); }

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

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

/* === 头部导航 === */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 42px; width: auto; }
.site-logo span {
  font-size: 22px; font-weight: 700; color: var(--brand-primary);
  letter-spacing: 1px;
}

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 15px; color: var(--text-primary); font-weight: 500;
  transition: var(--transition);
}
.main-nav a:hover, .main-nav a.active {
  background: var(--brand-light); color: var(--brand-primary);
}

.mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 24px; color: var(--text-primary); padding: 8px;
}

/* === 搜索框 === */
.search-bar {
  background: var(--brand-light); padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  margin-top: 68px;
}
.search-bar-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 12px;
}
.search-bar input {
  flex: 1; padding: 10px 18px; border: 2px solid var(--border-color);
  border-radius: 25px; font-size: 14px; outline: none;
  transition: var(--transition); background: #fff;
}
.search-bar input:focus { border-color: var(--brand-primary); }
.search-bar button {
  padding: 10px 28px; background: var(--brand-primary); color: #fff;
  border: none; border-radius: 25px; font-size: 14px; cursor: pointer;
  font-weight: 600; transition: var(--transition);
}
.search-bar button:hover { background: var(--brand-accent); }

/* === Banner === */
.hero-banner {
  position: relative; min-height: 520px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-primary) 100%);
}
.hero-banner .banner-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .45;
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  color: #fff; padding: 40px 20px; max-width: 800px;
}
.hero-content h1 {
  font-size: 42px; font-weight: 800; margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3); line-height: 1.3;
}
.hero-content p {
  font-size: 18px; opacity: .92; margin-bottom: 28px;
  line-height: 1.8;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-block; padding: 14px 36px;
  background: var(--brand-secondary); color: #fff;
  border-radius: 30px; font-size: 16px; font-weight: 600;
  transition: var(--transition); border: none; cursor: pointer;
}
.btn-primary:hover { background: #e55a28; transform: translateY(-2px); color: #fff; }
.btn-outline {
  display: inline-block; padding: 14px 36px;
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 30px; font-size: 16px; font-weight: 600;
  transition: var(--transition); cursor: pointer;
}
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; }

/* === 通用区块 === */
.section { padding: 70px 0; }
.section-alt { background: var(--bg-light); }
.section-dark { background: var(--bg-dark); color: #fff; }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-size: 32px; font-weight: 700; color: var(--brand-primary);
  margin-bottom: 12px; position: relative; display: inline-block;
}
.section-dark .section-header h2 { color: #fff; }
.section-header h2::after {
  content: ''; position: absolute; bottom: -8px; left: 50%;
  transform: translateX(-50%); width: 50px; height: 3px;
  background: var(--brand-secondary); border-radius: 2px;
}
.section-header p { color: var(--text-secondary); font-size: 16px; margin-top: 16px; }
.section-dark .section-header p { color: rgba(255,255,255,.7); }

/* === 视频卡片网格 === */
.video-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.video-card {
  border-radius: var(--radius-md); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-sm);
  transition: var(--transition); cursor: pointer;
}
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.video-thumb {
  position: relative; padding-top: 56.25%; overflow: hidden;
  background: #222;
}
.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); }
.video-play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); width: 56px; height: 56px;
  background: rgba(255,107,53,.85); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.video-card:hover .video-play-btn { opacity: 1; }
.video-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-info { padding: 16px; }
.video-info h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; line-height: 1.5; }
.video-meta {
  display: flex; gap: 16px; font-size: 12px; color: var(--text-light);
}
.video-meta span { display: flex; align-items: center; gap: 4px; }
.video-tag {
  display: inline-block; padding: 2px 10px; background: var(--brand-light);
  color: var(--brand-primary); border-radius: 12px; font-size: 12px;
  margin-top: 8px;
}

/* === 分类模块 === */
.category-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.category-card {
  background: #fff; border-radius: var(--radius-md); padding: 32px;
  text-align: center; box-shadow: var(--shadow-sm);
  transition: var(--transition); border: 2px solid transparent;
}
.category-card:hover {
  border-color: var(--brand-primary); box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.category-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  background: var(--brand-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.category-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; color: var(--brand-primary); }
.category-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* === 专家卡片 === */
.expert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.expert-card {
  background: #fff; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition); text-align: center;
  padding: 32px 24px;
}
.expert-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.expert-avatar {
  width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 16px;
  object-fit: cover; border: 3px solid var(--brand-light);
}
.expert-card h3 { font-size: 18px; font-weight: 600; color: var(--brand-primary); margin-bottom: 4px; }
.expert-card .role { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.expert-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.expert-btns { display: flex; gap: 10px; justify-content: center; }
.btn-sm {
  padding: 8px 20px; font-size: 13px; border-radius: 20px;
  border: 1px solid var(--brand-primary); color: var(--brand-primary);
  transition: var(--transition); background: transparent; cursor: pointer;
}
.btn-sm:hover { background: var(--brand-primary); color: #fff; }

/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  margin-bottom: 12px; overflow: hidden;
}
.faq-question {
  padding: 18px 24px; font-weight: 600; font-size: 15px;
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; background: #fff; transition: var(--transition);
}
.faq-question:hover { background: var(--brand-light); }
.faq-question::after { content: '+'; font-size: 20px; color: var(--brand-primary); font-weight: 700; }
.faq-item.active .faq-question::after { content: '-'; }
.faq-answer {
  padding: 0 24px; max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  font-size: 14px; color: var(--text-secondary); line-height: 1.8;
}
.faq-item.active .faq-answer { max-height: 300px; padding: 0 24px 18px; }

/* === 用户评论 === */
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.review-card {
  background: #fff; border-radius: var(--radius-md); padding: 28px;
  box-shadow: var(--shadow-sm); border-left: 4px solid var(--brand-primary);
}
.review-card .stars { color: #FFB800; font-size: 16px; margin-bottom: 12px; }
.review-card blockquote {
  font-size: 14px; color: var(--text-secondary); line-height: 1.8;
  font-style: italic; margin-bottom: 16px;
}
.review-author { display: flex; align-items: center; gap: 12px; }
.review-author .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand-light); display: flex; align-items: center;
  justify-content: center; font-weight: 700; color: var(--brand-primary);
  font-size: 16px;
}
.review-author .name { font-weight: 600; font-size: 14px; }
.review-author .date { font-size: 12px; color: var(--text-light); }

/* === 页脚 === */
.site-footer {
  background: var(--brand-dark); color: rgba(255,255,255,.8);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
}
.footer-brand p { font-size: 14px; line-height: 1.8; margin-top: 16px; opacity: .8; }
.footer-col h4 {
  font-size: 16px; font-weight: 600; color: #fff;
  margin-bottom: 20px; position: relative; padding-bottom: 10px;
}
.footer-col h4::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 30px; height: 2px; background: var(--brand-secondary);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,.7); font-size: 14px; }
.footer-col ul li a:hover { color: var(--brand-secondary); }

.footer-qr { display: flex; gap: 24px; margin-top: 16px; }
.footer-qr-item { text-align: center; }
.footer-qr-item img { width: 110px; height: 110px; border-radius: 8px; margin-bottom: 8px; }
.footer-qr-item span { font-size: 12px; color: rgba(255,255,255,.6); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 40px; padding: 20px 0;
  text-align: center; font-size: 13px; color: rgba(255,255,255,.5);
}

/* === 社交分享 === */
.share-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 20px; font-size: 13px;
  border: 1px solid var(--border-color); color: var(--text-secondary);
  transition: var(--transition); cursor: pointer; background: #fff;
}
.share-btn:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

/* === 面包屑 === */
.breadcrumb {
  padding: 14px 0; font-size: 13px; color: var(--text-light);
  margin-top: 68px;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--brand-primary); }
.breadcrumb span { margin: 0 8px; }

/* === 内页通用 === */
.page-hero {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-primary));
  padding: 100px 0 60px; text-align: center; color: #fff;
  margin-top: 68px;
}
.page-hero h1 { font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.page-hero p { font-size: 16px; opacity: .85; }

.content-section { padding: 50px 0; }
.content-section h2 { font-size: 26px; font-weight: 700; color: var(--brand-primary); margin-bottom: 20px; }
.content-section h3 { font-size: 20px; font-weight: 600; color: var(--brand-dark); margin: 24px 0 12px; }
.content-section p { font-size: 15px; line-height: 1.9; color: var(--text-secondary); margin-bottom: 16px; }

/* === 联系信息 === */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.contact-card {
  background: #fff; border-radius: var(--radius-md); padding: 28px;
  box-shadow: var(--shadow-sm); border-top: 3px solid var(--brand-primary);
}
.contact-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 16px; color: var(--brand-primary); }
.contact-card p { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }

/* === 合作品牌墙 === */
.brand-wall {
  display: flex; flex-wrap: wrap; gap: 24px;
  justify-content: center; align-items: center;
}
.brand-wall-item {
  width: 150px; height: 80px; background: #fff;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; transition: var(--transition);
}
.brand-wall-item:hover { box-shadow: var(--shadow-md); }

/* === How-To 指南 === */
.howto-steps { max-width: 700px; margin: 0 auto; }
.howto-step {
  display: flex; gap: 20px; margin-bottom: 28px; align-items: flex-start;
}
.step-num {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand-primary); color: #fff; display: flex;
  align-items: center; justify-content: center; font-weight: 700;
  font-size: 18px;
}
.step-content h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.step-content p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* === 干扰标签隐藏 === */
.rokezrs1 { position: absolute; width: 0; height: 0; overflow: hidden; opacity: 0; pointer-events: none; }

/* === 响应式 === */
@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .main-nav.active {
    display: flex; flex-direction: column; position: absolute;
    top: 68px; left: 0; right: 0; background: #fff;
    padding: 16px; box-shadow: var(--shadow-md);
  }
  .hero-banner { min-height: 400px; }
  .hero-content h1 { font-size: 28px; }
  .hero-content p { font-size: 15px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .category-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .section-header h2 { font-size: 24px; }
}

@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 24px; }
  .header-inner { height: 56px; }
  .search-bar { margin-top: 56px; }
  .breadcrumb { margin-top: 56px; }
  .page-hero { padding: 80px 0 40px; margin-top: 56px; }
}
