/* 凌石信息官网 v2 —— 无框架 · 移动优先 · 四季主题 · 羊驼宠物动画
 * 命名约定：四套主题变量在 body[data-season] 上切换（JS 按月份自动+用户可改）
 */
:root {
  --maxw: 1140px;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(20, 40, 40, .10);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --ink: #1d3a40; --rock: #24484f; --stone: #62777d; --mist: #f3f7f7; --line: #dbe4e5;
  --accent: #1d7d6f; --accent-l: #eaf6f3; --copper: #b0763c;
  --petbg: #f7ece0;
}
/* ── 四季主题 ── */
body[data-season="spring"] { --accent:#3f9e56; --accent-l:#edf7ee; --mist:#f4faf1; --petbg:#f2f8ec; --line:#dcebd9; --ink:#223d2c; }
body[data-season="summer"] { --accent:#1579b0; --accent-l:#e9f4fb; --mist:#f1f7fb; --petbg:#e8f3fa; --line:#d5e5ef; --ink:#1a3446; }
body[data-season="autumn"] { --accent:#b06a2c; --accent-l:#faf0e3; --mist:#fbf7f0; --petbg:#f8efe3; --line:#ecdccd; --ink:#40301d; }
body[data-season="winter"] { --accent:#3d6fa8; --accent-l:#ecf2f9; --mist:#f4f6f9; --petbg:#eef2f7; --line:#d9e2ec; --ink:#223043; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.8; font-size: 16px; transition: background .6s; }
a { color: var(--rock); text-decoration: none; }
a:hover { color: var(--accent); }
img, svg { max-width: 100%; vertical-align: middle; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ── 顶栏（移动优先：汉堡+抽屉） ── */
.topbar { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 17px; color: var(--rock); }
.brand img { height: 32px; }
.brand small { display: block; font-size: 10.5px; font-weight: 400; color: var(--stone); line-height: 1.1; }
.nav { display: none; }
.nav a { position: relative; padding: 8px 13px; font-size: 15px; color: var(--ink); border-radius: 8px; }
.nav a.on, .nav a:hover { color: var(--accent); background: var(--accent-l); }
.mnav { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; border: 0; background: none; cursor: pointer; }
.mnav span { display: block; height: 2px; width: 100%; background: var(--rock); border-radius: 2px; transition: .3s; }
.mnav.x span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mnav.x span:nth-child(2) { opacity: 0; }
.mnav.x span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
#drawer { position: fixed; inset: 0; z-index: 59; background: rgba(29,58,64,.45); display: none; }
#drawer .sheet { margin-top: 60px; background: #fff; padding: 10px 20px 24px; border-bottom: 1px solid var(--line); }
#drawer .sheet a { display: block; padding: 14px 6px; font-size: 16.5px; border-bottom: 1px solid var(--mist); }
#drawer .sheet a.on { color: var(--accent); font-weight: 600; }
@media (min-width: 880px) {
  .nav { display: flex; gap: 4px; }
  .mnav { display: none; }
}

/* ── Hero（移动优先，纵向） ── */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--mist) 0%, #fff 70%); border-bottom: 1px solid var(--line); }
.hero .wrap { display: block; padding: 46px 22px 40px; }
.hero h1 { font-size: clamp(26px, 6vw, 42px); line-height: 1.3; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { color: var(--stone); margin: 16px 0 6px; font-size: clamp(14.5px, 2.6vw, 17px); max-width: 560px; }
.hero .badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }
.hero .badge { font-size: 12.5px; padding: 5px 12px; border-radius: 999px; background: var(--accent-l); color: var(--accent); border: 1px solid transparent; }
.cta { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 26px; border-radius: 12px; font-size: 16px; font-weight: 600; background: var(--accent); color: #fff !important; box-shadow: var(--shadow); border: 0; cursor: pointer; transition: transform .15s; }
.cta:hover { transform: translateY(-2px); }
.cta.ghost { background: #fff; color: var(--ink) !important; border: 1.5px solid var(--line); box-shadow: none; }
.hero .hero-art { display: none; }
@media (min-width: 880px) {
  .hero .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 72px 22px; }
  .hero .hero-art { display: block; width: 360px; flex: none; }
}

/* ── 数据条 ── */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.stat { background: #fff; text-align: center; padding: 20px 8px; }
.stat b { display: block; font-size: clamp(22px, 4.5vw, 34px); color: var(--accent); font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; color: var(--stone); }
@media (min-width: 880px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ── 通用节 ── */
.block { padding: 44px 0; }
.block.alt { background: var(--mist); }
.sec { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.sec h2 { font-size: clamp(20px, 4vw, 26px); letter-spacing: -.3px; }
.sec small { color: var(--stone); font-size: 13px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .grid.g2, .grid.g3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.g3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card h3 { font-size: 17px; margin: 10px 0 8px; color: var(--ink); }
.card p { color: var(--stone); font-size: 14px; }
.card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-l); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.card .more { display: inline-block; margin-top: 10px; font-size: 13.5px; color: var(--accent); font-weight: 600; }

/* 列表（新闻/博客） */
.item { display: flex; gap: 14px; padding: 16px 4px; border-bottom: 1px dashed var(--line); }
.item .d { flex: none; width: 62px; text-align: center; color: var(--stone); font-size: 12px; line-height: 1.4; padding-top: 3px; }
.item h3 { font-size: 15.5px; line-height: 1.5; }
.item h3 a { color: var(--ink); }
.item h3 a:hover { color: var(--accent); }
.item p { color: var(--stone); font-size: 13.5px; margin-top: 4px; }
.badge { display: inline-block; font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: var(--accent-l); color: var(--accent); vertical-align: 2px; }

/* 时间线（发展历程） */
.tl { margin: 10px 0 0; padding-left: 4px; }
.tl li { list-style: none; position: relative; padding: 0 0 20px 26px; }
.tl li::before { content: ''; position: absolute; left: 5px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.tl li::after { content: ''; position: absolute; left: 9px; top: 20px; bottom: 2px; width: 2px; background: var(--line); }
.tl li:last-child::after { display: none; }
.tl b { color: var(--accent); margin-right: 8px; font-variant-numeric: tabular-nums; }

/* 表格 */
.tbl { width: 100%; border-collapse: collapse; margin-top: 18px; background: #fff; font-size: 13.5px; }
.tbl th { text-align: left; padding: 10px 12px; background: var(--mist); border: 1px solid var(--line); font-size: 13px; white-space: nowrap; }
.tbl td { padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
@media (max-width: 640px) { .tbl { display: block; overflow-x: auto; } }

/* FAQ 手风琴 */
details.faq { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; background: #fff; }
details.faq summary { cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; }
details.faq summary::after { content: '+'; color: var(--accent); font-size: 20px; line-height: 1; }
details.faq[open] summary::after { content: '–'; }
details.faq p { margin-top: 10px; color: var(--stone); font-size: 14.5px; }

/* 表单（获客） */
.form label { display: block; font-size: 13px; color: var(--stone); margin: 14px 0 6px; }
.form input, .form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 15px; transition: border-color .2s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form button { margin-top: 18px; width: 100%; }
.hp { position: absolute; left: -9999px; }

/* 页头/页脚 */
.pagehead { background: var(--mist); padding: 40px 0 32px; border-bottom: 1px solid var(--line); }
.pagehead h1 { font-size: clamp(23px, 5vw, 32px); }
.pagehead p { color: var(--stone); margin-top: 8px; max-width: 660px; font-size: 14.5px; }
.crumb { font-size: 12px; color: var(--stone); margin-bottom: 12px; }
footer { background: var(--ink); color: #c9d6d4; padding: 36px 0 26px; margin-top: 40px; font-size: 13.5px; }
footer .grid { gap: 22px; }
footer h4 { color: #fff; font-size: 14.5px; margin-bottom: 10px; }
footer a { color: #c9d6d4; }
footer .fine { border-top: 1px solid rgba(255,255,255,.14); margin-top: 24px; padding-top: 16px; font-size: 12px; color: #8fa3a1; }

/* ── 羊驼宠物（四季换装 + 动画） ── */
#pet { position: fixed; right: 14px; bottom: 14px; z-index: 55; width: 88px; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
#pet .llama { width: 100%; animation: petBob 2.6s ease-in-out infinite; transform-origin: 50% 100%; filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); }
#pet .bubble { position: absolute; right: 92%; top: -6px; background: #fff; border: 1px solid var(--line); border-radius: 12px 12px 12px 3px; padding: 7px 12px; font-size: 12.5px; color: var(--ink); white-space: nowrap; box-shadow: var(--shadow); animation: bubbleIn .5s .8s backwards; }
#pet.walking { animation: petWalk 22s linear infinite; }
@keyframes petBob { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-7px) rotate(-1.2deg); } }
@keyframes petWalk { 0% { right: 14px; } 6% { right: 30vw; } 50% { right: 40vw; transform: scaleX(1); } 56% { right: 30vw; } 100% { right: 14px; } }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }
@media (max-width: 640px) { #pet { width: 68px; right: 10px; bottom: 10px; } }
.blink { animation: blink 4.2s infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }
.ear-l { animation: earWiggle 5.5s ease-in-out infinite; transform-origin: 70% 90%; }
@keyframes earWiggle { 0%, 88%, 100% { transform: rotate(0); } 92% { transform: rotate(-9deg); } }
.ear-r { animation: earWiggle 6.3s .7s ease-in-out infinite; transform-origin: 30% 90%; }
#pet .acc { transition: opacity .5s; }

/* ── AI 助理面板（移动=全屏） ── */
#aiFab { position: fixed; right: 16px; bottom: 112px; z-index: 56; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 24px; cursor: pointer; box-shadow: var(--shadow); display: none; }
#aiPanel { position: fixed; z-index: 70; right: 0; bottom: 0; width: 100%; height: 100%; max-height: 100dvh; background: #fff; display: none; flex-direction: column; box-shadow: var(--shadow); }
#aiPanel .hd { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--accent); color: #fff; }
#aiPanel .hd img { width: 34px; }
#aiPanel .hd b { font-size: 15.5px; }
#aiPanel .hd small { font-size: 11px; opacity: .85; display: block; }
#aiPanel .hd button { margin-left: auto; background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; padding: 4px 10px; }
#aiLog { flex: 1; overflow-y: auto; padding: 16px; background: var(--mist); }
#aiLog .msg { max-width: 86%; margin-bottom: 12px; padding: 10px 14px; border-radius: 13px; font-size: 14.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
#aiLog .u { background: var(--accent); color: #fff; margin-left: auto; border-radius: 13px 13px 3px 13px; }
#aiLog .a { background: #fff; border: 1px solid var(--line); border-radius: 13px 13px 13px 3px; }
#aiLog .oc { border: 1.5px solid var(--accent); background: var(--accent-l); border-radius: 13px; }
#aiLog .oc button { display: block; width: 100%; margin-top: 8px; padding: 11px; border-radius: 9px; border: 0; background: var(--accent); color: #fff; font-size: 14.5px; cursor: pointer; }
#aiLog .oc .row { display: flex; gap: 8px; margin: 7px 0; }
#aiLog .oc input { flex: 1; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; }
#aiBar { display: flex; gap: 8px; padding: 10px; background: #fff; border-top: 1px solid var(--line); }
#aiBar textarea { flex: 1; min-width: 0; height: 46px; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: 15px; resize: none; }
#aiBar button { flex: none; width: 54px; border-radius: 12px; border: 0; background: var(--accent); color: #fff; font-size: 19px; cursor: pointer; }
@media (min-width: 720px) {
  #aiPanel { right: 20px; bottom: 20px; width: 400px; height: 560px; max-height: calc(100dvh - 40px); border-radius: 16px; }
}
.dots i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--stone); animation: dots 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dots { 0%,60%,100% { opacity: .25; } 30% { opacity: 1; } }

/* 季节切换器 */
#season { position: fixed; left: 12px; bottom: 12px; z-index: 55; display: flex; gap: 4px; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 999px; padding: 3px; box-shadow: var(--shadow); }
#season button { border: 0; background: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 15px; opacity: .55; transition: .2s; }
#season button.on { opacity: 1; background: var(--accent-l); transform: scale(1.08); }
@media (max-width: 640px) { #season { bottom: 8px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; } }

/* ── 忠实镜像组件：产品图集/详情卡/新闻 tab ── */
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 18px 0 6px; }
.gal a { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.gal img { width: 100%; height: 120px; object-fit: contain; display: block; padding: 6px; background: #fff; }
.gal a:hover { border-color: var(--accent); box-shadow: var(--shadow); }
@media (max-width: 640px) { .gal { grid-template-columns: repeat(2, 1fr); } .gal img { height: 92px; } }

.pcard { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 26px; background: #fff; }
.pcard h2 { font-size: 21px; margin-bottom: 8px; }
.pcard > .sub { color: var(--stone); margin-bottom: 4px; }
.pcard .fine { color: var(--stone); font-size: 12px; margin-top: 8px; }

.ntabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 16px; }
.ntabs button { padding: 8px 18px; border: 1px solid var(--line); background: #fff; border-radius: 999px; cursor: pointer; font-size: 14.5px; }
.ntabs button.on { background: var(--rock); color: #fff; border-color: var(--rock); }
.pane2 { display: none; }
.pane2.on { display: block; }
