:root { --d-primary: #1a237e; --d-success: #2e7d32; }
.d-wrap { max-width: 800px; margin: 0 auto; padding: 16px; font-family: -apple-system,'Segoe UI',sans-serif; }
.d-nav { margin-bottom: 12px; }
.d-nav a { color: var(--d-primary); text-decoration: none; font-size: 14px; }
.d-nav a:hover { text-decoration: underline; }
.d-header { background: linear-gradient(135deg, #1a237e, #283593); color: #fff; border-radius: 12px; padding: 24px; margin-bottom: 16px; text-align: center; }
.d-header h1 { font-size: 1.3rem; font-weight: 700; margin: 0 0 4px; word-break: break-all; }
.d-header .meta { font-size: 0.8rem; opacity: 0.8; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.d-header .d-price { font-size: 2.2rem; font-weight: 800; margin-top: 8px; }
.d-header .d-price .label { display: block; font-size: 0.75rem; font-weight: 400; opacity: 0.7; margin-bottom: 2px; }
.d-card { background: #fff; border-radius: 12px; box-shadow: 0 1px 8px rgba(0,0,0,0.08); padding: 20px; margin-bottom: 16px; }
.d-card h2 { font-size: 1.05rem; font-weight: 700; margin: 0 0 14px; color: #333; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.info-item { display: flex; flex-direction: column; }
.info-item .l { font-size: 0.75rem; color: #888; }
.info-item .r { font-size: 0.9rem; font-weight: 600; color: #333; }
.d-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.d-table th { text-align: left; padding: 8px 10px; border-bottom: 2px solid #e0e0e0; color: #666; font-weight: 600; }
.d-table th.r, .d-table td.r { text-align: right; }
.d-table td { padding: 8px 10px; border-bottom: 1px solid #f0f0f0; }
.d-table tr.total td { font-weight: 800; font-size: 1rem; color: var(--d-success); border-top: 2px solid #e0e0e0; border-bottom: none; padding-top: 10px; }
.d-comment { background: linear-gradient(135deg,#e8eaf6,#f5f5ff); border:1px solid #c5cae9; border-radius: 10px; padding: 14px; font-size: 0.9rem; color: #283593; line-height: 1.7; margin-bottom: 16px; font-weight:500; } .d-comment strong { color:#1a237e; }
.d-footer { background: #fff; border-radius: 12px; box-shadow: 0 1px 8px rgba(0,0,0,0.08); padding: 20px; margin-bottom: 16px; text-align: center; }
.d-footer h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; }
.d-footer p { font-size: 0.85rem; color: #666; line-height: 1.5; margin: 0 0 12px; }

/* 打印优化 */
@media print {
  body { background: #fff !important; }
  nav.navbar,.d-nav,.fb-btn-row,#feedback-section,.disclaimer { display: none !important; }
  .d-wrap { padding: 0; max-width: 100%; }
  .d-header { background: #1a237e !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; border-radius: 0; padding: 20px; }
  .d-header .d-price { font-size: 2rem; }
  .d-card { box-shadow: none; border: 1px solid #ddd; border-radius: 8px; break-inside: avoid; }
  .d-comment { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .d-table td,.d-table th { padding: 5px 8px; }
  .d-footer { box-shadow: none; border: 1px solid #ddd; }
  @page { margin: 15mm; }
}
.fb-btn-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.fb-btn-row a { padding: 10px 24px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 600; }
a.btn-excel { background: #e8f5e9; color: var(--d-success); }
a.btn-excel:hover { background: #c8e6c9; }
a.btn-print { background: #e3f2fd; color: #1565c0; }
a.btn-print:hover { background: #bbdefb; }
a.btn-primary { background: var(--d-primary); color: #fff; }
a.btn-primary:hover { background: #283593; }
.feedback-btns { display: flex; gap: 8px; }
.feedback-btns button { flex: 1; padding: 10px; border: 2px solid #ddd; border-radius: 8px; background: #fff; font-size: 14px; cursor: pointer; transition: all 0.2s; }
.feedback-btns button:hover { opacity: 0.8; }
.feedback-btns button.high { border-color: #e53935; color: #e53935; }
.feedback-btns button.ok { border-color: #43a047; color: #43a047; }
.feedback-btns button.low { border-color: #fb8c00; color: #fb8c00; }
.fb-input-row { display: flex; gap: 8px; margin-top: 10px; }
.fb-input-row input { flex: 1; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; }
.fb-input-row button { padding: 8px 20px; background: var(--d-primary); color: #fff; border: none; border-radius: 6px; cursor: pointer; }
.fb-result { display: none; margin-top: 10px; padding: 8px; background: #e8f5e9; border-radius: 6px; font-size: 0.85rem; color: var(--d-success); }
.disclaimer { text-align: center; font-size: 0.75rem; color: #999; margin-top: 20px; line-height: 1.4; }