/* ============================================
   海角 - 动物写真与视频社区 全站样式
   原创设计 | uhLqpp.cn
   ============================================ */

/* === CSS Variables === */
:root {
  --primary: #E8652B;
  --primary-dark: #C44D18;
  --secondary: #1A6B5A;
  --secondary-dark: #124A3E;
  --accent: #F5A623;
  --bg-dark: #0D1117;
  --bg-card: #161B22;
  --bg-light: #F7F8FA;
  --text-main: #E6EDF3;
  --text-secondary: #8B949E;
  --text-dark: #1F2937;
  --text-dark-secondary: #6B7280;
  --border-color: #30363D;
  --border-light: #E5E7EB;
  --gradient-hero: linear-gradient(135deg, #0D1117 0%, #1A2332 50%, #0D1117 100%);
  --gradient-orange: linear-gradient(135deg, #E8652B 0%, #F5A623 100%);
  --gradient-teal: linear-gradient(135deg, #1A6B5A 0%, #2AA88A 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.25);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --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: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
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; }

/* === Layout === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-dark { background: var(--bg-dark); color: var(--text-main); }
.section-alt { background: #F0F2F5; }
.section-teal { background: var(--secondary); color: #fff; }

/* === Header & Navigation === */
.site-header {
  background: var(--bg-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}
.site-logo img { width: 40px; height: 40px; border-radius: 8px; }
.site-logo span { background: var(--gradient-orange); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.main-nav { display: flex; gap: 6px; }
.main-nav a {
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.main-nav a:hover, .main-nav a.active {
  color: #fff;
  background: rgba(232, 101, 43, 0.15);
}

.mobile-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* === Search Bar === */
.search-bar-wrap {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #151B24 100%);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}
.search-bar {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  position: relative;
}
.search-bar input {
  flex: 1;
  padding: 10px 18px;
  border: 2px solid var(--border-color);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}
.search-bar input:focus { border-color: var(--primary); }
.search-bar input::placeholder { color: var(--text-secondary); }
.search-bar button {
  padding: 10px 24px;
  background: var(--gradient-orange);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.search-bar button:hover { opacity: 0.9; }

/* === Hero Banner === */
.hero-banner {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-dark);
}
.hero-banner .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  transition: transform 0.5s ease;
}
.hero-banner:hover .hero-bg { transform: scale(1.03); }
.hero-banner .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,17,23,0.3) 0%, rgba(13,17,23,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
}
.hero-content h1 {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.hero-content h1 em {
  font-style: normal;
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  line-height: 1.8;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary { background: var(--gradient-orange); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,101,43,0.4); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }
.btn-teal { background: var(--gradient-teal); color: #fff; }
.btn-teal:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,107,90,0.4); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* === Section Titles === */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  color: inherit;
}
.section-title h2 em {
  font-style: normal;
  color: var(--primary);
}
.section-dark .section-title h2 em { color: var(--accent); }
.section-title p {
  font-size: 1.05rem;
  color: var(--text-dark-secondary);
  max-width: 600px;
  margin: 0 auto;
}
.section-dark .section-title p { color: var(--text-secondary); }

/* === Video Card Grid === */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.video-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.section-dark .video-card { background: var(--bg-card); }
.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: transform 0.4s ease;
}
.video-card:hover .video-thumb img { transform: scale(1.08); }
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 56px;
  height: 56px;
  background: rgba(232, 101, 43, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.video-play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}
.video-card:hover .video-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;
  font-weight: 500;
}
.video-info { padding: 16px; }
.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;
}
.section-dark .video-info h3 { color: var(--text-main); }
.video-meta {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-dark-secondary);
}
.section-dark .video-meta { color: var(--text-secondary); }
.video-meta span { display: flex; align-items: center; gap: 4px; }
.video-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.video-tags span {
  padding: 2px 10px;
  background: rgba(232,101,43,0.1);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}
.section-dark .video-tags span { background: rgba(232,101,43,0.2); }

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

/* === Expert Cards === */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.expert-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}
.expert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.expert-avatar {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.expert-info { padding: 20px; }
.expert-info h3 { font-size: 1.1rem; margin-bottom: 4px; }
.expert-role { color: var(--primary); font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.expert-desc { font-size: 0.85rem; color: var(--text-dark-secondary); margin-bottom: 12px; }
.expert-btns { display: flex; gap: 8px; justify-content: center; }

/* === FAQ Section === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.section-dark .faq-item { background: var(--bg-card); border-color: var(--border-color); }
.faq-question {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--primary); transition: var(--transition); }
.faq-item.active .faq-question::after { content: '-'; }
.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 0.92rem;
  color: var(--text-dark-secondary);
  line-height: 1.8;
}
.section-dark .faq-answer { color: var(--text-secondary); }
.faq-item.active .faq-answer { 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: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.section-dark .review-card { background: var(--bg-card); border-color: var(--border-color); }
.review-stars { color: var(--accent); font-size: 1rem; margin-bottom: 12px; letter-spacing: 2px; }
.review-text { font-size: 0.92rem; color: var(--text-dark-secondary); margin-bottom: 14px; line-height: 1.7; font-style: italic; }
.section-dark .review-text { color: var(--text-secondary); }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}
.review-author-name { font-weight: 600; font-size: 0.9rem; }
.review-author-date { font-size: 0.8rem; color: var(--text-dark-secondary); }
.section-dark .review-author-date { color: var(--text-secondary); }

/* === Contact & QR === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.contact-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: 12px; }
.contact-card p { font-size: 0.9rem; color: var(--text-dark-secondary); }
.contact-card img { width: 160px; height: 160px; margin: 12px auto; border-radius: var(--radius-sm); }

/* === Share Buttons === */
.share-wrap { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  transition: var(--transition);
}
.share-btn:hover { transform: translateY(-2px); color: #fff; }
.share-wechat { background: #07C160; }
.share-weibo { background: #E6162D; }
.share-douyin { background: #161823; }
.share-bilibili { background: #00A1D6; }

/* === Footer === */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-secondary);
  padding: 48px 0 0;
  border-top: 3px solid var(--primary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .site-logo { margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); display: inline-block; }
.footer-col a { display: block; color: var(--text-secondary); font-size: 0.88rem; padding: 4px 0; transition: var(--transition); }
.footer-col a:hover { color: var(--primary); padding-left: 6px; }
.footer-qr { display: flex; gap: 16px; margin-top: 12px; }
.footer-qr img { width: 100px; height: 100px; border-radius: var(--radius-sm); }
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 18px 0;
  text-align: center;
  font-size: 0.82rem;
}
.footer-bottom a { color: var(--text-secondary); }
.footer-bottom a:hover { color: var(--primary); }

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

/* === Inner Page Hero === */
.inner-hero {
  background: var(--bg-dark);
  padding: 48px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.inner-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  opacity: 0.8;
}
.inner-hero .container { position: relative; z-index: 2; }
.inner-hero h1 { font-size: 2.2rem; margin-bottom: 10px; }
.inner-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.75); }

/* === Content Area === */
.content-area { padding: 40px 0; }
.content-area h2 { font-size: 1.6rem; margin: 32px 0 16px; color: var(--text-dark); }
.content-area h3 { font-size: 1.3rem; margin: 24px 0 12px; color: var(--text-dark); }
.content-area p { margin-bottom: 16px; color: var(--text-dark-secondary); }
.content-area ul { padding-left: 20px; margin-bottom: 16px; }
.content-area ul li { margin-bottom: 8px; color: var(--text-dark-secondary); position: relative; padding-left: 16px; }
.content-area ul li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; }

/* === How-To Guide === */
.howto-steps { max-width: 700px; margin: 0 auto; }
.howto-step {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.howto-step-num {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--gradient-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}
.howto-step-content h3 { font-size: 1.05rem; margin-bottom: 6px; }
.howto-step-content p { font-size: 0.9rem; color: var(--text-dark-secondary); }

/* === Responsive === */
@media (max-width: 768px) {
  .header-inner { height: 56px; }
  .main-nav { display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--bg-dark); flex-direction: column; padding: 12px; border-bottom: 1px solid var(--border-color); }
  .main-nav.show { display: flex; }
  .mobile-toggle { display: block; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 1rem; }
  .hero-banner { min-height: 400px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .video-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .section-title h2 { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .expert-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
}

/* === Lazy Load Placeholder === */
.lazy-img { opacity: 0; transition: opacity 0.5s ease; }
.lazy-img.loaded { opacity: 1; }

/* === Interference Tags (hidden) === */
.dyz-noise { display: none !important; position: absolute; left: -9999px; top: -9999px; width: 0; height: 0; overflow: hidden; opacity: 0; pointer-events: none; z-index: -9999; }

/* === Content Block (Privacy/Terms pages) === */
.content-block h2 {
  color: var(--primary);
  font-size: 1.35rem;
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.content-block h2:first-of-type { margin-top: 0; }
.content-block p {
  color: var(--text-dark-secondary);
  margin-bottom: 16px;
  text-align: justify;
}

/* === Partners Section === */
#partners-section .feature-card {
  border-top: 3px solid var(--accent);
}

/* === Enhanced Mobile Responsiveness === */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .video-card .video-info h3 { font-size: 0.85rem; }
  .video-meta span { font-size: 0.72rem; }
  .video-tags span { font-size: 0.65rem; padding: 2px 6px; }
  .video-thumb .video-play-btn {
    width: 40px;
    height: 40px;
  }
  .hero-banner h1 { font-size: 1.6rem; }
  .hero-banner p { font-size: 0.95rem; }
  .section-title h2 { font-size: 1.4rem; }
  .content-block { padding: 0 10px; }
  .content-block h2 { font-size: 1.15rem; }
}

@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .howto-steps { gap: 16px; }
  .share-wrap { flex-direction: column; align-items: center; }
  .share-btn { width: 100%; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-banner { padding: 80px 0 40px; }
  .hero-banner h1 { font-size: 1.3rem; }
  .section { padding: 40px 0; }
  .breadcrumb-bar { font-size: 0.8rem; }
}

/* === Print Styles === */
@media print {
  .site-header, .site-footer, .dyz-noise, .share-wrap, .mobile-menu-btn { display: none !important; }
  body { color: #000; background: #fff; }
  .section { padding: 20px 0; }
}
