/* 我的物料领用记录 · 双 Tab 样式 Demo 共享样式(Fresh Mint Token) */ :root { --primary: #10b981; --primary-dark: #059669; --primary-bg: #ecfdf5; --text: #1e293b; --text-muted: #64748b; --border: #e2e8f0; --bg-page: #f8fafc; --surface: #fff; --radius: 10px; --radius-sm: 8px; } * { box-sizing: border-box; } body { margin: 0; min-height: 100vh; font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif; font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg-page); } /* ── 顶栏说明 ── */ .demo-banner { position: sticky; top: 0; z-index: 200; padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04); } .demo-banner h1 { margin: 0; font-size: 15px; font-weight: 600; } .demo-banner p { margin: 4px 0 0; font-size: 12px; color: var(--text-muted); } .demo-banner__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .demo-banner a { padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 500; text-decoration: none; color: var(--text-muted); border: 1px solid var(--border); background: var(--surface); } .demo-banner a:hover { border-color: var(--primary); color: var(--primary-dark); } .demo-banner a.is-current { background: var(--primary-bg); border-color: var(--primary); color: var(--primary-dark); } .demo-badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; background: var(--primary-bg); color: var(--primary-dark); } /* ── 页面骨架 ── */ .page-wrap { padding: 24px; max-width: 1280px; margin: 0 auto; } .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; } .panel-top { padding: 16px 24px 0; } .panel-top h2 { margin: 0; font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 10px; } .panel-top h2::before { content: ''; width: 4px; height: 16px; border-radius: 2px; background: var(--primary); flex-shrink: 0; } .panel-tab-zone { padding: 0 24px; } .mock-content { border-top: 1px solid var(--border); } .filter-block { padding: 16px 24px; } .filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; } .filter-item label { display: block; font-size: 11px; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; } .filter-item .fake-input { height: 36px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 12px; background: var(--surface); color: var(--text-muted); font-size: 13px; display: flex; align-items: center; } .filter-actions-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; flex-wrap: wrap; } .filter-hint { font-size: 12px; color: var(--text-muted); } .filter-actions-end { display: flex; gap: 8px; } .list-body { padding: 0 24px 24px; } .fake-table { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; } .fake-table-head, .fake-table-row { display: grid; gap: 8px; padding: 10px 16px; font-size: 13px; align-items: center; } .fake-table-head { background: #f1f5f9; font-weight: 600; color: var(--text-muted); font-size: 12px; } .fake-table-row { border-top: 1px solid var(--border); color: var(--text); } .fake-table-row:nth-child(even) { background: #fafafa; } .tab-panel { display: none; } .tab-panel.is-active { display: block; } .style-note { margin: 24px 0 0; padding: 14px 18px; background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius-sm); font-size: 13px; color: #92400e; } .style-note strong { color: #78350f; } .pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; } .pros-cons div { padding: 10px 12px; border-radius: var(--radius-sm); font-size: 12px; line-height: 1.5; } .pros-cons .pro { background: var(--primary-bg); color: var(--primary-dark); } .pros-cons .con { background: #f8fafc; color: var(--text-muted); } /* ══════════════════════════════════════════ 01 · 现状基线(居中胶囊,与线上一致) ══════════════════════════════════════════ */ .tabs-01 { display: flex; justify-content: center; margin: 12px 0 4px; } .tabs-01__track { display: inline-flex; gap: 4px; padding: 4px; background: #f1f5f9; border: 1px solid var(--border); border-radius: 8px; } .tabs-01 .tab-btn { min-width: 108px; padding: 8px 20px; border: none; border-radius: 6px; background: transparent; font-size: 13px; font-weight: 500; color: var(--text-muted); cursor: pointer; transition: background 0.15s, color 0.15s, box-shadow 0.15s; } .tabs-01 .tab-btn:hover:not(.is-active) { color: var(--text); background: rgba(255, 255, 255, 0.6); } .tabs-01 .tab-btn.is-active { background: #fff; color: var(--primary-dark); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); font-weight: 600; } /* ══════════════════════════════════════════ 02 · 全宽双轨滑块(50/50 等分) ══════════════════════════════════════════ */ .tabs-02 { margin: 16px 0 8px; } .tabs-02-inner { position: relative; } .tabs-02-track { display: grid; grid-template-columns: 1fr 1fr; background: #f1f5f9; border-radius: var(--radius-sm); padding: 4px; border: 1px solid var(--border); } .tabs-02 .tab-btn { padding: 12px 16px; border: none; border-radius: 6px; background: transparent; font-size: 14px; font-weight: 500; color: var(--text-muted); cursor: pointer; text-align: center; z-index: 1; transition: color 0.2s; } .tabs-02 .tab-btn.is-active { color: var(--primary-dark); font-weight: 600; } .tabs-02-slider { position: absolute; top: 4px; left: 4px; width: calc((100% - 8px) / 2); height: calc(100% - 8px); background: var(--surface); border-radius: 6px; box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1); transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: none; } .tabs-02[data-active='1'] .tabs-02-slider { transform: translateX(100%); } /* ══════════════════════════════════════════ 03 · 图标信息卡片(双列大按钮) ══════════════════════════════════════════ */ .tabs-03 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 8px; } .tabs-03 .tab-btn { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--text-muted); cursor: pointer; text-align: left; transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s; } .tabs-03 .tab-icon { width: 40px; height: 40px; border-radius: 10px; background: #f1f5f9; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text-muted); transition: background 0.15s, color 0.15s; } .tabs-03 .tab-text { display: flex; flex-direction: column; gap: 2px; } .tabs-03 .tab-title { font-weight: 600; font-size: 14px; } .tabs-03 .tab-desc { font-size: 12px; font-weight: 400; color: var(--text-muted); } .tabs-03 .tab-btn:hover:not(.is-active) { border-color: #a7f3d0; background: #f8fafc; } .tabs-03 .tab-btn.is-active { border-color: var(--primary); background: var(--primary-bg); color: var(--primary-dark); box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12); } .tabs-03 .tab-btn.is-active .tab-icon { background: var(--primary); color: #fff; } .tabs-03 .tab-btn.is-active .tab-desc { color: var(--primary-dark); opacity: 0.85; } /* ══════════════════════════════════════════ 04 · 左对齐下划线(加大字号) ══════════════════════════════════════════ */ .tabs-04 { display: flex; gap: 0; margin: 12px 0 0; border-bottom: 2px solid var(--border); } .tabs-04 .tab-btn { padding: 14px 28px; margin-bottom: -2px; border: none; background: transparent; font-size: 15px; font-weight: 500; color: var(--text-muted); cursor: pointer; border-bottom: 3px solid transparent; transition: color 0.15s, border-color 0.15s; } .tabs-04 .tab-btn:hover:not(.is-active) { color: var(--text); background: #f8fafc; } .tabs-04 .tab-btn.is-active { color: var(--primary-dark); font-weight: 600; border-bottom-color: var(--primary); } /* ══════════════════════════════════════════ 05 · 标题行内嵌 Tab(标题右侧) ══════════════════════════════════════════ */ .panel-top--inline { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; } .tabs-05 { display: inline-flex; gap: 4px; padding: 4px; background: #f1f5f9; border: 1px solid var(--border); border-radius: 8px; flex-shrink: 0; } .tabs-05 .tab-btn { min-width: 96px; padding: 8px 18px; border: none; border-radius: 6px; background: transparent; font-size: 13px; font-weight: 500; color: var(--text-muted); cursor: pointer; transition: background 0.15s, color 0.15s, box-shadow 0.15s; } .tabs-05 .tab-btn.is-active { background: #fff; color: var(--primary-dark); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); font-weight: 600; } /* ══════════════════════════════════════════ 06 · 左对齐胶囊 + 引导提示 ══════════════════════════════════════════ */ .tab-zone-06 { margin: 12px 0 4px; } .tab-zone-06__hint { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12px; color: var(--text-muted); } .tab-zone-06__hint svg { flex-shrink: 0; color: var(--primary); } .tabs-06 { display: inline-flex; gap: 4px; padding: 5px; background: #f1f5f9; border: 1px solid var(--border); border-radius: 10px; } .tabs-06 .tab-btn { min-width: 140px; padding: 10px 24px; border: none; border-radius: 8px; background: transparent; font-size: 14px; font-weight: 500; color: var(--text-muted); cursor: pointer; transition: background 0.15s, color 0.15s, box-shadow 0.15s; } .tabs-06 .tab-btn:hover:not(.is-active) { color: var(--text); background: rgba(255, 255, 255, 0.7); } .tabs-06 .tab-btn.is-active { background: #fff; color: var(--primary-dark); box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1); font-weight: 600; } /* ══════════════════════════════════════════ 07 · 竖条强调 + 浅绿底(与标题竖条统一) ══════════════════════════════════════════ */ .tabs-07 { display: flex; gap: 0; margin: 12px 0 0; border-bottom: 1px solid var(--border); } .tabs-07 .tab-btn { padding: 14px 28px; border: none; background: transparent; font-size: 14px; font-weight: 500; color: var(--text-muted); cursor: pointer; position: relative; transition: color 0.15s, background 0.15s; } .tabs-07 .tab-btn::before { content: ''; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 3px; height: 0; border-radius: 2px; background: var(--primary); transition: height 0.15s; } .tabs-07 .tab-btn.is-active::before { height: 18px; } .tabs-07 .tab-btn:hover:not(.is-active) { color: var(--text); background: #f8fafc; } .tabs-07 .tab-btn.is-active { color: var(--primary-dark); font-weight: 600; background: linear-gradient(180deg, var(--primary-bg) 0%, transparent 100%); } /* ── 索引页 ── */ .index-hero { max-width: 960px; margin: 0 auto; padding: 32px 24px 16px; } .index-hero h1 { margin: 0 0 8px; font-size: 22px; } .index-hero p { margin: 0; color: var(--text-muted); max-width: 720px; line-height: 1.6; } .index-problem { margin-top: 16px; padding: 12px 16px; background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius-sm); font-size: 13px; color: #991b1b; max-width: 720px; } .index-grid { max-width: 960px; margin: 0 auto; padding: 16px 24px 48px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; } .index-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; text-decoration: none; color: inherit; transition: border-color 0.2s, box-shadow 0.2s; } .index-card:hover { border-color: #a7f3d0; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08); } .index-card h2 { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--primary-dark); } .index-card p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.5; } .index-card .tag { display: inline-block; margin-top: 12px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; background: #f1f5f9; color: var(--text-muted); } .index-card .tag--rec { background: var(--primary-bg); color: var(--primary-dark); } .index-card .tag--baseline { background: #fef3c7; color: #92400e; } .preview-strip { margin-top: 14px; padding: 10px; background: #f8fafc; border-radius: 8px; border: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }