:root {
  --brand: #16a56a;
  --brand-dark: #0b7f50;
  --brand-soft: #eaf8f1;
  --ink: #17211c;
  --muted: #6f7873;
  --line: #e4e9e6;
  --surface: #fff;
  --canvas: #f4f6f5;
  --warning: #a96a10;
  --danger: #bc3c43;
  --shadow: 0 14px 40px rgba(22, 52, 37, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.muted { color: var(--muted); }
.app-shell { min-height: 100vh; }

/* 左侧导航固定承担全站定位，主内容保持单一视觉焦点。 */
.site-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 236px; display: flex; flex-direction: column; padding: 24px 18px; background: var(--surface); border-right: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; color: #fff; background: linear-gradient(145deg, #22bd7d, #087647); border-radius: 13px 5px 13px 5px; font-size: 13px; font-weight: 900; letter-spacing: -.5px; box-shadow: 0 8px 18px rgba(22, 165, 106, .22); }
.brand strong, .brand small { display: block; line-height: 1.15; }
.brand strong { font-size: 17px; font-weight: 850; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: .18em; }
.side-nav { display: grid; gap: 7px; margin-top: 36px; }
.side-nav a { display: flex; align-items: center; gap: 13px; padding: 12px 13px; border-radius: 11px; color: #46504a; font-size: 14px; font-weight: 650; transition: .18s ease; }
.side-nav a span { width: 21px; text-align: center; font-size: 20px; font-weight: 400; }
.side-nav a:hover, .side-nav a.active { color: var(--brand-dark); background: var(--brand-soft); }
.side-section { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.side-label { margin: 0 12px 10px; color: #9aa19d; font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.side-upload { display: flex; align-items: center; gap: 11px; padding: 11px 13px; color: var(--ink); border-radius: 11px; font-size: 14px; font-weight: 700; }
.side-upload span { color: var(--brand); font-size: 22px; }
.side-upload:hover, .side-upload.active { color: var(--brand-dark); background: var(--brand-soft); }
.side-note { margin-top: auto; padding: 16px; background: linear-gradient(145deg, #edf9f3, #f8fbf9); border: 1px solid #d9eee3; border-radius: 14px; }
.side-note strong { font-size: 13px; }
.side-note p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.side-footer { padding: 17px 4px 0; color: #a2aaa6; font-size: 10px; }

.app-content { min-width: 0; margin-left: 236px; }
.topbar { position: sticky; top: 0; z-index: 25; min-height: 72px; display: flex; align-items: center; gap: 22px; padding: 12px 30px; background: rgba(244, 246, 245, .92); border-bottom: 1px solid rgba(222, 228, 224, .85); backdrop-filter: blur(14px); }
.global-search { width: min(760px, 70%); display: flex; align-items: center; margin-right: auto; padding: 0 7px 0 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; transition: border-color .18s, box-shadow .18s; }
.global-search:focus-within { border-color: #9cd8bc; box-shadow: 0 0 0 4px rgba(22, 165, 106, .08); }
.search-icon { color: #8b948f; font-size: 22px; }
.global-search input { width: 100%; height: 44px; padding: 0 12px; background: transparent; border: 0; outline: 0; font-size: 14px; }
.global-search button { padding: 7px 13px; color: var(--muted); background: #f4f6f5; border: 0; border-radius: 999px; font-size: 12px; }
.top-actions { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.user-chip:hover { background: #e9ecea; }
.avatar-fallback, .mini-avatar, .author-avatar { display: grid; place-items: center; color: #fff; background: #26362e; border-radius: 50%; font-weight: 750; }
.avatar-fallback { width: 34px; height: 34px; }
.mobile-menu { display: none; width: 40px; height: 40px; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.page-main { width: min(1540px, 100%); min-height: calc(100vh - 72px); margin: 0 auto; padding: 28px 30px 60px; }

.btn { border-radius: 9px; font-weight: 700; }
.btn-brand { display: inline-flex; align-items: center; justify-content: center; padding-inline: 18px; color: #fff; background: var(--brand); border-color: var(--brand); }
.btn-brand:hover, .btn-brand:focus { color: #fff; background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-white { color: #38413c; background: #fff; border: 1px solid var(--line); }
.btn-white:hover { color: var(--brand-dark); background: #fff; border-color: #aacdbb; }
.btn-ghost { color: #3b443f; border-color: transparent; }
.btn-favorited { color: #fff; background: #e85262; border-color: #e85262; }
.eyebrow { display: inline-block; margin-bottom: 7px; color: var(--brand-dark); font-size: 10px; font-weight: 850; letter-spacing: .17em; }

/* 首页 */
.hero-panel { position: relative; min-height: 250px; display: flex; align-items: center; overflow: hidden; padding: 36px 43px; color: #fff; background: radial-gradient(circle at 75% 15%, rgba(79, 218, 157, .32), transparent 34%), linear-gradient(120deg, #102a1d 0%, #155b3c 62%, #14895a 100%); border-radius: 20px; box-shadow: var(--shadow); }
.hero-panel > div:first-child { position: relative; z-index: 2; max-width: 680px; }
.hero-panel .eyebrow { color: #78e9b5; }
.hero-panel h1 { margin: 0 0 10px; font-size: clamp(28px, 3vw, 43px); font-weight: 850; letter-spacing: -.04em; }
.hero-panel p { max-width: 610px; margin: 0; color: rgba(255,255,255,.74); font-size: 14px; line-height: 1.8; }
.hero-actions { display: flex; gap: 10px; margin-top: 23px; }
.hero-actions .btn-white { background: rgba(255,255,255,.96); border: 0; }
.hero-shape { position: absolute; right: 55px; bottom: -28px; width: 260px; height: 230px; opacity: .78; transform: rotate(-8deg); }
.hero-shape span { position: absolute; display: block; width: 126px; height: 126px; border: 2px solid rgba(177, 255, 218, .34); border-radius: 28px 8px 28px 8px; transform: rotate(30deg); }
.hero-shape span:nth-child(2) { left: 75px; top: 40px; background: rgba(93, 224, 163, .12); }
.hero-shape span:nth-child(3) { left: 132px; top: 93px; }
.catalog-layout { display: grid; grid-template-columns: 226px minmax(0, 1fr); gap: 22px; margin-top: 24px; align-items: start; }
.page-catalog { margin-top: 0; }
.filter-panel, .catalog-content, .content-card, .form-card, .submit-panel, .profile-section, .standalone-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.filter-panel { position: sticky; top: 96px; padding: 15px; }
.filter-title { padding: 9px 10px 13px; font-size: 16px; font-weight: 800; }
.filter-link { display: flex; align-items: center; justify-content: space-between; margin: 3px 0; padding: 11px 12px; color: #56605a; border-radius: 9px; font-size: 13px; }
.filter-link:hover, .filter-link.active { color: var(--brand-dark); background: var(--brand-soft); font-weight: 700; }
.filter-help { display: flex; gap: 10px; margin-top: 18px; padding: 14px 10px 5px; border-top: 1px solid var(--line); }
.help-icon { width: 20px; height: 20px; display: grid; place-items: center; flex: 0 0 20px; color: var(--brand-dark); background: var(--brand-soft); border-radius: 50%; font-size: 11px; font-weight: 800; }
.filter-help strong { font-size: 12px; }
.filter-help p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.catalog-content { min-width: 0; padding: 24px; }
.standalone-panel { padding: 28px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.section-head h1, .section-head h2 { margin: 0; font-size: 24px; font-weight: 850; letter-spacing: -.025em; }
.section-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.sort-tabs { display: flex; gap: 4px; padding: 4px; background: var(--canvas); border-radius: 10px; }
.sort-tabs a { padding: 7px 13px; color: var(--muted); border-radius: 7px; font-size: 12px; font-weight: 700; }
.sort-tabs a.active, .sort-tabs a:hover { color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgba(20,40,30,.06); }
.model-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.model-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 13px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.model-card:hover { border-color: #c8d6ce; box-shadow: 0 13px 25px rgba(20, 48, 33, .1); transform: translateY(-3px); }
.model-cover-link { position: relative; display: block; overflow: hidden; background: #edf0ee; aspect-ratio: 4 / 3; }
.model-cover { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.model-card:hover .model-cover { transform: scale(1.025); }
.model-placeholder { display: grid; place-items: center; color: #a4afa9; background: linear-gradient(145deg, #eef4f1, #dfe8e3); font-weight: 900; letter-spacing: .08em; }
.category-badge { position: absolute; top: 10px; left: 10px; padding: 5px 8px; color: #fff; background: rgba(18, 30, 23, .74); border-radius: 6px; backdrop-filter: blur(5px); font-size: 10px; font-weight: 700; }
.model-card-body { padding: 12px 13px 13px; }
.model-title { display: block; overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.model-title:hover { color: var(--brand-dark); }
.model-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; color: #838c87; font-size: 11px; }
.creator { min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-avatar { width: 21px; height: 21px; flex: 0 0 21px; font-size: 9px; }
.empty-state { grid-column: 1 / -1; min-height: 290px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); text-align: center; }
.empty-state.compact { min-height: 150px; }
.empty-state h3 { margin: 10px 0 3px; color: var(--ink); font-size: 17px; }
.empty-state p { margin: 0 0 15px; font-size: 12px; }
.empty-icon { width: 52px; height: 52px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 50%; font-size: 25px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 27px; color: var(--muted); font-size: 12px; }
.pager a { padding: 8px 13px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.pager a:hover { color: var(--brand-dark); border-color: #aad2bd; }

/* 独立首页：只负责发现内容，与完整模型库形成明确分工。 */
.home-categories { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 18px; padding-bottom: 2px; scrollbar-width: none; }
.home-categories::-webkit-scrollbar { display: none; }
.home-categories a { flex: 0 0 auto; padding: 9px 16px; color: #59635d; background: #e9ecea; border-radius: 9px; font-size: 12px; font-weight: 700; }
.home-categories a:hover, .home-categories a.active { color: #fff; background: #26312b; }
.discovery-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(390px, .85fr); gap: 18px; }
.featured-story { position: relative; min-height: 350px; display: block; overflow: hidden; background: linear-gradient(135deg, #113324, #169461); border-radius: 18px; box-shadow: var(--shadow); }
.featured-story > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .35s ease; }
.featured-story:hover > img { transform: scale(1.025); }
.featured-story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,18,12,.83), rgba(8,18,12,.02) 70%); }
.featured-empty::before { content: "LM"; position: absolute; right: 8%; top: 8%; color: rgba(255,255,255,.08); font-size: 160px; font-weight: 900; transform: rotate(-8deg); }
.featured-overlay { position: absolute; z-index: 2; inset: auto 28px 25px; color: #fff; }
.featured-overlay .eyebrow { color: #71e4ae; }
.featured-overlay h1 { margin: 0; font-size: clamp(25px, 3vw, 39px); font-weight: 850; letter-spacing: -.035em; }
.featured-overlay p { margin: 7px 0 0; color: rgba(255,255,255,.72); font-size: 12px; }
.explore-panel { padding: 24px; background: radial-gradient(circle at 90% 10%, rgba(108,226,157,.25), transparent 37%), linear-gradient(135deg, #ecfae9, #effaf5); border: 1px solid #d9efdf; border-radius: 18px; }
.explore-head h2 { margin: 0; font-size: 24px; font-weight: 850; }
.explore-head p { margin: 4px 0 18px; color: var(--muted); font-size: 11px; }
.explore-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.explore-grid a { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 16px 13px; background: rgba(255,255,255,.9); border: 1px solid rgba(218,234,224,.9); border-radius: 12px; transition: transform .18s, box-shadow .18s; }
.explore-grid a:hover { box-shadow: 0 9px 20px rgba(28,69,46,.09); transform: translateY(-2px); }
.explore-icon { width: 37px; height: 37px; display: grid; place-items: center; color: var(--brand-dark); background: var(--brand-soft); border-radius: 9px; font-size: 18px; }
.explore-grid strong, .explore-grid small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.explore-grid strong { font-size: 12px; }
.explore-grid small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.explore-grid b { color: #9ba59f; font-weight: 500; }
.home-latest { margin-top: 18px; padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: 17px; }
.text-link { color: var(--brand-dark); font-size: 11px; font-weight: 750; }
.home-process { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 17px; margin-top: 18px; padding: 22px 28px; color: #fff; background: #1e2e26; border-radius: 15px; }
.home-process > div { display: grid; grid-template-columns: auto 1fr; column-gap: 11px; }
.home-process span { width: 30px; height: 30px; grid-row: 1 / 3; display: grid; place-items: center; color: #6be1a8; background: rgba(255,255,255,.08); border-radius: 8px; font-size: 9px; font-weight: 850; }
.home-process strong { font-size: 12px; }
.home-process p { margin: 3px 0 0; color: rgba(255,255,255,.56); font-size: 9px; }
.home-process i { color: rgba(255,255,255,.3); font-style: normal; }

/* 收藏、上传和设备分别使用独立页面，但共享一致的账号识别区。 */
.account-header { display: flex; align-items: center; gap: 16px; padding: 24px 27px; color: #fff; background: radial-gradient(circle at 85% 20%, rgba(62,211,140,.2), transparent 32%), linear-gradient(115deg, #172c22, #176345); border-radius: 16px; }
.account-header .eyebrow { color: #71e4ae; }
.account-header h1 { margin: 0; font-size: 25px; font-weight: 850; }
.account-header p { margin: 4px 0 0; color: rgba(255,255,255,.62); font-size: 10px; }
.account-header > .btn { margin-left: auto; }
.account-content-panel { scroll-margin-top: 95px; margin-top: 16px; padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.status-tabs { display: flex; gap: 5px; overflow-x: auto; margin: -4px 0 18px; padding-bottom: 5px; }
.status-tabs a { flex: 0 0 auto; padding: 8px 12px; color: var(--muted); background: #f2f4f3; border-radius: 8px; font-size: 10px; font-weight: 750; }
.status-tabs a.active, .status-tabs a:hover { color: var(--brand-dark); background: var(--brand-soft); }
.status-tabs span { margin-left: 4px; opacity: .7; }
.dashboard-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-top: 16px; }
.dashboard-grid > a { min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 19px; background: #fff; border: 1px solid var(--line); border-radius: 13px; transition: transform .18s, box-shadow .18s; }
.dashboard-grid > a:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.dashboard-icon { width: 43px; height: 43px; grid-row: 1 / 3; display: grid; place-items: center; color: var(--brand-dark); background: var(--brand-soft); border-radius: 10px; font-size: 20px; }
.dashboard-grid strong, .dashboard-grid small { display: block; }
.dashboard-grid strong { font-size: 22px; line-height: 1; }
.dashboard-grid small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.dashboard-grid b { grid-column: 2; color: var(--brand-dark); font-size: 9px; }
.dashboard-actions { display: flex; align-items: center; gap: 9px; margin-top: 16px; padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.dashboard-actions > div { margin-right: auto; }
.dashboard-actions h2 { margin: 0; font-size: 19px; font-weight: 820; }
.dashboard-actions p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }

/* 详情页 */
.breadcrumb-line { display: flex; align-items: center; gap: 9px; overflow: hidden; margin-bottom: 15px; color: #8a938e; font-size: 11px; white-space: nowrap; }
.breadcrumb-line span:last-child { overflow: hidden; text-overflow: ellipsis; }
.breadcrumb-line a:hover { color: var(--brand-dark); }
.detail-panel { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, .85fr); gap: 34px; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.main-preview { overflow: hidden; aspect-ratio: 4 / 3; background: #eef1ef; border-radius: 13px; }
.main-preview img, .main-preview .model-placeholder { width: 100%; height: 100%; object-fit: contain; }
.thumb-strip { display: flex; gap: 9px; overflow-x: auto; padding-top: 11px; }
.thumb-button { width: 79px; height: 62px; flex: 0 0 79px; overflow: hidden; padding: 2px; background: #fff; border: 2px solid transparent; border-radius: 8px; }
.thumb-button.active { border-color: var(--brand); }
.thumb-button img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.detail-summary { min-width: 0; padding: 5px 2px; }
.detail-category { display: inline-block; padding: 5px 10px; color: var(--brand-dark); background: var(--brand-soft); border-radius: 999px; font-size: 10px; font-weight: 750; }
.detail-summary h1 { margin: 14px 0 15px; font-size: clamp(25px, 3vw, 37px); font-weight: 850; line-height: 1.2; letter-spacing: -.035em; }
.author-line { display: flex; align-items: center; gap: 10px; }
.author-avatar { width: 39px; height: 39px; }
.author-line strong, .author-line small { display: block; }
.author-line strong { font-size: 13px; }
.author-line small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.detail-intro { margin: 20px 0; color: #5e6862; font-size: 13px; line-height: 1.8; }
.summary-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 15px 0; border-block: 1px solid var(--line); }
.summary-stats span { color: var(--muted); border-right: 1px solid var(--line); text-align: center; font-size: 10px; }
.summary-stats span:last-child { border: 0; }
.summary-stats strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 18px; }
.action-row { display: flex; gap: 9px; margin: 17px 0; }
.send-card { padding: 18px; background: #f6faf8; border: 1px solid #dcebe3; border-radius: 13px; }
.send-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.send-card-head > div { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.step-dot { width: 25px; height: 25px; display: grid; place-items: center; color: #fff; background: var(--brand); border-radius: 7px; }
.status-tag { padding: 4px 7px; color: var(--brand-dark); background: #e2f4ea; border-radius: 999px; font-size: 9px; }
.send-card > p { margin: 10px 0 13px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.send-card label { margin-bottom: 4px; color: #637069; font-size: 10px; font-weight: 700; }
.send-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.inline-notice { padding: 10px 12px; color: #5f6a64; background: #fff; border: 1px dashed #bdd2c7; border-radius: 8px; font-size: 11px; }
.inline-notice a { color: var(--brand-dark); font-weight: 700; }
.form-message { min-height: 18px; margin-top: 7px; color: var(--muted); font-size: 11px; }
.form-message.success { color: var(--brand-dark); }
.form-message.error, .field-error { color: var(--danger); }
.detail-lower { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .65fr); gap: 18px; margin-top: 18px; align-items: start; }
.content-card { padding: 28px; }
.content-card h2 { margin: 0 0 18px; font-size: 21px; font-weight: 820; }
.rich-description { color: #515c56; font-size: 13px; line-height: 1.9; }
.rich-description p:last-child { margin-bottom: 0; }
.spec-card dl { margin: 0; }
.spec-card dl > div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.spec-card dt { color: var(--muted); font-weight: 500; }
.spec-card dd { margin: 0; font-weight: 700; text-align: right; }
.file-list { margin-top: 25px; }
.file-list h3 { font-size: 13px; font-weight: 800; }
.file-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 8px; padding: 10px; background: var(--canvas); border-radius: 9px; }
.file-list strong, .file-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list strong { font-size: 10px; }
.file-list small { color: var(--muted); font-size: 9px; }
.file-icon { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 32px; color: var(--brand-dark); background: var(--brand-soft); border-radius: 7px; font-size: 9px; font-weight: 850; }

/* 个人中心 */
.profile-hero { display: flex; align-items: center; gap: 17px; padding: 27px 30px; color: #fff; background: linear-gradient(120deg, #172d22, #176443); border-radius: 17px; }
.profile-hero .eyebrow { color: #76e5b2; }
.profile-hero h1 { margin: 0; font-size: 27px; font-weight: 850; }
.profile-hero p { margin: 3px 0 0; color: rgba(255,255,255,.65); font-size: 11px; }
.profile-hero form { margin-left: auto; }
.profile-avatar { width: 67px; height: 67px; display: grid; place-items: center; overflow: hidden; flex: 0 0 67px; color: var(--brand-dark); background: #dff5e9; border: 3px solid rgba(255,255,255,.25); border-radius: 50%; font-size: 25px; font-weight: 850; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-nav { position: sticky; top: 72px; z-index: 12; display: flex; gap: 6px; overflow-x: auto; margin: 16px 0; padding: 7px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.profile-nav a { padding: 8px 13px; border-radius: 8px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.profile-nav a:hover { color: var(--brand-dark); background: var(--brand-soft); }
.profile-nav span { margin-left: 5px; color: var(--muted); font-size: 9px; }
.profile-section { scroll-margin-top: 140px; margin-top: 16px; padding: 25px; }
.manage-list { display: grid; gap: 10px; }
.manage-card { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 11px; background: #fafbfa; border: 1px solid var(--line); border-radius: 11px; }
.manage-card > img, .manage-placeholder { width: 84px; height: 64px; object-fit: cover; border-radius: 7px; }
.manage-placeholder { display: grid; place-items: center; color: #9da7a1; background: #e8eeeb; font-size: 11px; font-weight: 800; }
.manage-main { min-width: 0; }
.manage-title { display: flex; align-items: center; gap: 8px; }
.manage-title h3 { overflow: hidden; margin: 0; font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.manage-main p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.reject-reason { margin-top: 7px; color: var(--danger); font-size: 10px; }
.status { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; font-size: 9px; font-weight: 750; white-space: nowrap; }
.status-pending, .status-queued { color: #996310; background: #fff2d6; }
.status-approved, .status-confirmed, .status-done { color: #08794a; background: #dff5e9; }
.status-rejected, .status-failed, .status-revoked, .status-cancelled { color: #ad3940; background: #fde5e7; }
.status-downloading, .status-printing { color: #2d63a7; background: #e6f0fd; }
.device-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.device-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 15px; background: #fafbfa; border: 1px solid var(--line); border-radius: 11px; }
.device-icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--brand-dark); background: var(--brand-soft); border-radius: 9px; font-size: 19px; }
.device-card h3 { overflow: hidden; margin: 0; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.device-card p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.bind-card { margin-top: 13px; padding: 18px; background: #f4f9f6; border: 1px dashed #bbd5c6; border-radius: 11px; }
.bind-card h3 { margin: 0; font-size: 14px; font-weight: 800; }
.bind-card p { margin: 4px 0 12px; color: var(--muted); font-size: 10px; }
.bind-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.table-wrap { overflow-x: auto; }
.job-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.job-table th { padding: 10px 12px; color: var(--muted); background: #f7f9f8; font-weight: 700; text-align: left; }
.job-table td { padding: 12px; border-bottom: 1px solid var(--line); }
.job-table td small { display: block; max-width: 180px; margin-top: 3px; color: var(--muted); }
.table-empty { height: 100px; color: var(--muted); text-align: center; }

/* 上传与编辑 */
.form-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.form-page-head h1 { margin: 0; font-size: 29px; font-weight: 850; letter-spacing: -.03em; }
.form-page-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.review-warning { display: flex; gap: 13px; margin-bottom: 14px; padding: 12px 16px; color: #805711; background: #fff8e9; border: 1px solid #f0dba9; border-radius: 10px; font-size: 11px; }
.upload-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 17px; align-items: start; }
.upload-main { display: grid; gap: 14px; }
.form-card { padding: 24px; }
.form-card-head { display: flex; gap: 12px; margin-bottom: 19px; }
.form-card-head > span { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 30px; color: var(--brand-dark); background: var(--brand-soft); border-radius: 8px; font-size: 10px; font-weight: 850; }
.form-card h2 { margin: 0; font-size: 17px; font-weight: 820; }
.form-card-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.form-label { margin-bottom: 6px; color: #444e48; font-size: 11px; font-weight: 750; }
.form-label em { color: var(--danger); font-style: normal; }
.form-control, .form-select { border-color: #dce3df; border-radius: 8px; font-size: 12px; }
.form-control:focus, .form-select:focus { border-color: #8bd0ad; box-shadow: 0 0 0 .2rem rgba(22,165,106,.09); }
.form-hint { margin-top: 5px; color: #929a95; font-size: 9px; }
.field-error { margin-top: 4px; font-size: 10px; }
.form-alert { margin-bottom: 14px; padding: 12px 15px; color: #a72d36; background: #fff0f1; border: 1px solid #f2c8cb; border-radius: 9px; font-size: 11px; }
.drop-zone { min-height: 145px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; background: #fafcfb; border: 1px dashed #aebdb5; border-radius: 11px; cursor: pointer; text-align: center; }
.drop-zone:hover { background: var(--brand-soft); border-color: var(--brand); }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-zone strong { font-size: 12px; }
.drop-zone small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.compact-zone { min-height: 112px; }
.upload-symbol { margin-bottom: 8px; color: var(--brand); font-size: 26px; }
.existing-assets { margin-bottom: 11px; padding: 12px; background: #f6f8f7; border-radius: 9px; }
.existing-assets > strong, .existing-assets > small { display: block; }
.existing-assets > strong { margin-bottom: 8px; font-size: 10px; }
.existing-assets > small { margin-top: 7px; color: var(--muted); font-size: 9px; }
.existing-images, .new-image-preview { display: flex; gap: 7px; overflow-x: auto; }
.existing-images img, .new-image-preview img { width: 88px; height: 66px; object-fit: cover; border: 1px solid var(--line); border-radius: 7px; }
.new-image-preview { margin-top: 9px; }
.existing-file { display: flex; align-items: center; gap: 8px; color: #59645e; font-size: 10px; }
.selected-files { display: grid; gap: 6px; margin-top: 8px; }
.selected-files > div { display: flex; align-items: center; gap: 8px; padding: 8px; background: #f6f8f7; border-radius: 8px; }
.selected-files strong, .selected-files small { display: block; }
.selected-files strong { font-size: 10px; }
.selected-files small { color: var(--muted); font-size: 9px; }
.param-list { display: grid; gap: 8px; }
.param-row { display: grid; grid-template-columns: 1fr 1.4fr 32px; gap: 8px; }
.remove-param { color: #8d9691; background: #f3f5f4; border: 0; border-radius: 7px; font-size: 18px; }
.remove-param:hover { color: var(--danger); background: #fdecee; }
.add-param { margin-top: 9px; padding: 0; color: var(--brand-dark); background: none; border: 0; font-size: 10px; font-weight: 750; }
.submit-panel { position: sticky; top: 96px; padding: 20px; }
.submit-panel h3 { font-size: 15px; font-weight: 820; }
.submit-panel ul { margin: 13px 0 18px; padding-left: 18px; color: var(--muted); font-size: 10px; line-height: 2; }

/* 账号页面 */
.auth-layout { min-height: calc(100vh - 132px); display: grid; grid-template-columns: 1fr minmax(390px, .75fr); overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.auth-side { display: flex; flex-direction: column; justify-content: center; padding: clamp(35px, 6vw, 80px); color: #fff; background: radial-gradient(circle at 80% 20%, rgba(70,220,150,.25), transparent 35%), linear-gradient(145deg, #102a1d, #176a47); }
.auth-side .eyebrow { color: #74e7b1; }
.auth-side h1 { margin: 0 0 15px; font-size: clamp(30px, 4vw, 50px); font-weight: 850; line-height: 1.16; letter-spacing: -.04em; }
.auth-side > p { max-width: 570px; margin: 0 0 30px; color: rgba(255,255,255,.68); font-size: 13px; line-height: 1.8; }
.auth-feature { display: flex; align-items: center; gap: 9px; margin-top: 11px; color: rgba(255,255,255,.86); font-size: 11px; }
.auth-feature span { width: 21px; height: 21px; display: grid; place-items: center; color: #75e5b0; background: rgba(255,255,255,.1); border-radius: 50%; }
.auth-card { align-self: center; padding: clamp(30px, 5vw, 62px); }
.auth-card-head { margin-bottom: 25px; }
.auth-card-head h2 { margin: 0; font-size: 25px; font-weight: 850; }
.auth-card-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 18px; padding: 4px; border-radius: 10px; background: var(--soft); }
.auth-tab { padding: 10px 8px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 750; cursor: pointer; }
.auth-tab.active { color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgba(21, 35, 54, .08); }
.auth-form { display: grid; gap: 9px; }
.auth-form label { margin-top: 4px; font-size: 10px; font-weight: 750; }
.auth-form .form-control { font-size: 12px; }
.code-input { display: grid; grid-template-columns: minmax(0, 1fr) 110px; }
.code-input .form-control { border-radius: 8px 0 0 8px; }
.code-button { color: var(--brand-dark); background: var(--brand-soft); border: 1px solid #d2e7dc; border-left: 0; border-radius: 0 8px 8px 0; font-size: 10px; font-weight: 750; }
.code-button:disabled { color: #89928d; background: #f2f4f3; }
.code-message { min-height: 21px; color: #8a938e; font-size: 9px; }
.code-message.success { color: var(--brand-dark); }
.code-message.error { color: var(--danger); }
.auth-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 19px; color: var(--muted); font-size: 10px; }
.auth-links a { color: var(--brand-dark); font-weight: 750; }

.offcanvas .brand { margin: 5px 0; }
.offcanvas .side-nav { margin-top: 0; }

@media (max-width: 1320px) {
  .model-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .device-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1050px) {
  .site-sidebar { display: none; }
  .app-content { margin-left: 0; }
  .mobile-menu { display: block; }
  .model-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-panel { grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); gap: 22px; padding: 22px; }
  .upload-layout { grid-template-columns: minmax(0, 1fr) 230px; }
  .discovery-grid { grid-template-columns: 1fr; }
  .featured-story { min-height: 390px; }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .topbar { padding-inline: 16px; }
  .page-main { padding: 20px 16px 45px; }
  .global-search { width: auto; flex: 1; }
  .global-search button { display: none; }
  .hero-panel { padding: 30px; }
  .hero-shape { right: -90px; opacity: .35; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; display: flex; gap: 5px; overflow-x: auto; padding: 8px; }
  .filter-title, .filter-help { display: none; }
  .filter-link { flex: 0 0 auto; margin: 0; }
  .filter-link span:last-child { display: none; }
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-panel, .detail-lower { grid-template-columns: 1fr; }
  .upload-layout { grid-template-columns: 1fr; }
  .submit-panel { position: static; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .home-process { grid-template-columns: 1fr; }
  .home-process i { display: none; }
}

@media (max-width: 575.98px) {
  .topbar { gap: 8px; min-height: 62px; }
  .top-actions { gap: 2px; }
  .user-chip > span:last-child { display: none; }
  .global-search { padding-left: 10px; }
  .global-search input { height: 40px; padding-inline: 8px; font-size: 12px; }
  .page-main { padding-inline: 11px; }
  .hero-panel { min-height: 245px; padding: 24px 21px; border-radius: 15px; }
  .hero-panel h1 { font-size: 28px; }
  .hero-panel p { font-size: 12px; }
  .catalog-content, .standalone-panel, .profile-section, .content-card, .form-card { padding: 17px; border-radius: 13px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .section-head .btn { width: 100%; }
  .model-grid { gap: 10px; }
  .model-card-body { padding: 9px; }
  .model-title { font-size: 12px; }
  .category-badge { top: 7px; left: 7px; }
  .detail-panel { padding: 12px; border-radius: 13px; }
  .detail-summary { padding: 8px 3px; }
  .summary-stats strong { font-size: 15px; }
  .send-controls { grid-template-columns: 1fr; }
  .profile-hero { align-items: flex-start; flex-wrap: wrap; padding: 21px; }
  .profile-hero form { margin-left: 0; }
  .profile-nav { top: 62px; }
  .manage-card { grid-template-columns: 65px minmax(0, 1fr); }
  .manage-card > img, .manage-placeholder { width: 65px; height: 54px; }
  .manage-card > .btn { grid-column: 1 / -1; width: 100%; }
  .device-grid { grid-template-columns: 1fr; }
  .bind-form { grid-template-columns: 1fr; }
  .form-page-head { align-items: flex-start; flex-direction: column; }
  .review-warning { flex-direction: column; }
  .param-row { grid-template-columns: 1fr 32px; }
  .param-row input:nth-child(2) { grid-column: 1 / 2; }
  .param-row .remove-param { grid-column: 2; grid-row: 1 / 3; }
  .auth-layout { min-height: calc(100vh - 92px); border-radius: 15px; }
  .auth-card { padding: 27px 20px; }
  .featured-story { min-height: 300px; }
  .featured-overlay { inset: auto 18px 18px; }
  .explore-panel, .home-latest, .account-content-panel { padding: 17px; }
  .explore-grid { grid-template-columns: 1fr; }
  .account-header { align-items: flex-start; flex-wrap: wrap; padding: 20px; }
  .account-header > .btn { width: 100%; margin-left: 0; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .dashboard-grid > a { padding: 13px; }
  .dashboard-actions { align-items: stretch; flex-direction: column; }
  .dashboard-actions > div { margin-right: 0; }
}
