/* 码字姬 自定义样式 */
.nav-link.active { color: #ed3f14; }

.card { background: #fff; border: 1px solid #e7e5e4; border-radius: 1rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.card-hover { transition: transform .15s ease, box-shadow .15s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: 0 10px 25px -10px rgba(237,63,20,.25); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem 1.1rem; border-radius: .75rem; font-weight: 600; font-size: .9rem; transition: all .15s ease; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, #ff5a2e, #ed3f14); color: #fff; box-shadow: 0 4px 14px -4px rgba(237,63,20,.5); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.05); box-shadow: 0 6px 18px -4px rgba(237,63,20,.6); }
.btn-outline { background: #fff; color: #ed3f14; border-color: #ffc9bb; }
.btn-outline:hover:not(:disabled) { background: #fff4f1; }
.btn-ghost { background: transparent; color: #57534e; }
.btn-ghost:hover:not(:disabled) { background: #f5f5f4; }
.btn-danger { background: #fff; color: #b91c1c; border-color: #fecaca; }
.btn-danger:hover:not(:disabled) { background: #fef2f2; }
.btn-sm { padding: .35rem .75rem; font-size: .8rem; border-radius: .6rem; }

.input, .textarea, .select { width: 100%; border: 1px solid #d6d3d1; border-radius: .75rem; padding: .6rem .85rem; font-size: .92rem; background: #fff; transition: border-color .15s, box-shadow .15s; outline: none; }
.input:focus, .textarea:focus, .select:focus { border-color: #ff7a57; box-shadow: 0 0 0 3px rgba(255,122,87,.2); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.label { display: block; font-size: .85rem; font-weight: 600; color: #44403c; margin-bottom: .35rem; }

.badge { display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .6rem; border-radius: 9999px; font-size: .75rem; font-weight: 600; }
.badge-gray { background: #f5f5f4; color: #57534e; }
.badge-brand { background: #ffe4dd; color: #c5300c; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-amber { background: #fef3c7; color: #b45309; }

.score-ring { position: relative; width: 140px; height: 140px; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }

.dim-bar { height: 8px; background: #f5f5f4; border-radius: 9999px; overflow: hidden; }
.dim-bar > div { height: 100%; border-radius: 9999px; transition: width .6s ease; }

.toast { padding: .75rem 1rem; border-radius: .75rem; color: #fff; font-size: .9rem; box-shadow: 0 10px 25px -10px rgba(0,0,0,.4); animation: toast-in .25s ease; min-width: 220px; }
.toast-success { background: #16a34a; } .toast-error { background: #dc2626; } .toast-info { background: #2563eb; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px);} to { opacity: 1; transform: none; } }

.modal-backdrop { position: fixed; inset: 0; background: rgba(28,25,23,.55); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 1rem; animation: fade .2s ease; }
.modal { background: #fff; border-radius: 1.25rem; width: 100%; max-width: 640px; max-height: 90vh; overflow: auto; box-shadow: 0 25px 50px -12px rgba(0,0,0,.4); animation: pop .2s ease; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes pop { from { opacity: 0; transform: scale(.96) } to { opacity: 1; transform: none } }

.tab { padding: .5rem 1rem; border-radius: .75rem; font-size: .9rem; font-weight: 600; color: #57534e; cursor: pointer; }
.tab.active { background: #ffe4dd; color: #c5300c; }

.prose-cn p { margin: 0 0 .75rem; line-height: 1.9; }
.hero-glow { background: radial-gradient(900px 400px at 20% 0%, rgba(255,122,87,.18), transparent 60%), radial-gradient(700px 300px at 90% 10%, rgba(255,201,187,.3), transparent 60%); }

.skeleton { background: linear-gradient(90deg, #f5f5f4 25%, #e7e5e4 37%, #f5f5f4 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: .5rem; }
@keyframes shimmer { 0% { background-position: 100% 0 } 100% { background-position: 0 0 } }

.analysis-loading { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 3rem 1rem; color: #78716c; }
.analysis-loading .dots span { display: inline-block; width: 10px; height: 10px; margin: 0 3px; border-radius: 50%; background: #ff7a57; animation: bounce 1.2s infinite ease-in-out; }
.analysis-loading .dots span:nth-child(2) { animation-delay: .15s } .analysis-loading .dots span:nth-child(3) { animation-delay: .3s }
@keyframes bounce { 0%, 80%, 100% { transform: scale(.6); opacity: .5 } 40% { transform: scale(1); opacity: 1 } }

.checklist-item { display: flex; align-items: flex-start; gap: .6rem; padding: .6rem .75rem; border-radius: .75rem; cursor: pointer; }
.checklist-item:hover { background: #fafaf9; }
.checklist-item.done { color: #78716c; text-decoration: line-through; }

@media print {
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block !important; padding: 16px; }
  #print-root .card { border: 1px solid #e7e5e4; break-inside: avoid; }
  #print-root button { display: none !important; }
}
