/*
   海角网视频社区 - 原创样式表
   域名: dejlr.cn
   主题: 深碳灰 + 烈焰橙 + 钛银
*/

/* === 全局重置与变量 === */
:root {
  --g91-dark: #0d0f12;
  --g91-panel: #161a20;
  --g91-card: #1c2129;
  --g91-border: #2a303a;
  --g91-text: #c8cdd5;
  --g91-muted: #6b7280;
  --g91-orange: #ff4500;
  --g91-orange-light: #ff6a33;
  --g91-silver: #a8b2c1;
  --g91-accent: #00b4d8;
  --g91-green: #10b981;
  --g91-radius: 10px;
  --g91-shadow: 0 4px 24px rgba(0,0,0,0.4);
  --g91-max: 1240px;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--g91-dark);
  color: var(--g91-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--g91-orange); text-decoration: none; transition: color .2s; }
a:hover { color: var(--g91-orange-light); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === 顶部导航 === */
.g91-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(13,15,18,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--g91-border);
  padding: 0 20px;
}
.g91-header-inner {
  max-width: var(--g91-max);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.g91-logo-wrap {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.g91-logo-wrap img { width: 42px; height: 42px; border-radius: 8px; }
.g91-logo-text {
  font-size: 26px; font-weight: 800;
  color: var(--g91-orange);
  letter-spacing: -1px;
}
.g91-logo-text span { color: var(--g91-silver); }
.g91-nav { display: flex; gap: 6px; }
.g91-nav a {
  color: var(--g91-text); padding: 8px 14px;
  border-radius: 6px; font-size: 14px; font-weight: 500;
  transition: all .2s;
}
.g91-nav a:hover, .g91-nav a.active {
  background: var(--g91-orange);
  color: #fff;
}
.g91-menu-btn {
  display: none; background: none; border: 1px solid var(--g91-border);
  color: var(--g91-text); font-size: 22px; padding: 6px 10px;
  border-radius: 6px; cursor: pointer;
}

/* === 搜索栏 === */
.g91-search-bar {
  background: var(--g91-panel);
  border-bottom: 1px solid var(--g91-border);
  padding: 12px 20px;
}
.g91-search-inner {
  max-width: var(--g91-max);
  margin: 0 auto;
  display: flex; gap: 8px;
}
.g91-search-inner input {
  flex: 1; background: var(--g91-card);
  border: 1px solid var(--g91-border);
  color: var(--g91-text); padding: 10px 16px;
  border-radius: var(--g91-radius); font-size: 14px;
  outline: none; transition: border-color .2s;
}
.g91-search-inner input:focus { border-color: var(--g91-orange); }
.g91-search-inner button {
  background: var(--g91-orange); color: #fff;
  border: none; padding: 10px 24px;
  border-radius: var(--g91-radius); font-size: 14px;
  cursor: pointer; font-weight: 600;
  transition: background .2s;
}
.g91-search-inner button:hover { background: var(--g91-orange-light); }

/* === Hero Banner === */
.g91-hero {
  position: relative;
  min-height: 520px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
}
.g91-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.35);
  z-index: 0;
}
.g91-hero-content {
  position: relative; z-index: 1;
  max-width: 720px; padding: 40px 20px;
}
.g91-hero h1 {
  font-size: 48px; font-weight: 900;
  color: #fff; margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(255,69,0,0.3);
}
.g91-hero h1 em {
  font-style: normal; color: var(--g91-orange);
}
.g91-hero p {
  font-size: 18px; color: rgba(255,255,255,0.8);
  margin-bottom: 28px; line-height: 1.8;
}
.g91-hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.g91-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 28px; border-radius: var(--g91-radius);
  font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all .25s; border: none;
}
.g91-btn-primary { background: var(--g91-orange); color: #fff; }
.g91-btn-primary:hover { background: var(--g91-orange-light); color: #fff; transform: translateY(-2px); }
.g91-btn-outline {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}
.g91-btn-outline:hover { border-color: var(--g91-orange); color: var(--g91-orange); }

/* === 滚动公告 === */
.g91-ticker {
  background: var(--g91-panel);
  border-bottom: 1px solid var(--g91-border);
  overflow: hidden; white-space: nowrap; padding: 10px 0;
}
.g91-ticker-inner {
  display: inline-block;
  animation: g91Scroll 40s linear infinite;
}
.g91-ticker span {
  display: inline-block; padding: 0 40px;
  font-size: 13px; color: var(--g91-muted);
}
.g91-ticker span strong { color: var(--g91-orange); font-weight: 600; }
@keyframes g91Scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === 通用区块 === */
.g91-section {
  max-width: var(--g91-max);
  margin: 0 auto;
  padding: 56px 20px;
}
.g91-section-title {
  font-size: 28px; font-weight: 800;
  color: #fff; margin-bottom: 8px;
}
.g91-section-title em { font-style: normal; color: var(--g91-orange); }
.g91-section-desc {
  font-size: 15px; color: var(--g91-muted);
  margin-bottom: 32px;
}
.g91-divider {
  border: none; height: 1px;
  background: linear-gradient(90deg, transparent, var(--g91-border), transparent);
  margin: 0;
}

/* === 视频卡片网格 === */
.g91-grid { display: grid; gap: 20px; }
.g91-grid-4 { grid-template-columns: repeat(4, 1fr); }
.g91-grid-3 { grid-template-columns: repeat(3, 1fr); }
.g91-grid-2 { grid-template-columns: repeat(2, 1fr); }

.g91-vcard {
  background: var(--g91-card);
  border-radius: var(--g91-radius);
  overflow: hidden;
  border: 1px solid var(--g91-border);
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
}
.g91-vcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(255,69,0,0.15);
}
.g91-vcard-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.g91-vcard-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.g91-vcard:hover .g91-vcard-thumb img { transform: scale(1.05); }
.g91-vcard-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4);
  opacity: 0; transition: opacity .25s;
}
.g91-vcard:hover .g91-vcard-play { opacity: 1; }
.g91-vcard-play::after {
  content: '▶';
  width: 56px; height: 56px;
  background: var(--g91-orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
  box-shadow: 0 4px 20px rgba(255,69,0,0.5);
}
.g91-vcard-dur {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.75); color: #fff;
  font-size: 12px; padding: 2px 8px;
  border-radius: 4px;
}
.g91-vcard-body { padding: 14px; }
.g91-vcard-body h3 {
  font-size: 14px; font-weight: 600;
  color: #fff; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.g91-vcard-meta {
  display: flex; gap: 12px;
  font-size: 12px; color: var(--g91-muted);
}
.g91-vcard-meta span { display: flex; align-items: center; gap: 3px; }

/* === 短视频竖卡 === */
.g91-short-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.g91-short-card {
  background: var(--g91-card);
  border-radius: var(--g91-radius);
  overflow: hidden;
  border: 1px solid var(--g91-border);
  transition: transform .25s;
  cursor: pointer;
}
.g91-short-card:hover { transform: translateY(-3px); }
.g91-short-thumb {
  position: relative;
  aspect-ratio: 9/16;
  overflow: hidden;
}
.g91-short-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.g91-short-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0; transition: opacity .25s;
}
.g91-short-card:hover .g91-short-play { opacity: 1; }
.g91-short-play::after {
  content: '▶';
  width: 44px; height: 44px;
  background: var(--g91-orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff;
}
.g91-short-info {
  padding: 10px;
  font-size: 13px; color: #fff;
  font-weight: 500;
}

/* === 专家卡片 === */
.g91-expert-card {
  background: var(--g91-card);
  border: 1px solid var(--g91-border);
  border-radius: var(--g91-radius);
  padding: 24px; text-align: center;
  transition: transform .25s;
}
.g91-expert-card:hover { transform: translateY(-3px); }
.g91-expert-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--g91-orange), var(--g91-accent));
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: #fff; font-weight: 800;
}
.g91-expert-card h4 { color: #fff; font-size: 16px; margin-bottom: 4px; }
.g91-expert-card .g91-expert-role { color: var(--g91-orange); font-size: 13px; margin-bottom: 10px; }
.g91-expert-card p { font-size: 13px; color: var(--g91-muted); margin-bottom: 14px; }
.g91-expert-btns { display: flex; gap: 8px; justify-content: center; }
.g91-btn-sm {
  padding: 6px 14px; font-size: 12px;
  border-radius: 6px; font-weight: 600;
  cursor: pointer; border: none;
}

/* === 品牌墙 === */
.g91-brand-wall {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: center;
}
.g91-brand-item {
  background: var(--g91-card);
  border: 1px solid var(--g91-border);
  border-radius: var(--g91-radius);
  padding: 16px 28px;
  font-size: 14px; font-weight: 600;
  color: var(--g91-silver);
  transition: all .2s;
}
.g91-brand-item:hover {
  border-color: var(--g91-orange);
  color: var(--g91-orange);
}

/* === FAQ手风琴 === */
.g91-faq-item {
  background: var(--g91-card);
  border: 1px solid var(--g91-border);
  border-radius: var(--g91-radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.g91-faq-q {
  padding: 16px 20px;
  font-size: 15px; font-weight: 600;
  color: #fff; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: background .2s;
}
.g91-faq-q:hover { background: rgba(255,69,0,0.08); }
.g91-faq-q::after { content: '+'; font-size: 20px; color: var(--g91-orange); }
.g91-faq-item.open .g91-faq-q::after { content: '−'; }
.g91-faq-a {
  padding: 0 20px;
  max-height: 0; overflow: hidden;
  transition: max-height .3s, padding .3s;
  font-size: 14px; color: var(--g91-muted);
  line-height: 1.8;
}
.g91-faq-item.open .g91-faq-a {
  max-height: 300px;
  padding: 0 20px 16px;
}

/* === 用户评价 === */
.g91-review-card {
  background: var(--g91-card);
  border: 1px solid var(--g91-border);
  border-radius: var(--g91-radius);
  padding: 20px;
}
.g91-review-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.g91-review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--g91-orange);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 16px;
}
.g91-review-name { color: #fff; font-weight: 600; font-size: 14px; }
.g91-review-stars { color: #f59e0b; font-size: 13px; }
.g91-review-card p { font-size: 14px; color: var(--g91-muted); line-height: 1.7; }

/* === HowTo指南 === */
.g91-howto-steps { counter-reset: step; }
.g91-howto-step {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--g91-border);
}
.g91-howto-step:last-child { border-bottom: none; }
.g91-howto-num {
  counter-increment: step;
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--g91-orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 16px;
}
.g91-howto-num::before { content: counter(step); }
.g91-howto-step h4 { color: #fff; font-size: 15px; margin-bottom: 4px; }
.g91-howto-step p { font-size: 13px; color: var(--g91-muted); }

/* === 联系我们 === */
.g91-contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.g91-contact-info {
  background: var(--g91-card);
  border: 1px solid var(--g91-border);
  border-radius: var(--g91-radius);
  padding: 24px;
}
.g91-contact-item {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--g91-border);
  font-size: 14px;
}
.g91-contact-item:last-child { border-bottom: none; }
.g91-contact-item strong { color: #fff; }
.g91-contact-qr {
  display: flex; gap: 20px; justify-content: center;
  align-items: center;
}
.g91-contact-qr figure { text-align: center; }
.g91-contact-qr figcaption {
  font-size: 12px; color: var(--g91-muted);
  margin-top: 8px;
}

/* === 分享按钮 === */
.g91-share { display: flex; gap: 10px; flex-wrap: wrap; }
.g91-share a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: var(--g91-card);
  border: 1px solid var(--g91-border);
  border-radius: 20px;
  font-size: 13px; color: var(--g91-text);
  transition: all .2s;
}
.g91-share a:hover {
  border-color: var(--g91-orange);
  color: var(--g91-orange);
}

/* === 页脚 === */
.g91-footer {
  background: var(--g91-panel);
  border-top: 1px solid var(--g91-border);
  padding: 40px 20px 20px;
}
.g91-footer-inner {
  max-width: var(--g91-max);
  margin: 0 auto;
}
.g91-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 32px;
}
.g91-footer-brand h3 {
  font-size: 22px; color: var(--g91-orange);
  margin-bottom: 10px;
}
.g91-footer-brand h3 span { color: var(--g91-silver); }
.g91-footer-brand p { font-size: 13px; color: var(--g91-muted); }
.g91-footer h4 {
  font-size: 14px; color: #fff;
  margin-bottom: 14px; font-weight: 700;
}
.g91-footer ul li { margin-bottom: 8px; }
.g91-footer ul li a {
  font-size: 13px; color: var(--g91-muted);
  transition: color .2s;
}
.g91-footer ul li a:hover { color: var(--g91-orange); }
.g91-footer-bottom {
  border-top: 1px solid var(--g91-border);
  padding-top: 20px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 12px; color: var(--g91-muted);
}
.g91-update-time { color: var(--g91-orange); }

/* === 干扰标签隐藏 === */
.g91-noise {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
  opacity: 0; pointer-events: none;
}

/* === 面包屑 === */
.g91-breadcrumb {
  max-width: var(--g91-max);
  margin: 0 auto;
  padding: 16px 20px;
  font-size: 13px; color: var(--g91-muted);
}
.g91-breadcrumb a { color: var(--g91-muted); }
.g91-breadcrumb a:hover { color: var(--g91-orange); }
.g91-breadcrumb span { margin: 0 6px; }

/* === 内页通用 === */
.g91-page-hero {
  background: var(--g91-panel);
  border-bottom: 1px solid var(--g91-border);
  padding: 48px 20px;
  text-align: center;
}
.g91-page-hero h1 {
  font-size: 36px; font-weight: 800;
  color: #fff; margin-bottom: 10px;
}
.g91-page-hero p {
  font-size: 16px; color: var(--g91-muted);
  max-width: 600px; margin: 0 auto;
}

/* === AI赋能区块 === */
.g91-ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.g91-ai-card {
  background: var(--g91-card);
  border: 1px solid var(--g91-border);
  border-radius: var(--g91-radius);
  padding: 28px;
  text-align: center;
  transition: transform .25s;
}
.g91-ai-card:hover { transform: translateY(-3px); }
.g91-ai-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--g91-orange), #ff8c00);
  border-radius: 14px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.g91-ai-card h4 { color: #fff; font-size: 16px; margin-bottom: 8px; }
.g91-ai-card p { font-size: 13px; color: var(--g91-muted); }

/* === 社区标签 === */
.g91-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.g91-tab {
  padding: 8px 18px;
  background: var(--g91-card);
  border: 1px solid var(--g91-border);
  border-radius: 20px;
  font-size: 13px; color: var(--g91-text);
  cursor: pointer; transition: all .2s;
}
.g91-tab:hover, .g91-tab.active {
  background: var(--g91-orange);
  border-color: var(--g91-orange);
  color: #fff;
}

/* === MCP服务 === */
.g91-mcp {
  background: var(--g91-card);
  border: 1px solid var(--g91-border);
  border-radius: var(--g91-radius);
  padding: 20px;
  font-family: "Courier New", monospace;
  font-size: 13px; color: var(--g91-green);
}
.g91-mcp-line { margin-bottom: 4px; }
.g91-mcp-line .g91-mcp-cmd { color: var(--g91-orange); }

/* === 响应式 === */
@media (max-width: 1024px) {
  .g91-grid-4 { grid-template-columns: repeat(3, 1fr); }
  .g91-short-grid { grid-template-columns: repeat(4, 1fr); }
  .g91-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .g91-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--g91-dark); border-bottom: 1px solid var(--g91-border); padding: 10px; }
  .g91-nav.open { display: flex; }
  .g91-menu-btn { display: block; }
  .g91-hero h1 { font-size: 32px; }
  .g91-hero { min-height: 400px; }
  .g91-grid-4, .g91-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .g91-short-grid { grid-template-columns: repeat(3, 1fr); }
  .g91-ai-grid { grid-template-columns: 1fr; }
  .g91-contact-grid { grid-template-columns: 1fr; }
  .g91-section-title { font-size: 22px; }
  .g91-footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .g91-grid-4, .g91-grid-3, .g91-grid-2 { grid-template-columns: 1fr; }
  .g91-short-grid { grid-template-columns: repeat(2, 1fr); }
  .g91-hero h1 { font-size: 26px; }
  .g91-section { padding: 36px 16px; }
}
