/* ============================================================
   AI 办公专区（合规内测二期，首页主推）
   四模板：公文写作 / 方案标书 / 合同助手 / 会议纪要
   组装提示词 -> 走 /api/lc/chat（deepseek 通道）按现有规则扣费
   · 合同助手显著提示「AI 辅助建议，需人工审定」
   · 所有结果显著标注「内容由 AI 生成」；支持一键复制
   ============================================================ */
:root{
  --office-grad:linear-gradient(135deg,#6366f1,#a855f7);
  --office-line:rgba(124,58,237,.35);
  --office-bg:#0a0a0a;
  --office-bg2:#111;
  --office-sub:#d3d7e3;
  --office-dim:#9ca3af;
  --office-ease:cubic-bezier(.22,.9,.28,1);
}
/* ---------- 首页 AI 办公横幅 ---------- */
.office-ribbon{
  margin:12px 0 6px var(--rail-w);max-width:none;padding:0 20px;
}
.office-ribbon__label{
  display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#c7c0ee;
  letter-spacing:1px;margin-bottom:12px;
}
.office-ribbon__label::before{content:"";width:14px;height:2px;background:var(--office-grad);border-radius:2px;}
.office-ribbon__grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:12px;
}
.office-card{
  position:relative;display:flex;flex-direction:column;gap:8px;padding:16px 14px;
  background:var(--office-bg);border:1px solid var(--office-line);border-radius:10px;
  color:#fff;text-align:left;cursor:pointer;overflow:hidden;transition:transform .3s var(--office-ease),box-shadow .3s var(--office-ease),border-color .3s;
}
.office-card::before{
  content:"";position:absolute;left:0;top:0;width:3px;height:100%;
  background:var(--office-grad);opacity:0;transition:opacity .3s;
}
.office-card:hover{transform:translateY(-3px);border-color:#7c3aed;box-shadow:0 8px 24px rgba(124,58,237,.18);}
.office-card:hover::before{opacity:1;}
.office-card__icon{font-size:24px;line-height:1;}
.office-card__name{font-size:15px;font-weight:600;color:#fff;}
.office-card__desc{font-size:12px;color:var(--office-dim);line-height:1.5;min-height:34px;}
.office-card__cta{font-size:12px;color:#a78bfa;margin-top:auto;}
@media(max-width:1024px){.office-ribbon__grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:600px){.office-ribbon__grid{grid-template-columns:1fr 1fr;}}

/* ---------- AI 办公弹层 ---------- */
.office-modal{display:none;}
.office-modal.open{display:grid;place-items:center;position:fixed;inset:0;z-index:9600;background:rgba(0,0,0,.74);}
.office-modal__box{
  width:min(760px,94vw);max-height:88vh;overflow:auto;background:var(--office-bg2);
  border:1px solid var(--office-line);border-radius:14px;padding:24px;color:#fff;
  animation:officeIn .32s var(--office-ease);
}
@keyframes officeIn{from{opacity:0;transform:translateY(14px) scale(.98);}to{opacity:1;transform:none;}}
.office-modal__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;}
.office-modal__title{font-size:18px;font-weight:700;display:flex;align-items:center;gap:8px;}
.office-modal__close{background:none;border:0;color:#9ca3af;font-size:22px;cursor:pointer;line-height:1;}
.office-modal__close:hover{color:#fff;}

.office-form__tip{font-size:12px;color:var(--office-dim);margin-bottom:12px;line-height:1.7;}
.office-form label{display:block;font-size:13px;color:var(--office-sub);margin:12px 0 6px;}
.office-form input,.office-form textarea,.office-form select{
  width:100%;box-sizing:border-box;background:#0a0a0a;border:1px solid var(--office-line);
  border-radius:8px;color:#fff;padding:9px 11px;font-size:14px;font-family:inherit;outline:none;
  transition:border-color .2s;
}
.office-form input:focus,.office-form textarea:focus,.office-form select:focus{border-color:#7c3aed;}
.office-form textarea{min-height:74px;resize:vertical;line-height:1.6;}
.office-form__row{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
@media(max-width:600px){.office-form__row{grid-template-columns:1fr;}}

.office-act{display:flex;gap:12px;align-items:center;margin-top:18px;flex-wrap:wrap;}
.office-btn{
  border:0;border-radius:8px;padding:10px 20px;font-size:14px;font-weight:600;cursor:pointer;
  color:#fff;background:var(--office-grad);transition:opacity .2s,transform .15s;
}
.office-btn:hover{opacity:.9;} .office-btn:active{transform:scale(.98);}
.office-btn--ghost{background:transparent;border:1px solid var(--office-line);color:var(--office-sub);}
.office-btn:disabled{opacity:.45;cursor:not-allowed;}

/* 输出区 */
.office-out{margin-top:16px;display:none;}
.office-out.show{display:block;}
.office-out__bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;flex-wrap:wrap;gap:8px;}
.office-out__badges{display:flex;gap:8px;flex-wrap:wrap;}
.office-badge--ai{display:inline-block;border:1px solid rgba(124,58,237,.45);color:#c4b5fd;background:rgba(124,58,237,.12);border-radius:3px;padding:1px 7px;font-size:11px;}
.office-badge--law{display:inline-block;border:1px solid rgba(245,166,35,.45);color:#f5a623;background:rgba(245,166,35,.08);border-radius:3px;padding:1px 7px;font-size:11px;}
.office-out__content{
  background:#0a0a0a;border:1px solid var(--office-line);border-radius:10px;padding:14px;
  font-size:14px;line-height:1.85;color:#e7e3f5;white-space:pre-wrap;word-break:break-word;max-height:52vh;overflow:auto;
}
.office-loading{display:none;align-items:center;gap:8px;color:var(--office-sub);font-size:14px;margin-top:14px;}
.office-loading.show{display:flex;}
.office-loading__dot{width:10px;height:10px;border-radius:50%;background:var(--office-grad);animation:officeBlink .9s infinite alternate;}
@keyframes officeBlink{from{opacity:.25;}to{opacity:1;}}
/* ---------- 首页首屏 hero（标语 + AI办公/AI创作 双主按钮） ---------- */
.home-landing{
  padding:56px 20px 30px;display:flex;justify-content:center;
  background:
    radial-gradient(1200px 420px at 50% -60px, rgba(124,58,237,.22), transparent 70%),
    transparent;
}
.home-landing__inner{max-width:1080px;width:100%;text-align:center;}
.home-landing__slogan{
  margin:0 0 14px;font-size:clamp(26px,4vw,40px);line-height:1.25;font-weight:700;color:#fff;
  letter-spacing:.5px;
}
.home-landing__sub{margin:0 auto 26px;max-width:720px;font-size:15px;line-height:1.8;color:var(--office-sub);}
.home-landing__cta{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;}
.home-landing__btn{
  min-width:168px;padding:14px 26px;font-size:16px;font-weight:600;border-radius:10px;cursor:pointer;
  transition:transform .28s var(--office-ease),box-shadow .28s var(--office-ease),opacity .2s;border:0;
}
.home-landing__btn--solid{
  color:#fff;background:linear-gradient(135deg,#6366f1,#a855f7);
  box-shadow:0 10px 26px rgba(124,58,237,.38);
}
.home-landing__btn--solid:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(124,58,237,.5);}
.home-landing__btn--ghost{color:#fff;background:rgba(124,58,237,.08);border:1px solid rgba(124,58,237,.45);}
.home-landing__btn--ghost:hover{transform:translateY(-2px);background:rgba(124,58,237,.16);}

/* ---------- 积分商城「兑换码充值」入口 ---------- */
.redeem-entry{margin:14px 0;padding:12px 14px;border:1px solid rgba(124,58,237,.3);border-radius:10px;background:#0d0d0f;}
.redeem-entry__title{font-size:14px;font-weight:600;color:#e7e3f5;margin-bottom:10px;}
.redeem-entry__row{display:flex;gap:8px;}
.redeem-entry__input{
  flex:1;min-width:0;padding:10px 12px;font-size:14px;color:#fff;background:#0a0a0a;
  border:1px solid rgba(124,58,237,.4);border-radius:8px;outline:none;text-transform:uppercase;
}
.redeem-entry__input:focus{border-color:#7c3aed;}
.redeem-entry__btn{flex:none;}
.redeem-entry__msg{margin:8px 0 0;font-size:12px;color:var(--office-sub);min-height:16px;}

@media (max-width:760px){
  .home-landing{padding:40px 16px 22px;}
  .home-landing__btn{min-width:138px;padding:12px 18px;font-size:15px;}
  .office-ribbon__grid{grid-template-columns:repeat(2,1fr);}
}
