/* ===== 全局重置 & 变量 ===== */
:root {
  --primary: #1a0dab;
  --primary-hover: #1967d2;
  --link-blue: #1a0dab;
  --link-visited: #681da8;
  --url-green: #006621;
  --text: #222;
  --text-secondary: #545454;
  --text-light: #70757a;
  --border: #dfe1e5;
  --shadow-sm: 0 1px 6px rgba(32,33,36,.08);
  --shadow-md: 0 1px 6px rgba(32,33,36,.15);
  --shadow-lg: 0 4px 12px rgba(32,33,36,.12);
  --radius: 24px;
  --radius-sm: 8px;
  --bg-page: #fff;
  --bg-footer: #f2f2f2;
  --bg-hover: #f8f9fa;
}
*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%}
body{font:14px/1.6 arial,sans-serif;color:var(--text);background:var(--bg-page);display:flex;flex-direction:column;min-height:100vh}
a{color:var(--link-blue);text-decoration:none}
a:hover{text-decoration:underline}
a:visited{color:var(--link-visited)}
img{max-width:100%;height:auto}
.container{max-width:1200px;margin:0 auto;padding:0 20px}

/* ============================================
   GOOGLE-STYLE HOMEPAGE
   ============================================ */
body.google-home{
  background:#fff;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
.google-home-wrap{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:40px 20px 80px;
}
.google-logo{
  font-size:64px;
  margin-bottom:24px;
  user-select:none;
}
.google-logo-wrap{
  margin-bottom:24px;
  text-align:center;
}
.google-logo-text{
  font-size:56px;
  font-weight:700;
  letter-spacing:-2px;
  margin-bottom:28px;
  font-family:arial,sans-serif;
}
.google-logo-text .c1{color:#4285f4}
.google-logo-text .c2{color:#ea4335}
.google-logo-text .c3{color:#fbbc05}
.google-logo-text .c4{color:#4285f4}
.google-logo-text .c5{color:#34a853}
.google-logo-text .c6{color:#ea4335}

/* Logo 图片 */
.google-logo-img{
  display:block;
  max-width:320px;
  height:auto;
  margin:0 auto 28px;
}
.topbar-logo-img{
  display:block;
  height:28px;
  width:auto;
}

/* 搜索框 */
.google-search-box{
  width:100%;
  max-width:584px;
  position:relative;
}
.google-search-form{
  display:flex;
  align-items:center;
  width:100%;
  height:46px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fff;
  box-shadow:var(--shadow-sm);
  transition:box-shadow .2s,border-color .2s;
}
.google-search-form:hover{
  box-shadow:var(--shadow-md);
  border-color:rgba(223,225,229,0);
}
.google-search-form:focus-within,
.google-search-form:focus{
  box-shadow:var(--shadow-lg);
  border-color:rgba(223,225,229,0);
}
.search-icon-box{
  padding:0 14px;
  display:flex;
  align-items:center;
  flex-shrink:0;
}
.search-icon-box svg{
  width:20px;
  height:20px;
  fill:#9aa0a6;
}
.google-search-form input{
  flex:1;
  height:100%;
  border:none;
  outline:none;
  font-size:16px;
  color:var(--text);
  background:transparent;
  padding-right:14px;
}
.google-search-form input::placeholder{color:#999}
.google-search-form button{
  display:flex;
  align-items:center;
  gap:4px;
  height:46px;
  padding:0 20px;
  background:#4285f4;
  color:#fff;
  border:none;
  border-radius:0 24px 24px 0;
  cursor:pointer;
  font-size:15px;
  font-weight:500;
  white-space:nowrap;
  transition:background .2s;
  flex-shrink:0;
}
.google-search-form button:hover{
  background:#3367d6;
}

/* SRP topbar search button stays hidden */
.srp-topbar-search .google-search-form button{display:none}
.detail-header-search .mini-search-form button{display:none}
.cat-header-search .mini-search-form button{display:none}

/* 热门搜索按钮 */
.google-hot-tags{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:28px;
  flex-wrap:wrap;
}
.google-hot-tags .ht-label{
  font-size:14px;
  color:var(--text-light);
  margin-right:4px;
}
.google-hot-tags a{
  display:inline-block;
  padding:7px 16px;
  border:1px solid var(--border);
  border-radius:20px;
  font-size:14px;
  color:var(--text);
  background:var(--bg-page);
  transition:all .2s;
}
.google-hot-tags a:hover{
  background:var(--bg-hover);
  border-color:#dadce0;
  text-decoration:none;
  box-shadow:var(--shadow-sm);
}

/* 底部 */
.google-footer{
  background:var(--bg-footer);
  padding:14px 20px;
  border-top:1px solid #dadce0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  font-size:14px;
  color:var(--text-light);
}
.google-footer a{
  color:var(--text-light);
  margin:0 12px;
}
.google-footer a:hover{
  color:var(--text);
  text-decoration:underline;
}
.google-footer-links{
  display:flex;
  flex-wrap:wrap;
}

/* ============================================
   SEARCH RESULTS PAGE (SRP)
   ============================================ */
.srp-body{
  background:#fff;
}
.srp-topbar{
  position:sticky;
  top:0;
  z-index:100;
  background:#fff;
  border-bottom:1px solid #ebebeb;
  padding:10px 0;
}
.srp-topbar-inner{
  max-width:1136px;
  margin:0 auto;
  padding:0 20px;
  display:flex;
  align-items:center;
  gap:20px;
}
.srp-topbar-logo{
  font-size:24px;
  font-weight:700;
  white-space:nowrap;
  flex-shrink:0;
  text-decoration:none;
}
.srp-topbar-logo:hover{text-decoration:none}
.srp-topbar-logo .c1{color:#4285f4}
.srp-topbar-logo .c2{color:#ea4335}
.srp-topbar-logo .c3{color:#fbbc05}
.srp-topbar-logo .c4{color:#4285f4}
.srp-topbar-logo .c5{color:#34a853}
.srp-topbar-logo .c6{color:#ea4335}

.srp-topbar-search{
  flex:1;
  max-width:692px;
}
.srp-topbar-search .google-search-form{
  height:40px;
  border-radius:20px;
  max-width:100%;
}

.srp-content{
  max-width:1136px;
  margin:0 auto;
  padding:20px 20px 40px;
}
.srp-result-count{
  font-size:14px;
  color:var(--text-light);
  margin-bottom:12px;
  padding:0 0 4px;
}

/* 结果列表 */
.srp-results{max-width:652px}
.srp-item{
  padding:16px 0;
}
.srp-item-inner{
  display:flex;
  gap:16px;
}
.srp-item-thumb{
  width:116px;
  height:80px;
  flex-shrink:0;
  border-radius:8px;
  overflow:hidden;
  background:#f1f3f4;
  border:1px solid #eee;
  display:flex;
  align-items:center;
  justify-content:center;
}
.srp-item-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.srp-thumb-fallback{font-size:28px;color:#bdbfc3}

.srp-item-body{flex:1;min-width:0}
.srp-item-url{
  font-size:14px;
  color:var(--url-green);
  line-height:1.3;
  margin-bottom:2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.srp-item-title{
  font-size:18px;
  font-weight:400;
  line-height:1.3;
  margin-bottom:3px;
}
.srp-item-title a{color:var(--link-blue)}
.srp-item-title a:hover{text-decoration:underline}
.srp-item-title a:visited{color:var(--link-visited)}
.srp-item-desc{
  font-size:14px;
  color:var(--text-secondary);
  line-height:1.58;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin-bottom:8px;
}
.srp-item-tags{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.srp-tag{
  font-size:12px;
  color:var(--text-light);
  padding:2px 8px;
  background:var(--bg-hover);
  border-radius:4px;
  display:inline-flex;
  align-items:center;
  gap:3px;
}

/* 分页 */
.srp-pagination{
  display:flex;
  gap:2px;
  justify-content:center;
  align-items:center;
  margin:36px 0 12px;
  flex-wrap:wrap;
  padding:20px 0;
}
.srp-page-link,.srp-page-cur{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:34px;
  padding:0 8px;
  border-radius:4px;
  font-size:14px;
  color:#1a0dab;
  transition:background .15s;
}
.srp-page-link:hover{background:var(--bg-hover);text-decoration:none}
.srp-page-cur{
  color:#333;
  font-weight:700;
  cursor:default;
}
.srp-page-prev,.srp-page-next{
  display:inline-flex;
  align-items:center;
  height:34px;
  padding:0 12px;
  font-size:14px;
  color:#1a0dab;
}
.srp-page-prev:hover,.srp-page-next:hover{text-decoration:underline}

/* ============================================
   DETAIL PAGE - Google-style clean
   ============================================ */
.detail-body-main{
  background:#fff;
}
.detail-header{
  background:#fff;
  border-bottom:1px solid #ebebeb;
  padding:10px 0;
}
.detail-header-inner{
  max-width:1136px;
  margin:0 auto;
  padding:0 20px;
  display:flex;
  align-items:center;
  gap:20px;
}
.detail-header-logo{
  font-size:18px;
  font-weight:600;
  color:var(--text);
  white-space:nowrap;
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:6px;
}
.detail-header-logo:hover{text-decoration:none}
.detail-header-logo .c1{color:#4285f4}
.detail-header-logo .c2{color:#ea4335}
.detail-header-logo .c3{color:#fbbc05}
.detail-header-logo .c4{color:#4285f4}
.detail-header-logo .c5{color:#34a853}
.detail-header-logo .c6{color:#ea4335}

.detail-header-search{
  flex:1;
  max-width:480px;
}
.detail-header-search .mini-search-form{
  display:flex;
  align-items:center;
  height:36px;
  border:1px solid var(--border);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--shadow-sm);
  transition:box-shadow .2s;
  padding:0 12px;
}
.detail-header-search .mini-search-form:hover{
  box-shadow:var(--shadow-md);
  border-color:rgba(223,225,229,0);
}
.detail-header-search .mini-search-form:focus-within{
  box-shadow:var(--shadow-lg);
  border-color:rgba(223,225,229,0);
}
.detail-header-search .mini-search-form input{
  flex:1;
  border:none;
  outline:none;
  font-size:14px;
  background:transparent;
  height:100%;
  padding:0 8px;
}
.detail-header-search .mini-search-form .search-icon-sm svg{
  width:16px;height:16px;fill:#9aa0a6;
}
.detail-header-search .mini-search-form button{
  display:none;
}

/* Detail content area */
.detail-content-area{
  max-width:800px;
  margin:0 auto;
  padding:24px 20px 40px;
}
.detail-breadcrumb{
  font-size:14px;
  color:var(--text-light);
  margin-bottom:16px;
}
.detail-breadcrumb a{color:var(--text-light)}
.detail-breadcrumb a:hover{color:var(--text)}
.detail-breadcrumb .sep{margin:0 6px;color:#dadce0}

/* Detail top: image + info */
.detail-top-row{
  display:flex;
  gap:24px;
  margin-bottom:24px;
}
.detail-image-col{
  width:340px;
  flex-shrink:0;
}
.detail-image-box{
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  padding:16px;
  text-align:center;
}
.detail-image-box img{
  max-width:100%;
  max-height:280px;
  object-fit:contain;
}
.detail-info-col{
  flex:1;
  min-width:0;
}
.detail-info-box{
  padding-top:4px;
}
.detail-info-box h1{
  font-size:24px;
  font-weight:400;
  color:var(--text);
  line-height:1.3;
  margin-bottom:12px;
}
.detail-attr-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:16px;
}
.detail-attr-item{
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-size:13px;
  color:var(--text-light);
  padding:5px 12px;
  background:var(--bg-hover);
  border-radius:16px;
  border:1px solid var(--border);
}
.detail-attr-item .attr-val{
  color:var(--text);
  font-weight:500;
}

/* Description section */
.detail-section{
  margin-bottom:28px;
}
.detail-section-title{
  font-size:20px;
  font-weight:400;
  color:var(--text);
  margin-bottom:12px;
  padding-bottom:8px;
  border-bottom:1px solid var(--border);
}
.detail-content-body{
  line-height:1.8;
  font-size:15px;
  color:var(--text-secondary);
}
.detail-content-body p{margin-bottom:12px}
.detail-content-body img{
  max-width:100%;
  height:auto;
  margin:16px 0;
  border-radius:8px;
}

/* Download section */
.dl-info-section{
  margin-bottom:28px;
}
.dl-info-section .detail-section-title{
  display:flex;
  align-items:center;
  gap:8px;
}
.dl-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.dl-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 16px;
  border:1px solid var(--border);
  border-radius:8px;
  transition:all .15s;
  border-left:4px solid #4285f4;
}
.dl-item:hover{
  background:var(--bg-hover);
}
.dl-item .dl-icon{
  width:36px;
  height:36px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  flex-shrink:0;
}
.dl-item .dl-info{
  flex:1;
  min-width:0;
}
.dl-item .dl-info .dl-name{
  font-size:14px;
  font-weight:500;
  color:var(--text);
}
.dl-item .dl-info .dl-pwd{
  font-size:12px;
  color:var(--text-light);
  display:block;
  margin-top:2px;
}
.dl-item .dl-btn{
  font-size:13px;
  padding:6px 18px;
  border-radius:6px;
  color:#fff;
  flex-shrink:0;
  transition:opacity .2s;
  background:#4285f4;
}
.dl-item .dl-btn:hover{opacity:.85;text-decoration:none}

/* Related section */
.related-section{
  margin-bottom:28px;
}
.related-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
@media(max-width:768px){
  .related-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:480px){
  .related-grid{grid-template-columns:1fr}
}
.related-card{
  display:block;
  border:1px solid var(--border);
  border-radius:10px;
  overflow:hidden;
  transition:all .2s;
  background:#fff;
}
.related-card:hover{
  box-shadow:var(--shadow-sm);
  border-color:#dadce0;
  text-decoration:none;
}
.related-card-img{
  height:120px;
  overflow:hidden;
  background:#f1f3f4;
  display:flex;
  align-items:center;
  justify-content:center;
}
.related-card-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.related-card-body{
  padding:10px 12px 12px;
}
.related-card-body h4{
  font-size:14px;
  font-weight:500;
  color:var(--text);
  line-height:1.3;
  margin-bottom:4px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.related-card-body .rc-meta{
  font-size:12px;
  color:var(--text-light);
}

/* ============================================
   CATEGORY PAGE - Google-style clean
   ============================================ */
.cat-body-main{background:#fff}
.cat-header{
  background:#fff;
  border-bottom:1px solid #ebebeb;
  padding:10px 0;
}
.cat-header-inner{
  max-width:1136px;
  margin:0 auto;
  padding:0 20px;
  display:flex;
  align-items:center;
  gap:20px;
}
.cat-header-logo{
  font-size:18px;
  font-weight:600;
  white-space:nowrap;
  display:flex;
  align-items:center;
  gap:6px;
}
.cat-header-logo:hover{text-decoration:none}
.cat-header-logo .c1{color:#4285f4}
.cat-header-logo .c2{color:#ea4335}
.cat-header-logo .c3{color:#fbbc05}
.cat-header-logo .c4{color:#4285f4}
.cat-header-logo .c5{color:#34a853}
.cat-header-logo .c6{color:#ea4335}
.cat-header-search{
  flex:1;
  max-width:480px;
}
.cat-header-search .mini-search-form{
  display:flex;
  align-items:center;
  height:36px;
  border:1px solid var(--border);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--shadow-sm);
  transition:box-shadow .2s;
  padding:0 12px;
}
.cat-header-search .mini-search-form:hover{
  box-shadow:var(--shadow-md);
  border-color:rgba(223,225,229,0);
}
.cat-header-search .mini-search-form:focus-within{
  box-shadow:var(--shadow-lg);
  border-color:rgba(223,225,229,0);
}
.cat-header-search .mini-search-form input{
  flex:1;
  border:none;
  outline:none;
  font-size:14px;
  background:transparent;
  height:100%;
  padding:0 8px;
}
.cat-header-search .mini-search-form .search-icon-sm svg{
  width:16px;height:16px;fill:#9aa0a6;
}
.cat-header-search .mini-search-form button{display:none}

.cat-content-area{
  max-width:1136px;
  margin:0 auto;
  padding:20px 20px 40px;
}
.cat-title-row{
  margin-bottom:20px;
}
.cat-title-row h1{
  font-size:22px;
  font-weight:500;
  color:var(--text);
}
.cat-grid-list{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}
@media(max-width:900px){.cat-grid-list{grid-template-columns:repeat(3,1fr)}}
@media(max-width:640px){.cat-grid-list{grid-template-columns:repeat(2,1fr)}}
@media(max-width:420px){.cat-grid-list{grid-template-columns:1fr}}

.cat-goods-card{
  display:block;
  border:1px solid var(--border);
  border-radius:10px;
  overflow:hidden;
  transition:all .2s;
  background:#fff;
}
.cat-goods-card:hover{
  box-shadow:var(--shadow-sm);
  border-color:#dadce0;
  text-decoration:none;
}
.cat-goods-card .card-img{
  height:130px;
  overflow:hidden;
  background:#f1f3f4;
  display:flex;
  align-items:center;
  justify-content:center;
}
.cat-goods-card .card-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.cat-goods-card .card-body{
  padding:10px 12px 12px;
}
.cat-goods-card .card-body h3{
  font-size:14px;
  font-weight:500;
  color:var(--text);
  line-height:1.3;
  margin-bottom:4px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.cat-goods-card .card-body .card-desc{
  font-size:13px;
  color:var(--text-light);
  line-height:1.4;
  margin-bottom:6px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.cat-goods-card .card-body .card-meta{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  font-size:12px;
  color:var(--text-light);
}
.cat-goods-card .card-body .card-meta .tag{
  padding:1px 8px;
  background:var(--bg-hover);
  border-radius:4px;
}

/* ============================================
   ABOUT / DISCLAIMER PAGE
   ============================================ */
.page-simple{
  max-width:800px;
  margin:0 auto;
  padding:30px 20px 60px;
}
.page-simple h1{
  font-size:28px;
  font-weight:400;
  margin-bottom:20px;
  color:var(--text);
}
.page-simple .page-content{
  line-height:1.8;
  font-size:15px;
  color:var(--text-secondary);
}
.page-simple .page-content p{margin-bottom:12px}
.page-simple .page-content h2{font-size:18px;font-weight:500;margin:20px 0 8px;color:var(--text)}

/* ============================================
   FOOTER (shared)
   ============================================ */
.google-footer a{color:var(--text-light);margin:0 12px}
.google-footer a:hover{color:var(--text);text-decoration:underline}
.google-footer-links{display:flex;flex-wrap:wrap}

/* ============================================
   FIXED POSITION: make content fill space so footer is always at bottom
   ============================================ */
.detail-content-area,
.cat-content-area,
.srp-content,
.page-simple{flex:1;width:100%}

/* ============================================
   EMPTY / LOADING
   ============================================ */
.srp-empty{
  text-align:center;
  padding:60px 20px;
  color:var(--text-light);
}
.srp-empty .empty-icon{font-size:48px;display:block;margin-bottom:12px}

/* ============================================
   RESPONSIVE
   ============================================ */
@media(max-width:768px){
  .google-logo-img{max-width:220px}
  .google-logo-text{font-size:38px}
  .google-search-box{max-width:100%;padding:0 10px}
  .google-search-form{height:42px}
  .google-hot-tags a{padding:6px 14px;font-size:13px}
  .srp-topbar-inner{gap:10px}
  .srp-topbar-search{max-width:none}
  .srp-results{max-width:100%}
  .srp-item-inner{gap:12px}
  .srp-item-thumb{width:90px;height:68px}
  .srp-item-title{font-size:16px}
  .srp-content{padding:12px 14px 30px}
  .detail-top-row{flex-direction:column}
  .detail-image-col{width:100%;max-width:340px;margin:0 auto}
  .detail-content-area{padding:16px 14px 30px}
  .detail-header-inner{gap:10px}
  .detail-header-search{max-width:none}
  .cat-header-inner{gap:10px}
  .cat-header-search{max-width:none}
  .cat-content-area{padding:16px 14px 30px}
  .cat-grid-list{gap:10px}
  .google-footer{flex-direction:column;text-align:center;gap:6px}
}
@media(max-width:480px){
  .google-logo-img{max-width:160px}
  .google-logo{font-size:48px}
  .google-logo-text{font-size:30px;letter-spacing:-1px}
  .google-search-form{height:38px;border-radius:20px}
  .srp-item-thumb{width:72px;height:54px}
  .srp-item-title{font-size:15px}
  .srp-item-desc{font-size:13px}
}