/* =====================================================================
   追焦 FocusXR H5 全站样式
   设计基调：白底 + 红色强调(#e02e24) + 深色页头页脚，桌面/移动自适应
   ===================================================================== */
:root {
  --red: #e02e24;
  --red-dark: #c2231a;
  --dark: #17181c;
  --dark-2: #1f2127;
  --dark-3: #2a2d34;
  --text: #1a1a1a;
  --text-2: #555;
  --text-3: #999;
  --line: #ececec;
  --bg: #ffffff;
  --bg-gray: #f6f7f9;
  --radius: 6px;
  --container: 1200px;
  --header-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; outline: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.hide { display: none !important; }

/* ===================== 页头 ===================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--dark);
  height: var(--header-h);
}
.site-header .inner {
  max-width: var(--container); margin: 0 auto; padding: 0 20px;
  height: 100%; display: flex; align-items: center; gap: 28px;
}
.logo { display: flex; align-items: baseline; gap: 6px; color: #fff; flex-shrink: 0; }
.logo b { font-size: 22px; letter-spacing: 6px; font-weight: 700; }
.logo span { font-size: 15px; font-weight: 700; }
.logo span i { font-style: italic; color: var(--red); }
.logo small { font-size: 9px; color: #888; letter-spacing: 1px; transform: translateY(-2px); }

.main-nav { display: flex; align-items: center; height: 100%; }
.main-nav a {
  display: flex; align-items: center; height: 100%; white-space: nowrap;
  padding: 0 13px; color: #cfd2d8; font-size: 14px; transition: .2s;
}
.main-nav a:hover { color: #fff; }
.main-nav a.active { background: var(--red); color: #fff; }

.header-search {
  flex: 1; max-width: 240px; min-width: 120px; display: flex; align-items: center;
  background: #2c2e35; border-radius: 20px; padding: 6px 14px;
}
.header-search input {
  flex: 1; background: none; border: none; color: #fff; font-size: 13px; min-width: 0;
}
.header-search input::placeholder { color: #7a7e88; }
.header-search button { color: #aab; font-size: 14px; }

.header-user { display: flex; align-items: center; gap: 14px; margin-left: auto; flex-shrink: 0; }
.header-user .btn-login { color: #cfd2d8; font-size: 14px; }
.header-user .btn-login:hover { color: #fff; }
.header-user .avatar {
  width: 34px; height: 34px; border-radius: 50%; overflow: hidden;
  background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.header-user .avatar img { width: 100%; height: 100%; object-fit: cover; }

/* 移动端菜单按钮 & 抽屉 */
.btn-menu { display: none; color: #fff; font-size: 20px; padding: 4px 8px; }
.mobile-mask { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.5); z-index: 98; }
.mobile-nav {
  position: fixed; top: var(--header-h); right: -260px; width: 260px;
  height: calc(100% - var(--header-h));
  background: var(--dark); z-index: 99; transition: .25s; padding: 10px 0;
}
.mobile-nav.open { right: 0; }
.mobile-nav a { display: block; color: #cfd2d8; padding: 14px 26px; font-size: 15px; border-bottom: 1px solid #26282e; }
.mobile-nav a.active { color: var(--red); }

/* ===================== 页脚 ===================== */
.site-footer { background: var(--dark-2); color: #8b8f99; margin-top: 60px; }
.site-footer .top {
  max-width: var(--container); margin: 0 auto; padding: 44px 20px 30px;
  display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between;
}
.site-footer .brand { max-width: 300px; }
.site-footer .brand .logo { margin-bottom: 14px; }
.site-footer .brand p { font-size: 13px; line-height: 1.9; }
.site-footer h4 { color: #d5d8de; font-size: 15px; margin-bottom: 16px; font-weight: 600; }
.site-footer .cols { display: flex; gap: 70px; }
.site-footer .cols ul { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 30px; }
.site-footer .cols a { font-size: 13px; }
.site-footer .social { display: flex; gap: 12px; margin-top: 18px; }
.site-footer .social a {
  width: 36px; height: 36px; border-radius: 50%; background: #34363e; color: #a9adb6;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.site-footer .social a:hover { background: var(--red); color: #fff; }
.site-footer .links-wrap { width: 100%; }
.site-footer .friend-links { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 13px; }
.site-footer .copyright {
  border-top: 1px solid #2c2e35; text-align: center; padding: 16px 20px;
  font-size: 12px; color: #6a6e78;
}

/* ===================== Hero 轮播区 ===================== */
.hero { background: var(--dark); padding: 10px 0 0; }
.hero .inner {
  max-width: var(--container); margin: 0 auto; padding: 26px 20px 0;
  display: grid; grid-template-columns: 1fr 320px; gap: 14px;
}
.hero-main { position: relative; overflow: hidden; height: 400px; }
.hero-main .slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s;
  background-size: cover; background-position: center; cursor: pointer;
}
.hero-main .slide.active { opacity: 1; }
.hero-main .slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.75));
}
.hero-main .cap {
  position: absolute; left: 28px; bottom: 30px; right: 28px; z-index: 2; color: #fff;
}
.hero-main .cap h2 { font-size: 24px; line-height: 1.5; margin-bottom: 8px; }
.hero-main .cap p { font-size: 13px; color: #d8dbe2; }
.hero-dots { position: absolute; right: 28px; bottom: 14px; z-index: 3; display: flex; gap: 8px; }
.hero-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; }
.hero-dots i.on { background: #fff; }
.hero-side { display: flex; flex-direction: column; gap: 14px; }
.hero-side .card {
  flex: 1; position: relative; overflow: hidden; cursor: pointer; min-height: 190px;
  background-size: cover; background-position: center;
}
.hero-side .card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.1) 20%, rgba(0,0,0,.8));
}
.hero-side .card .tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--red); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 2px;
}
.hero-side .card h3 {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
  color: #fff; font-size: 15px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ===================== 区块标题 ===================== */
.section { margin-top: 46px; }
.section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.section-head .mark { color: var(--red); font-size: 12px; }
.section-head h2 { font-size: 20px; font-weight: 700; }
.section-head .en { color: #c2c5cc; font-size: 12px; }
.section-head .more { margin-left: auto; color: var(--text-3); font-size: 13px; }
.section-head .more:hover { color: var(--red); }

/* 栏目筛选 Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 26px; padding: 10px 0 16px; }
.tabs a { color: var(--text-2); font-size: 14px; padding-bottom: 6px; border-bottom: 2px solid transparent; }
.tabs a.active { color: var(--text); font-weight: 600; border-color: var(--red); }

/* 广告位 */
.ad-slot {
  margin-top: 26px; background: var(--bg-gray); border: 1px dashed #dfe2e8;
  height: 90px; display: flex; align-items: center; justify-content: center;
  color: #b9bdc6; font-size: 14px; letter-spacing: 4px;
}

/* ===================== 两栏布局 ===================== */
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 34px; margin-top: 10px; }

/* 列表卡片（大图左） */
.news-item {
  display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line);
}
.news-item .thumb {
  position: relative; width: 220px; height: 132px; flex-shrink: 0;
  border-radius: var(--radius); overflow: hidden; background: #e9ebef;
}
.news-item .thumb img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.news-item:hover .thumb img { transform: scale(1.05); }
.news-item .thumb .badge {
  position: absolute; top: 0; left: 0; background: var(--red); color: #fff;
  font-size: 11px; padding: 2px 8px; border-radius: 0 0 6px 0;
}
.news-item .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.news-item .info h3 {
  font-size: 17px; line-height: 1.5; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-item .info .desc {
  color: var(--text-3); font-size: 13px; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-item .meta {
  margin-top: auto; display: flex; align-items: center; gap: 16px;
  color: var(--text-3); font-size: 12px; flex-wrap: wrap;
}
.news-item .meta .tag { color: var(--red); }

/* 查看更多按钮 */
.btn-more {
  display: block; text-align: center; padding: 12px; margin-top: 24px;
  background: var(--bg-gray); color: var(--text-3); font-size: 13px; border-radius: var(--radius);
}
.btn-more:hover { background: var(--red); color: #fff; }

/* ===================== 右侧栏 ===================== */
.side-section { margin-bottom: 34px; }
.side-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.side-list li:last-child { border-bottom: none; }
.side-list .txt { flex: 1; min-width: 0; }
.side-list .txt h4 {
  font-size: 13px; font-weight: 500; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.side-list .txt p { color: var(--text-3); font-size: 12px; margin-top: 4px; }
.side-list .img { width: 64px; height: 48px; border-radius: 4px; object-fit: cover; flex-shrink: 0; background: #e9ebef; }

.qr-card {
  background: linear-gradient(180deg, #e02e24 0%, #c2231a 100%);
  border-radius: var(--radius); padding: 26px 20px; text-align: center; color: #fff;
}
.qr-card h3 { font-size: 19px; margin-bottom: 4px; }
.qr-card p { font-size: 13px; opacity: .85; }
.qr-card .qr {
  width: 130px; height: 130px; margin: 16px auto 0; background: #fff; border-radius: 4px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.qr-card .qr svg { width: 108px; height: 108px; }

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

.card-media {
  position: relative; border-radius: var(--radius); overflow: hidden; background: #e9ebef; cursor: pointer;
}
.card-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: .3s; }
.card-media:hover img { transform: scale(1.05); }
.card-media .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.card-media .play i {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.45);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px;
  border: 2px solid rgba(255,255,255,.8); padding-left: 4px;
}
.card-media .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.75));
  color: #fff; font-size: 13px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-media .duration {
  position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.6);
  color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 3px;
}

/* 产品卡 */
.product-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: .25s; }
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.product-card .img { background: #fff; padding: 10px; }
.product-card .img img { width: 100%; aspect-ratio: 4/3; object-fit: contain; }
.product-card .body { padding: 12px 14px 16px; }
.product-card .body h3 {
  font-size: 14px; font-weight: 500; line-height: 1.55; height: 44px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .price { margin-top: 10px; color: var(--red); font-weight: 700; }
.product-card .price em { font-style: normal; font-size: 12px; font-weight: 400; color: var(--text-3); margin-right: 6px; }
.product-card .price b { font-size: 19px; }
.product-card .price small { font-size: 12px; font-weight: 400; }

/* 人物专访布局：左大右小 */
.interview-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.interview-grid .big .card-media { height: 100%; min-height: 300px; }
.interview-grid .big .card-media img { height: 100%; aspect-ratio: auto; }
.interview-grid .small-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.interview-grid .small-grid .card-media img { aspect-ratio: 16/9; }

/* ===================== 内页 Banner ===================== */
.page-hero {
  background: var(--dark) url("../img/cover-xr.jpg") center/cover no-repeat;
  position: relative; color: #fff;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,22,.9), rgba(10,14,22,.55)); }
.page-hero .inner {
  position: relative; max-width: var(--container); margin: 0 auto; padding: 64px 20px;
}
.page-hero h1 { font-size: 30px; margin-bottom: 8px; }
.page-hero p { color: #c3c7d1; font-size: 14px; }
.page-hero .inner { display: flex; flex-direction: column; }

/* ===================== 详情页 ===================== */
.detail-wrap { padding: 30px 0 10px; }
.detail-main h1 { font-size: 26px; line-height: 1.5; margin: 6px 0 14px; }
.detail-meta { display: flex; align-items: center; gap: 18px; color: var(--text-3); font-size: 13px; padding-bottom: 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.detail-meta .author { display: flex; align-items: center; gap: 8px; }
.detail-meta .author .ava {
  width: 30px; height: 30px; border-radius: 50%; background: var(--dark-3); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.detail-content { padding: 24px 0; font-size: 16px; line-height: 1.9; color: #2b2b2b; }
.detail-content p { margin-bottom: 18px; }
.detail-content img { border-radius: var(--radius); margin: 10px auto; }
.detail-content h2, .detail-content h3 { margin: 26px 0 12px; font-size: 19px; }
.detail-content blockquote {
  border-left: 3px solid var(--red); background: var(--bg-gray);
  padding: 12px 16px; color: var(--text-2); margin-bottom: 18px; border-radius: 0 var(--radius) var(--radius) 0;
}
.detail-tags { display: flex; gap: 10px; flex-wrap: wrap; padding: 6px 0 22px; }
.detail-tags a { font-size: 12px; color: var(--text-3); background: var(--bg-gray); padding: 4px 12px; border-radius: 20px; }
.detail-tags a:hover { color: var(--red); }

.detail-nav { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.detail-nav a { color: var(--text-2); font-size: 14px; flex: 1; min-width: 0; }
.detail-nav a.next { text-align: right; }
.detail-nav a span { color: var(--text-3); display: block; font-size: 12px; }
.detail-nav a:hover { color: var(--red); }
.detail-nav a b { font-weight: 500; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* 相关文章 */
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 14px; }
.related-grid .card-media img { aspect-ratio: 16/9; }
.related-grid .card-media .cap { position: static; background: none; color: var(--text); font-size: 13px; padding: 10px 2px 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===================== 评论 ===================== */
.comment-box { margin-top: 40px; }
.comment-box h3 { font-size: 18px; margin-bottom: 16px; }
.comment-form { background: var(--bg-gray); border-radius: var(--radius); padding: 14px; }
.comment-form textarea {
  width: 100%; border: none; background: none; resize: none; height: 70px; font-size: 14px;
}
.comment-form .foot { display: flex; align-items: center; justify-content: space-between; }
.comment-form .foot span { color: var(--text-3); font-size: 12px; }
.comment-form .foot button {
  background: var(--red); color: #fff; padding: 7px 22px; border-radius: 4px; font-size: 13px;
}
.comment-form .foot button:disabled { background: #d9d9d9; }
.comment-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-item .ava {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #4b6cb7, #182848); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.comment-item .ava.c1 { background: linear-gradient(135deg,#f5576c,#f093fb); }
.comment-item .ava.c2 { background: linear-gradient(135deg,#43cea2,#185a9d); }
.comment-item .ava.c3 { background: linear-gradient(135deg,#f7971e,#ffd200); }
.comment-item .body { flex: 1; min-width: 0; }
.comment-item .name { color: var(--text-3); font-size: 13px; }
.comment-item .name b { color: var(--text); font-weight: 600; margin-right: 8px; }
.comment-item .txt { font-size: 14px; margin-top: 4px; line-height: 1.7; }
.comment-item .foot { display: flex; gap: 20px; margin-top: 6px; color: var(--text-3); font-size: 12px; }
.comment-item .foot button { color: var(--text-3); font-size: 12px; }
.comment-item .foot button:hover, .comment-item .foot button.liked { color: var(--red); }
.comment-empty { text-align: center; color: var(--text-3); padding: 30px 0; font-size: 13px; }

/* ===================== 视频详情 ===================== */
.video-box { background: #000; border-radius: var(--radius); overflow: hidden; }
.video-box video { width: 100%; max-height: 520px; display: block; background: #000; }

/* ===================== 产品详情 ===================== */
.product-head { display: grid; grid-template-columns: 420px 1fr; gap: 40px; padding: 34px 0 10px; }
.product-head .img { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.product-head .img img { width: 100%; object-fit: contain; aspect-ratio: 1; }
.product-head h1 { font-size: 24px; line-height: 1.55; margin-bottom: 14px; }
.product-head .sub { color: var(--text-3); font-size: 14px; margin-bottom: 20px; }
.product-head .price { color: var(--red); font-weight: 700; margin-bottom: 24px; }
.product-head .price em { font-style: normal; font-size: 14px; font-weight: 400; margin-right: 8px; }
.product-head .price b { font-size: 30px; }
.product-head .price small { font-size: 14px; font-weight: 400; }
.product-head .attrs { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 10px; font-size: 14px; }
.product-head .attrs .row { display: flex; }
.product-head .attrs .k { color: var(--text-3); width: 80px; flex-shrink: 0; }
.product-actions { display: flex; gap: 14px; margin-top: 24px; }
.product-actions .btn {
  padding: 11px 30px; border-radius: 4px; font-size: 14px; border: 1px solid var(--line); color: var(--text-2);
}
.product-actions .btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.product-actions .btn.primary:hover { background: var(--red-dark); }
.product-actions .btn.fav.liked, .product-actions .btn.fav:hover { color: var(--red); border-color: var(--red); }

/* ===================== 登录页 ===================== */
.auth-page { background: var(--bg-gray); min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-card {
  width: 100%; max-width: 400px; background: #fff; border-radius: 10px; padding: 34px 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,.06); position: relative;
}
.auth-card h2 { font-size: 22px; margin-bottom: 6px; }
.auth-card .tip { color: var(--text-3); font-size: 13px; margin-bottom: 26px; }
.auth-card .tip a { color: var(--red); }
.auth-close { position: absolute; top: 16px; right: 18px; color: #c3c6cc; font-size: 18px; }
.field { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 12px 2px; }
.field + .field { margin-top: 4px; }
.field .pre { color: var(--text-2); font-size: 14px; flex-shrink: 0; }
.field .sep { width: 1px; height: 16px; background: var(--line); }
.field input { flex: 1; border: none; font-size: 15px; min-width: 0; }
.field .code-btn { color: var(--red); font-size: 13px; flex-shrink: 0; }
.field .code-btn:disabled { color: #bbb; }
.field .eye { color: #bbb; font-size: 14px; }
.form-err { color: var(--red); font-size: 12px; min-height: 20px; padding-top: 8px; }
.form-ops { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin: 4px 0 18px; }
.form-ops a { color: var(--text-3); }
.form-ops a:hover { color: var(--red); }
.btn-submit {
  width: 100%; background: var(--red); color: #fff; font-size: 15px;
  padding: 12px; border-radius: 6px; letter-spacing: 6px;
}
.btn-submit:disabled { background: #d9d9d9; }
.other-login { text-align: center; margin-top: 26px; color: var(--text-3); font-size: 12px; }
.other-login .icons { display: flex; justify-content: center; gap: 18px; margin-top: 12px; }
.other-login .icons a {
  width: 40px; height: 40px; border-radius: 50%; background: #eef0f3; color: #9aa0aa;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.agreement { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 22px; }
.agreement a { color: var(--red); }
.auth-tabs { display: flex; gap: 24px; margin-bottom: 20px; }
.auth-tabs a { color: var(--text-3); font-size: 15px; padding-bottom: 6px; }
.auth-tabs a.active { color: var(--text); font-weight: 700; border-bottom: 2px solid var(--red); }

/* 注册成功 */
.reg-success { text-align: center; }
.reg-success .ok { font-size: 46px; color: #26bf68; margin: 10px 0; }
.reg-success h2 { margin-bottom: 4px; }
.reg-success .tip { margin-bottom: 22px; }
.reg-success .avatar-edit { margin: 6px auto 4px; width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(135deg,#4b6cb7,#182848); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.reg-success .avatar-tip { color: var(--text-3); font-size: 12px; margin-bottom: 20px; }
.reg-success .nick { background: var(--bg-gray); border-radius: 4px; padding: 10px 14px; display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 20px; }
.reg-success .nick span { color: var(--text-3); }

/* ===================== 个人中心 ===================== */
.mine-layout { display: grid; grid-template-columns: 220px 1fr; gap: 26px; padding: 30px 0; }
.mine-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: fit-content; }
.mine-side .user { padding: 24px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.mine-side .user .ava {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px;
  background: linear-gradient(135deg,#4b6cb7,#182848); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 24px; overflow: hidden;
}
.mine-side .user .ava img { width: 100%; height: 100%; object-fit: cover; }
.mine-side .user b { font-size: 15px; }
.mine-side .user p { color: var(--text-3); font-size: 12px; margin-top: 2px; }
.mine-side nav a {
  display: block; padding: 13px 24px; font-size: 14px; color: var(--text-2);
  border-left: 3px solid transparent;
}
.mine-side nav a.active { color: var(--red); border-color: var(--red); background: #fdf5f4; }
.mine-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px; min-height: 480px; }
.mine-tabs { display: flex; gap: 30px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.mine-tabs a { padding: 10px 2px; font-size: 15px; color: var(--text-2); border-bottom: 2px solid transparent; }
.mine-tabs a.active { color: var(--text); font-weight: 600; border-color: var(--red); }

.mine-form { max-width: 520px; }
.mine-form .row { display: flex; align-items: flex-start; margin-bottom: 20px; }
.mine-form .row .k { width: 80px; color: var(--text-2); font-size: 14px; padding-top: 9px; flex-shrink: 0; }
.mine-form .row .v { flex: 1; }
.mine-form input[type=text], .mine-form input[type=password], .mine-form textarea, .mine-form select {
  width: 100%; border: 1px solid var(--line); border-radius: 4px; padding: 9px 12px; font-size: 14px; background: var(--bg-gray);
}
.mine-form textarea { height: 90px; resize: none; }
.mine-form .radio-group { display: flex; gap: 26px; padding-top: 9px; }
.mine-form .radio-group label { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.mine-form .ava-row { display: flex; align-items: center; gap: 16px; }
.mine-form .ava-row .ava {
  width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg,#4b6cb7,#182848); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.mine-form .ava-row .ava img { width: 100%; height: 100%; object-fit: cover; }
.mine-form .ava-row .hint { color: var(--text-3); font-size: 12px; }
.mine-form .save {
  margin-left: 80px; background: var(--red); color: #fff; border-radius: 4px;
  padding: 11px 0; width: 220px; font-size: 15px; letter-spacing: 4px;
}
.mine-form .count { text-align: right; color: var(--text-3); font-size: 12px; margin-top: 4px; }

.security-list .item {
  display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line);
}
.security-list .icon {
  width: 42px; height: 42px; border-radius: 50%; background: var(--bg-gray); color: var(--red);
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.security-list .info { flex: 1; }
.security-list .info b { font-size: 15px; display: block; }
.security-list .info span { color: var(--text-3); font-size: 12px; }
.security-list .act { color: var(--red); font-size: 13px; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: #fff; border-radius: 10px; width: 100%; max-width: 380px; padding: 26px 26px 24px; position: relative; }
.modal h3 { font-size: 18px; margin-bottom: 4px; }
.modal .sub { color: var(--text-3); font-size: 12px; margin-bottom: 18px; }
.modal .close { position: absolute; top: 14px; right: 16px; color: #bbb; font-size: 18px; }
.modal .field { border-bottom: 1px solid var(--line); }
.modal .btn-submit { margin-top: 20px; letter-spacing: 2px; }
.modal .ok-icon { text-align: center; font-size: 48px; color: #26bf68; margin: 12px 0 6px; }
.modal .ok-text { text-align: center; font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.modal .ok-sub { text-align: center; color: var(--text-3); font-size: 12px; margin-bottom: 18px; }

/* 收藏/评论列表 */
.fav-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.fav-item .img { width: 150px; height: 90px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; background: #e9ebef; }
.fav-item .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fav-item .info h4 { font-size: 15px; font-weight: 500; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fav-item .info .desc { color: var(--text-3); font-size: 12px; margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fav-item .info .meta { margin-top: auto; display: flex; gap: 14px; color: var(--text-3); font-size: 12px; }
.fav-item .info .meta .type { color: var(--red); }

/* ===================== 搜索页 ===================== */
.search-head { background: #fff; border-bottom: 1px solid var(--line); }
.search-head .inner { max-width: var(--container); margin: 0 auto; padding: 22px 20px; display: flex; gap: 16px; align-items: center; }
.search-head input { flex: 1; max-width: 480px; border: 1px solid var(--line); border-radius: 20px; padding: 9px 18px; font-size: 14px; }
.search-head button { background: var(--red); color: #fff; border-radius: 20px; padding: 9px 26px; font-size: 14px; }
.search-result-count { color: var(--text-3); font-size: 13px; margin: 22px 0 4px; }
.result-block h3 { font-size: 17px; margin: 28px 0 4px; padding-left: 10px; border-left: 3px solid var(--red); }

/* ===================== 悬浮按钮 ===================== */
.float-btns { position: fixed; right: 26px; bottom: 90px; display: flex; flex-direction: column; gap: 10px; z-index: 90; }
.float-btns a, .float-btns button {
  width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--text-2);
  box-shadow: 0 4px 14px rgba(0,0,0,.12); display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.float-btns a:hover, .float-btns button:hover { background: var(--red); color: #fff; }

/* ===================== 移动端底部导航 ===================== */
.tabbar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
  background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a { flex: 1; text-align: center; padding: 7px 0 6px; color: var(--text-3); font-size: 11px; }
.tabbar a i { display: block; font-size: 19px; font-style: normal; margin-bottom: 1px; }
.tabbar a.active { color: var(--red); }

/* ===================== 响应式（移动端） ===================== */
@media (max-width: 1180px) {
  .logo small { display: none; }
  .main-nav a { padding: 0 10px; font-size: 13.5px; }
  .header-search { max-width: 190px; }
}
@media (max-width: 900px) {
  :root { --header-h: 54px; }
  .main-nav { display: none; }
  .btn-menu { display: block; order: 3; flex-shrink: 0; }
  .site-header .inner { gap: 10px; padding: 0 14px; }
  .header-search { max-width: none; flex: 1; padding: 5px 12px; }
  .header-search input { font-size: 12px; }
  .header-user { display: none; }
  .logo b { font-size: 19px; letter-spacing: 3px; }
  .logo span { font-size: 13px; }
  .logo small { display: none; }

  .hero .inner { grid-template-columns: 1fr; padding-top: 16px; }
  .hero-main { height: 200px; }
  .ad-slot { height: 58px; margin-top: 16px; font-size: 12px; letter-spacing: 2px; }
  .hero-side { flex-direction: row; }
  .hero-side .card { min-height: 110px; }
  .hero-side .card h3 { font-size: 12px; -webkit-line-clamp: 2; }
  .hero-main .cap h2 { font-size: 16px; }
  .hero-main .cap p { display: none; }

  .layout { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid-2 { gap: 12px; }
  .interview-grid { grid-template-columns: 1fr; }
  .interview-grid .big .card-media { min-height: 210px; }

  .news-item { gap: 12px; padding: 14px 0; }
  .news-item .thumb { width: 122px; height: 78px; }
  .news-item .info h3 { font-size: 14px; }
  .news-item .info .desc { display: none; }
  .news-item .meta { gap: 10px; margin-top: 8px; font-size: 11px; }

  .page-hero .inner { padding: 36px 20px; }
  .page-hero h1 { font-size: 22px; }

  .detail-main h1 { font-size: 19px; }
  .detail-content { font-size: 15px; padding: 18px 0; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .product-head { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; }
  .product-head .img img { aspect-ratio: 4/3; }

  .mine-layout { grid-template-columns: 1fr; padding: 16px 0; }
  .mine-side nav { display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; }
  .mine-side nav a { border-left: none; border-bottom: 1px solid var(--line); white-space: nowrap; padding: 12px 10px; font-size: 13.5px; text-align: center; }
  .mine-side nav a.active { border-bottom-color: var(--red); }
  .mine-side nav a#logoutBtn { grid-column: 1 / -1; color: var(--text-3); }
  .mine-main { padding: 20px 16px; }
  .mine-tabs { display: none; }
  .mine-form { max-width: 100%; }
  .mine-form .row { flex-direction: column; }
  .mine-form .row .k { width: auto; padding-top: 0; margin-bottom: 6px; }
  .mine-form .row .v { width: 100%; }
  .mine-form .save { margin-left: 0; width: 100%; }

  .tabbar { display: flex; }
  body { padding-bottom: 54px; }
  .float-btns { bottom: 70px; right: 14px; }
  .site-footer .top { flex-direction: column; gap: 26px; padding: 30px 20px 20px; }
  .site-footer .cols { gap: 40px; flex-wrap: wrap; }
  .section { margin-top: 30px; }
  .section-head h2 { font-size: 17px; }
  .auth-page { align-items: flex-start; }
}
@media (max-width: 380px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-side { flex-direction: column; }
}
