﻿* { box-sizing: border-box; }
:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --border: #e7e9f3;
  --text: #1f2330;
  --muted: #667085;
  --brand: #5b8cff;
  --brand-dark: #3b6ef5;
}
body { margin: 0; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; color: var(--text); background: var(--bg); }
.html, html, body { height: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background: var(--card); border-right: 1px solid var(--border); position: sticky; top: 0; height: 100vh; padding: 20px 16px; display: flex; flex-direction: column; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.brand-logo { width: 48px; height: 48px; border-radius: 0; background: linear-gradient(135deg, var(--brand), #8aa8ff); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.brand-logo-img { width: 48px; height: 48px; border-radius: 0; object-fit: cover; border: 1px solid var(--border); display: block; background: #fff; }
.brand-text { display: flex; flex-direction: column; }
.brand-title { font-weight: 600; }
.brand-sub { font-size: 12px; color: var(--muted); }
.side-nav { display: none; }
.side-info { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.side-info .line { padding: 4px 0; border-radius: 0; background: transparent; border: none; color: var(--text); font-size: 14px; font-weight: 600; }
.side-qr { margin-top: 8px; }
.qr-block { width: 160px; height: 160px; background: #0b0d13; border-radius: 0; margin: 0 auto; }
.qr-img { width: 160px; height: 160px; border-radius: 0; object-fit: cover; border: 1px solid var(--border); display: block; margin: 0 auto; }
.content { flex: 1; padding-top: 20px; display: flex; flex-direction: column; }
.content.no-scroll { height: auto; overflow-y: auto; }
.page { padding: 24px; }
.page-header { padding: 24px 24px 0 24px; }
.page-header h1 { margin: 0; font-size: 22px; }
.card-grid { display: none; }
.muted { color: var(--muted); }
#cards { display: none; }
.section { padding: 0 24px 16px; }
.section.with-top-line { border-top: 1px solid #dbe0ea; margin-top: 8px; padding-top: 12px; }
.section:last-of-type { padding-bottom: 8px; }
/* removed colored section background to restore original */
.section-line { height: 1px; background: linear-gradient(to right, rgba(0,0,0,0) 0%, #e7e9f3 10%, #dbe0ea 50%, #e7e9f3 90%, rgba(0,0,0,0) 100%); margin: 14px 24px 18px; border-radius: 1px; }
.section-heading { display: flex; align-items: baseline; gap: 12px; padding-right: 24px; margin-bottom: 10px; }
.section-title { margin: 0 0 6px 0; font-size: 16px; font-weight: 600; }
.section-chip { display: inline-block; background: var(--brand); color: #fff; padding: 4px 10px; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
.section-sub { font-size: 14px; line-height: 1.6; font-weight: 400; color: #4b5563; letter-spacing: 0.4px; word-spacing: 1px; }
/* override for subtitle to ensure visibility */
.section-heading .section-sub { font-size: 15px; line-height: 1.7; font-weight: 400; color: #4b5563; letter-spacing: 0.4px; word-spacing: 1px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
/* 璁╂渶鍚庝竴涓垎鍖烘拺婊″墿浣欑┖闂村苟璁╁崱鐗囨媺闀胯嚦搴曢儴 */
#home-grid { flex: 1; display: flex; flex-direction: column; }
#home-grid .section:last-of-type { flex: 0; display: flex; flex-direction: column; }
#home-grid .section:last-of-type .grid2 { flex: 1; align-content: stretch; position: relative; }
#home-grid .section:last-of-type .grid2::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, #e7e9f3 12%, #dbe0ea 50%, #e7e9f3 88%, rgba(0,0,0,0) 100%); pointer-events: none; }
#home-grid .section:last-of-type .grid2 .tile { min-height: 220px; }
#home-grid .section:last-of-type .grid2 .tile.tile-showcase { height: 38vh; }
.showcase { display: flex; flex-direction: column; gap: 8px; }
.showcase-head { display: flex; align-items: center; gap: 10px; padding-left: 2px; }
.showcase-logo { width: 60px; height: 60px; border-radius: 4px; background: transparent; border: 1px solid var(--border); object-fit: cover; }
.showcase-logo.placeholder { background: #eef2ff; }
.showcase-text { display: flex; flex-direction: column; }
.show-title { font-size: 16px; font-weight: 600; }
.show-desc { font-size: 13px; }
.showcase-head .show-title { color: var(--text); }
.showcase-head .show-desc { color: var(--text); }
.tile-showcase { padding: 0; height: 38vh; min-height: 280px; border: none; background: #000; overflow: hidden; box-shadow: none; border-radius: 6px; }
.tile-showcase .tile-arrow { display: none; }
.showcase-img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; display: block; }
.showcase-video { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; display: block; }
.showcase-img.placeholder { background: transparent; border: none; }
.tile { display: block; position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 14px 16px; text-decoration: none; color: inherit; min-height: 110px; box-shadow: 0 3px 8px rgba(0,0,0,0.03); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.tile.tile-showcase { padding: 0; border: none; background: transparent; box-shadow: none; overflow: hidden; }
.tile-head { display: flex; align-items: center; gap: 12px; }
.tile-head { min-height: 60px; }
.tile:hover { border-color: #dfe6ff; box-shadow: 0 8px 18px rgba(0,0,0,0.08); transform: translateY(-2px) scale(1.02); }
.tile.nolink { cursor: default; }
.tile.nolink:hover { transform: none; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.tile-logo { width: 60px; height: 60px; border-radius: 4px; object-fit: cover; border: 1px solid var(--border); }
.tile-logo.placeholder { background: #eef2ff; }
.tile-content { display: flex; flex-direction: column; flex: 1; gap: 4px; }
.tile-title { font-size: 16px; font-weight: 600; }
.tile-desc { font-size: 13px; line-height: 1.5; }
.tile-arrow { margin-left: auto; width: 26px; height: 26px; border: 1px solid var(--border); border-radius: 999px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.tile-arrow svg { display: block; }
.tile-divider { height: 1px; background: #eef1f7; margin: 8px 0 6px; }
.tile-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; color: #5b6474; background: #f3f5f8; border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; }
/* 鎮仠鎻愮ず */
.tile-tooltip { position: absolute; left: 50%; transform: translateX(-50%); bottom: 100%; margin-bottom: 8px; background: #111; color: #fff; border-radius: 8px; padding: 8px 10px; font-size: 12px; box-shadow: 0 8px 18px rgba(0,0,0,0.18); display: none; white-space: nowrap; z-index: 10; }
.tile:hover .tile-tooltip { display: block; }
.tile-tooltip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #111; }
/* 鐗规畩璇存槑鍗＄墖锛堟渶鍚庝竴椤癸級 */
.tile-special .tile-arrow { display: none; }
.tile-pop { position: absolute; left: 50%; transform: translateX(-50%); bottom: 100%; margin-bottom: 8px; background: #fff; color: var(--text); border-radius: 10px; padding: 10px; font-size: 12px; box-shadow: 0 14px 28px rgba(0,0,0,0.15); display: none; z-index: 20; border: 1px solid var(--border); min-width: 220px; max-width: 360px; pointer-events: none; }
.tile-special:hover .tile-pop { display: block; }
.tile-special { background: #10b981; border-color: #10b981; color: #fff; }
.tile-special .tile-title { color: #fff; }
.tile-special .tile-desc { color: rgba(255,255,255,0.85); }
.pop-img { width: 200px; height: 200px; border-radius: 0; border: 1px solid var(--border); object-fit: cover; background: #fff; box-shadow: 0 12px 24px rgba(0,0,0,0.15); }
.pop-img.placeholder { background: #eef2ff; }
/* 鐗规畩璇存槑鍗″彸渚у浘鐗?*/
.tile-special .special-img { width: 60px; height: 60px; border-radius: 0; object-fit: cover; border: 1px solid var(--border); margin-left: auto; background: #fff; }
.tile-special .special-img.placeholder { background: #eef2ff; }
/* remove text for pop */
/* 绱у噾妯″紡锛堢壒瀹氬垎鍖猴級 */
.section.compact .tile { min-height: 84px; padding: 10px 12px; }
.section.compact .tile-arrow { width: 24px; height: 24px; }
.section.compact .tile-divider { display: none; }
.section.compact .tile-tags { margin-top: 2px; }

/* ========== 手机端样式 ========== */
@media (max-width: 768px) {
  html, body { overflow-x: hidden !important; width: 100vw; max-width: 100vw; margin: 0; padding: 0; min-height: 0 !important; height: auto !important; }
  * { box-sizing: border-box; }
  .layout { flex-direction: column; min-height: 0 !important; }
  .sidebar { width: 100%; height: auto; position: relative; border-right: none; border-bottom: 1px solid #ddd; padding: 12px 16px; display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
  .side-qr { grid-column: 1; grid-row: 1 / 3; margin: 0; }
  .qr-img, .qr-block { width: 120px; height: 120px; }
  .side-info { grid-column: 2; grid-row: 1; margin: 0; gap: 2px; }
  .side-info .line { font-size: 11px; padding: 1px 0; line-height: 1.5; }
  .sidebar .wechat-list { grid-column: 2; grid-row: 2; margin: 0; padding: 0; list-style: none; font-size: 11px; }
  .sidebar .wechat-list li { margin: 1px 0; }
  .sidebar > .muted { display: none; }
  .brand { display: block !important; position: absolute !important; bottom: 12px !important; right: 16px !important; border: none !important; padding: 0 !important; }
  .brand-logo-img { width: 40px !important; height: 40px !important; border-radius: 50% !important; box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important; }
  .brand-logo { width: 40px !important; height: 40px !important; border-radius: 50% !important; background: linear-gradient(135deg, #5b8cff, #8aa8ff) !important; color: #fff !important; font-size: 18px !important; box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important; }
  .brand-text { display: none !important; }
  .content { padding: 0; background: #f5f5f5; width: 100%; min-height: 0 !important; height: auto !important; }
  #home-grid { flex: none !important; min-height: 0 !important; height: auto !important; }
  .section { padding: 10px 16px !important; margin: 0 !important; width: 100% !important; }
  #home-grid .section:nth-child(2) { margin-top: 8px !important; }
  #home-grid .section:nth-child(3) { margin-top: 8px !important; }
  #home-grid .section:last-of-type { margin-top: 8px !important; padding-bottom: 16px !important; flex: none !important; min-height: 0 !important; height: auto !important; }
  .section-heading { padding: 0 !important; margin: 0 0 10px 0 !important; flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; }
  #home-grid .section:nth-child(1) .section-chip,
  #home-grid .section:nth-child(2) .section-chip { padding: 8px 16px; font-size: 14px; border-radius: 8px; margin-bottom: 8px; }
  #home-grid .section:nth-child(1) .section-chip { background: #5b8cff; color: #fff; }
  #home-grid .section:nth-child(2) .section-chip { background: #10b981; color: #fff; }
  .section-title { display: none; }
  #home-grid .section:nth-child(1) .section-sub { background: #e8f0ff !important; border-left: 4px solid #5b8cff !important; padding: 10px 12px !important; border-radius: 6px !important; color: #2d5aa0 !important; font-size: 12px !important; margin-bottom: 10px !important; box-shadow: 0 2px 4px rgba(91, 140, 255, 0.1) !important; }
  #home-grid .section:nth-child(2) .section-sub { background: #e6f9f0 !important; border-left: 4px solid #10b981 !important; padding: 10px 12px !important; border-radius: 6px !important; color: #0d7a56 !important; font-size: 12px !important; margin-bottom: 10px !important; box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1) !important; }
  .grid4, .grid3 { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 !important; margin: 0 !important; }
  .grid2 { grid-template-columns: 1fr; gap: 8px !important; padding: 0 !important; margin: 0 !important; align-content: start !important; min-height: 0 !important; height: auto !important; }
  .tile { padding: 10px; min-height: 65px; border-radius: 8px; margin: 0 !important; }
  .tile-head { display: flex !important; align-items: center !important; gap: 8px; }
  .tile-logo { width: 38px; height: 38px; flex-shrink: 0; }
  .tile-content { flex: 1; text-align: left; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
  .tile-title { font-size: 13px; }
  .tile-desc { font-size: 10px; }
  .tile-arrow { width: 20px; height: 20px; flex-shrink: 0; }
  .tile-tags, .tile-divider, .tile-tooltip { display: none !important; }
  .tile-special { grid-column: auto !important; padding: 10px !important; min-height: 65px !important; background: #10b981; border-radius: 8px; }
  .tile-special .tile-head { flex-direction: row !important; align-items: center !important; }
  .tile-special .tile-title { font-size: 13px !important; color: #fff; }
  .tile-special .tile-desc { font-size: 10px !important; color: rgba(255,255,255,0.9); }
  .tile-special .special-img { display: none !important; }
  .showcase { gap: 6px; width: 100%; margin: 0 !important; padding: 0 !important; min-height: 0 !important; height: auto !important; }
  .showcase-head { padding: 0 0 6px 0 !important; margin: 0 !important; }
  .showcase-logo { width: 40px; height: 40px; }
  .show-title { font-size: 14px; }
  .show-desc { font-size: 11px; }
  .tile-showcase { width: 100% !important; height: 0 !important; padding-bottom: 56.25% !important; position: relative !important; border-radius: 10px !important; overflow: hidden !important; background: transparent !important; margin: 0 !important; min-height: 0 !important; }
  .showcase-img, .showcase-video { position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover !important; border-radius: 10px !important; }
  #home-grid .section:last-of-type .grid2::before { display: none; }
  .container { padding: 0 !important; }
}

/* ========== 电脑端视频修复 ========== */
@media (min-width: 769px) {
  /* 使用16:9比例，和手机端一样 */
  .tile-showcase {
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 56.25% !important;
    position: relative !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    background: #000 !important;
  }
  .showcase-img, .showcase-video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 6px !important;
  }
  #home-grid .section:last-of-type .grid2 .tile.tile-showcase {
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 56.25% !important;
  }
}






