/* 玩物社区 - 主样式文件 y6u1ia.cn */
:root {
  --primary: #1a6b3c;
  --primary-dark: #0f4a28;
  --primary-light: #2d9e5a;
  --accent: #f0a500;
  --accent-dark: #c88200;
  --bg-dark: #0d1117;
  --bg-card: #161b22;
  --bg-section: #0f1923;
  --text-primary: #e8eaf0;
  --text-secondary: #9ba3af;
  --text-muted: #6b7280;
  --border: #2d3748;
  --red: #e53e3e;
  --gradient-main: linear-gradient(
    135deg,
    #1a6b3c 0%,
    #0f4a28 50%,
    #0d1117 100%
  );
  --gradient-card: linear-gradient(180deg, #161b22 0%, #0d1117 100%);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 8px 30px rgba(26, 107, 60, 0.3);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

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

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

body {
  font-family:
    "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

/* ===== 顶部公告栏 ===== */
.top-bar {
  background: var(--primary-dark);
  padding: 6px 0;
  font-size: 13px;
  color: #a8d5b5;
  border-bottom: 1px solid rgba(26, 107, 60, 0.3);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-links a {
  color: #a8d5b5;
  margin-left: 16px;
  font-size: 12px;
}
.top-bar-links a:hover {
  color: var(--accent);
}

/* ===== 导航栏 ===== */
header {
  background: rgba(13, 17, 23, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-main);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  border: 2px solid var(--primary-light);
  box-shadow: 0 0 15px rgba(26, 107, 60, 0.4);
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-text span:first-child {
  color: var(--text-primary);
  font-size: 20px;
}
.logo-text span:last-child {
  font-size: 11px;
  color: var(--primary-light);
  font-weight: 400;
  letter-spacing: 1px;
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
nav a {
  color: var(--text-secondary);
  font-size: 14px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-weight: 500;
  white-space: nowrap;
}
nav a:hover,
nav a.active {
  color: var(--text-primary);
  background: rgba(26, 107, 60, 0.2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-login {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary-light);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-login:hover {
  background: var(--primary);
  color: #fff;
}
.btn-join {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}
.btn-join:hover {
  background: var(--primary-light);
  box-shadow: var(--shadow-hover);
}

/* ===== 搜索框 ===== */
.search-bar {
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.search-inner {
  display: flex;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: var(--transition);
}
.search-inner:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 107, 60, 0.15);
}
.search-inner input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 18px;
  color: var(--text-primary);
  font-size: 14px;
}
.search-inner input::placeholder {
  color: var(--text-muted);
}
.search-inner button {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}
.search-inner button:hover {
  background: var(--primary-light);
}

/* ===== 容器 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg-section);
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
}
.breadcrumb-list li:not(:last-child)::after {
  content: '›';
  margin: 0 8px;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-muted);
}
.breadcrumb a:hover {
  color: var(--primary-light);
}
.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 600;
}

/* ===== Hero Banner ===== */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(13, 17, 23, 0.9) 0%,
    rgba(13, 17, 23, 0.4) 60%,
    transparent 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(26, 107, 60, 0.3);
  border: 1px solid var(--primary);
  color: var(--primary-light);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
}
.hero h1 em {
  color: var(--accent);
  font-style: normal;
}
.hero p {
  font-size: 16px;
  color: #ccc;
  margin-bottom: 28px;
  line-height: 1.8;
}
.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  background: var(--primary-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-secondary:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
}
.hero-stat {
  text-align: left;
}
.hero-stat .num {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}
.hero-stat .label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== 区块标题 ===== */
.section {
  padding: 60px 0;
}
.section-alt {
  background: var(--bg-section);
}
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.section-title h2 span {
  color: var(--primary-light);
}
.section-title p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 500px;
  margin: 0 auto;
}
.section-title-line {
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ===== 视频卡片 ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.video-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.video-card:hover .video-thumb img {
  transform: scale(1.05);
}
.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: var(--transition);
}
.video-card:hover .video-play-btn {
  opacity: 1;
}
.play-icon {
  width: 54px;
  height: 54px;
  background: rgba(26, 107, 60, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.8);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}
.video-card:hover .play-icon {
  transform: scale(1);
}
.play-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  margin-left: 3px;
}
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 4px;
}
.video-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.video-info {
  padding: 14px;
}
.video-info h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}
.video-meta .views {
  display: flex;
  align-items: center;
  gap: 4px;
}
.video-meta .likes {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
}

/* ===== 新闻卡片 ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.news-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.news-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.news-card:hover .news-img img {
  transform: scale(1.05);
}
.news-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-cat {
  display: inline-block;
  background: rgba(26, 107, 60, 0.2);
  color: var(--primary-light);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(26, 107, 60, 0.3);
}
.news-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.5;
  color: var(--text-primary);
}
.news-body p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}
.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}
.news-footer a {
  color: var(--primary-light);
  font-size: 13px;
  font-weight: 600;
}
.news-footer a:hover {
  color: var(--accent);
}

/* ===== 专家卡片 ===== */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.expert-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}
.expert-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}
.expert-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 14px;
  overflow: hidden;
  border: 3px solid var(--primary);
  box-shadow: 0 0 20px rgba(26, 107, 60, 0.3);
}
.expert-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.expert-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}
.expert-card .role {
  font-size: 13px;
  color: var(--primary-light);
  margin-bottom: 10px;
}
.expert-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}
.expert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 14px;
}
.expert-tag {
  background: rgba(26, 107, 60, 0.15);
  color: var(--primary-light);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(26, 107, 60, 0.2);
}
.expert-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.btn-sm {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn-sm-primary {
  background: var(--primary);
  color: #fff;
}
.btn-sm-primary:hover {
  background: var(--primary-light);
}
.btn-sm-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-sm-outline:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

/* ===== 功能模块 ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px 20px;
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}
.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(26, 107, 60, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 26px;
  border: 1px solid rgba(26, 107, 60, 0.2);
}
.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== 评价 ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.review-card:hover {
  border-color: var(--primary);
}
.review-stars {
  color: var(--accent);
  font-size: 16px;
  margin-bottom: 10px;
}
.review-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}
.review-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.review-user-info .name {
  font-size: 14px;
  font-weight: 600;
}
.review-user-info .date {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  color: var(--text-primary);
}
.faq-q:hover {
  background: rgba(26, 107, 60, 0.1);
  color: var(--primary-light);
}
.faq-q.open {
  color: var(--primary-light);
  background: rgba(26, 107, 60, 0.1);
}
.faq-q span {
  font-size: 18px;
  transition: transform 0.3s;
}
.faq-q.open span {
  transform: rotate(45deg);
}
.faq-a {
  display: none;
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  border-top: 1px solid var(--border);
}
.faq-a.open {
  display: block;
}

/* ===== 合作品牌 ===== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}
.partner-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  min-height: 64px;
}
.partner-item:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(26, 107, 60, 0.05);
}

/* ===== 联系 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(26, 107, 60, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  border: 1px solid rgba(26, 107, 60, 0.2);
}
.contact-item .label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.contact-item .value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.qr-codes {
  display: flex;
  gap: 20px;
  margin-top: 24px;
}
.qr-item {
  text-align: center;
}
.qr-box {
  width: 100px;
  height: 100px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden;
}
.qr-box svg {
  width: 80px;
  height: 80px;
}
.qr-item p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== 社交分享 ===== */
.share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0;
}
.share-label {
  font-size: 14px;
  color: var(--text-muted);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.share-wechat {
  background: #07c160;
  color: #fff;
}
.share-weibo {
  background: #e6162d;
  color: #fff;
}
.share-douyin {
  background: #000;
  color: #fff;
  border: 1px solid #333;
}
.share-bilibili {
  background: #00a1d6;
  color: #fff;
}
.share-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* ===== 底部 ===== */
footer {
  background: #080d12;
  border-top: 1px solid var(--border);
  padding: 50px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 14px;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-col ul li a:hover {
  color: var(--primary-light);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.footer-bottom a {
  color: var(--text-muted);
}
.footer-bottom a:hover {
  color: var(--primary-light);
}

/* ===== 标签 ===== */
.tag {
  display: inline-block;
  background: rgba(26, 107, 60, 0.15);
  color: var(--primary-light);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(26, 107, 60, 0.2);
  margin: 3px;
}

/* ===== 内页通用 ===== */
.page-hero {
  background: var(--bg-section);
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 30% 50%,
    rgba(26, 107, 60, 0.12) 0%,
    transparent 70%
  );
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  margin-bottom: 10px;
}
.page-hero p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 600px;
}

/* ===== 侧边栏布局 ===== */
.content-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  align-items: start;
}
.sidebar-widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.sidebar-widget h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}
.sidebar-list {
  list-style: none;
}
.sidebar-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.sidebar-list li:last-child {
  border-bottom: none;
}
.sidebar-list li a {
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}
.sidebar-list li a:hover {
  color: var(--primary-light);
}
.sidebar-list li span {
  color: var(--text-muted);
  font-size: 12px;
}

/* ===== 文章详情 ===== */
.article-content {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--border);
}
.article-content h1 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.4;
}
.article-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.article-body {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-secondary);
}
.article-body h2 {
  font-size: 20px;
  color: var(--text-primary);
  margin: 24px 0 12px;
}
.article-body h3 {
  font-size: 17px;
  color: var(--text-primary);
  margin: 20px 0 10px;
}
.article-body p {
  margin-bottom: 16px;
}
.article-body img {
  border-radius: var(--radius-sm);
  margin: 20px 0;
  width: 100%;
}

/* ===== 评论区 ===== */
.comments-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  margin-top: 20px;
}
.comments-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}
.comment-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.comment-item:last-child {
  border-bottom: none;
}
.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.comment-body .user {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.comment-body .text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.comment-body .date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}
.comment-likes {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ===== 直播卡片 ===== */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: blink 1s infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* ===== 统计数字 ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.stat-card:hover {
  border-color: var(--primary);
}
.stat-card .num {
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
}
.stat-card .unit {
  font-size: 14px;
  color: var(--accent);
}
.stat-card .label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}
.page-btn:hover,
.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ===== 手机汉堡菜单 ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

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

@media (max-width: 768px) {
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    z-index: 999;
  }
  nav.open {
    display: flex;
  }
  nav a {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
  }
  .hamburger {
    display: flex;
  }
  .header-inner {
    position: relative;
  }
  .hero {
    min-height: 400px;
  }
  .hero h1 {
    font-size: 26px;
  }
  .hero-stats {
    gap: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .expert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .section {
    padding: 40px 0;
  }
  .header-actions .btn-login {
    display: none;
  }
}

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
  .expert-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .hero-btns {
    flex-direction: column;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-stats {
    flex-wrap: wrap;
  }
}

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

/* ===== 加载动画 ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* ===== 高亮文字 ===== */
.highlight {
  color: var(--primary-light);
  font-weight: 700;
}
.accent {
  color: var(--accent);
}

/* ===== 分隔线 ===== */
.divider {
  height: 1px;
  background: var(--border);
  margin: 30px 0;
}

/* ===== 提示标签 ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}
.badge-green {
  background: rgba(26, 107, 60, 0.2);
  color: var(--primary-light);
  border: 1px solid rgba(26, 107, 60, 0.3);
}
.badge-gold {
  background: rgba(240, 165, 0, 0.15);
  color: var(--accent);
  border: 1px solid rgba(240, 165, 0, 0.2);
}
.badge-red {
  background: rgba(229, 62, 62, 0.15);
  color: #fc8181;
  border: 1px solid rgba(229, 62, 62, 0.2);
}

/* ===== 视频详情页 ===== */
.video-player-wrap {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}
.video-player-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.video-player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}
.big-play-btn {
  width: 80px;
  height: 80px;
  background: rgba(26, 107, 60, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.3s;
}
.big-play-btn:hover {
  transform: scale(1.1);
}
.big-play-btn svg {
  width: 36px;
  height: 36px;
  fill: #fff;
  margin-left: 5px;
}

/* ===== 工具页 ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.tool-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.tool-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.tool-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.tool-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.tool-card p {
  font-size: 13px;
  color: var(--text-secondary);
}
.tool-card .tool-badge {
  margin-top: 12px;
}

/* ===== 表格 ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th {
  background: rgba(26, 107, 60, 0.15);
  color: var(--primary-light);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.data-table tr:hover td {
  background: rgba(26, 107, 60, 0.05);
}

/* ===== 进度条 ===== */
.progress-bar {
  background: var(--border);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
  margin: 6px 0;
}
.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  transition: width 1s ease;
}

/* 玩物社区补充组件：沿用原模板颜色、间距与圆角 */
.logo-icon img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: block;
}
.footer-qrs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.footer-qrs div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.footer-qrs img {
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: 5px;
  padding: 3px;
}
.footer-qrs small {
  font-size: 10px;
  color: var(--text-muted);
}
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}
.video-modal-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  max-width: 680px;
  text-align: center;
}
.video-modal-box {
  width: 700px;
  max-width: 92vw;
  aspect-ratio: 16/9;
  background: #111;
  border-radius: 12px;
  border: 2px solid #293345;
  color: #777;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}
.video-modal-box small {
  font-size: 12px;
  color: #687384;
}
.modal-play {
  font-size: 58px;
  color: var(--primary-light);
}
.qa-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.qa-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: var(--transition);
}
.qa-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.qa-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.qa-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.guide-card .step {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.expert-social {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}
@media (max-width: 768px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .footer-qrs {
    justify-content: flex-start;
  }
  .video-modal-box {
    width: 100%;
  }
}

/* 玩物社区补充组件：沿用原模板颜色、间距与圆角 */
.logo-icon img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: block;
}
.footer-qrs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.footer-qrs div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.footer-qrs img {
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: 5px;
  padding: 3px;
}
.footer-qrs small {
  font-size: 10px;
  color: var(--text-muted);
}
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}
.video-modal-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  max-width: 680px;
  text-align: center;
}
.video-modal-box {
  width: 700px;
  max-width: 92vw;
  aspect-ratio: 16/9;
  background: #111;
  border-radius: 12px;
  border: 2px solid #293345;
  color: #777;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}
.video-modal-box small {
  font-size: 12px;
  color: #687384;
}
.modal-play {
  font-size: 58px;
  color: var(--primary-light);
}
.qa-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.qa-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: var(--transition);
}
.qa-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.qa-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.qa-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.guide-card .step {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.expert-social {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}
@media (max-width: 768px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .footer-qrs {
    justify-content: flex-start;
  }
  .video-modal-box {
    width: 100%;
  }
}

/* 玩物社区补充组件：沿用原模板颜色、间距与圆角 */
.logo-icon img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: block;
}
.footer-qrs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.footer-qrs div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.footer-qrs img {
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: 5px;
  padding: 3px;
}
.footer-qrs small {
  font-size: 10px;
  color: var(--text-muted);
}
.share-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.share-row span {
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 2px;
}
.share-row button {
  background: rgba(26, 107, 60, 0.18);
  border: 1px solid rgba(26, 107, 60, 0.35);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 11px;
  padding: 3px 7px;
}
.share-row button:hover {
  color: #fff;
  background: var(--primary);
}
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}
.video-modal-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  max-width: 680px;
  text-align: center;
}
.video-modal-box {
  width: 700px;
  max-width: 92vw;
  aspect-ratio: 16/9;
  background: #111;
  border-radius: 12px;
  border: 2px solid #293345;
  color: #777;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}
.video-modal-box small {
  font-size: 12px;
  color: #687384;
}
.modal-play {
  font-size: 58px;
  color: var(--primary-light);
}
.qa-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.qa-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: var(--transition);
}
.qa-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.qa-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.qa-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.guide-card .step {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.expert-social {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}
@media (max-width: 768px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .footer-qrs {
    justify-content: flex-start;
  }
  .video-modal-box {
    width: 100%;
  }
}

/* 玩物社区补充组件：沿用原模板颜色、间距与圆角 */
.logo-icon img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: block;
}
.footer-qrs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.footer-qrs div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.footer-qrs img {
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: 5px;
  padding: 3px;
}
.footer-qrs small {
  font-size: 10px;
  color: var(--text-muted);
}
.share-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.share-row span {
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 2px;
}
.share-row button {
  background: rgba(26, 107, 60, 0.18);
  border: 1px solid rgba(26, 107, 60, 0.35);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 11px;
  padding: 3px 7px;
}
.share-row button:hover {
  color: #fff;
  background: var(--primary);
}
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}
.video-modal-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  max-width: 680px;
  text-align: center;
}
.video-modal-box {
  width: 700px;
  max-width: 92vw;
  aspect-ratio: 16/9;
  background: #111;
  border-radius: 12px;
  border: 2px solid #293345;
  color: #777;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}
.video-modal-box small {
  font-size: 12px;
  color: #687384;
}
.modal-play {
  font-size: 58px;
  color: var(--primary-light);
}
.qa-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.qa-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: var(--transition);
}
.qa-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.qa-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.qa-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.guide-card .step {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.expert-social {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}
@media (max-width: 768px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .footer-qrs {
    justify-content: flex-start;
  }
  .video-modal-box {
    width: 100%;
  }
}
/* 玩物社区直播风格刷新 2026 */
:root {
  --primary: #ff4f9a;
  --primary-dark: #7c3aed;
  --primary-light: #ff5fb0;
  --accent: #ffb703;
  --accent-dark: #e88900;
  --bg-dark: #f7f9ff;
  --bg-card: #ffffff;
  --bg-section: #fff0f7;
  --text-primary: #20233a;
  --text-secondary: #59617a;
  --text-muted: #8790a8;
  --border: #e4e8f2;
  --red: #ef476f;
  --gradient-main: linear-gradient(
    135deg,
    #ff4f9a 0%,
    #7c3aed 52%,
    #22d3ee 100%
  );
  --gradient-card: linear-gradient(
    135deg,
    #ffffff 0%,
    #fff3f9 52%,
    #effcff 100%
  );
  --shadow: 0 8px 24px rgba(100, 72, 150, 0.12);
  --shadow-hover: 0 16px 36px rgba(255, 79, 154, 0.22);
}
body {
  background: var(--bg-dark);
  color: var(--text-primary);
}
a {
  color: #d62f83;
}
a:hover {
  color: #6d28d9;
}
::-webkit-scrollbar-track {
  background: #eef2ff;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(#ff4f9a, #7c3aed);
}
.top-bar {
  background: linear-gradient(90deg, #7c3aed, #ec4899 48%, #06b6d4);
  color: #fff;
  border-bottom: none;
}
.top-bar-links a {
  color: rgba(255, 255, 255, 0.9);
}
.top-bar-links a:hover {
  color: #ffe08a;
}
header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e8eaf3;
  box-shadow: 0 4px 18px rgba(89, 68, 130, 0.1);
}
.logo {
  color: var(--text-primary);
}
.logo-icon {
  background: var(--gradient-main);
  border-color: #fff;
  box-shadow:
    0 0 0 4px rgba(255, 79, 154, 0.12),
    0 8px 18px rgba(124, 58, 237, 0.2);
}
.logo-text span:first-child {
  color: var(--text-primary);
}
.logo-text span:last-child {
  color: #d62f83;
}
nav a {
  color: #626b83;
}
nav a:hover,
nav a.active {
  color: #7c3aed;
  background: linear-gradient(135deg, #ffe9f3, #eef7ff);
}
.btn-login {
  border-color: #ff8cbc;
  color: #d62f83;
}
.btn-login:hover {
  background: #ff4f9a;
  color: #fff;
}
.btn-join,
.search-inner button,
.btn-primary {
  background: linear-gradient(135deg, #ff4f9a, #7c3aed);
  box-shadow: 0 8px 18px rgba(214, 47, 131, 0.18);
}
.btn-join:hover,
.search-inner button:hover,
.btn-primary:hover {
  background: linear-gradient(135deg, #ec4899, #2563eb);
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.24);
}
.search-bar {
  background: linear-gradient(90deg, #fff0f7, #eefaff);
  border-bottom-color: #e4e8f2;
}
.search-inner {
  background: #fff;
  border-color: #e5d8ee;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.08);
}
.search-inner:focus-within {
  border-color: #ff72ad;
  box-shadow: 0 0 0 3px rgba(255, 79, 154, 0.13);
}
.search-inner input {
  color: var(--text-primary);
}
.search-inner input::placeholder {
  color: #9aa3b8;
}
.hero {
  background: #fff;
}
.hero-bg {
  filter: saturate(1.1) brightness(0.98);
}
.hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.78) 38%,
    rgba(255, 255, 255, 0.2) 72%,
    rgba(255, 255, 255, 0) 100%
  );
}
.hero h1 {
  color: #20233a;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.55);
}
.hero h1 em {
  color: #ec4899;
}
.hero p {
  color: #4d5872;
}
.hero-badge {
  background: linear-gradient(135deg, #ffe6f2, #e5faff);
  border-color: #ff83b7;
  color: #c0267b;
}
.btn-secondary {
  color: #7c3aed;
  border-color: #c9b6e8;
  background: rgba(255, 255, 255, 0.72);
}
.btn-secondary:hover {
  border-color: #ff4f9a;
  color: #d62f83;
  background: #fff1f7;
}
.hero-stat .num {
  color: #7c3aed;
}
.hero-stat .label {
  color: #6f7890;
}
.section-alt {
  background: linear-gradient(135deg, #fff1f7 0%, #f2f7ff 52%, #effcff 100%);
}
.section-title h2 {
  color: #20233a;
}
.section-title h2 span {
  color: #d62f83;
}
.section-title p {
  color: #64708b;
}
.section-title-line {
  background: linear-gradient(90deg, #ff4f9a, #7c3aed, #22d3ee);
}
.video-card,
.feature-card,
.sidebar-widget,
.article-content,
.tool-card,
.qa-card,
.stat-card {
  background: var(--gradient-card);
  border-color: #e2e6f1;
  box-shadow: 0 6px 18px rgba(87, 75, 145, 0.06);
}
.video-card:hover,
.feature-card:hover,
.tool-card:hover,
.qa-card:hover {
  border-color: #ff7db4;
  box-shadow: var(--shadow-hover);
}
.video-thumb {
  background: linear-gradient(135deg, #e6f9ff, #fff0f7);
}
.video-thumb img,
.news-img img {
  opacity: 1 !important;
}
.video-play-btn {
  background: rgba(48, 22, 88, 0.16);
}
.play-icon {
  background: linear-gradient(135deg, #ff4f9a, #7c3aed, #06b6d4);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.28);
}
.video-duration {
  background: rgba(32, 35, 58, 0.84);
}
.video-tag {
  background: linear-gradient(135deg, #ff4f9a, #7c3aed);
}
.video-info h3,
.news-body h3,
.article-content h1,
.sidebar-widget h4,
.tool-card h3 {
  color: #20233a;
}
.video-info p,
.news-body p,
.article-body,
.tool-card p,
.qa-card p {
  color: #65708a !important;
}
.video-meta {
  color: #8992aa;
}
.video-meta .likes {
  color: #e88900;
}
.feature-icon {
  background: linear-gradient(135deg, #ffe1ef, #e7faff);
  color: #d62f83;
  border-color: #ffd0e3;
}
.page-hero {
  background: linear-gradient(105deg, #fff0f7, #eef7ff 48%, #effcff);
  border-bottom-color: #e4e8f2;
}
.page-hero::before {
  background: radial-gradient(
    ellipse at 30% 50%,
    rgba(255, 79, 154, 0.16) 0%,
    transparent 70%
  );
}
.page-hero p {
  color: #5f6b86;
}
.breadcrumb {
  background: #fff8fc;
  border-bottom-color: #eee3ef;
  color: #8690a6;
}
.breadcrumb a {
  color: #c0267b;
}
.sidebar-widget h4 {
  border-bottom-color: #ece8f2;
}
.sidebar-list li {
  border-bottom-color: #ece8f2;
}
.sidebar-list li a {
  color: #65708a;
}
.sidebar-list li a:hover {
  color: #d62f83;
}
.news-cat,
.badge-green,
.tag {
  background: linear-gradient(135deg, #ffe5f1, #e6faff);
  color: #c0267b;
  border-color: #ffd0e4;
}
.badge-gold {
  background: #fff5d8;
  color: #b86a00;
  border-color: #ffe2a0;
}
.article-meta,
.comment-body .date,
.comment-likes {
  color: #8a94a9;
}
.comment-item {
  border-bottom-color: #ece8f2;
}
footer {
  background: linear-gradient(135deg, #31245e 0%, #56317d 48%, #1f7f91 100%);
  border-top: none;
}
.footer-brand p,
.footer-col ul li a,
.footer-bottom,
.footer-bottom a {
  color: rgba(255, 255, 255, 0.78);
}
.footer-col h4 {
  color: #fff;
}
.footer-brand .logo-text span:first-child,
footer .logo-text span:first-child {
  color: #fff;
}
.footer-brand .logo-text span:last-child,
footer .logo-text span:last-child {
  color: #ffd1e5;
}
.footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.18);
}
img[data-src] {
  opacity: 1 !important;
}
@media (max-width: 768px) {
  nav {
    background: #fff8fc;
    border-top-color: #f0dbea;
  }
}
