:root{
  --bg:#F5F6F8;
  --card:#FFFFFF;
  --ink:#14171A;
  --ink2:#3D444D;
  --muted:#8A9099;
  --line:#EDEFF2;
  --red:#C8170E;
  --red-dark:#960806;
  --gold:#C9A35C;
  --radius:18px;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{height:100%}
body{
  margin:0;
  background:#0d0f12;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue","Microsoft YaHei",sans-serif;
  color:var(--ink);
  display:flex;align-items:center;justify-content:center;
}

/* 手机外框（浏览器预览用） */
.phone{
  position:relative;
  width:390px;height:844px;
  background:var(--bg);
  overflow:hidden;
  border-radius:44px;
  box-shadow:0 30px 80px rgba(0,0,0,.6),0 0 0 11px #1b1e22;
}
.screen{
  display:none;
  position:absolute;inset:0;
  background:var(--bg);
  overflow:hidden;
}
.screen.active{display:block}

.status-bar{
  height:52px;padding:0 26px;
  display:flex;align-items:flex-end;justify-content:space-between;
  font-size:13px;font-weight:600;color:#111;
  padding-bottom:8px;
}
.sb-right{letter-spacing:1px}

/* ===== 首页头部 ===== */
.home-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:6px 20px 16px;
}
.brand{display:flex;align-items:center;gap:9px}
.brand-logo{
  width:38px;height:38px;border-radius:50%;
  background:linear-gradient(160deg,#C8170E,#8A0605);
  color:#FFF3D6;font-size:17px;font-weight:700;
  display:block;object-fit:cover;
}
.brand-txt .b1{font-size:15px;font-weight:700;letter-spacing:.5px}
.brand-txt .b2{font-size:8px;color:var(--muted);letter-spacing:.6px;margin-top:2px}
.promo{
  font-size:12px;font-weight:600;color:#7A3A1E;
  background:linear-gradient(180deg,#FFE9A8,#F7CE6B);
  padding:7px 12px;border-radius:999px;
}

/* 四个快捷入口 */
.quick{
  display:flex;justify-content:space-between;
  padding:6px 18px 18px;
}
.q{
  flex:1;border:0;background:transparent;
  display:flex;flex-direction:column;align-items:center;gap:8px;
  cursor:pointer;
}
.q em{font-style:normal;font-size:11.5px;color:var(--ink2)}
.qi{
  width:44px;height:44px;border-radius:14px;display:block;
  background:#E9EBEF center/22px no-repeat;
}
.qi-import{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%2314171A' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M11 3v10m0 0l-4-4m4 4l4-4M3 16v2h16v-2'/%3E%3C/svg%3E")}
.qi-rec{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%23C8170E' stroke-width='1.7' stroke-linecap='round'%3E%3Crect x='8' y='2' width='6' height='11' rx='3'/%3E%3Cpath d='M4 10a7 7 0 0 0 14 0M11 17v3'/%3E%3C/svg%3E")}
.qi-brain{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%2314171A' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M8 4a3 3 0 0 0-3 3 3 3 0 0 0-1 5 3 3 0 0 0 3 4 3 3 0 0 0 3-2V6a3 3 0 0 0-2-2z'/%3E%3Cpath d='M14 4a3 3 0 0 1 3 3 3 3 0 0 1 1 5 3 3 0 0 1-3 4 3 3 0 0 1-3-2'/%3E%3C/svg%3E")}
.qi-meet{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%2314171A' stroke-width='1.7' stroke-linecap='round'%3E%3Crect x='2' y='5' width='13' height='12' rx='3'/%3E%3Cpath d='M15 10l5-3v8l-5-3'/%3E%3C/svg%3E")}

/* 筛选行 */
.filter-row{
  display:flex;align-items:center;
  padding:0 20px 6px;
}
.filter{
  border:0;background:transparent;font-size:15px;font-weight:600;color:var(--ink);
  display:flex;align-items:center;gap:5px;cursor:pointer;
}
.filter i{font-style:normal;font-size:10px;color:var(--muted)}
.spacer{flex:1}
.icon-btn{
  border:0;background:transparent;font-size:17px;color:var(--ink2);
  width:34px;height:34px;cursor:pointer;
}

/* 列表 */
.list{height:calc(100% - 300px);overflow-y:auto;padding:0 16px 20px}
.day{font-size:14px;font-weight:600;color:var(--ink2);margin:16px 4px 10px}
.item{
  background:var(--card);border-radius:var(--radius);
  padding:16px 16px 14px;margin-bottom:13px;cursor:pointer;
  box-shadow:0 1px 2px rgba(16,24,40,.03);
}
.item-top{display:flex;align-items:center;gap:7px}
.item-dot{width:8px;height:8px;border-radius:50%;background:#5B6CF9;flex:0 0 8px}
.item-dot.new{background:#EE4B4B}
.item-title{font-size:17px;font-weight:700;line-height:1.4;letter-spacing:-.2px}
.item-meta{
  display:flex;flex-wrap:wrap;gap:12px;margin-top:9px;
  font-size:11.5px;color:var(--muted);
}
.item-quote{
  display:flex;gap:8px;margin-top:12px;
  font-size:13px;line-height:1.65;color:#6B7480;
}
.item-quote .qm{color:#C9CED6;font-size:18px;line-height:1;flex:0 0 auto}
.item-quote p{margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.item-thumb{width:64px;height:44px;border-radius:6px;background:#F3F5F8;flex:0 0 64px}

/* 悬浮录音键 */
.fab{
  position:absolute;right:18px;bottom:26px;
  width:62px;height:62px;border-radius:50%;
  border:0;color:#fff;cursor:pointer;
  background:linear-gradient(160deg,#D9271C,#960806);
  box-shadow:0 12px 26px rgba(200,23,14,.4);
  display:flex;align-items:center;justify-content:center;
}

/* ===== 详情页 ===== */
.detail-head{
  display:flex;align-items:center;gap:2px;
  padding:2px 14px 8px;
}
.detail-head .icon-btn{font-size:19px}
.ai-avatar{
  width:30px;height:30px;border-radius:50%;border:0;
  margin-left:6px;cursor:pointer;padding:0;overflow:hidden;
  background:linear-gradient(160deg,#C8170E,#8A0605);
  color:#FFF3D6;font-size:12px;font-weight:700;
}
.ai-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
.detail-body{
  height:calc(100% - 240px);
  overflow-y:auto;padding:4px 20px 24px;background:var(--bg);
}
.d-title{
  font-size:25px;line-height:1.35;font-weight:700;letter-spacing:-.4px;
  margin:6px 0 12px;
}
.d-meta{display:flex;flex-wrap:wrap;gap:14px;font-size:12px;color:var(--muted)}
.d-meta .loc{width:100%;display:flex;align-items:center;gap:5px}
.d-sep{height:1px;background:var(--line);margin:18px 0}

.sec-h{display:flex;align-items:center;gap:7px;font-size:19px;font-weight:700}
.sec-h .spark{color:#7C6BFF;font-size:15px}
.summary{
  display:flex;gap:9px;margin-top:14px;
  font-size:14.5px;line-height:1.8;color:#4C545E;
}
.summary .qm{color:#C9CED6;font-size:22px;line-height:1;flex:0 0 auto}

.mcard{
  margin-top:16px;padding:16px;border-radius:16px;background:#fff;
  border:1px solid #F0E7EA;
}
.mcard h4{margin:0 0 8px;font-size:14px;letter-spacing:-.1px}
.mcard ul{margin:0;padding-left:16px}
.mcard li{font-size:12.5px;line-height:1.75;color:#5A626C;margin-bottom:3px}
.mcard .tagline{font-size:11px;color:#B08A4A;letter-spacing:.4px;margin-bottom:6px}
.mcard .red{color:var(--red-dark)}

.d-actions{display:flex;gap:10px;margin-top:18px}
.d-actions button{
  flex:1;height:44px;border-radius:12px;border:1px solid #E6E8EC;background:#fff;
  font-size:14px;font-weight:600;color:#2A2F36;cursor:pointer;
}
.d-actions button.primary{
  background:#14171A;color:#fff;border:1px solid #14171A;
}
.del-btn{
  display:block;margin:28px auto 10px;border:0;background:transparent;
  color:#9AA1AA;font-size:12.5px;cursor:pointer;
}

/* 播放器 */
.player{
  position:absolute;left:0;right:0;bottom:0;
  padding:10px 20px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);
  border-top:1px solid var(--line);
  backdrop-filter:blur(8px);
}
.player.no-audio{opacity:.55}
.player.no-audio .play{background:#B7BDC6}
.toast{
  position:absolute;left:50%;bottom:180px;transform:translateX(-50%);
  background:rgba(20,23,26,.88);color:#fff;font-size:12.5px;padding:9px 14px;
  border-radius:999px;z-index:60;white-space:nowrap;
}
.speaker-row{display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}
.spk{color:#2E9E6B;font-weight:600}
.player-bar{display:flex;align-items:center;gap:14px;margin-top:8px}
.speed{
  border:0;background:transparent;font-size:12px;color:#4C545E;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;line-height:1.2;
}
.speed i{font-style:normal;font-size:7px;color:var(--muted)}
.skip{
  border:0;background:transparent;font-size:15px;color:#14171A;cursor:pointer;
  display:flex;align-items:center;gap:1px;
}
.skip i{font-style:normal;font-size:9px}
.play{
  width:46px;height:46px;border-radius:50%;border:0;cursor:pointer;
  background:#14171A;color:#fff;font-size:15px;
}
.total{margin-left:auto;font-size:11px;color:var(--muted);text-align:right;line-height:1.3}
.total em{display:block;font-style:normal}
.gen-note{text-align:center;font-size:10px;color:#B3B9C2;margin-top:4px}

/* ===== Chat 半屏 ===== */
.sheet-mask{
  position:absolute;inset:0;background:rgba(12,14,18,.45);
  opacity:0;pointer-events:none;transition:.25s;
}
.sheet-mask.on{opacity:1;pointer-events:auto}
.sheet{
  position:absolute;left:8px;right:8px;bottom:8px;height:86%;
  background:#fff;border-radius:26px;
  display:flex;flex-direction:column;overflow:hidden;
  transform:translateY(110%);transition:transform .3s cubic-bezier(.3,.8,.3,1);
}
.sheet.on{transform:translateY(0)}
.sheet-head{display:flex;align-items:center;padding:14px 16px 6px;gap:10px}
.seg{display:flex;background:#F2F3F6;border-radius:999px;padding:3px}
.seg-item{
  border:0;background:transparent;padding:7px 18px;border-radius:999px;
  font-size:13.5px;color:#6B7480;cursor:pointer;
}
.seg-item.on{background:#fff;color:#14171A;font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.close{margin-left:auto;border:0;background:transparent;font-size:17px;color:#9AA1AA;cursor:pointer}

.chat-body{flex:1;overflow-y:auto;padding:8px 22px 12px}
.chat-logo{
  width:46px;height:46px;border-radius:14px;margin-top:12px;
  background:linear-gradient(160deg,#C8170E,#8A0605);
  color:#FFF3D6;font-size:18px;font-weight:700;
  display:block;object-fit:cover;
}
.chat-hero h2{font-size:26px;line-height:1.35;letter-spacing:-.5px;margin:16px 0 10px}
.chat-hero p{margin:0;font-size:14.5px;line-height:1.75;color:#5A626C}
.suggests{display:flex;flex-direction:column;gap:10px;margin-top:22px}
.sg{
  text-align:left;border:0;background:#F4F5F7;border-radius:14px;
  padding:15px 16px;font-size:14px;color:#3D444D;cursor:pointer;
}
.msg{display:flex;margin-top:16px}
.msg.me{justify-content:flex-end}
.msg .bubble{
  max-width:82%;padding:12px 14px;border-radius:16px;
  font-size:14px;line-height:1.7;
}
.msg.ai .bubble{background:#F5F6F8;color:#2E343C;border-bottom-left-radius:5px}
.msg.me .bubble{background:linear-gradient(160deg,#C8170E,#960806);color:#fff;border-bottom-right-radius:5px}
.msg .src{margin-top:7px;font-size:10.5px;color:#9AA1AA}
.chat-input{
  display:flex;align-items:center;gap:9px;
  margin:0 16px 18px;padding:8px 8px 8px 16px;
  border:1.5px solid #14171A;border-radius:999px;background:#fff;
}
.chat-input .star{color:#7C6BFF;font-size:14px}
.chat-input input{flex:1;border:0;outline:0;font-size:14.5px;background:transparent}
.chat-input input::placeholder{color:#B3B9C2}
.send{
  width:34px;height:34px;border-radius:50%;border:0;cursor:pointer;
  background:#EDEFF2;color:#fff;font-size:12px;
}
.send.on{background:#14171A}

/* ===== 录音浮层 ===== */
.rec-mask{
  position:absolute;inset:0;background:#0B0D11;
  display:none;align-items:center;justify-content:center;
  z-index:30;
}
.rec-mask.on{display:flex}
.rec-panel{display:flex;flex-direction:column;align-items:center;text-align:center;color:#fff}
.rec-time{font-size:52px;font-weight:700;letter-spacing:1px;font-variant-numeric:tabular-nums}
.rec-wave{display:flex;align-items:center;justify-content:center;gap:6px;height:48px;margin-top:14px}
.rec-wave i{width:5px;height:10px;border-radius:3px;background:#FF6B5E;animation:w 1s ease-in-out infinite}
.rec-wave i:nth-child(2){animation-delay:.1s}
.rec-wave i:nth-child(3){animation-delay:.2s}
.rec-wave i:nth-child(4){animation-delay:.3s}
.rec-wave i:nth-child(5){animation-delay:.4s}
.rec-wave i:nth-child(6){animation-delay:.5s}
.rec-wave i:nth-child(7){animation-delay:.6s}
@keyframes w{0%,100%{height:10px}50%{height:44px}}
.rec-hint{font-size:12.5px;color:rgba(255,255,255,.6);margin-top:4px}
.rec-stop{
  width:84px;height:84px;border-radius:50%;border:3px solid rgba(255,255,255,.35);
  background:transparent;margin-top:26px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
}
.rec-stop span{width:30px;height:30px;border-radius:7px;background:#FF4D3D}
.rec-cancel{
  margin-top:20px;border:0;background:transparent;color:rgba(255,255,255,.65);
  font-size:13px;cursor:pointer;
}
.rec-text{
  width:100%;max-width:310px;max-height:170px;overflow-y:auto;
  margin-top:18px;text-align:left;font-size:13.5px;line-height:1.8;
  color:rgba(255,255,255,.9);
}
.rec-text .line{margin-bottom:6px}
.rec-text .partial{color:rgba(255,255,255,.42)}
.rec-text .warn{color:#FFB4A8;font-size:12px;margin-top:6px}

/* ===== 导入会议浮层 ===== */
.imp-mask{
  position:absolute;inset:0;background:rgba(16,18,22,.55);
  display:none;align-items:flex-end;z-index:40;
}
.imp-mask.on{display:flex}
.imp-panel{
  width:100%;background:#fff;border-radius:20px 20px 0 0;
  padding:18px 18px calc(18px + env(safe-area-inset-bottom));box-sizing:border-box;
}
.imp-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.imp-head b{font-size:17px;letter-spacing:-.2px}
.imp-head button{
  border:0;background:#F2F3F5;width:30px;height:30px;border-radius:50%;
  font-size:13px;cursor:pointer;color:#5A626C;
}
.imp-tabs{display:flex;gap:8px;background:#F4F5F7;border-radius:12px;padding:4px;margin-bottom:14px}
.imp-tabs button{
  flex:1;border:0;background:transparent;height:34px;border-radius:9px;
  font-size:13.5px;color:#6B727C;cursor:pointer;
}
.imp-tabs button.on{background:#fff;color:#14171A;font-weight:600;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.imp-panel textarea{
  width:100%;height:150px;box-sizing:border-box;border:1px solid #E6E8EC;border-radius:12px;
  padding:12px;font-size:13.5px;line-height:1.7;resize:none;outline:0;
  font-family:inherit;background:#FAFBFC;
}
.imp-panel textarea:focus{border-color:#C8170E;background:#fff}
.imp-panel input[type=text]{
  width:100%;box-sizing:border-box;height:42px;border:1px solid #E6E8EC;border-radius:11px;
  padding:0 12px;font-size:13.5px;outline:0;margin-top:10px;background:#FAFBFC;
}
.imp-go{
  width:100%;height:48px;border:1px solid #C8170E;background:#C8170E;color:#fff;
  border-radius:14px;font-size:15px;font-weight:600;margin-top:14px;cursor:pointer;
}
.imp-go:disabled{opacity:.55}
.imp-hint{font-size:11.5px;color:#9AA1AA;line-height:1.6;margin-top:10px}
.imp-drop{
  display:block;border:1px dashed #D9DCE1;border-radius:12px;padding:24px 14px;
  text-align:center;font-size:13px;color:#6B727C;cursor:pointer;line-height:1.8;
}
.imp-drop small{color:#9AA1AA;font-size:11.5px}
#impFile{display:none}
.empty{
  margin:80px 24px;text-align:center;color:#9AA1AA;font-size:13.5px;line-height:1.9;
}
.empty b{display:block;color:#14171A;font-size:16px;margin-bottom:6px}

/* ===== V2 · 按讯飞听见真机结构优化 ===== */
.list-label{font-size:18px;font-weight:700;letter-spacing:-.3px}
.list{height:calc(100% - 300px)}
.list-tabs{
  display:flex;gap:22px;padding:0 20px 0;margin:0 -16px;
  border-bottom:1px solid #F0F1F3;
}
.list-tabs button{
  border:0;background:transparent;font-size:14px;color:#8A9099;
  padding:2px 0 10px;position:relative;cursor:pointer;
}
.list-tabs button.on{color:#14171A;font-weight:600}
.list-tabs button.on::after{
  content:'';position:absolute;left:50%;transform:translateX(-50%);
  bottom:0;width:18px;height:2.5px;border-radius:2px;background:#C8170E;
}
.item{
  padding:18px 16px 16px;border-radius:18px;
  border:1px solid #F0F1F3;box-shadow:0 2px 10px rgba(20,23,26,.03);
}
.item-title{font-size:19px;line-height:1.38;letter-spacing:-.3px}
.item-meta{font-size:11.5px;margin-top:8px}
.item-quote{margin-top:10px;font-size:13.5px;line-height:1.7}
.item-quote p{-webkit-line-clamp:3}
.item-thumb{
  width:56px;height:56px;border-radius:8px;background:#fff;
  border:1px solid #ECEEF2;position:relative;overflow:hidden;
}
.item-thumb::before{
  content:'';position:absolute;left:8px;right:8px;top:10px;height:3px;border-radius:2px;
  background:#E8EBF0;box-shadow:0 8px 0 #E8EBF0,0 16px 0 #E8EBF0,0 24px 0 #EDF0F4;
}
.item-thumb::after{
  content:'';position:absolute;right:-8px;bottom:-8px;width:30px;height:30px;border-radius:50%;
  background:radial-gradient(circle,#FDE8E6,#FFF);opacity:.9;
}
.day{font-size:15px;margin:20px 4px 10px}

.d-seg{
  display:flex;gap:6px;background:#F3F4F6;border-radius:12px;padding:3px;
  margin:4px 0 16px;
}
.d-seg button{
  flex:1;height:36px;border:0;border-radius:9px;background:transparent;
  font-size:14px;color:#6B727C;cursor:pointer;
}
.d-seg button.on{background:#fff;color:#14171A;font-weight:600;box-shadow:0 1px 4px rgba(0,0,0,.07)}
.spk-row{display:flex;align-items:center;gap:10px;margin:18px 0 8px}
.spk-name{font-size:12.5px;font-weight:600;color:#1E9E63}
.spk-time{font-size:11.5px;color:#9AA1AA}

.rec-page{
  position:absolute;inset:0;background:#fff;z-index:30;
  display:none;flex-direction:column;
}
.rec-page.on{display:flex}
.rec-top{
  display:flex;align-items:center;gap:8px;padding:4px 14px 12px;
  border-bottom:1px solid #F3F4F6;
}
.rec-top .spacer{flex:1}
.rec-timer{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:.2px}
.rec-wave-mini{display:flex;align-items:center;gap:2px;height:18px;margin-left:2px}
.rec-wave-mini i{width:2.5px;height:6px;border-radius:2px;background:#C8170E;animation:w2 1s ease-in-out infinite}
.rec-wave-mini i:nth-child(2){animation-delay:.12s}
.rec-wave-mini i:nth-child(3){animation-delay:.24s}
.rec-wave-mini i:nth-child(4){animation-delay:.36s}
.rec-wave-mini i:nth-child(5){animation-delay:.48s}
@keyframes w2{0%,100%{height:6px}50%{height:17px}}
.rec-stop-btn{
  width:34px;height:34px;border-radius:50%;border:1.5px solid #14171A;background:#fff;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
}
.rec-stop-btn span{width:12px;height:12px;border-radius:3px;background:#14171A}
.rec-body{flex:1;overflow-y:auto;padding:20px 22px 0}
.rec-title{font-size:26px;letter-spacing:-.6px;margin:0 0 10px;font-weight:700}
.rec-meta,.rec-loc{font-size:12.5px;color:#8A9099;margin-top:2px}
.rec-live{
  margin-top:26px;font-size:19px;line-height:1.7;color:#14171A;
  letter-spacing:.1px;word-break:break-word;
}
.rec-live .line{margin-bottom:10px}
.rec-live .partial{color:#B7BDC6}
.rec-live .warn{color:#C8170E;font-size:13px;margin-top:8px;display:block}
.rec-hint{font-size:12px;color:#9AA1AA;margin-top:18px;padding-bottom:12px}
.detail-body{padding-bottom:158px}
.rec-bottom{padding:6px 14px calc(8px + env(safe-area-inset-bottom))}
.rec-insight{
  display:flex;align-items:center;gap:10px;border:1px solid #E9E5F8;
  background:linear-gradient(90deg,#FAF8FF,#FFFFFF);
  border-radius:16px;padding:8px 10px;box-shadow:0 8px 22px rgba(108,80,220,.08);
}
.ri-spark{color:#7C6BFF;font-size:16px}
.ri-txt{flex:1;display:flex;flex-direction:column;min-width:0}
.ri-txt b{font-size:13.5px;letter-spacing:-.1px}
.ri-txt small{font-size:11px;color:#8A9099;margin-top:1px}
.ri-btn{border:0;background:#14171A;color:#fff;border-radius:999px;height:32px;padding:0 14px;font-size:12.5px;cursor:pointer}
.rec-tools{display:flex;justify-content:center;gap:30px;margin-top:8px}
.rec-tools button{
  width:40px;height:40px;border-radius:50%;border:1px solid #EDEFF2;background:#fff;
  font-size:16px;color:#14171A;cursor:pointer;
}
