/* 海角网-海角社区 · 综合视频与社区互动平台
   架构：杂志式主栏 + 右侧社区动态栏（桌面）；移动端上下堆叠
   配色：海洋青 + 沙滩米色，偏明亮专业 */

:root {
  --bg: #f5f0e8;
  --panel: #ffffff;
  --card-bg: #ffffff;
  --border: #e8e2d9;
  --border-strong: #d4cdc2;
  --ocean: #0d5c63;
  --ocean-light: #17a2b8;
  --ocean-soft: rgba(13, 92, 99, 0.12);
  --sand: #c9b896;
  --accent: #0d5c63;
  --accent-hover: #0a484d;
  --text-main: #2c2825;
  --text-sub: #5c564f;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(13, 92, 99, 0.08);
  --shadow-hover: 0 8px 24px rgba(13, 92, 99, 0.14);
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* 顶部：白底导航 + 海角登录入口 */
.hj-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.8);
}
.hj-header-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.hj-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ocean);
}
.hj-logo span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-sub);
}
.hj-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.hj-nav a {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-main);
}
.hj-nav a:hover {
  background: var(--ocean-soft);
  color: var(--accent);
}
.hj-login {
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  background: var(--ocean);
  color: #fff;
}
.hj-login:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* 主容器：主栏 + 社区侧栏 */
.hj-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .hj-main {
    grid-template-columns: 1fr;
    padding: 1.25rem 1rem 1.5rem;
  }
}

/* 主内容区 */
.hj-content { min-width: 0; }

/* 区块标题 */
.hj-sec-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--ocean);
  display: inline-block;
}

/* 简介段落 */
.hj-intro {
  font-size: 0.95rem;
  color: var(--text-sub);
  margin-bottom: 1.75rem;
  line-height: 1.8;
}

/* 视频卡片网格 */
.hj-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.1rem;
}
.hj-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.hj-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.hj-card-img {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
  background: var(--border);
}
.hj-card-body {
  padding: 0.65rem 0.75rem;
}
.hj-card-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hj-card-meta {
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-top: 0.25rem;
}

/* 右侧社区侧栏 */
.hj-sidebar {
  position: sticky;
  top: 5rem;
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
@media (max-width: 900px) {
  .hj-sidebar { position: static; }
}
.hj-sidebar-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ocean);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hj-sidebar-title::before {
  content: "";
  width: 4px;
  height: 1rem;
  background: var(--ocean);
  border-radius: 2px;
}
.hj-topic-list {
  list-style: none;
}
.hj-topic-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.hj-topic-list li:last-child { border-bottom: none; }
.hj-topic-list a:hover { color: var(--ocean); }

/* 列表页：标题 + 筛选条 + 卡片流 */
.hj-page-head {
  margin-bottom: 1.5rem;
}
.hj-page-head h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.hj-page-head .hj-desc {
  font-size: 0.9rem;
  color: var(--text-sub);
}
.hj-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.hj-filter a {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-sub);
}
.hj-filter a:hover,
.hj-filter a.active {
  background: var(--ocean-soft);
  border-color: var(--ocean);
  color: var(--ocean);
}

/* 内容页 */
.hj-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
}
.hj-article h1 {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1rem;
  line-height: 1.4;
}
.hj-article-meta {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-bottom: 1.25rem;
}
.hj-article figure {
  margin: 1.25rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.hj-article figure img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.hj-article figcaption {
  font-size: 0.82rem;
  color: var(--text-sub);
  padding: 0.5rem 0.75rem;
  background: var(--bg);
}
.hj-article .hj-body {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.85;
}
.hj-article .hj-body p {
  margin-bottom: 1rem;
}

/* 页脚 */
.hj-footer {
  margin-top: 2.5rem;
  padding: 1.5rem 1.25rem;
  background: var(--panel);
  border-top: 1px solid var(--border);
}
.hj-footer-in {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-sub);
}
.hj-footer-in a {
  color: var(--ocean);
}
.hj-footer-in a:hover { text-decoration: underline; }
.hj-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.75rem;
}

/* 面包屑 */
.hj-bread {
  font-size: 0.82rem;
  color: var(--text-sub);
  margin-bottom: 1rem;
}
.hj-bread a:hover { color: var(--ocean); }
