:root {
  --ink: #10233b;
  --muted: rgba(16, 35, 59, 0.65);
  --white: #ffffff;
  --glass: rgba(249, 253, 255, 0.68);
  --glass-strong: rgba(255, 255, 255, 0.84);
  --glass-border: rgba(255, 255, 255, 0.56);
  --shadow: 0 22px 64px rgba(8, 26, 53, 0.20);
  --accent: #276bef;
  --accent-deep: #1556d3;
  --danger: #d94545;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --transition: 180ms ease;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(39, 107, 239, 0.35); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.background { position: fixed; inset: 0; overflow: hidden; background: linear-gradient(156deg, #142e57 0%, #2f76a8 46%, #a9d5e0 100%); z-index: -2; }
.background::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 27, 56, 0.16), rgba(10, 37, 66, 0.10) 42%, rgba(7, 29, 49, 0.24)); }
.sun { position: absolute; width: 34vw; height: 34vw; min-width: 360px; min-height: 360px; right: 9vw; top: -15vw; border-radius: 50%; background: radial-gradient(circle at 50% 55%, rgba(238, 255, 255, 0.98), rgba(194, 242, 255, 0.55) 27%, rgba(149, 224, 255, 0.04) 70%); filter: blur(1px); }
.mountain { position: absolute; bottom: -7vh; width: 74vw; height: 44vh; clip-path: polygon(0 100%, 0 69%, 13% 48%, 24% 63%, 43% 19%, 55% 55%, 69% 34%, 83% 69%, 100% 38%, 100% 100%); }
.mountain-far { right: -4vw; background: linear-gradient(155deg, rgba(36, 70, 107, 0.70), rgba(16, 43, 69, 0.74)); filter: blur(1px); }
.mountain-near { left: -24vw; bottom: -17vh; width: 84vw; height: 50vh; clip-path: polygon(0 100%, 0 66%, 13% 47%, 29% 75%, 46% 34%, 57% 54%, 72% 20%, 84% 61%, 100% 42%, 100% 100%); background: linear-gradient(152deg, rgba(38, 90, 111, 0.48), rgba(17, 53, 65, 0.82)); }
.ambient { position: absolute; border-radius: 50%; filter: blur(52px); opacity: .44; }
.ambient-one { width: 34vw; height: 29vw; left: 5vw; top: 22vh; background: #69c7ee; }
.ambient-two { width: 36vw; height: 25vw; right: -7vw; bottom: 8vh; background: #90d8d5; }

.page-shell { width: min(1120px, calc(100% - 64px)); margin: 0 auto; min-height: 100vh; padding: 24px 0 28px; display: flex; flex-direction: column; }
.topbar { height: 44px; display: flex; justify-content: space-between; align-items: center; color: #f8fcff; text-shadow: 0 1px 10px rgba(7, 25, 51, .18); }
.brand { display: inline-flex; align-items: center; gap: 10px; padding: 5px 0; border: 0; color: inherit; background: transparent; font-size: 18px; font-weight: 720; letter-spacing: -.35px; }
.brand-mark { width: 23px; height: 23px; display: inline-flex; align-items: center; justify-content: center; gap: 2px; padding: 4px; border: 1px solid rgba(255,255,255,.7); border-radius: 8px; transform: rotate(-7deg); }
.brand-mark i { display:block; width: 3px; border-radius: 10px; background: white; }.brand-mark i:nth-child(1){height:8px}.brand-mark i:nth-child(2){height:13px}.brand-mark i:nth-child(3){height:10px}
.topbar-actions { display: flex; align-items: center; gap: 8px; }.sync-state { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; font-size: 12px; color: rgba(248,252,255,.87); }.sync-dot{width:7px;height:7px;border-radius:99px;background:#d7ecff;box-shadow:0 0 10px rgba(255,255,255,.85)}
.text-button, .icon-button { border: 0; color: inherit; background: rgba(255,255,255,.10); transition: background var(--transition), transform var(--transition); }.text-button:hover, .icon-button:hover { background: rgba(255,255,255,.20); transform: translateY(-1px); }.text-button { padding: 8px 12px; border-radius: 9px; font-size: 13px; }.icon-button { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; }

main { flex: 1; display: flex; flex-direction: column; }.search-hero { width: 100%; margin: clamp(64px, 13vh, 142px) auto 0; text-align: center; color: #fff; }.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 650; letter-spacing: .14em; color: rgba(252, 255, 255, .83); }.search-hero h1 { margin: 0 0 24px; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.2; font-weight: 690; letter-spacing: -.04em; text-shadow: 0 3px 22px rgba(8, 31, 64, .22); }
.search-form { position: relative; z-index: 15; width: min(812px, 100%); margin: 0 auto; display: flex; align-items: stretch; border: 1px solid rgba(255,255,255,.77); border-radius: 15px; background: rgba(255,255,255,.93); box-shadow: 0 15px 40px rgba(5,24,52,.22); text-shadow: none; transition: transform var(--transition), box-shadow var(--transition); }.search-form:focus-within { transform: translateY(-2px); box-shadow: 0 20px 48px rgba(5,24,52,.30), 0 0 0 4px rgba(255,255,255,.22); }
.engine-select { position: relative; flex: 0 0 auto; }.engine-trigger { height: 54px; min-width: 134px; padding: 0 14px; border: 0; border-right: 1px solid #e7edf7; background: transparent; color: #20314b; display: flex; align-items: center; gap: 8px; font-weight: 620; font-size: 14px; }.engine-symbol { width: 22px; height: 22px; border-radius: 7px; background: #2d71ee; color: #fff; display:grid; place-items:center; font-family: Georgia, serif; font-weight: 800; font-size: 14px; }.chevron { margin-left: auto; color: #7990ad; font-size: 16px; transform: translateY(-2px); }.engine-menu { position:absolute; top:62px; left:0; width:188px; z-index:10; padding:7px; background:rgba(255,255,255,.98); border:1px solid #e6ebf2; box-shadow:0 16px 38px rgba(10,35,63,.18); border-radius:13px; color:#182b43; text-align:left; }.engine-option { width:100%; display:flex; align-items:center; gap:10px; padding:10px; border:0; border-radius:8px; background:transparent; color:inherit; text-align:left; font-size:14px; }.engine-option:hover,.engine-option.selected{background:#edf4ff}.engine-option .check{margin-left:auto;color:var(--accent);font-weight:800}
.search-input-wrap { min-width: 0; flex: 1; display: flex; align-items: center; position: relative; }.search-input-wrap input { width:100%; height:54px; padding: 0 44px 0 18px; border:0; background: transparent; color:#15253c; font-size:17px; outline:0; }.search-input-wrap input::placeholder { color:#91a0b5; } .search-input-wrap input::-webkit-search-cancel-button { -webkit-appearance:none; display:none; }.clear-search { position:absolute; right:10px; width:27px; height:27px; border:0; border-radius:50%; background:#eaf0f8; color:#6e8098; transition:background var(--transition),color var(--transition); }.clear-search::before,.clear-search::after{content:"";position:absolute;left:50%;top:50%;width:12px;height:2px;border-radius:2px;background:currentColor;transform:translate(-50%,-50%) rotate(45deg)}.clear-search::after{transform:translate(-50%,-50%) rotate(-45deg)}.clear-search:hover{background:#dde7f3;color:#3d5a7d}.search-button { flex: 0 0 auto; width: 88px; margin: 5px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #3d7bf2, #1e61df); font-size:15px; font-weight:650; transition: filter var(--transition), transform var(--transition); }.search-button:hover { filter:brightness(1.06); transform: translateY(-1px); }.search-hint { margin:14px 0 0; font-size:12px; line-height:17px; color:rgba(255,255,255,.78); }
.search-gap{width:min(812px,100%);height:79px;margin:0 auto;display:flex;flex-direction:column;justify-content:flex-start}
.frequent-bar{flex:1;min-height:0;width:100%;display:flex;justify-content:flex-start;align-items:center;gap:4px;flex-wrap:nowrap;overflow:hidden;padding-top:6px}
.frequent-item{display:inline-flex;align-items:center;gap:7px;height:28px;padding:0 8px;border:0;border-radius:7px;background:transparent;color:rgba(255,255,255,.90);font-size:13px;font-weight:400;white-space:nowrap;transition:background var(--transition),color var(--transition)}
.frequent-item:hover{color:#fff;background:rgba(255,255,255,.15)}
.frequent-icon{width:17px;height:17px;border-radius:5px;overflow:hidden;display:grid;place-items:center;flex:0 0 auto}
.frequent-icon span{width:100%;height:100%;display:grid;place-items:center;color:#fff;font-size:10px;font-weight:800;border-radius:inherit}
.frequent-text{max-width:96px;overflow:hidden;text-overflow:ellipsis}

.search-suggest { position:absolute; top:calc(100% + 10px); left:0; right:0; z-index:12; max-height:min(436px, calc(100vh - 230px)); overflow-y:auto; padding:6px 0 8px; background:#fff; border:1px solid #e4ebf3; border-radius:14px; box-shadow:0 18px 46px rgba(9,30,58,.18); color:#1b2e47; text-align:left; animation:suggest-in .14s ease; }
@keyframes suggest-in { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }
.suggest-section { position:relative; }
.suggest-history { border-bottom:1px solid #f0f4fa; padding-bottom:6px; }
.suggest-head { display:flex; align-items:center; justify-content:space-between; padding:9px 16px 3px; }
.suggest-title { font-size:12px; font-weight:700; color:#8e9cb0; letter-spacing:.02em; }
.suggest-tools { display:inline-flex; align-items:center; gap:1px; }
.suggest-tool { border:0; background:transparent; color:#9aa8bb; font-size:12px; padding:3px 6px; border-radius:6px; }
.suggest-tool:hover { color:#2e6ff2; background:#f0f6ff; }
.suggest-tool-divider { color:#e4eaf2; font-size:11px; margin:0 2px; }
.suggest-list { list-style:none; margin:2px 8px 0; padding:0; }
.suggest-item { display:flex; align-items:center; gap:9px; height:34px; padding:0 9px; border-radius:8px; font-size:14px; color:#2c3f59; cursor:pointer; }
.suggest-item:hover { background:#f3f7fe; color:#1749c2; }
.history-list { display:flex; flex-wrap:wrap; gap:8px; margin:6px 12px 2px; padding:0; list-style:none; }
.history-item { height:auto; padding:5px 5px 5px 11px; border-radius:999px; border:1px solid #e8eef6; background:#f2f6fb; color:#3a4f6b; font-size:13px; gap:4px; }
.history-item:hover { background:#e9f2ff; border-color:#c9ddfb; color:#1749c2; }
.history-item .suggest-text { flex:0 1 auto; }
.suggest-text { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.history-remove { position:relative; width:17px; height:17px; flex:0 0 auto; border:0; border-radius:50%; background:transparent; color:#8a9cb1; opacity:0; transition:opacity var(--transition), background var(--transition), color var(--transition); }
.history-remove::before, .history-remove::after { content:""; position:absolute; left:50%; top:50%; width:10px; height:2px; border-radius:2px; background:currentColor; transform:translate(-50%,-50%) rotate(45deg); }
.history-remove::after { transform:translate(-50%,-50%) rotate(-45deg); }
.suggest-item:hover .history-remove { opacity:1; }
.history-remove:hover { background:#ff6a6a; color:#fff; }
.hot-list { display:grid; grid-template-columns:1fr 1fr; column-gap:14px; }
.hot-index { width:15px; flex:0 0 auto; font-size:12px; font-weight:800; font-style:italic; color:#b6c1d1; }
.hot-index.top { color:#ff5f19; }
.suggest-overlay { position:absolute; inset:0; z-index:2; background:rgba(249,251,254,.62); }
.history-setting-pop { position:absolute; top:52px; right:10px; z-index:3; width:262px; padding:13px 14px; background:#fff; border:1px solid #e4ebf3; border-radius:12px; box-shadow:0 16px 38px rgba(9,30,58,.20); }
.history-setting-pop strong { display:block; font-size:13px; color:#22364f; }
.history-setting-pop .setting-pop-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:9px; }
.history-setting-pop .setting-pop-row>span { font-size:12px; color:#7d8ea3; line-height:1.55; }

.workspace { margin-top: 7px; border: 1px solid var(--glass-border); border-radius: var(--radius-xl); overflow: hidden; background: var(--glass); box-shadow: var(--shadow); backdrop-filter: blur(19px) saturate(1.22); -webkit-backdrop-filter: blur(19px) saturate(1.22); }.workspace-head { min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding: 0 18px 0 20px; border-bottom:1px solid rgba(111,143,175,.18); }.tabs-wrap{min-width:0;display:flex;align-items:center}.group-tabs { min-width:0; display:flex; align-items:stretch; gap:4px; overflow-x:auto; scrollbar-width:none; }.group-tabs::-webkit-scrollbar{display:none}.group-tab { position:relative; padding:19px 11px 16px; border:0; background:transparent; color:#61738a; white-space:nowrap; font-size:14px; font-weight:620; transition:color var(--transition); }.group-tab:hover,.group-tab.active{color:#17355d}.group-tab.active::after{content:"";position:absolute;left:11px;right:11px;bottom:0;height:3px;border-radius:4px 4px 0 0;background:var(--accent)}.new-group-button { flex:0 0 auto; width:24px; height:24px; margin-left:5px; display:grid; place-items:center; padding:0; border:0; background:transparent; color:#506984; font-size:20px; font-weight:400; line-height:1; transform:translateY(2px); }.new-group-button:hover{color:var(--accent)}.group-tab.dragging{opacity:.5}.group-tab.drag-over{color:var(--accent);background:rgba(39,107,239,.09)}.group-tabs.editing .group-tab[draggable]{cursor:grab}.edit-home-button{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 13px;border:1px solid rgba(103,133,168,.32);border-radius:9px;background:rgba(255,255,255,.55);color:#2b4a72;font-size:13px;font-weight:640;transition:background var(--transition),border-color var(--transition),color var(--transition),transform var(--transition)}.edit-home-button:hover{background:rgba(255,255,255,.88);border-color:var(--accent);color:var(--accent)}.more-groups{border:0;background:transparent;color:#47637f;padding:8px}
.workspace-body { padding: 22px; }.bookmark-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:12px; min-height:96px; }.bookmark-card,.add-card { min-width:0; min-height:94px; border:1px solid transparent; border-radius:14px; background:rgba(255,255,255,.48); transition:transform var(--transition),background var(--transition),box-shadow var(--transition),border-color var(--transition); }.bookmark-card { position:relative; display:flex; }.bookmark-card:hover { transform:translateY(-2px); background:rgba(255,255,255,.78); box-shadow:0 8px 20px rgba(24,61,95,.12); }.bookmark-card.dragging{opacity:.46;transform:scale(.97)}.bookmark-card.drag-over{border-color:#4a83f2}.bookmark-main { min-width:0; flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; padding:12px 7px; border:0; background:transparent; color:#253852; overflow:hidden; }.bookmark-icon { width:32px;height:32px;border-radius:10px;display:grid;place-items:center;flex:0 0 auto;background:#eaf1fb;color:#2d6eed;font-size:14px;font-weight:800;overflow:hidden; }.bookmark-icon span{width:100%;height:100%;display:grid;place-items:center;color:#fff;font-weight:800;border-radius:inherit}.bookmark-icon img{width:100%;height:100%;object-fit:cover}.bookmark-title{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:620}.card-menu { position:absolute; top:5px; right:5px; width:23px; height:23px; padding:0; border:0; border-radius:7px; background:transparent; color:#74879d; font-size:13px; line-height:1; opacity:0; }.bookmark-grid.editing .card-menu{opacity:1}.card-menu:hover{background:#e7edf7;color:#294b79}.add-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:1px dashed rgba(67,108,157,.48);color:#5a7597;background:rgba(255,255,255,.19);font-size:13px;font-weight:620}.add-card:hover{border-color:var(--accent);color:var(--accent);background:rgba(255,255,255,.55)}.add-plus{font-size:25px;font-weight:300;line-height:1}.empty-state{grid-column:1/-1;min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;color:#5c728e}.empty-state strong{color:#2c4667}.empty-state button{border:0;background:var(--accent);color:#fff;border-radius:9px;padding:8px 12px;font-size:13px}

.modal-layer{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:20px;background:rgba(4,18,39,.42);backdrop-filter:blur(7px)}.modal{width:min(460px,100%);max-height:calc(100vh - 40px);overflow:auto;border:1px solid rgba(255,255,255,.70);border-radius:21px;padding:24px;background:rgba(252,254,255,.96);box-shadow:0 24px 78px rgba(0,18,42,.35);color:#173252}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}.modal-kicker{margin:0 0 5px;color:#6e84a0;font-size:12px;font-weight:700;letter-spacing:.1em}.modal h2{margin:0;font-size:22px;letter-spacing:-.03em}.close-button{width:32px;height:32px;border:0;border-radius:9px;background:#edf2f8;color:#526981;font-size:23px;line-height:1}.close-button:hover{background:#e2eaf4}.field-label{display:block;margin:0 0 16px;color:#34516f;font-size:13px;font-weight:680}.field{width:100%;height:44px;margin-top:7px;padding:0 12px;border:1px solid #d7e0eb;border-radius:10px;background:#fff;color:#1d3653;outline:0}.field:focus{border-color:#4f83ee;box-shadow:0 0 0 3px rgba(71,124,237,.15)}.field-help{display:block;margin-top:6px;color:#8091a5;font-size:11px;font-weight:500}.color-row{display:flex;align-items:center;flex-wrap:nowrap;gap:7px;margin-top:9px}.color-dot{width:30px;height:30px;padding:0;border:0;border-radius:9px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08);transition:transform var(--transition),box-shadow var(--transition)}.color-dot:hover{transform:scale(1.14)}.color-dot.selected{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--accent);transform:scale(1.06)}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}.primary-button,.secondary-button{height:40px;padding:0 15px;border-radius:10px;font-size:13px;font-weight:650}.primary-button{border:0;background:var(--accent);color:#fff}.primary-button:hover{background:var(--accent-deep)}.secondary-button{border:1px solid #d6e1ed;background:#fff;color:#3c5877}.secondary-button:hover{background:#f5f8fc}.theme-modal{width:min(670px,100%)}.theme-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:11px}.theme-card{position:relative;aspect-ratio:1.48;border:2px solid transparent;border-radius:13px;overflow:hidden;background:#325b85;color:#fff;text-align:left;box-shadow:0 5px 14px rgba(24,57,93,.11)}.theme-card:hover{transform:translateY(-1px)}.theme-card.selected{border-color:#2e72ef;box-shadow:0 0 0 3px rgba(46,114,239,.16)}.theme-card .theme-preview{position:absolute;inset:0}.theme-card .theme-label{position:absolute;left:9px;bottom:8px;z-index:1;font-size:12px;font-weight:680;text-shadow:0 1px 4px rgba(0,0,0,.44)}.theme-card .theme-check{position:absolute;right:8px;top:8px;z-index:1;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#2770ef;font-size:13px;font-weight:800}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 0;border-top:1px solid #e6edf5}.theme-modal .setting-row{margin-top:22px}.setting-row strong{display:block;color:#25415f;font-size:14px}.setting-row>div>span{display:block;margin-top:4px;color:#75889f;font-size:12px}.switch{position:relative;display:inline-block;width:42px;height:24px;flex:0 0 auto;margin:0;cursor:pointer}.switch input{position:absolute;opacity:0;width:0;height:0;margin:0}.switch span{position:relative;display:block;width:42px;height:24px;border-radius:999px;background:#d2dce8;transition:background var(--transition)}.switch span::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.22);transition:transform var(--transition)}.switch input:checked+span{background:var(--accent)}.switch input:checked+span::after{transform:translateX(18px)}.login-copy{margin:0 0 18px;color:#607791;line-height:1.7;font-size:14px}.social-button{width:100%;height:48px;display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:10px;border:0;border-radius:11px;color:#fff;font-size:14px;font-weight:680}.social-button span{width:24px;height:24px;display:grid;place-items:center;border-radius:7px;background:rgba(255,255,255,.18);font-weight:800}.wechat{background:#17b965}.qq{background:#2879e8}.social-button:hover{filter:brightness(1.04)}.terms-copy{margin:16px 0 0;color:#8d9bae;font-size:11px;line-height:1.7}.settings-actions{display:flex;gap:10px;margin-top:22px}.import-label{display:inline-flex;align-items:center;cursor:pointer}.import-label input{display:none}.toast-region{position:fixed;right:24px;bottom:24px;z-index:30;display:flex;flex-direction:column;gap:8px}.toast{display:flex;align-items:center;gap:9px;min-width:250px;max-width:340px;padding:12px 14px;border:1px solid rgba(255,255,255,.6);border-radius:12px;background:rgba(19,43,73,.90);box-shadow:0 12px 30px rgba(0,19,44,.22);color:#fff;font-size:13px;animation:toast-in .2s ease}.toast.success::before{content:"✓";display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#31b875;font-weight:800}.toast.error::before{content:"!";display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#ef7373;font-weight:800}@keyframes toast-in{from{transform:translateY(8px);opacity:0}to{transform:none;opacity:1}}
.context-menu{width:146px;padding:6px;border:1px solid #dce5ef;border-radius:11px;background:rgba(255,255,255,.98);box-shadow:0 12px 30px rgba(16,43,73,.18)}.context-menu button{display:block;width:100%;padding:9px 10px;border:0;border-radius:7px;background:transparent;color:#294762;text-align:left;font-size:13px}.context-menu button:hover{background:#edf4ff}.context-menu button.danger{color:var(--danger)}.context-menu button.danger:hover{background:#fff0f0}

body.theme-aurora .background{background:linear-gradient(145deg,#10243c 0%,#215d75 37%,#51b49b 76%,#badf95 100%)}body.theme-aurora .sun{background:radial-gradient(circle,rgba(218,255,222,.85),rgba(133,255,196,.32) 35%,transparent 70%)}body.theme-sunset .background{background:linear-gradient(155deg,#302358,#873c6c 41%,#d87069 68%,#f4c783 100%)}body.theme-sunset .mountain-far{background:linear-gradient(155deg,rgba(75,38,82,.76),rgba(47,24,67,.83))}body.theme-sunset .mountain-near{background:linear-gradient(155deg,rgba(108,57,76,.58),rgba(50,27,58,.88))}body.theme-mist .background{background:linear-gradient(160deg,#475d77,#7f9db2 45%,#d8e5e4 100%)}body.theme-mist .sun{opacity:.68}body.theme-night .background{background:linear-gradient(150deg,#090e29 0%,#172959 48%,#3e4b83 100%)}body.theme-night .sun{background:radial-gradient(circle at 50% 55%,rgba(255,248,214,.95),rgba(255,244,198,.28) 36%,transparent 69%)}body.theme-night .mountain-far{background:linear-gradient(155deg,rgba(21,31,74,.82),rgba(3,12,37,.91))}body.theme-night .mountain-near{background:linear-gradient(155deg,rgba(38,51,92,.61),rgba(4,12,35,.95))}body.theme-night .ambient{opacity:.14}body.theme-blue .background{background:linear-gradient(145deg,#0c3f96,#1d79dc 48%,#9ed9f7 100%)}body.theme-blue .mountain-far{background:linear-gradient(155deg,rgba(17,83,161,.66),rgba(8,49,115,.81))}body.theme-blue .mountain-near{background:linear-gradient(155deg,rgba(33,110,186,.46),rgba(8,56,126,.79))}body.readable-mode .background::after{background:rgba(5,19,39,.46)}body.reduce-motion *,body.reduce-motion *::before,body.reduce-motion *::after{animation:none!important;transition:none!important}

/* ===== PC 主流分辨率自适应 ===== */
/* 大屏桌面（≥1600×900，如 1920×1080）：加宽内容区，充分利用横向空间 */
@media (min-width: 1600px) and (min-height: 900px){
  .page-shell{width:min(1220px,calc(100% - 96px))}
  .bookmark-grid{gap:14px}
}
/* 2K/4K 宽屏（≥2200px）：进一步加宽 */
@media (min-width: 2200px){
  .page-shell{width:min(1360px,calc(100% - 120px))}
}
/* 14 寸笔记本常见有效分辨率（1280–1536 宽 / 720–900 高，系统缩放 125%–150%）：
   压缩纵向留白，保证搜索区 + 网址工作区一屏完整呈现 */
@media (max-height: 900px) and (min-width: 1181px){
  .page-shell{padding:20px 0 22px}
  .search-hero{margin:clamp(40px,7vh,84px) auto 0}
  .eyebrow{margin-bottom:8px}
  .search-hero h1{font-size:clamp(26px,2.7vw,38px);margin-bottom:18px}
  .search-hint{margin-top:10px}
  .search-gap{height:61px}
  .workspace-head{min-height:54px}
  .workspace-body{padding:18px}
}
/* 720p 有效高度（如 14 寸 150% 缩放的 1280×720）：进一步收紧并隐藏次要提示 */
@media (max-height: 760px) and (min-width: 1181px){
  .page-shell{padding:14px 0 16px}
  .search-hero{margin:clamp(24px,4.5vh,44px) auto 0}
  .search-hero h1{font-size:clamp(24px,2.4vw,32px);margin-bottom:14px}
  .search-hint{display:none}
  .search-gap{height:32px}
  .frequent-item{height:22px}
  .frequent-icon{width:15px;height:15px}
  .engine-trigger{height:50px}
  .search-input-wrap input{height:50px}
  .workspace-head{min-height:48px}
  .workspace-body{padding:14px}
  .bookmark-grid{gap:10px}
  .bookmark-card,.add-card{min-height:82px}
  .bookmark-icon{width:30px;height:30px}
}
/* 窄桌面窗口（1025–1180px）：6 列 */
@media (max-width: 1180px){
  .page-shell{width:min(1120px,calc(100% - 56px))}
  .bookmark-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
}
/* 平板与紧凑窗口（861–1024px）：5 列 */
@media (max-width: 1024px){
  .page-shell{width:min(980px,calc(100% - 48px))}
  .bookmark-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
}@media (max-width: 860px){.page-shell{width:min(100% - 40px,720px)}.search-hero{margin-top:76px}.bookmark-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.workspace-body{padding:16px}.workspace-head{padding:0 14px}.edit-home-button{height:30px;padding:0 10px;gap:4px;font-size:12px}}@media (max-width: 620px){.page-shell{width:calc(100% - 28px);padding-top:16px}.sync-state{display:none}.search-hero{margin:50px auto 0}.search-gap{height:65px}.search-hero h1{font-size:29px}.eyebrow{font-size:11px}.search-form{display:grid;grid-template-columns:1fr auto;position:relative;border-radius:14px}.engine-select{grid-column:1/-1;border-bottom:1px solid #e7edf7}.engine-trigger{height:43px;width:100%;border-right:0}.engine-menu{top:48px;width:100%}.search-input-wrap input{height:51px;font-size:16px}.search-button{width:68px;margin:5px}.workspace{border-radius:18px}.bookmark-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.bookmark-card,.add-card{min-height:83px}.workspace-body{padding:12px}.group-tab{padding:17px 9px 14px}.theme-grid{grid-template-columns:repeat(2,1fr)}.modal-layer{padding:12px}.modal{padding:20px;border-radius:18px}.toast-region{right:14px;bottom:14px;left:14px}.toast{max-width:none}}
@media (max-width: 410px){.topbar-actions .text-button{padding:7px 8px}.brand{font-size:16px}.bookmark-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.search-hero h1{font-size:26px}}
@media (prefers-reduced-motion: reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
