/* 浅色皮肤：由 <html data-skin="light"> 启用，深色仍是默认。
   只覆盖颜色与少量背景规则，不动布局。 */

html[data-skin="light"] {
  --ink: #ffffff;
  --ink-1: #ffffff;
  --ink-2: #f5f8f6;
  --ink-3: #eaf0ec;

  --line: rgba(12, 26, 20, 0.10);
  --line-2: rgba(12, 26, 20, 0.18);

  --text: #0d1a14;
  --muted: #55655d;
  --muted-2: #7d8c85;

  /* 品牌绿在白底上偏亮，压深两档保证正文级对比 */
  --accent: #2b8f3f;
  --accent-2: #237a36;
  --accent-rgb: 43, 143, 63;
  --accent-hover: #34a34b;
  --accent-ink: #ffffff;
}

html[data-skin="light"] body { background: var(--ink); color: var(--text); }

/* 段落：白底 + 极淡的绿灰过渡，避免整页死白 */
html[data-skin="light"] .bg-1 {
  background:
    radial-gradient(120% 90% at 8% -10%, rgba(var(--accent-rgb), 0.05), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
}
html[data-skin="light"] .bg-2 {
  background:
    radial-gradient(110% 85% at 92% 0%, rgba(var(--accent-rgb), 0.045), transparent 62%),
    linear-gradient(180deg, #f7faf8 0%, #ffffff 100%);
}
html[data-skin="light"] .screens { background: none; }
html[data-skin="light"] .screen { border-top-color: var(--line); }

/* 首屏自带深色实拍照片，整块保持浅色文字，不跟随白底 */
html[data-skin="light"] .hero {
  --text: #eef3f0;
  --muted: #b9c6bd;
  --muted-2: #93a29a;
  --line: rgba(255, 255, 255, 0.16);
  --line-2: rgba(255, 255, 255, 0.26);
}
html[data-skin="light"] .hero h1,
html[data-skin="light"] .hero .lead,
html[data-skin="light"] .hero-meta strong { color: var(--text); }
html[data-skin="light"] .hero-meta div { color: var(--muted); }

/* 产品页首屏没有底图，只是纯色块：去掉为照片准备的黑色遮罩 */
html[data-skin="light"] .product-hero { background-color: #ffffff; }
html[data-skin="light"] .product-hero::after { background: none; }
html[data-skin="light"] .product-hero-media { background: #f2f6f3; }

/* 其余 page-hero 带实拍或线稿底图，保持深罩 + 浅色文字 */
html[data-skin="light"] .page-hero:not(.product-hero) {
  --text: #eef3f0;
  --muted: #c2cfc8;
  --muted-2: #9aa8a1;
  --line: rgba(255, 255, 255, 0.18);
  --line-2: rgba(255, 255, 255, 0.28);
  color: var(--text);
}
/* 深色按钮压在深色底上会消失，改成描边款 */
html[data-skin="light"] .page-hero:not(.product-hero) .btn--dark {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
}
html[data-skin="light"] .page-hero:not(.product-hero) .btn--dark:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* 页头 */
html[data-skin="light"] .site-header.is-stuck {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line);
}

/* 默认就是白底深字：内页首屏本来就是白色，不能靠透明页头 */
html[data-skin="light"] .site-header {
  background: #ffffff;
  border-bottom-color: var(--line);
}
html[data-skin="light"] .site-header .brand-lockup { content: url("../img/logo-lockup-color.png"); }

/* 只有首页（有 .hero 大图的页面）在未吸顶时才透明 + 浅色文字 */
html[data-skin="light"] body:has(.hero) .site-header:not(.is-stuck) {
  background: transparent;
  border-bottom-color: transparent;
  --text: #eef3f0;
  --muted: #a8b6ad;
  --muted-2: #7f8d86;
  --line: rgba(255, 255, 255, 0.18);
  --line-2: rgba(255, 255, 255, 0.28);
}
html[data-skin="light"] body:has(.hero) .site-header:not(.is-stuck) .brand-lockup {
  content: url("../img/logo-lockup-green.png");
}

html[data-skin="light"] .mega { background: #ffffff; border-color: var(--line); }
html[data-skin="light"] .mega-col a { border-bottom-color: rgba(12, 26, 20, 0.06); }
/* 下拉里要固定成深色字，不受页头透明态影响 */
html[data-skin="light"] .mega,
html[data-skin="light"] .mega-col h4 { --text: #0d1a14; --muted: #55655d; --line: rgba(12, 26, 20, 0.10); }
html[data-skin="light"] .lang-menu { background: #ffffff; border-color: rgba(12, 26, 20, 0.12); }
html[data-skin="light"] .lang-menu a { color: #26352d; }
html[data-skin="light"] .lang-menu a:hover,
html[data-skin="light"] .lang-menu a.is-active { color: var(--accent); }
html[data-skin="light"] .drawer { background: #ffffff; }

/* 卡片与表格 */
html[data-skin="light"] .card { background: #ffffff; border-color: var(--line); }
html[data-skin="light"] .card:hover { background: #ffffff; box-shadow: 0 12px 32px rgba(12, 26, 20, 0.08); }
html[data-skin="light"] .spec-table tr:hover td,
html[data-skin="light"] .spec-table tr:hover th { background: rgba(12, 26, 20, 0.025); }

/* 右侧圆点导航在浅底上要换成深色描边 */
html[data-skin="light"] .dotnav a { border-color: rgba(12, 26, 20, 0.22); }
html[data-skin="light"] .dotnav a.is-active { border-color: var(--accent); }

/* 页脚保持深绿，作为页面的压底；文字要在深底上重新提亮 */
html[data-skin="light"] .site-footer {
  background: #062d25;
}
html[data-skin="light"] .site-footer h4 { color: #7ee08f; }
html[data-skin="light"] .site-footer a,
html[data-skin="light"] .site-footer li,
html[data-skin="light"] .footer-about p,
html[data-skin="light"] .footer-contact li { color: rgba(255, 255, 255, 0.72); }
html[data-skin="light"] .footer-bottom { color: rgba(255, 255, 255, 0.5); border-top-color: rgba(255, 255, 255, 0.12); }
html[data-skin="light"] .site-footer a:hover,
html[data-skin="light"] .footer-bottom a:hover { color: #7ee08f; }
html[data-skin="light"] .site-footer .socials a { border-color: rgba(255, 255, 255, 0.18); }
html[data-skin="light"] .site-footer .brand-name { color: #ffffff; }

/* 图片上的文字始终用浅色：白底皮肤只换页面底色，不换照片上的排版 */
html[data-skin="light"] .selector-panel { background: #0d1a14; }
html[data-skin="light"] .selector-panel h3 { color: #ffffff; }
html[data-skin="light"] .selector-panel p { color: rgba(255, 255, 255, 0.78); }
html[data-skin="light"] .selector-panel .tag { color: #7ee08f; }
html[data-skin="light"] .selector-panel .link-arrow { color: #7ee08f; }

html[data-skin="light"] .sol-card { background: #0d1a14; }
html[data-skin="light"] .sol-card .bgimg { opacity: 0.72; }
html[data-skin="light"] .sol-card:hover .bgimg { opacity: 0.7; }
html[data-skin="light"] .sol-card h3 { color: #ffffff; }
html[data-skin="light"] .sol-card p { color: rgba(255, 255, 255, 0.75); }
html[data-skin="light"] .sol-card .link-arrow { color: #7ee08f; }

/* 博客封面是纯色占位块，白底下改成浅色底 + 深绿标签 */
html[data-skin="light"] .post-thumb {
  background:
    radial-gradient(closest-side at 70% 30%, rgba(var(--accent-rgb), 0.14), transparent 70%),
    #eef4f0;
}
html[data-skin="light"] .post-thumb span {
  color: var(--accent-2);
  border-color: rgba(var(--accent-rgb), 0.38);
  background: rgba(255, 255, 255, 0.6);
}

/* 图片集：固定三列，图片按格子缩放 */
html .pdp-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
html .pdp-thumb { width: 100%; min-width: 0; }
html .pdp-thumb img { width: 100%; max-width: 100%; height: 74px; object-fit: cover; }

/* ---------- 首屏改亮：浅底 + 亮实拍，深色文字 ---------- */
html[data-skin="light"] .page-hero:not(.product-hero) {
  background-color: #f4f8f5;
  --text: #0d1a14;
  --muted: #52625a;
  --muted-2: #7d8c85;
  --line: rgba(12, 26, 20, 0.12);
  --line-2: rgba(12, 26, 20, 0.20);
  color: var(--text);
}
html[data-skin="light"] .page-hero:not(.product-hero)::before {
  background-image: url("../img/hero-mountain.jpg");
  background-position: center 46%;
  filter: brightness(1.0) saturate(1.02);
  opacity: 1;
}
html[data-skin="light"] .page-hero:not(.product-hero)::after {
  background:
    linear-gradient(90deg, rgba(248,250,249,0.95) 0%, rgba(248,250,249,0.87) 34%, rgba(248,250,249,0.30) 60%, rgba(248,250,249,0) 88%),
    linear-gradient(180deg, rgba(248,250,249,0.35) 0%, rgba(248,250,249,0) 45%, rgba(248,250,249,0.55) 100%);
}
html[dir="rtl"][data-skin="light"] .page-hero:not(.product-hero)::after {
  background:
    linear-gradient(-90deg, rgba(248,250,249,0.95) 0%, rgba(248,250,249,0.87) 34%, rgba(248,250,249,0.30) 60%, rgba(248,250,249,0) 88%),
    linear-gradient(180deg, rgba(248,250,249,0.35) 0%, rgba(248,250,249,0) 45%, rgba(248,250,249,0.55) 100%);
}
/* 面包屑/按钮在浅底上的对比 */
html[data-skin="light"] .page-hero:not(.product-hero) .crumbs { color: #6b7a72; }
html[data-skin="light"] .page-hero:not(.product-hero) .btn--dark {
  background: #0d1a14; color: #ffffff; border-color: transparent;
}

/* 窄屏：实拍会压到正文，改成近乎纯色底 */
@media (max-width: 820px) {
  html[data-skin="light"] .page-hero:not(.product-hero)::before { opacity: 0.22; }
  html[data-skin="light"] .page-hero:not(.product-hero)::after {
    background: linear-gradient(180deg, rgba(248,250,249,0.96) 0%, rgba(248,250,249,0.93) 100%);
  }
  html[data-skin="light"] .page-hero:not(.product-hero) p { max-width: 100%; }
}
