/*
Theme Name: 消之元 GEO 官网
Theme URI: https://www.xiaozhiyuan.com
Author: 消之元品牌团队
Author URI: https://www.xiaozhiyuan.com
Description: 消之元酸性氧化电位水品牌官网定制主题，支持产品、OEM/ODM、制备设备、行业解决方案、案例、检测与资质、知识中心八大栏目，集成GEO优化、结构化数据和询盘表单系统。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Proprietary
Text Domain: xzy
Tags: custom-menu, featured-images, threaded-comments, translation-ready
*/

/* === 品牌设计系统 === */
:root {
  --brand: #075f7b;
  --brand-dark: #063f54;
  --brand-pale: #e9f6f8;
  --cyan: #16a6ba;
  --green: #76b82a;
  --ink: #17252b;
  --muted: #5d6d73;
  --line: #d9e4e7;
  --paper: #ffffff;
  --canvas: #f4f8f9;
  --warm: #fff7e7;
  --warn: #9b5b00;
  --danger: #a23b32;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 48px rgba(17, 53, 65, .09);
  --shadow-sm: 0 8px 24px rgba(17, 53, 65, .05);
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --container: 1200px;
  --header-h: 72px;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--cyan); }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; }
ul, ol { padding-left: 1.25em; }

/* === 工具类 === */
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 9999; padding: 10px 16px; color: #fff; background: var(--brand-dark); border-radius: 0 0 8px 8px; transition: top .2s; }
.skip-link:focus { top: 0; }

/* === 按钮系统 === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border: none; border-radius: 999px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: all .25s; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(7,95,123,.25); }
.btn-secondary { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn-secondary:hover { background: var(--brand-pale); color: var(--brand-dark); }
.btn-cyan { background: var(--cyan); color: #fff; }
.btn-cyan:hover { background: #128fa0; color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }

/* === 卡片 === */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* === 节区 === */
.section { padding: 80px 0; }
.section-alt { background: var(--paper); }
.section-title { font-size: clamp(28px, 4vw, 40px); color: var(--brand-dark); margin: 0 0 12px; letter-spacing: -.02em; }
.section-subtitle { color: var(--muted); font-size: 17px; max-width: 680px; margin: 0 0 40px; }
.section-header { margin-bottom: 48px; }

/* === 网格 === */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* === 响应式 === */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  body { font-size: 15px; }
  .container { width: calc(100% - 32px); }
  .section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .btn-lg { padding: 14px 28px; font-size: 15px; }
}
