* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; background: #f5f6f7; color: #333; line-height: 1.6; }
a { color: #1e80ff; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 900px; margin: 0 auto; padding: 0; }
.muted { color: #999; font-size: 13px; }
.empty { color: #999; text-align: center; padding: 40px 0; }
.error { color: #d03030; }

.site-header { background: #fff; border-bottom: 1px solid #e5e6eb; padding: 16px 24px;
  display: flex; justify-content: space-between; align-items: center; }
.site-header h1 { font-size: 20px; }

.product-banner { background: linear-gradient(135deg, #1e80ff, #4aa3ff); color: #fff; padding: 40px 0; }
.product-banner .container { display: flex; gap: 20px; }
.product-logo { align-self: stretch; width: 72px; object-fit: contain; }
.product-banner h1 { font-size: 26px; margin-bottom: 8px; }
.product-banner p { opacity: .9; margin-bottom: 0; }
.product-banner .btn { background: #fff; color: #1e80ff; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.card h2 { font-size: 18px; margin-bottom: 8px; }
.card-actions { margin-top: 12px; display: flex; gap: 8px; }
.card .content { white-space: pre-wrap; }

.btn { display: inline-block; padding: 6px 16px; border: 1px solid #1e80ff; color: #1e80ff;
  border-radius: 6px; background: #fff; cursor: pointer; font-size: 14px; }
.btn-primary { background: #1e80ff; color: #fff; }
.btn-primary:hover { background: #1668d9; text-decoration: none; }

.tabs { display: flex; gap: 24px; border-bottom: 1px solid #e5e6eb; background: #fff; padding: 0 16px; }
.tabs a { padding: 12px 4px; color: #666; border-bottom: 2px solid transparent; }
.tabs a.active { color: #1e80ff; border-bottom-color: #1e80ff; font-weight: 600; }

.version-item { background: #fff; border-radius: 8px; padding: 16px 20px; margin-top: 12px; }
.version-item h4 { margin-bottom: 6px; }
.pan-code { margin-left: 12px; }
.pan-code code { background: #f0f0f0; padding: 2px 8px; border-radius: 4px; }

.feedback-filter { display: flex; justify-content: flex-end; margin: 12px 0 4px; }
.status-filter { padding: 6px 10px; border: 1px solid #ddd; border-radius: 6px; background: #fff; color: #333; }
.submit-box { background: #fff; border-radius: 8px; padding: 16px 20px; margin-bottom: 16px; }
.submit-box summary { list-style: none; display: inline-block; cursor: pointer; }
.feedback-item { background: #fff; border-radius: 8px; padding: 16px 20px; margin-bottom: 12px; }
.fb-head { display: flex; align-items: center; gap: 10px; }
.fb-actions { margin-left: auto; display: flex; gap: 8px; }
.vote-btn, .comment-btn { border: 1px solid #e5e6eb; border-radius: 6px; background: #fafafa;
  cursor: pointer; padding: 4px 10px; font-size: 13px; color: #555; }
.vote-btn:hover, .comment-btn:hover { border-color: #1e80ff; color: #1e80ff; }
.vote-btn svg, .comment-btn svg { vertical-align: -2px; margin-right: 3px; }
.fb-content { white-space: pre-wrap; margin: 10px 0 0; font-size: 15px; }
.reply-snip { color: #1e80ff; font-size: 13px; margin: 8px 0 0; }
.fb-imgs { margin-top: 10px; }
.fb-imgs img { max-width: 140px; max-height: 140px; border-radius: 6px; margin: 0 8px 8px 0; border: 1px solid #e5e6eb; cursor: zoom-in; }
.feedback-item .fb-imgs img { max-width: 220px; max-height: 220px; }
.comment-panel { margin: 10px 0 0 48px; background: #f2f3f5; border-radius: 6px; padding: 8px 14px; }
.comment-panel[hidden] { display: none; }
.comment-panel .comment-form[hidden] { display: none; }
.comment-form textarea:focus, .submit-box textarea:focus { border-color: #91caff; outline: none; }
.cat-tag.cat-danger { background: #fff1f0; color: #cf1322; }
.cat-tag.cat-info { background: #e6f4ff; color: #0958d9; }
.cat-tag.cat-wish { background: #f6ffed; color: #389e0d; }
.img-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.75); display: flex;
  align-items: center; justify-content: center; z-index: 999; cursor: zoom-out; }
.img-overlay img { max-width: 92vw; max-height: 92vh; border-radius: 8px; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 900;
  overflow-y: auto; padding: 40px 16px; }
.modal-box { max-width: 760px; margin: 0 auto; background: #f5f6f7; border-radius: 10px; }

.comments { margin-top: 12px; }
.comments h3 { font-size: 16px; margin-bottom: 10px; }
.comment { padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.comment p { white-space: pre-wrap; font-size: 15px; }
.comment-form { display: flex; gap: 10px; margin-top: 12px; align-items: flex-start; }
.comment-form textarea { flex: 1; padding: 8px; border: 1px solid #ddd; border-radius: 6px; font-family: inherit; }

.upload-progress { height: 18px; background: #f0f0f0; border-radius: 9px; position: relative; overflow: hidden; }
.upload-bar { height: 100%; width: 0; background: #1e80ff; transition: width .2s; }
.upload-pct { position: absolute; inset: 0; text-align: center; font-size: 12px; line-height: 18px; color: #333; }

.cat-tag { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px;
  background: #fff2e8; color: #d46b08; margin-right: 6px; }

.cat-picker { display: flex; gap: 10px; }
.cat-btn input { position: absolute; opacity: 0; pointer-events: none; }
.cat-btn span { display: inline-block; padding: 6px 18px; border: 1px solid #ddd; border-radius: 6px;
  color: #666; cursor: pointer; user-select: none; }
.cat-btn span:hover { border-color: #1e80ff; color: #1e80ff; }
.cat-btn input:checked + span { background: #1e80ff; border-color: #1e80ff; color: #fff; }

.img-picker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.img-add { width: 40px; height: 40px; border: 1px dashed #c0c4cc; border-radius: 8px; background: #f7f8fa center/20px no-repeat
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2zM8.5 11l2.5 3 3.5-4.5L19 16H5l3.5-5z'/%3E%3C/svg%3E");
  cursor: pointer; }
.img-add:hover { border-color: #1e80ff; }
.img-previews { display: flex; gap: 8px; flex-wrap: wrap; }
.img-thumb { position: relative; width: 72px; height: 72px; }
.img-thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid #e5e6eb; }
.img-del { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%;
  border: none; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; line-height: 1;
  cursor: pointer; display: none; }
.img-thumb:hover .img-del { display: block; }

.status { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; }
.status-pending { background: #f0f0f0; color: #666; }
.status-processing { background: #e8f3ff; color: #1e80ff; }
.status-resolved { background: #e8f8ee; color: #18a058; }
.status-closed { background: #f5f5f5; color: #999; }

.official-reply { background: #e8f3ff; border-left: 3px solid #1e80ff; border-radius: 0 8px 8px 0;
  padding: 16px 20px; margin-top: 12px; }

.faq-item { background: #fff; border-radius: 8px; padding: 14px 20px; margin: 12px 0 10px; }
.faq-item summary { cursor: pointer; font-weight: 500; }
.faq-item p { margin-top: 8px; color: #555; white-space: pre-wrap; }
.pre-wrap { white-space: pre-wrap; }

.doc-list { background: #fff; border-radius: 8px; padding: 8px 20px; margin-top: 12px; list-style: none; }
.doc-list li { padding: 10px 0; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; }
.doc-content { background: #fff; border-radius: 8px; padding: 24px 32px; }
.doc-content h1, .doc-content h2, .doc-content h3 { margin: 16px 0 8px; }
.doc-content pre { background: #f5f6f7; padding: 12px; border-radius: 6px; overflow-x: auto; }
.doc-content code { background: #f0f0f0; padding: 1px 6px; border-radius: 4px; }

.admin-nav { background: #2b2f36; padding: 0 24px; display: flex; gap: 20px; align-items: center; }
.admin-nav a, .admin-nav .link { color: #cfd3dc; padding: 12px 0; display: inline-block; }
.admin-nav a:hover { color: #fff; text-decoration: none; }
.admin-nav .link { background: none; border: none; cursor: pointer; font-size: 14px; }

.login-box { max-width: 360px; margin: 100px auto; background: #fff; border-radius: 8px; padding: 32px; }
.login-box h1 { font-size: 20px; margin-bottom: 16px; }
.login-box input { width: 100%; padding: 10px; margin-bottom: 12px; border: 1px solid #ddd; border-radius: 6px; }
.login-box button { width: 100%; padding: 10px; background: #1e80ff; color: #fff; border: none; border-radius: 6px; cursor: pointer; }

.table { width: 100%; background: #fff; border-collapse: collapse; margin-top: 12px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; text-align: left; font-size: 14px; }
.table th { background: #fafafa; }
.form-inline { display: flex; gap: 8px; background: #fff; padding: 16px; border-radius: 8px; }
.form-inline input { padding: 8px; border: 1px solid #ddd; border-radius: 6px; }
.form-stack { background: #fff; padding: 20px; border-radius: 8px; display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.form-stack input, .form-stack textarea, .form-stack select { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 6px; font-family: inherit; }
.form-stack button[type=submit], .form-inline button { padding: 8px 24px; background: #1e80ff; color: #fff; border: none; border-radius: 6px; cursor: pointer; }
.inline { display: inline; }
.link-danger { background: none; border: none; color: #d03030; cursor: pointer; font-size: 14px; padding: 0; }
