/* =========================================================
   弈风棋牌 · 全局样式（依赖 theme.css 的 CSS 变量）
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部信息条 ---------- */
.topbar {
  background: var(--primary-dark);
  color: #fff;
  font-size: 13px;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; padding-bottom: 8px;
}
.topbar .tb-left { display: flex; gap: 24px; }
.topbar a { color: #fff; }
.topbar a:hover { text-decoration: underline; }

/* ---------- 头部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
/* Logo 自适应：方形/横版都能正常显示，不拉伸变形 */
.brand .logo { height: 44px; width: auto; max-width: 200px; object-fit: contain; flex-shrink: 0; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 8px 13px; border-radius: 8px; font-size: 15px;
  color: var(--text); transition: .2s;
  white-space: nowrap; /* 桌面端栏目一律横排，不换行 */
}
.nav a:hover { color: var(--primary); background: var(--accent-soft); }
.nav a.active { color: var(--primary); font-weight: 600; background: var(--accent-soft); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-tel { font-weight: 700; color: var(--primary); font-size: 15px; white-space: nowrap; }

/* ---------- 手机端：汉堡按钮 + 右侧抽屉菜单（桌面端隐藏） ---------- */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 10px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--text); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer-mask {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(2px);
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
  width: min(320px, 86vw);
  background: var(--surface, #fff);
  box-shadow: -12px 0 40px rgba(15, 23, 42, .18);
  transform: translateX(105%);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.drawer.open { transform: none; }

.drawer-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.drawer-hd img { height: 38px; width: auto; max-width: 170px; object-fit: contain; }
.drawer-close {
  width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 50%;
  background: var(--surface); color: var(--text-2);
  font-size: 15px; cursor: pointer; transition: .2s;
}
.drawer-close:hover { color: var(--primary); border-color: var(--primary); }

.drawer-nav { padding: 10px 12px; flex: 1; }
.drawer-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 14px; margin: 2px 0;
  border-radius: 10px; font-size: 15.5px; color: var(--text);
}
.drawer-nav a:hover { background: var(--accent-soft); }
.drawer-nav a.active {
  color: var(--primary); font-weight: 600; background: var(--accent-soft);
}
.drawer-nav a.active::after { content: "•"; color: var(--primary); }

.drawer-foot {
  padding: 16px 20px 22px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 14px;
}
.drawer-tel {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  background: var(--primary); color: #fff;
}
.drawer-tel .dt-icon { font-size: 20px; }
.drawer-tel small { display: block; font-size: 11px; opacity: .85; }
.drawer-tel b { font-size: 17px; letter-spacing: .5px; }

/* 主题切换开关 */
.theme-switch { display: flex; align-items: center; gap: 6px; }
.theme-switch button {
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); border-radius: 20px; padding: 6px 14px;
  cursor: pointer; font-size: 13px; transition: .2s;
}
.theme-switch button.on {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 8px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: none; transition: .2s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--accent-soft); }
.btn-sm { padding: 8px 18px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad); color: #fff;
  padding: 90px 0 110px;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 420px; height: 420px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.hero::before {
  content: ""; position: absolute; left: -60px; bottom: -100px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: 42px; line-height: 1.3; margin-bottom: 20px; max-width: 720px; }
.hero h1 .hl { color: #FDE68A; }
.hero .sub { font-size: 18px; opacity: .92; max-width: 640px; margin-bottom: 32px; }
.hero .cta-group { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.hero .hero-stats {
  display: flex; gap: 48px; margin-top: 56px; flex-wrap: wrap;
}
.hero-stat .num { font-size: 32px; font-weight: 800; }
.hero-stat .label { font-size: 14px; opacity: .85; }

/* ---------- 区块通用 ---------- */
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title .kicker { color: var(--primary); font-weight: 600; letter-spacing: 2px; font-size: 14px; }
.section-title h2 { font-size: 34px; margin: 8px 0 12px; }
.section-title p { color: var(--text-2); max-width: 620px; margin: 0 auto; }

/* ---------- 服务卡片 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; transition: .25s;
  box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 20px; background: var(--accent-soft); color: var(--primary); }
.card h3 { font-size: 21px; margin-bottom: 12px; }
.card p { color: var(--text-2); font-size: 15px; }
.card ul { margin-top: 16px; }
.card ul li { padding: 6px 0; color: var(--text-2); font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.card ul li::before { content: "✓"; color: var(--success); font-weight: 700; }

/* ---------- 留资区块 ---------- */
.lead-section { background: var(--surface-2); }
.lead-box {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  display: grid; grid-template-columns: 1.2fr 1fr;
}
.lead-info { padding: 48px; background: var(--grad); color: #fff; }
.lead-info h3 { font-size: 26px; margin-bottom: 16px; }
.lead-info p { opacity: .9; margin-bottom: 28px; }
.contact-item { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.contact-item .ci { width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.contact-item .ci-text .t { font-size: 13px; opacity: .8; }
.contact-item .ci-text .v { font-size: 18px; font-weight: 700; }

.lead-form { padding: 48px; }
.lead-form h4 { font-size: 20px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--text-2); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 15px; background: var(--bg); color: var(--text);
  font-family: inherit; transition: .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-full { grid-column: 1 / -1; }

/* 微信二维码 */
.wechat-qr { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--surface-2); border-radius: 12px; margin-top: 8px; }
.wechat-qr .qr-box { width: 84px; height: 84px; background: #fff; border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wechat-qr .qr-text .t { font-weight: 600; font-size: 15px; }
.wechat-qr .qr-text .d { font-size: 13px; color: var(--text-2); }

/* ---------- 页脚 ---------- */
.site-footer { background: #0F172A; color: #CBD5E1; padding: 60px 0 24px; margin-top: 0; }
.site-footer .foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.site-footer a { color: #CBD5E1; font-size: 14px; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .foot-brand p { font-size: 14px; opacity: .8; margin-top: 12px; }
.site-footer .foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; font-size: 13px; text-align: center; opacity: .7; }

/* ---------- 面包屑 / 页头 ---------- */
.page-hero { background: var(--grad); color: #fff; padding: 56px 0; }
.page-hero h1 { font-size: 34px; margin-bottom: 8px; }
.page-hero .breadcrumb { font-size: 14px; opacity: .85; }

/* ---------- 服务详情页 ---------- */
.svc-hero { padding: 70px 0 40px; }
.svc-hero h1 { font-size: 36px; }
.svc-hero .lead { font-size: 18px; color: var(--text-2); max-width: 720px; margin-top: 16px; }
.svc-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.svc-content h2 { font-size: 24px; margin: 32px 0 16px; padding-left: 14px; border-left: 4px solid var(--primary); }
.svc-content p { color: var(--text-2); margin-bottom: 14px; }
.svc-content .flow-list li { padding: 12px 0; border-bottom: 1px dashed var(--border); display: flex; gap: 12px; }
.svc-content .flow-list .step { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.svc-side { position: sticky; top: 90px; }

/* ---------- 浮层留资（移动端/侧边） ---------- */
.float-bar {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: flex; flex-direction: column; gap: 12px;
}
.float-bar a {
  width: 54px; height: 54px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 22px;
  background: var(--primary); color: #fff; box-shadow: var(--shadow-lg);
  transition: .2s;
}
.float-bar a:hover { transform: scale(1.1); }
.float-bar .fb-wechat { background: #07C160; }

/* ---------- 行业资讯 / 文章 ---------- */
.news-section { background: var(--surface-2); padding: 70px 0; }
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: .25s;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-card .news-thumb {
  height: 160px; background: var(--grad); display: flex; align-items: center;
  justify-content: center; font-size: 40px; color: rgba(255,255,255,.9);
}
.news-card .news-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.news-card .news-tag { display: inline-block; font-size: 12px; color: var(--primary); background: var(--accent-soft); padding: 2px 10px; border-radius: 12px; margin-bottom: 12px; align-self: flex-start; }
.news-card h4 { font-size: 17px; line-height: 1.5; margin-bottom: 10px; }
.news-card h4 a:hover { color: var(--primary); }
.news-card .news-desc { font-size: 14px; color: var(--text-2); flex: 1; margin-bottom: 16px; }
.news-card .news-meta { font-size: 12px; color: var(--text-3); border-top: 1px solid var(--border); padding-top: 12px; }
.news-more { text-align: center; margin-top: 36px; }

/* 文章详情页 */
.article-hero { background: var(--grad); color: #fff; padding: 56px 0; }
.article-hero h1 { font-size: 32px; line-height: 1.4; }
.article-hero .meta { margin-top: 16px; font-size: 14px; opacity: .85; }
.article-body { padding: 60px 0; }
.article-body .article-inner { max-width: 820px; margin: 0 auto; }
.article-body h2 { font-size: 22px; margin: 30px 0 14px; padding-left: 14px; border-left: 4px solid var(--primary); }
.article-body p { color: var(--text-2); margin-bottom: 16px; font-size: 16px; }
.article-body ul { margin: 12px 0 20px 20px; list-style: disc; }
.article-body ul li { margin-bottom: 8px; color: var(--text-2); }

/* ---------- 四列卡片 ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* ---------- 在线客服 ---------- */
.cs-widget { position: fixed; right: 22px; bottom: 22px; z-index: 9999; font-family: inherit; }
.cs-toggle {
  position: relative; width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--grad); color: #fff; font-size: 24px; box-shadow: 0 6px 20px rgba(0,0,0,.22);
  display: flex; align-items: center; justify-content: center; transition: transform .2s;
}
.cs-toggle:hover { transform: scale(1.08); }
.cs-toggle .cs-badge {
  position: absolute; top: -4px; right: -4px; background: #f0483e; color: #fff;
  font-size: 11px; line-height: 1; padding: 3px 6px; border-radius: 10px; display: none;
}
.cs-panel {
  position: absolute; right: 0; bottom: 70px; width: 344px; max-width: calc(100vw - 30px);
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.2); overflow: hidden; display: none; flex-direction: column;
}
.cs-panel.open { display: flex; }
.cs-head { background: var(--grad); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.cs-head .cs-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.cs-head .cs-title { font-size: 15px; font-weight: 600; }
.cs-head .cs-sub { font-size: 12px; opacity: .85; }
.cs-head .cs-close { margin-left: auto; background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; }
.cs-body { height: 306px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.cs-msg { max-width: 80%; padding: 10px 13px; border-radius: 12px; font-size: 14px; line-height: 1.55; word-break: break-word; }
.cs-msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.cs-msg.user { align-self: flex-end; background: var(--primary); color: #fff; }
.cs-msg .cs-time { display: block; font-size: 11px; opacity: .6; margin-top: 4px; }
.cs-form { padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.cs-form input { border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; font-size: 14px; outline: none; background: var(--surface); color: var(--text); }
.cs-form input:focus { border-color: var(--primary); }
.cs-form .cs-start { background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 10px; cursor: pointer; font-size: 14px; }
.cs-form .cs-tip { font-size: 12px; color: var(--text-3); }
.cs-foot { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); background: var(--surface); }
.cs-foot input { flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; font-size: 14px; outline: none; background: var(--surface); color: var(--text); }
.cs-foot input:focus { border-color: var(--primary); }
.cs-foot .cs-send { background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 0 16px; cursor: pointer; font-size: 14px; }
.cs-foot .cs-send:hover { opacity: .9; }

/* 访客留联系方式条 */
.cs-identify { display: flex; gap: 6px; padding: 10px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.cs-identify input { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 13px; outline: none; background: var(--surface); color: var(--text); }
.cs-identify input:focus { border-color: var(--primary); }
.cs-identify .cs-save-info { background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 0 12px; font-size: 13px; cursor: pointer; white-space: nowrap; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .lead-box { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .site-footer .foot-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav { display: none; }           /* 桌面横排导航隐藏，改用右侧抽屉 */
  .header-tel { display: none; }
  .site-header .theme-switch { display: none; }  /* 主题切换移入抽屉 */
  .nav-toggle { display: flex; }    /* 显示汉堡按钮 */
  .site-header .container { height: 60px; }
  .brand .logo { height: 36px; max-width: 150px; }
  .hero h1 { font-size: 32px; }
  .section-title h2 { font-size: 28px; }
  .news-list { grid-template-columns: 1fr; }
}

/* ---------- 文章页 上一篇/下一篇 ---------- */
.pn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pn-grid a { color: var(--text); font-weight: 600; line-height: 1.5; }
.pn-grid a:hover { color: var(--primary); }
@media (max-width: 700px) {
  .pn-grid { grid-template-columns: 1fr; gap: 16px; }
  .pn-grid .pn-next, .pn-grid div[style*="text-align:right"] { text-align: left; }
}

/* ===== 弈风棋牌追加样式 ===== */
.tldr { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: var(--radius, 10px); padding: 16px 20px; margin: 0 0 26px; }
.tldr h4 { margin: 0 0 8px; color: var(--primary); font-size: 15px; }
.tldr p { margin: 0; color: var(--text-2); font-size: 15px; }
.disclaimer { margin-top: 28px; padding: 12px 16px; background: var(--surface-2); border: 1px dashed var(--border); border-radius: 8px; color: var(--text-3); font-size: 13px; }
.crumbs { font-size: 13px; color: var(--text-3); padding: 14px 0; }
.crumbs a { color: var(--text-3); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }
.card .card-img { width: 100%; height: 150px; object-fit: cover; display: block; border-radius: var(--radius, 10px); margin-bottom: 14px; }
.card .card-img.cover-top { margin: -18px -18px 14px; width: calc(100% + 36px); border-radius: var(--radius, 10px) var(--radius, 10px) 0 0; }
.faq-block { margin-top: 30px; }
.faq-block h3 { font-size: 18px; margin-bottom: 14px; }
.faq-item { border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; background: var(--surface); }
.faq-item .q { font-weight: 600; color: var(--text); margin-bottom: 6px; }
.faq-item .a { color: var(--text-2); font-size: 15px; }
.hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .16; pointer-events: none; }
.notice-bar { background: #FFF8E6; color: #8A6D1B; font-size: 13px; padding: 8px 0; text-align: center; }


/* ===== 在线客服（自 PHP 版移植） ===== */

/* 客服组件用到的变量兜底（企业版主题下取近似值） */
:root{
  --green:#1e9e6a; --green-2:#178a5c;
  --ink-3:#94a3b8; --jade:#2f9e6e;
  --paper:#ffffff; --ink:#1e293b;
  --red:#a8342a; --gold:#b8860b;
}
.cs-fab{
  position:fixed;right:26px;bottom:28px;z-index:90;display:flex;flex-direction:column;gap:10px;align-items:flex-end;
}
.cs-bubble{
  display:flex;align-items:center;gap:9px;background:var(--green);color:#f7f2e4;
  border-radius:99px;padding:11px 18px 11px 14px;font-size:13.5px;cursor:pointer;
  box-shadow:0 10px 28px -8px rgba(15,61,46,.55);border:0;transition:.2s;
}
.cs-bubble:hover{background:var(--green-2);transform:translateY(-2px)}
.cs-dot{width:8px;height:8px;border-radius:50%;background:#7ee0a8;box-shadow:0 0 0 3px rgba(126,224,168,.22)}
.cs-dot.off{background:#c9b48d;box-shadow:0 0 0 3px rgba(201,180,141,.22)}

.cs-panel{
  width:340px;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;
  box-shadow:0 24px 60px -20px rgba(27,38,32,.4);display:none;transform-origin:bottom right;
}
.cs-panel.open{display:block;animation:pop .18s ease-out}
@keyframes pop{from{opacity:0;transform:scale(.96) translateY(6px)}to{opacity:1;transform:none}}
.cs-head{
  background:linear-gradient(135deg,#12452f,#0d3527);color:#f3ecd9;padding:14px 16px;
  display:flex;align-items:center;gap:10px;
}
.cs-head .ava{
  width:34px;height:34px;border-radius:50%;background:rgba(217,185,107,.18);
  border:1px solid rgba(217,185,107,.4);display:grid;place-items:center;color:var(--gold-2);font-size:13px;
}
.cs-head b{font-size:14px;display:block}
.cs-head span{font-size:11.5px;color:rgba(243,236,217,.65)}
.cs-close{margin-left:auto;background:none;border:0;color:rgba(243,236,217,.7);font-size:18px;cursor:pointer;line-height:1}
.cs-body{padding:16px;max-height:330px;overflow:auto}
.cs-msg{display:flex;gap:8px;margin-bottom:12px}
.cs-msg .b{
  background:var(--paper-2);border-radius:12px 12px 12px 3px;padding:10px 13px;font-size:13px;
  color:var(--ink-2);line-height:1.65;max-width:255px;
}
.cs-msg.me{justify-content:flex-end}
.cs-msg.me .b{background:var(--green);color:#f6efdc;border-radius:12px 12px 3px 12px}
.cs-quick{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 14px}
.cs-quick button{
  font-size:12px;padding:5px 10px;border-radius:99px;border:1px solid var(--line);
  background:#fff;color:var(--ink-2);cursor:pointer;
}
.cs-quick button:hover{border-color:var(--gold);color:var(--gold)}
.cs-form{border-top:1px solid var(--line);padding:14px 16px 16px;background:#fdfcf8}
.cs-form p{font-size:12px;color:var(--ink-3);margin-bottom:10px;line-height:1.6}
.field{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}
.field input,.field select,.field textarea{
  width:100%;border:1px solid var(--line);border-radius:9px;padding:9px 11px;font-size:13px;
  font-family:inherit;background:#fff;color:var(--ink);outline:none;transition:.15s;
}
.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--jade);box-shadow:0 0 0 3px rgba(46,139,111,.1)}
.field label{font-size:12px;color:var(--ink-2)}
.cs-form .btn{width:100%;font-size:13.5px;padding:10px}
.cs-note{font-size:11px;color:var(--ink-3);margin-top:9px;text-align:center;line-height:1.6}
.cs-ok{
  display:none;text-align:center;padding:26px 16px;
}
.cs-ok .tick{
  width:44px;height:44px;border-radius:50%;background:#eaf5ef;color:var(--jade);
  display:grid;place-items:center;margin:0 auto 12px;font-size:20px;
}
.cs-ok b{font-size:14.5px;display:block;margin-bottom:6px}
.cs-ok p{font-size:12.5px;color:var(--ink-3)}

