﻿:root {
    --partner-green-950: #032f24;
    --partner-green-900: #064433;
    --partner-green-800: #0b5b42;
    --partner-green-700: #087449;
    --partner-green-600: #12975b;
    --partner-green-500: #22a86b;
    --partner-green-100: #e8f7ef;
    --partner-blue: #2f80ed;
    --partner-orange: #f59e0b;
    --partner-red: #ef4444;
    --partner-text: #172033;
    --partner-muted: #697586;
    --partner-line: #e6ebf2;
    --partner-bg: #f4f7fb;
    --partner-card: #ffffff;
    --partner-shadow: 0 12px 32px rgba(15, 35, 60, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    background: var(--partner-bg);
    color: var(--partner-text);
    letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.partner-shell { min-height: 100vh; display: flex; }
.partner-sidebar {
    position: fixed; inset: 0 auto 0 0; width: 220px;
    background: radial-gradient(circle at 30% 0%, rgba(34,168,107,.28), transparent 32%), linear-gradient(180deg, var(--partner-green-900), var(--partner-green-950));
    color: #fff; z-index: 30; display: flex; flex-direction: column;
    box-shadow: 12px 0 34px rgba(3,47,36,.18);
    transition: width .22s ease;
}
.partner-shell.sidebar-collapsed .partner-sidebar { width: 76px; }
.partner-brand { height: 92px; display: flex; align-items: center; gap: 12px; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-mark { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #7bcf55, #0bb37c); color: #fff; font-weight: 900; font-size: 24px; box-shadow: 0 10px 26px rgba(24,185,126,.3); }
.brand-title { font-size: 22px; font-weight: 800; line-height: 1; white-space: nowrap; }
.brand-subtitle { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 8px; white-space: nowrap; }
.partner-shell.sidebar-collapsed .brand-copy, .partner-shell.sidebar-collapsed .nav-text, .partner-shell.sidebar-collapsed .collapse-text { display: none; }
.partner-nav { flex: 1; padding: 18px 12px; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 13px; min-height: 50px; padding: 0 16px; margin: 4px 0; border-radius: 12px; color: rgba(255,255,255,.82); font-size: 16px; font-weight: 650; transition: background .18s, color .18s, transform .18s; }
.nav-item:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-item.active { background: linear-gradient(135deg, rgba(34,168,107,.95), rgba(18,151,91,.85)); color: #fff; box-shadow: 0 12px 24px rgba(4, 58, 41, .24); }
.nav-icon { width: 23px; height: 23px; flex: 0 0 23px; display: grid; place-items: center; font-size: 19px; }
.partner-collapse { border: 0; color: rgba(255,255,255,.86); background: rgba(0,0,0,.12); margin: 14px 12px 18px; min-height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.partner-main { margin-left: 220px; min-width: 0; flex: 1; transition: margin-left .22s ease; }
.partner-shell.sidebar-collapsed .partner-main { margin-left: 76px; }
.partner-topbar { height: 78px; padding: 0 28px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--partner-line); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.breadcrumb { color: var(--partner-muted); font-size: 15px; display: flex; align-items: center; gap: 8px; }
.search-box { width: min(390px, 38vw); height: 46px; border: 1px solid #d8e0ea; border-radius: 13px; display: flex; align-items: center; padding: 0 14px; background: #fff; color: #8a94a6; }
.search-box input { border: 0; outline: 0; flex: 1; min-width: 0; background: transparent; color: var(--partner-text); }
.top-actions { display: flex; align-items: center; gap: 18px; }
.top-icon { position: relative; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #111827; background: #fff; border: 1px solid #e7edf4; }
.top-badge { position: absolute; right: -4px; top: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: #ef4444; color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 4px; }
.company-chip { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #263347; white-space: nowrap; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #dff6ec, #c8e0ff); display: grid; place-items: center; font-weight: 800; color: #0b5b42; }
.partner-content { padding: 18px 18px 28px; }
.panel { background: var(--partner-card); border: 1px solid #e7edf4; border-radius: 12px; box-shadow: var(--partner-shadow); }
.card { background: var(--partner-card); border: 1px solid #e7edf4; border-radius: 12px; padding: 22px; margin-bottom: 20px; box-shadow: 0 8px 26px rgba(15,35,60,.06); }
.card-title { font-size: 18px; font-weight: 800; margin-bottom: 16px; color: #1c2738; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 10px 18px; font-size: 14px; font-weight: 700; cursor: pointer; transition: .18s; }
.btn-primary { background: var(--partner-green-600); color: #fff; }
.btn-primary:hover { background: var(--partner-green-700); }
.btn-secondary { background: #edf2f7; color: #344054; }
.btn-success { background: #13a66b; color: #fff; }
.btn-danger { background: #ef4444; color: #fff; }
.form-group { margin-bottom: 17px; }
.form-group label { display: block; margin-bottom: 7px; color: #344054; font-weight: 700; font-size: 14px; }
.form-control { width: 100%; min-height: 42px; border: 1px solid #d5dde8; border-radius: 10px; padding: 9px 12px; outline: 0; background: #fff; transition: border .18s, box-shadow .18s; }
.form-control:focus { border-color: var(--partner-green-500); box-shadow: 0 0 0 4px rgba(34,168,107,.11); }
textarea.form-control { min-height: 94px; resize: vertical; }
.alert { border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }
.alert-danger { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }
.alert-success { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.alert-warning { background: #fffaeb; color: #93370d; border: 1px solid #fedf89; }
.alert-info { background: #eff8ff; color: #175cd3; border: 1px solid #b2ddff; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.text-center { text-align: center; }.text-right { text-align: right; }.mt-2 { margin-top: 16px; }.mb-2 { margin-bottom: 16px; }.flex { display:flex; }.flex-between { display:flex; align-items:center; justify-content:space-between; }.gap-2 { gap:12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; border-bottom: 1px solid #edf1f7; text-align: left; }
th { background: #f8fafc; color: #475467; font-weight: 800; }
.workbench-hero { display: grid; grid-template-columns: minmax(360px, 1.5fr) repeat(4, minmax(118px, .68fr)); gap: 12px; margin-bottom: 14px; }
.company-overview { padding: 24px; min-height: 164px; background: linear-gradient(110deg, #fff 0%, #fff 58%, #eaf8ef 59%, #f7fbff 100%); position: relative; overflow: hidden; }
.company-overview:after { content:""; position:absolute; right:0; bottom:0; width:260px; height:130px; background: linear-gradient(135deg, rgba(34,168,107,.12), rgba(47,128,237,.12)); clip-path: polygon(18% 62%, 42% 34%, 61% 50%, 80% 18%, 100% 42%, 100% 100%, 0 100%); }
.company-overview h1 { margin: 0 0 16px; font-size: 26px; line-height: 1.25; color: #121926; }
.status-row { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; color: #344054; }
.status-pill { display:inline-flex; align-items:center; gap:7px; color:#087449; background:#e8f7ef; border-radius:999px; padding:7px 12px; font-weight:800; }
.progress-line { display:flex; align-items:center; gap:18px; max-width: 430px; }
.progress-track { flex:1; height:12px; background:#e9eef5; border-radius:999px; overflow:hidden; }
.progress-fill { height:100%; width:86%; border-radius:999px; background: linear-gradient(90deg,#20a96b,#109057); }
.progress-value { color:#087449; font-size:22px; font-weight:900; }
.hero-stat { padding: 18px; display:flex; flex-direction:column; justify-content:space-between; min-height:164px; }
.hero-stat .label { color:#344054; font-weight:700; }
.hero-stat .value { font-size:28px; font-weight:900; color:#13965e; margin-top: 16px; }
.hero-stat .unit { font-size: 14px; color:#344054; margin-left: 4px; }
.hero-stat .stat-icon { align-self:flex-end; font-size:32px; color:#22a86b; opacity:.9; }
.hero-stat.orange .value,.hero-stat.orange .stat-icon{ color:#f59e0b; }
.hero-stat.blue .value,.hero-stat.blue .stat-icon{ color:#2f80ed; }
.metric-strip { display:grid; grid-template-columns: repeat(8,minmax(0,1fr)); margin-bottom:18px; overflow:hidden; }
.metric-item { padding:22px 18px; border-right:1px solid #edf1f7; min-height:122px; }
.metric-item:last-child{ border-right:0; }
.metric-label { color:#344054; font-weight:700; font-size:14px; }
.metric-value { margin-top:14px; font-size:24px; font-weight:900; color:#101828; }
.metric-delta { margin-top:12px; font-size:13px; color:#078c55; }
.quick-grid { display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap:18px; }
.quick-card { min-height:112px; display:flex; align-items:center; gap:18px; padding:22px; border-radius:12px; border:1px solid #e7edf4; background: linear-gradient(135deg,#fff,#f7fbff); transition:.18s; }
.quick-card:hover { transform: translateY(-2px); box-shadow: var(--partner-shadow); }
.quick-icon { width:56px; height:56px; border-radius:16px; display:grid; place-items:center; font-size:28px; color:#fff; flex:0 0 56px; }
.quick-title { font-size:17px; font-weight:900; margin-bottom:6px; }
.quick-desc { color:#475467; font-size:13px; line-height:1.55; }
.analysis-grid { display:grid; grid-template-columns: 1fr 1.2fr .78fr .78fr; gap:18px; margin-top:18px; }
.chart-card { padding:22px; }
.chart-title { font-size:17px; font-weight:900; margin-bottom:18px; }
.donut-wrap { display:flex; align-items:center; gap:22px; }
.donut { width:156px; height:156px; border-radius:50%; background: conic-gradient(#2f80ed 0 20%, #49bd6e 20% 46%, #f8bd27 46% 74%, #ff9f1c 74% 100%); position:relative; flex:0 0 156px; }
.donut:after { content:attr(data-total-stock)"\A 总存栏(只)"; white-space:pre; position:absolute; inset:32px; border-radius:50%; background:#fff; display:grid; place-items:center; text-align:center; color:#1d2939; font-weight:900; line-height:1.5; }
.legend-row { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:13px; margin:9px 0; }
.legend-dot { width:9px; height:9px; border-radius:50%; display:inline-block; margin-right:8px; }
.trend-chart { height:190px; display:flex; align-items:end; gap:18px; padding:12px 8px 0; border-left:1px solid #edf1f7; border-bottom:1px solid #edf1f7; }
.trend-month { flex:1; display:flex; align-items:end; justify-content:center; gap:5px; height:100%; position:relative; }
.bar { width:9px; border-radius:8px 8px 0 0; min-height:14px; }
.bar.revenue { background:#22a86b; }.bar.cost { background:#f59e0b; }.bar.profit { background:#2f80ed; }
.month-label { position:absolute; bottom:-22px; font-size:12px; color:#667085; }
.todo-item, .notice-item { display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid #edf1f7; }
.todo-item:last-child, .notice-item:last-child { border-bottom:0; }
.todo-icon { width:34px; height:34px; border-radius:11px; display:grid; place-items:center; color:#fff; flex:0 0 34px; }
.todo-main { flex:1; min-width:0; }
.todo-title { font-weight:800; color:#263347; }
.todo-desc { font-size:12px; color:#667085; margin-top:3px; }
.todo-badge { min-width:24px; height:24px; border-radius:12px; background:#f04438; color:#fff; display:grid; place-items:center; font-size:12px; font-weight:900; }
.notice-dot { width:7px; height:7px; border-radius:50%; background:#f59e0b; flex:0 0 7px; }
.login-page { min-height:100vh; display:grid; grid-template-columns: minmax(420px, .9fr) 1.1fr; background: linear-gradient(135deg,#033427,#07563d); }
.login-brand-panel { color:#fff; padding:64px; display:flex; flex-direction:column; justify-content:space-between; min-height:100vh; background: radial-gradient(circle at 25% 20%, rgba(34,168,107,.42), transparent 30%), linear-gradient(135deg,#033427,#07563d); }
.login-brand h1 { font-size:38px; margin:0 0 16px; }.login-brand p { font-size:18px; color:rgba(255,255,255,.78); line-height:1.8; max-width:520px; }
.login-feature-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:16px; margin-top:42px; }
.login-feature { border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.08); border-radius:16px; padding:18px; backdrop-filter: blur(8px); }
.login-form-panel { min-height:100vh; display:grid; place-items:center; padding:42px; background:#f6faf8; }
.login-card { width:min(430px,100%); background:#fff; border:1px solid #e5ecf3; border-radius:20px; padding:38px; box-shadow:0 24px 70px rgba(3,47,36,.16); }
.login-card h2 { margin:0 0 8px; font-size:28px; }.login-card .sub { color:#667085; margin-bottom:26px; }
.code-row { display:flex; gap:10px; }.code-row .form-control { flex:1; }.code-pill { display:grid; place-items:center; padding:0 14px; border-radius:10px; background:#ecfdf3; color:#087449; font-weight:900; border:1px solid #abefc6; }
.footer-note { color:#98a2b3; font-size:13px; margin-top:20px; text-align:center; }
.scroll-top { position: fixed; right: 22px; bottom: 22px; width: 42px; height: 42px; border:0; border-radius:50%; background:#087449; color:#fff; display:none; place-items:center; z-index:40; cursor:pointer; }
.scroll-top.visible { display:grid; }
@media (max-width: 1120px) { .workbench-hero { grid-template-columns: repeat(2,minmax(0,1fr)); }.company-overview { grid-column: 1 / -1; }.metric-strip { grid-template-columns: repeat(4,minmax(0,1fr)); }.analysis-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.quick-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 900px) { .partner-sidebar { width:76px; }.partner-main { margin-left:76px; }.brand-copy,.nav-text,.collapse-text{display:none}.partner-topbar{padding:0 16px}.search-box{display:none}.partner-content{padding:18px}.workbench-hero,.grid-2,.grid-3,.grid-4,.analysis-grid,.quick-grid{grid-template-columns:1fr}.metric-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.login-page{grid-template-columns:1fr}.login-brand-panel{display:none}.login-form-panel{min-height:100vh} }
