

/* ==================== 基础重置 ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #3673FE;
  --primary-hover: #5E94FF;
  --primary-active: #2353D9;
  --primary-light: #EAF1FF;
  --text-1: #202D40;
  --text-2: #636573;
  --text-3: #899099;
  --text-4: #B9BBBF;
  --line: #F0F0F0;
  --line-2: #E5E6EB;
  --bg: #F5F7FA;
  --white: #fff;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-sm: 4px;
  --shadow-1: 0 1px 2px rgba(32,45,64,.04), 0 2px 8px rgba(32,45,64,.04);
  --shadow-2: 0 6px 20px rgba(32,45,64,.10), 0 2px 6px rgba(32,45,64,.06);
  --container: 1562px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }

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

.icon { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: -.125em; }

/* 通用按钮 */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 18px; border-radius: var(--radius-sm);
  background: var(--primary); color: #fff; font-size: 14px;
  transition: background .2s;
}
.btn-primary:hover { background: var(--primary-hover); }

/* ==================== 顶部深色群站条 ==================== */
.topbar {
  height: 36px;
  background: #2B3648;
  color: rgba(255,255,255,.72);
  font-size: 12px;
}
.topbar-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar-left { display: flex; align-items: center; gap: 6px; cursor: pointer; transition: color .2s; }
.topbar-left:hover { color: #fff; }
.topbar-left .arrow { font-size: 10px; transition: transform .2s; }
.topbar-left:hover .arrow { transform: translateY(1px); }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-right a { transition: color .2s; }
.topbar-right a:hover { color: #fff; }
.topbar-right .divider { width: 1px; height: 10px; background: rgba(255,255,255,.2); }

/* ==================== 主导航 ==================== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.02);
}
.header-inner {
  height: 88px;
  display: flex; align-items: center; gap: 40px;
}

/* Logo — image on top, text (CN + EN) on one line below */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.logo-img {
  height: 20px;
  width: auto;
  display: block;
}
.logo-text {
  display: flex;
  flex-direction: row;      /* ← key change: one line */
  align-items: baseline;    /* aligns Chinese baseline with EN small caps */
  gap: 6px;
  line-height: 1.1;
  white-space: nowrap;      /* never wrap */
}
.logo-cn {
  font-size: 12px;
  color: var(--text-1);
  letter-spacing: .5px;
}
.logo-en {
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* 导航项 */
.nav { display: flex; align-items: center; gap: 30px; height: 100%; flex: 1; }
.nav-item {
  position: relative; height: 100%;
  display: flex; align-items: center; gap: 4px;
  font-size: 15px; color: var(--text-1); font-weight: 500;
  white-space: nowrap; transition: color .2s;
}
.nav-item::after {
  content: ''; position: absolute; left: 50%; bottom: 22px;
  width: 0; height: 2px; background: var(--primary); border-radius: 2px;
  transform: translateX(-50%); transition: width .25s;
}
.nav-item:hover { color: var(--primary); }
.nav-item:hover::after { width: 100%; }
.nav-item.active { color: var(--primary); }
.nav-item.active::after { width: 100%; }
.nav-item .arrow { font-size: 10px; color: var(--text-3); transition: transform .2s; }
.nav-item:hover .arrow { transform: rotate(180deg); }

.nav-item.spark { color: #F3781E; font-weight: 600; }
.nav-item.spark::after { background: #F3781E; }

/* 下拉菜单 */
.drop {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 150px; padding: 8px;
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: all .22s ease;
}
.nav-item:hover .drop { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.drop a {
  display: block; padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-2); transition: all .18s;
}
.drop a:hover { background: var(--primary-light); color: var(--primary); }

/* 右侧操作区 */
.header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.search-box {
  display: flex; align-items: center;
  height: 38px; border: 1px solid var(--line-2); border-radius: 19px;
  overflow: hidden; background: #FAFBFC;
  transition: all .22s; width: 300px;
}
.search-box:focus-within {
  border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 3px rgba(54,115,254,.1);
}
.search-select {
  display: flex; align-items: center; gap: 4px;
  padding: 0 12px 0 16px; height: 100%;
  font-size: 13px; color: var(--text-2); cursor: pointer;
  border-right: 1px solid var(--line-2); white-space: nowrap;
}
.search-box input {
  flex: 1; height: 100%; padding: 0 8px 0 12px;
  border: none; outline: none; background: transparent;
  font-size: 13px; color: var(--text-1); min-width: 0;
}
.search-box input::placeholder { color: var(--text-4); }
.search-btn {
  width: 44px; height: 100%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); font-size: 16px; transition: color .2s;
}
.search-btn:hover { color: var(--primary); }

.btn-publish {
  height: 38px; padding: 0 20px; border-radius: var(--radius-sm);
  background: var(--primary); color: #fff; font-size: 14px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s; white-space: nowrap;
}
.btn-publish:hover { background: var(--primary-hover); }

.icon-btn {
  position: relative; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--text-2); font-size: 18px;
  transition: all .2s;
}
.icon-btn:hover { background: #F5F7FA; color: var(--primary); }
.icon-btn .dot {
  position: absolute; top: 9px; right: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #FF4D4F; border: 1.5px solid #fff;
}

.login-box {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-1); white-space: nowrap;
}
.login-box a { transition: color .2s; }
.login-box a:hover { color: var(--primary); }
.login-box .sep { width: 1px; height: 12px; background: var(--line-2); }

/* ==================== Banner 轮播 ==================== */
.banner { position: relative; width: 100%; height: 400px; overflow: hidden; background: #0E1B33; }
.banner-track { display: flex; height: 100%; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.banner-slide {
  position: relative; flex: 0 0 100%; height: 100%;
  display: flex; align-items: center; overflow: hidden;
}

.slide-1 {
  background-image:url("../image/banner/banner-1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide-2 {
  background-image:url("../image/banner/banner-2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide-3 {
  background-image:url("../image/banner/banner-3.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 装饰圆 */
.banner-slide::before,
.banner-slide::after {
  content: ''; position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18) 0%, transparent 68%);
  pointer-events: none;
}
.banner-slide::before { width: 620px; height: 620px; right: -140px; top: -240px; }
.banner-slide::after { width: 380px; height: 380px; right: 180px; bottom: -220px; background: radial-gradient(circle, rgba(255,255,255,.10) 0%, transparent 68%); }

/* 电路纹理 */
.banner-pattern {
  position: absolute; inset: 0; opacity: .16; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to left, #000 0%, transparent 60%);
  -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 60%);
}

.banner-content { position: relative; z-index: 2; padding-left: 8%; max-width: 640px; color: #fff; }
.banner-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 20px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28);
  font-size: 13px; font-weight: 500; backdrop-filter: blur(6px);
}
.banner-title { font-size: 42px; font-weight: 800; line-height: 1.22; letter-spacing: 1px; margin-bottom: 16px; }
.banner-desc { font-size: 15px; line-height: 1.8; color: rgba(255,255,255,.82); margin-bottom: 28px; max-width: 500px; }
.banner-actions { display: flex; gap: 14px; }
.banner-btn {
  height: 44px; padding: 0 28px; border-radius: 22px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 500; transition: all .22s;
}
.banner-btn.primary { background: #fff; color: var(--primary); }
.banner-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.banner-btn.ghost { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.5); color: #fff; }
.banner-btn.ghost:hover { background: rgba(255,255,255,.24); }

/* 轮播箭头 */
.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; z-index: 5;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: all .25s; backdrop-filter: blur(6px);
}
.banner:hover .banner-arrow { opacity: 1; }
.banner-arrow:hover { background: rgba(255,255,255,.3); }
.banner-arrow.prev { left: 28px; }
.banner-arrow.next { right: 28px; }

/* 缩略图导航 */
.banner-thumbs {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; gap: 12px; z-index: 5;
}
.banner-thumb {
  width: 96px; height: 54px; border-radius: 6px; overflow: hidden;
  cursor: pointer; opacity: .55; transition: all .25s;
  border: 2px solid transparent; position: relative;
}
.banner-thumb:hover { opacity: .85; }
.banner-thumb.active { opacity: 1; border-color: #fff; }
.banner-thumb-inner {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #fff; font-weight: 600; text-align: center; line-height: 1.3;
  padding: 4px;
}

/* ==================== 快速导航 + 公告 ==================== */
.quick-wrap { margin-top: -30px; position: relative; z-index: 10; }
.quick-card {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: 0 6px 28px rgba(32,45,64,.10);
  display: flex; overflow: hidden;
}
.quick-left { flex: 1; padding: 20px 28px; display: flex; align-items: flex-start; gap: 20px; min-width: 0; }
.quick-title {
  flex-shrink: 0; font-size: 15px; font-weight: 700; color: var(--text-1);
  padding: 5px 0; display: flex; align-items: center; gap: 6px;
}
.quick-title::before {
  content: ''; width: 3px; height: 15px; border-radius: 2px;
  background: var(--primary);
}
.quick-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.quick-tag {
  padding: 5px 14px; border-radius: 15px; font-size: 13px;
  color: var(--text-2); background: #F6F8FB; transition: all .2s;
  white-space: nowrap;
}
.quick-tag:hover { background: var(--primary-light); color: var(--primary); }

.quick-right {
  flex-shrink: 0; width: 340px; padding: 20px 28px 20px 24px;
  border-left: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; position: relative;
}
.notice-icon { color: #F3781E; font-size: 18px; flex-shrink: 0; }
.notice-body { flex: 1; overflow: hidden; height: 22px; }
.notice-list { transition: transform .5s ease; }
.notice-item { height: 22px; line-height: 22px; font-size: 13px; color: var(--text-2); }
.notice-item a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s; }
.notice-item a:hover { color: var(--primary); }
.notice-more { flex-shrink: 0; font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 2px; }
.notice-more:hover { color: var(--primary); }

/* ==================== 通用区块标题 ==================== */
.section { padding-top: 52px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; gap: 24px; flex-wrap: wrap;
}
.section-head-left { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.section-title { font-size: 22px; font-weight: 700; color: var(--text-1); letter-spacing: .3px; }
.section-more {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 13px; color: var(--text-3); transition: color .2s;
}
.section-more:hover { color: var(--primary); }
.section-more .icon { font-size: 13px; }

/* Tab */
.tabs { display: flex; align-items: center; gap: 26px; }
.tab {
  position: relative; font-size: 15px; color: var(--text-2);
  padding: 4px 0; cursor: pointer; transition: color .2s; font-weight: 500;
}
.tab::after {
  content: ''; position: absolute; left: 50%; bottom: -6px;
  width: 0; height: 2px; background: var(--primary); border-radius: 2px;
  transform: translateX(-50%); transition: width .25s;
}
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); }
.tab.active::after { width: 22px; }

.head-actions { display: flex; align-items: center; gap: 20px; font-size: 13px; color: var(--text-3); }
.head-actions .action {
  display: inline-flex; align-items: center; gap: 4px;
  cursor: pointer; transition: color .2s;
}
.head-actions .action:hover { color: var(--primary); }

/* ==================== 项目卡片网格 ==================== */
.project-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
.p-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  transition: all .28s cubic-bezier(.4,0,.2,1);
}
.p-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: transparent; }

.p-thumb { position: relative; height: 178px; overflow: hidden; }
.p-cover {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; transition: transform .45s ease;
  position: relative;
}
.p-cover::after {
  content: ''; position: absolute; inset: 0; opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
}
.p-card:hover .p-cover { transform: scale(1.07); }

/* Project cover image */
.p-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



/* 简介遮罩 */
.p-desc {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16,24,40,.94) 0%, rgba(16,24,40,.82) 60%, rgba(16,24,40,.45) 100%);
  color: #fff; padding: 16px; font-size: 12.5px; line-height: 1.7;
  opacity: 0; transition: opacity .28s;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.p-desc span { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.p-card:hover .p-desc { opacity: 1; }

.p-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.p-title {
  font-size: 14.5px; font-weight: 600; color: var(--text-1); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 42px;
  transition: color .2s;
}
.p-card:hover .p-title { color: var(--primary); }

.p-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--text-3); }
.p-meta span { display: inline-flex; align-items: center; gap: 3px; }
.p-meta .icon { font-size: 13px; color: #C6C9CE; }

.p-author {
  display: flex; align-items: center; gap: 7px; padding-top: 10px;
  border-top: 1px solid #F7F8FA; font-size: 12.5px; color: var(--text-2);
}
.p-author .avatar {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #fff; font-weight: 600;
}
.p-author .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-author:hover { color: var(--primary); }

/* ==================== 活动专区 ==================== */
.activity-bg 
{
  margin-top: 52px; padding: 44px 0 48px;
  background: linear-gradient(180deg, #F0F4FD 0%, #F7F9FC 60%, var(--bg) 100%);
}
.activity-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.a-card {
  background: #fff; overflow: hidden;
  box-shadow: var(--shadow-1); transition: all .28s; cursor: pointer;
}
.a-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.a-cover {
  position: relative; height: 343px; display: flex; align-items: center;
  justify-content: center; padding: 20px; overflow: hidden;
}
.a-cover::before {
  content: ''; position: absolute; inset: 0; opacity: .2;
  background-image:
    radial-gradient(circle at 18% 30%, rgba(255,255,255,.7) 0%, transparent 42%),
    radial-gradient(circle at 82% 72%, rgba(255,255,255,.5) 0%, transparent 40%);
}

.a-cover-1 {
  background-image:url("../image/activity/activity-1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.a-cover-2 {
  background-image:url("../image/activity/activity-2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.a-cover-3 {
  background-image:url("../image/activity/activity-3.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}



.a-status {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  padding: 3px 10px; border-radius: 12px; font-size: 11.5px; font-weight: 600;
  background: rgba(255,255,255,.92);
}
.a-status.hot { color: #F55352; }
.a-status.end { color: var(--text-3); }

.a-body { padding: 16px 18px 18px; }
.a-title { font-size: 16px; font-weight: 700; color: var(--text-1); margin-bottom: 10px; }
.a-date { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }

/* ==================== 推荐合集 ==================== */
.collection-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.c-card {
  display: flex; gap: 18px; padding: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: all .26s;
}
.c-card:hover { border-color: transparent; box-shadow: var(--shadow-2); transform: translateY(-3px); }
.c-img {
  width: 280px; height: 200px; flex-shrink: 0; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 46px; position: relative; overflow: hidden;
}
.c-img::after {
  content: ''; position: absolute; inset: 0; opacity: .25;
  background-image:
    linear-gradient(rgba(255,255,255,.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.55) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at 30% 30%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 30% 30%, #000, transparent 80%);
}

/* Collection cover image */
.c-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.c-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.c-badge {
  display: inline-flex; align-items: center; padding: 2px 9px; margin-bottom: 8px;
  font-size: 11.5px; font-weight: 600; color: var(--primary);
  background: var(--primary-light); border-radius: 4px; width: fit-content;
}
.c-title {
  font-size: 15.5px; font-weight: 700; color: var(--text-1); line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .2s;
}
.c-card:hover .c-title { color: var(--primary); }
.c-intro {
  font-size: 12.5px; color: var(--text-3); line-height: 1.65; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 10px;
}
.c-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; }
.c-count { color: var(--text-3); }
.c-count b { color: var(--primary); font-weight: 600; }
.c-enter { color: var(--primary); font-weight: 500; display: flex; align-items: center; gap: 2px; }
.c-enter .icon { font-size: 12px; transition: transform .2s; }
.c-card:hover .c-enter .icon { transform: translateX(3px); }

/* ==================== 精选视频 ==================== */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.v-card { cursor: pointer; }
.v-cover {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  font-size: 42px; transition: all .3s;
}
.v-cover::after {
  content: ''; position: absolute; inset: 0; opacity: .2;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 65% 40%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 65% 40%, #000, transparent 78%);
}
.v-card:hover .v-cover { transform: scale(1.03); box-shadow: var(--shadow-2); }

/* Video cover image */
.v-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.v-play {
  position: absolute; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.85);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; padding-left: 3px;
  backdrop-filter: blur(4px); transition: all .25s;
}
.v-card:hover .v-play { background: rgba(255,255,255,.35); transform: scale(1.08); }
.v-title {
  margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--text-1);
  line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .2s;
}
.v-card:hover .v-title { color: var(--primary); }

/* ==================== 开源集市 + 精选文章 ==================== */
.ma-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; }

.market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.m-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: all .26s;
}
.m-card:hover { border-color: transparent; box-shadow: var(--shadow-2); transform: translateY(-4px); }
.m-img {
  height: 132px; display: flex; align-items: center; justify-content: center;
  font-size: 40px; position: relative;
}
.m-img::after {
  content: ''; position: absolute; inset: 0; opacity: .2;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at 30% 30%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 30% 30%, #000, transparent 80%);
}

/* Market cover image */
.m-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.m-body { padding: 12px 14px 14px; }
.m-title {
  font-size: 13.5px; font-weight: 600; color: var(--text-1); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 39px; margin-bottom: 10px; transition: color .2s;
}
.m-card:hover .m-title { color: var(--primary); }
.m-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.m-user { display: flex; align-items: center; gap: 5px; color: var(--text-3); min-width: 0; }
.m-user .avatar {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: #fff; font-weight: 600;
}
.m-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-price { color: #F55352; font-weight: 700; font-size: 14px; flex-shrink: 0; }

/* 文章列表 */
.article-list { display: flex; flex-direction: column; gap: 16px; }
.ar-card {
  display: flex; gap: 14px; padding: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: all .24s;
}
.ar-card:hover { border-color: transparent; box-shadow: var(--shadow-2); }
.ar-img {
  width: 96px; height: 74px; flex-shrink: 0; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  position: relative; overflow: hidden;
}

/* Article cover image */
.ar-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.ar-catalog {
  position: absolute; left: 0; bottom: 0; padding: 1px 7px;
  font-size: 10.5px; color: #fff; background: rgba(16,24,40,.6);
  border-radius: 0 6px 0 6px; backdrop-filter: blur(2px);
}
.ar-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ar-title {
  font-size: 13.5px; font-weight: 600; color: var(--text-1); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .2s;
}
.ar-card:hover .ar-title { color: var(--primary); }
.ar-meta {
  margin-top: auto; padding-top: 8px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px; color: var(--text-3);
}
.ar-author { display: flex; align-items: center; gap: 5px; min-width: 0; }
.ar-author .avatar {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; color: #fff; font-weight: 600;
}
.ar-author span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 90px; }
.ar-stats { display: flex; gap: 10px; flex-shrink: 0; }
.ar-stats span { display: flex; align-items: center; gap: 2px; }

/* ==================== 人气榜单 ==================== */
.rank-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.u-card {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 16px 16px; text-align: center; cursor: pointer;
  transition: all .26s; overflow: hidden;
}
.u-card:hover { border-color: transparent; box-shadow: var(--shadow-2); transform: translateY(-4px); }
.u-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 56px;
  background: linear-gradient(135deg, #EAF1FF, #F5F8FF);
}
.u-avatar-wrap { position: relative; z-index: 1; width: 64px; height: 64px; margin: 0 auto 12px; }
.u-avatar {
  width: 64px; height: 64px; border-radius: 50%; border: 3px solid #fff;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(32,45,64,.12);
}

/* Rank avatar image */
.u-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.u-badge {
  position: absolute; right: -2px; bottom: -2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #FFB84D, #F3781E);
  border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
}


/* Rank badge image */
.u-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}


.u-name {
  position: relative; z-index: 1;
  font-size: 14px; font-weight: 600; color: var(--text-1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 6px;
}
.u-stats {
  font-size: 12px; color: var(--text-3); margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.u-stats b { color: var(--text-1); font-weight: 600; }
.u-stats .sep { color: var(--line-2); }
.u-follow {
  position: relative; z-index: 1;
  height: 30px; border-radius: 15px; width: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 500; color: var(--primary);
  background: var(--primary-light); transition: all .22s;
}
.u-card:hover .u-follow { background: var(--primary); color: #fff; }

/* ==================== 页脚 ==================== */
.footer { margin-top: 64px; background: #2B3648; color: rgba(255,255,255,.6); }
.footer-top { padding: 52px 0 0; display: flex; gap: 56px; }
.footer-brand { width: 260px; flex-shrink: 0; }

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 18px;
}
.footer-logo .logo-img { height: 18px; }
.footer-logo .logo-text { align-items: baseline; gap: 5px; }
.footer-logo .logo-cn { color: rgba(200,200,200,1); font-size: 13px; }
.footer-logo .logo-en { color: rgba(255,255,255,.4); font-size: 9px; }


.footer-brand p { font-size: 12.5px; line-height: 1.9; color: rgba(255,255,255,.45); }

.footer-cols { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.f-col h4 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 18px; }
.f-col li { margin-bottom: 11px; }
.f-col a { font-size: 12.5px; color: rgba(255,255,255,.55); transition: color .2s; }
.f-col a:hover { color: #fff; }

.footer-qr { display: flex; gap: 20px; flex-shrink: 0; }
.qr-item { text-align: center; }
.qr-box {
  width: 84px; height: 84px; border-radius: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin-bottom: 8px;
}
.qr-item span { font-size: 11.5px; color: rgba(255,255,255,.45); }

.footer-divider { height: 1px; background: rgba(255,255,255,.09); margin: 40px 0 28px; }

.footer-sites { display: flex; flex-direction: column; gap: 14px; }
.site-row { display: flex; align-items: flex-start; gap: 24px; }
.site-row h4 { flex-shrink: 0; width: 76px; font-size: 13px; font-weight: 600; color: #fff; }
.site-links { flex: 1; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.site-links a { font-size: 12.5px; color: rgba(255,255,255,.5); transition: color .2s; }
.site-links a:hover { color: #fff; }

.footer-bottom {
  margin-top: 40px; padding: 20px 0 28px;
  border-top: 1px solid rgba(255,255,255,.09);
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px;
  font-size: 12px; color: rgba(255,255,255,.38);
}
.footer-bottom a { color: rgba(255,255,255,.38); transition: color .2s; }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }

/* ==================== 返回顶部 ==================== */
.back-top {
  position: fixed; right: 32px; bottom: 40px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); font-size: 18px;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .3s;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { color: var(--primary); }






/* ==================== 响应式 ==================== */
@media (max-width: 1400px) {
  .header-inner { gap: 28px; }
  .nav { gap: 22px; }
  .search-box { width: 250px; }
}

@media (max-width: 1200px) {
  .container { padding: 0 24px; }
  .project-grid { grid-template-columns: repeat(3, 1fr); }
  .rank-grid { grid-template-columns: repeat(4, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .search-box { width: 210px; }
  .quick-right { width: 280px; }
  .footer-top { flex-wrap: wrap; gap: 36px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .footer-qr { width: 100%; }
  .banner-title { font-size: 36px; }
}

@media (max-width: 992px) {
  .nav { display: none; }
  .header-inner { justify-content: space-between; height: 72px; }
  .search-box { width: 180px; }
  .login-box { display: none; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .activity-list { grid-template-columns: 1fr; }
  .collection-grid { grid-template-columns: 1fr; }
  .ma-layout { grid-template-columns: 1fr; }
  .rank-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-card { flex-direction: column; }
  .quick-right { width: 100%; border-left: none; border-top: 1px solid var(--line); }
  .banner-title { font-size: 30px; }
  .banner-desc { font-size: 14px; }
  .banner-content { padding-left: 6%; max-width: 520px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .topbar-right { display: none; }
  .header-inner { gap: 12px; }
  .logo-text { display: none; }
  .search-box { width: 150px; }
  .btn-publish { padding: 0 14px; }
  .icon-btn { display: none; }
  .banner { height: 340px; }
  .banner-title { font-size: 24px; }
  .banner-desc { display: none; }
  .banner-thumbs { gap: 8px; }
  .banner-thumb { width: 68px; height: 40px; }
  .project-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: repeat(2, 1fr); }
  .rank-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding-top: 36px; }
  .section-title { font-size: 18px; }
  .section-head-left { gap: 18px; }
  .tabs { gap: 16px; }
  .tab { font-size: 14px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-brand { width: 100%; }
  .site-row { flex-direction: column; gap: 8px; }
  .site-row h4 { width: auto; }
  .back-top { right: 16px; bottom: 24px; }
  .c-card { flex-direction: column; }
  .c-img { width: 100%; height: 150px; }
}

@media (max-width: 480px) {
  .market-grid { grid-template-columns: 1fr; }
  .banner { height: 300px; }
  .banner-title { font-size: 21px; }
  .banner-thumbs { display: none; }
}





