/* 第 8 页：汇盈AI 桌面端 Agent 首页（按 2026-10 新界面 1:1 重建，坐标系 = 2000×1300 截图像素，整体缩放进设备框） */
.s-agent .device { background: #fbfbfa; }
.s-agent .device__scr { position: relative; aspect-ratio: auto; width: 1060px; height: 689px; border-radius: 18px; }
.appwin { position: absolute; left: 0; top: 0; width: 2000px; height: 1300px; transform: scale(.53); transform-origin: 0 0; display: grid; grid-template-columns: 428px 1fr; background: #fbfbfa; color: #2b2f28; font-family: 'PingFang SC', 'Noto Sans SC', system-ui, sans-serif; overflow: hidden; }
.appwin svg { display: block; }
.appwin .aic { color: currentColor; }

/* 侧栏 */
.aw-side { position: relative; background: #f4f4f1; border-right: 1px solid #e7e7e2; }
.aw-lights { position: absolute; left: 14px; top: 17px; display: flex; gap: 14px; }
.aw-lights i { width: 22px; height: 22px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.aw-lights i:nth-child(2) { background: #febc2e; } .aw-lights i:nth-child(3) { background: #28c840; }
.aw-brand { position: absolute; left: 18px; top: 74px; right: 24px; display: flex; align-items: center; gap: 17px; }
.aw-brand__ic { width: 58px; height: 58px; border-radius: 13px; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.05); }
.aw-brand__ic img { width: 46px; height: 46px; }
.aw-brand b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -.01em; color: #2a2d27; }
.aw-brand small { display: block; margin-top: 4px; font-size: 15px; letter-spacing: .22em; color: #8d8f86; }
.aw-brand .aw-collapse { margin-left: auto; color: #9a9c94; }
.aw-nav { position: absolute; left: 8px; right: 20px; top: 175px; }
.aw-nav div { display: flex; align-items: center; gap: 20px; height: 62px; margin-bottom: 5px; padding-left: 20px; border-radius: 10px; font-size: 23px; color: #4b4e46; }
.aw-nav div.on { background: #e8eae3; color: #2a2d27; font-weight: 500; }
.aw-nav div svg { color: #8b8e85; } .aw-nav div.on svg { color: #2a2d27; }
.aw-hr { position: absolute; left: 18px; right: 28px; top: 465px; height: 1px; background: #e2e2dc; }
.aw-new { position: absolute; left: 9px; right: 21px; top: 490px; height: 56px; display: flex; align-items: center; gap: 14px; padding: 0 22px 0 24px; border-radius: 10px; background: #fff; border: 1px solid #e3e3de; box-shadow: 0 1px 2px rgba(0,0,0,.04); font-size: 21px; font-weight: 600; }
.aw-new svg:last-child { margin-left: auto; color: #8d8f86; }
.aw-proj { position: absolute; left: 6px; right: 20px; top: 576px; }
.aw-proj__h { display: flex; align-items: center; height: 40px; font-size: 24px; color: #8a8c84; }
.aw-proj__h span { margin-right: auto; }
.aw-proj__h svg { margin-left: 24px; color: #6d7068; }
.aw-row { display: flex; align-items: center; gap: 10px; height: 53px; font-size: 22px; color: #34372f; white-space: nowrap; }
.aw-row.f { padding-left: 4px; } .aw-row.f svg { color: #6d7068; }
.aw-row.c { padding-left: 36px; } .aw-row.c em { margin-left: auto; font-style: normal; font-size: 19px; color: #9b9d95; }
.aw-row.cur { background: #ebebe7; border-radius: 9px; font-weight: 600; }
.aw-row.more { padding-left: 36px; font-size: 19px; color: #9b9d95; height: 46px; }
.aw-row.c span { overflow: hidden; text-overflow: ellipsis; max-width: 290px; }
.aw-me { position: absolute; left: 0; right: 0; bottom: 0; height: 88px; display: flex; align-items: center; gap: 16px; padding-left: 10px; border-top: 1px solid #e7e7e2; }
.aw-me i { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #5eead4, #a78bfa 60%, #f9a8d4); display: grid; place-items: center; color: #fff; font-style: normal; font-weight: 700; font-size: 22px; }
.aw-me b { display: block; font-size: 21px; font-weight: 500; } .aw-me small { display: block; margin-top: 3px; font-size: 17px; color: #8d8f86; }

/* 主区 */
.aw-main { position: relative; overflow: hidden; }
.aw-top { position: absolute; left: 0; right: 0; top: 0; height: 72px; display: flex; align-items: center; padding: 0 30px 0 42px; border-bottom: 1px solid #ececea; background: #fbfbfa; z-index: 3; }
.aw-top b { font-size: 20px; font-weight: 500; transition: opacity .3s; }
.aw-search { margin-left: auto; display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 12px 0 16px; border: 1px solid #e3e3de; border-radius: 10px; background: #fff; font-size: 19px; color: #5c5f57; }
.aw-search kbd { font: 13px var(--pm); padding: 3px 7px; border-radius: 6px; background: #f0f0ec; color: #8d8f86; }
.aw-res { margin-left: 80px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border: 1px solid #e3e3de; border-radius: 10px; background: #fff; font-size: 19px; color: #5c5f57; }

/* 首页 hero */
.aw-home { position: absolute; inset: 72px 0 0 0; }
.aw-hero { position: absolute; left: 0; right: 0; top: 52px; text-align: center; }
.aw-hero__ic { width: 56px; height: 56px; margin: 0 auto; border-radius: 13px; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(124,90,220,.22), 0 0 0 1px rgba(0,0,0,.05); }
.aw-hero__ic img { width: 44px; height: 44px; }
.aw-kick { margin-top: 44px; display: flex; justify-content: center; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; letter-spacing: .3em; color: #879779; }
.aw-hero h3 { margin-top: 18px; font-size: 50px; font-weight: 800; letter-spacing: -.02em; color: #2f3a2a; }
.aw-hero p { margin-top: 22px; font-size: 20px; color: #8f9886; }
.aw-cards { position: absolute; left: 87px; top: 346px; display: grid; grid-template-columns: repeat(4, 330px); gap: 23px; }
.aw-card { --accent: #fff; position: relative; height: 425px; border-radius: 20px; overflow: hidden; background: #0b0e13; box-shadow: 0 2px 4px rgba(0,0,0,.1), 0 30px 50px -26px rgba(10,15,26,.7); isolation: isolate; transition: transform .6s var(--ease); }
.aw-card video, .aw-card img.p { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); filter: saturate(.85) brightness(.85); }
.aw-card::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, #05070c80 0%, #05070c00 26%, #05070c00 40%, #05070cb8 70%, #05070cf5 100%); }
.aw-card::after { content: ''; position: absolute; inset: 0; z-index: 4; border-radius: inherit; border: 1px solid #ffffff1f; }
.aw-card__top { position: absolute; z-index: 2; top: 24px; left: 26px; display: flex; align-items: baseline; gap: 14px; color: #fffffff0; }
.aw-card__top i { font: italic 500 26px/1 'Cormorant Garamond', 'Times New Roman', serif; }
.aw-card__top span { font-size: 14px; font-weight: 600; letter-spacing: .28em; opacity: .8; }
.aw-card__copy { position: absolute; z-index: 2; left: 26px; right: 20px; bottom: 92px; display: flex; flex-direction: column; gap: 8px; }
.aw-card__copy strong { width: fit-content; font-size: 40px; font-weight: 850; line-height: 1.12; letter-spacing: -.03em; background: linear-gradient(100deg, #fff 35%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.aw-card__copy span { font-size: 20px; color: #ffffffd6; white-space: nowrap; }
.aw-card__copy em { font-size: 16px; font-style: normal; letter-spacing: .04em; color: #ffffff85; }
.aw-card__go { position: absolute; z-index: 2; left: 26px; bottom: 24px; display: inline-flex; align-items: center; gap: 10px; height: 47px; padding: 0 20px; border-radius: 99px; background: #ffffffeb; color: #0b0d12; font-size: 18px; font-weight: 700; transition: background .3s; }
.aw-card.hot { transform: translateY(-6px); }
.aw-card.hot .aw-card__go { background: var(--accent); }
.aw-more { position: absolute; left: 0; right: 0; top: 800px; display: flex; justify-content: center; }
.aw-more div { display: inline-flex; align-items: center; gap: 12px; height: 50px; padding: 0 20px; border: 1px solid #e3e3de; border-radius: 99px; background: #fff; font-size: 21px; font-weight: 500; }
.aw-more span { padding: 1px 12px; border-radius: 99px; background: #f0f0ec; color: #8d8f86; font-size: 17px; }

/* 输入框（首页与对话页共用，位置用 transform 切换） */
.aw-dock { position: absolute; left: 115px; right: 120px; top: 974px; transition: transform .9s var(--ease); z-index: 2; }
.aw-pj { display: inline-flex; align-items: center; gap: 10px; height: 43px; padding: 0 14px; border-radius: 10px; background: #f0f0ec; font-size: 21px; }
.aw-box { position: relative; margin-top: 13px; height: 178px; border-radius: 22px; border: 1px solid #e5e5e0; background: #fff; box-shadow: 0 10px 30px -18px rgba(40,50,30,.25); transition: box-shadow .4s, border-color .4s; }
.aw-box.focus { border-color: #c9d3bf; box-shadow: 0 0 0 4px rgba(135,151,121,.12), 0 10px 30px -18px rgba(40,50,30,.25); }
.aw-in { position: absolute; left: 30px; right: 110px; top: 26px; font-size: 22px; line-height: 1.55; color: #2b2f28; min-height: 34px; }
.aw-in:empty::before { content: '描述你的任务，/ 调用指令，@ 引用插件、文件或对话'; color: #a9aba3; }
.aw-in .cur { display: inline-block; width: 2px; height: 26px; margin-left: 2px; vertical-align: -5px; background: #6d7a5f; animation: blink 1s steps(1) infinite; }
.aw-plus { position: absolute; left: 22px; bottom: 20px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #f2f2ee; color: #5c5f57; }
.aw-send { position: absolute; right: 12px; bottom: 12px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #b9c7b0; color: #fff; transition: background .3s, transform .3s; }
.aw-send.on { background: #3f4d36; }
.aw-send.tap { transform: scale(.88); }

/* 对话页 */
.aw-chat { position: absolute; inset: 72px 0 0 0; padding: 50px 150px 0 140px; opacity: 0; pointer-events: none; }
.aw-u { margin-left: auto; width: fit-content; max-width: 980px; padding: 20px 26px; border-radius: 22px 22px 6px 22px; background: #eef0ea; font-size: 23px; line-height: 1.55; }
.aw-a { margin-top: 34px; display: flex; gap: 18px; }
.aw-a__av { flex: none; width: 46px; height: 46px; border-radius: 12px; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.aw-a__av img { width: 36px; height: 36px; }
.aw-a__b { flex: 1; }
.aw-a__b > p { font-size: 22px; line-height: 1.6; color: #3a3d35; }
.aw-tools { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.aw-tool { display: flex; align-items: center; gap: 14px; width: fit-content; height: 50px; padding: 0 20px 0 16px; border-radius: 12px; border: 1px solid #ebebe6; background: #fff; font-size: 19px; color: #50534b; opacity: 0; transform: translateY(10px); }
.aw-tool b { font-weight: 600; color: #2b2f28; }
.aw-tool .st { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e6f4ea; color: #2f8f4e; }
.aw-tool.run .st { background: none; border: 3px solid #dfe3da; border-top-color: #6d7a5f; animation: spin .8s linear infinite; }
.aw-tool.run .st svg { display: none; }
.aw-imgs { margin-top: 20px; display: flex; gap: 16px; }
.aw-imgs figure { width: 262px; height: 346px; border-radius: 14px; overflow: hidden; background: #ecece7; clip-path: inset(100% 0 0 0 round 14px); box-shadow: 0 14px 30px -18px rgba(0,0,0,.4); }
.aw-imgs img { width: 100%; height: 100%; object-fit: cover; }
.aw-deliv { margin-top: 20px; display: flex; gap: 16px; opacity: 0; transform: translateY(12px); }
.aw-dcard { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 14px; border: 1px solid #e5e5e0; background: #fff; font-size: 19px; color: #50534b; }
.aw-dcard b { display: block; font-size: 20px; color: #2b2f28; }
.aw-dcard .ic { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; background: #eef3ff; color: #4d6fd8; }
.aw-dcard.ok .ic { background: #e6f4ea; color: #2f8f4e; }
.aw-dcard button { margin-left: 14px; height: 40px; padding: 0 18px; border-radius: 99px; background: #2f3a2a; color: #fff; font-size: 17px; font-weight: 600; }
.aw-dcard .pls { display: flex; gap: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }

/* 状态 */
.appwin.chat .aw-home { opacity: 0; transform: translateY(-40px); pointer-events: none; }
.appwin .aw-home { transition: opacity .6s var(--ease), transform .9s var(--ease); }
.appwin.chat .aw-chat { opacity: 1; transition: opacity .7s .25s var(--ease); }
.appwin.chat .aw-dock { transform: translateY(72px); }
.appwin.chat .aw-dock .aw-pj { opacity: 0; }
