.tab-nav{display:flex;gap:0;margin-bottom:1.5rem;border-bottom:2px solid var(--border-color);overflow-x:auto;-webkit-overflow-scrolling:touch}.tab-nav::-webkit-scrollbar{display:none}.tab-link{display:inline-flex;align-items:center;gap:.3rem;padding:.65rem 1.1rem;font-size:.9rem;font-weight:500;color:var(--text-color-light);text-decoration:none;border-bottom:2px solid transparent;margin-bottom:-2px;white-space:nowrap;cursor:pointer;transition:color .15s,border-color .15s;user-select:none}.tab-link:hover{color:var(--text-color)}.tab-link.active{color:var(--primary-color);border-bottom-color:var(--primary-color)}.tab-panel{animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:.6;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}@media(max-width:600px){.tab-link{padding:.5rem .7rem;font-size:.82rem}}.quick-opt{display:inline-block;padding:.2rem .6rem;font-size:.78rem;background:var(--card-background);border:1px solid var(--border-color);border-radius:4px;cursor:pointer;user-select:none;transition:background .15s}.quick-opt:hover{background:var(--primary-color);color:#fff;border-color:var(--primary-color)}.rules-table{width:100%;border-collapse:collapse;font-size:.82rem}.rules-table th,.rules-table td{padding:.4rem .6rem;text-align:left;border-bottom:1px solid var(--border-color)}.rules-table thead th{font-size:.78rem;color:var(--text-color-light);font-weight:500;background:var(--card-background)}.rules-table tbody tr:hover{background:var(--card-background)}.rules-table code{font-family:SF Mono,Monaco,Cascadia Code,monospace;font-size:.82em;padding:.1em .3em;border-radius:3px;background:rgba(var(--primary-rgb),.1);color:var(--primary-color)}.res-section{margin:1.4rem 0 .6rem;border:1px solid rgba(150,150,150,.18);border-radius:10px;background:rgba(var(--card-background-rgb),.35);overflow:hidden}.res-section-sum{display:flex;align-items:baseline;gap:.45rem;flex-wrap:wrap;padding:.6rem .85rem;font-size:.92rem;font-weight:600;cursor:pointer;user-select:none;list-style:none}.res-section-sum::-webkit-details-marker{display:none}.res-section-sum:after{content:"展开";margin-left:auto;font-size:.7rem;font-weight:400;color:var(--text-color-light)}.res-section[open]>.res-section-sum:after{content:"收起"}.res-section[open]>.res-section-sum{border-bottom:1px solid rgba(150,150,150,.15)}.res-section-sum:hover{background:#96969612}.res-section>.res-grid{padding:.7rem .85rem .85rem}.res-section-note{font-size:.72rem;font-weight:400;color:var(--text-color-light)}.res-note-details{margin-top:.35rem}.res-note-sum{font-size:.7rem;color:var(--text-color-light);cursor:pointer;user-select:none;list-style:none;display:inline-block;padding:.1rem .35rem;border:1px solid rgba(150,150,150,.28);border-radius:4px}.res-note-sum::-webkit-details-marker{display:none}.res-note-sum:hover{color:var(--text-color);background:#9696961a}.res-note-warn{font-size:.72rem}.res-note-details[open]>.res-note-sum{color:var(--text-color)}.res-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:.85rem;align-items:start}.res-card{background:var(--card-background);border:1px solid rgba(150,150,150,.18);border-radius:10px;padding:.8rem .95rem;box-shadow:0 1px 2px var(--shadow-color);min-width:0;text-align:left}.res-card-title{display:flex;align-items:center;gap:.4rem;font-size:.86rem;font-weight:600;padding-bottom:.45rem;border-bottom:1px solid rgba(150,150,150,.15);margin-bottom:.15rem}.res-tag{margin-left:auto;font-size:.64rem;font-weight:400;padding:0 .3rem;border:1px solid currentColor;border-radius:4px;white-space:nowrap}.res-tag.ok{color:#10b981}.res-tag.acct{color:#f59e0b}.res-src{font-size:.6rem;border:1px solid var(--border-color);border-radius:3px;padding:0 .25rem;color:var(--text-color-light);white-space:nowrap}.usage-list{display:flex;flex-direction:column}.usage-row{padding:.4rem 0;border-bottom:1px dashed rgba(150,150,150,.12)}.usage-row:last-child{border-bottom:none}.usage-line{display:flex;justify-content:space-between;align-items:baseline;gap:.5rem}.usage-label{font-size:.76rem;color:var(--text-color-light);overflow-wrap:anywhere;min-width:0}.usage-value{font-size:.86rem;font-variant-numeric:tabular-nums;white-space:nowrap;flex-shrink:0}.usage-value.wrap{white-space:normal;flex-shrink:1;overflow-wrap:anywhere;text-align:right}.usage-value.stack{display:block;white-space:normal;text-align:left;font-size:.78rem;font-weight:400;line-height:1.55;overflow-wrap:anywhere;margin-top:.15rem}.res-sub{font-size:.7rem;line-height:1.6;color:var(--text-color-light);padding-top:.2rem;overflow-wrap:anywhere}.res-kv-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 .8rem;font-size:.72rem;padding-top:.4rem}.res-kv{display:flex;justify-content:space-between;gap:.4rem;padding:.15rem 0}.res-kv>span:first-child{color:var(--text-color-light)}.res-kv>span:last-child{font-variant-numeric:tabular-nums}.res-err>.res-card-title{cursor:pointer;list-style:none}.res-err>.res-card-title::-webkit-details-marker{display:none}.res-err[open]>.res-card-title{border-bottom:1px solid rgba(239,68,68,.25)}.usage-value b{font-weight:600}.usage-bar{height:5px;border-radius:4px;background:#96969629;margin-top:5px;overflow:hidden}.usage-fill{height:100%;border-radius:4px;transition:width .4s ease}.res-note{font-size:.7rem;line-height:1.7;color:var(--text-color-light);margin-top:.45rem;overflow-wrap:anywhere}.res-note b{color:var(--text-color)}.res-note code{font-family:SF Mono,Monaco,monospace;font-size:.95em}.res-alert{font-size:.74rem;line-height:1.6;padding:.5rem .6rem;border-radius:6px;margin-bottom:.5rem;border:1px solid rgba(245,158,11,.3);background:#f59e0b1a;color:#b45309}.res-alert.danger{border-color:#ef444459;background:#ef44441a;color:#b91c1c}.res-table{width:100%;border-collapse:collapse;font-size:.74rem;margin-top:.4rem}.res-table th,.res-table td{padding:.3rem .45rem;border-bottom:1px solid rgba(150,150,150,.15);text-align:left}.res-table thead th{font-size:.7rem;font-weight:500;color:var(--text-color-light)}.res-table td.num,.res-table th.num{text-align:right;font-variant-numeric:tabular-nums}.res-foot{margin-top:1rem;font-size:.72rem;color:var(--text-color-light);text-align:right}@media(max-width:600px){.res-grid{grid-template-columns:minmax(0,1fr)}}
