/* ==========================================================
   行空简创 - 站点通用补充样式（与 styles.css 配合使用）
   ========================================================== */

/* ---------- Header ---------- */
.site-header .logo a { display: block; }
.site-header nav ul li a.active { color: #fff; }
.site-header nav ul li a.active:after { width: 100%; }
.site-header nav ul li a { color: var(--light-color); }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }
.user-actions { gap: 12px; }
.user-actions .btn-login, .user-actions .btn-register { margin-right: 0; }
#search-form { margin-left: 0; }
#search-form input { outline: none; }

.user-profile-wrapper { position: relative; }
.user-profile-link { display: block; line-height: 0; }
.mini-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.4); transition: border-color .2s; background: #fff; }
.user-profile-link:hover .mini-avatar { border-color: var(--primary-color); }
.user-dropdown {
    position: absolute; top: 46px; right: 0; width: 190px; background: #fff; color: #333;
    border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.18); overflow: hidden; z-index: 1100;
    visibility: hidden; opacity: 0; transform: translateY(8px); transition: all .2s ease;
}
.user-dropdown:before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.user-profile-wrapper:hover .user-dropdown, .user-profile-wrapper.open .user-dropdown { visibility: visible; opacity: 1; transform: translateY(0); }
.user-dropdown .dropdown-header { padding: 12px 15px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; gap: 8px; }
.user-dropdown ul { display: block; }
.user-dropdown li { margin: 0 !important; border-bottom: 1px solid #f7f7f7; }
.user-dropdown li:last-child { border-bottom: none; }
.user-dropdown a, .user-dropdown button {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 15px; color: #333; font-size: 14px;
    background: none; border: none; cursor: pointer; text-align: left; font-family: inherit;
}
.user-dropdown a:after { display: none; }
.user-dropdown a:hover, .user-dropdown button:hover { background: #f5f5ff; color: var(--primary-color); }
.user-dropdown i { width: 16px; color: var(--primary-color); }
.role-badge { font-size: 11px; padding: 1px 6px; border-radius: 10px; background: #eef; color: var(--primary-color); }
.role-badge.admin { background: #fde8e8; color: #c0392b; }

/* ---------- Messages & toast ---------- */
.messages { position: relative; z-index: 900; }
.alert { padding: 12px 0; font-size: 15px; }
.alert .container { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.alert-success { background: #e8f8ef; color: #1e7e4a; }
.alert-error, .alert-danger { background: #fdecea; color: #b42318; }
.alert-warning { background: #fff7e6; color: #9a6700; }
.alert-info { background: #eef2ff; color: #3538cd; }
.close-alert { background: none; border: none; color: inherit; cursor: pointer; font-size: 16px; opacity: .7; }
.close-alert:hover { opacity: 1; }

.toast {
    position: fixed; left: 50%; top: 80px; transform: translate(-50%, -20px); opacity: 0; z-index: 3000;
    background: #333; color: #fff; padding: 12px 22px; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.2);
    transition: all .3s ease; font-size: 15px; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-success { background: #1e7e4a; }
.toast-error { background: #c0392b; }

#back-to-top {
    position: fixed; right: 24px; bottom: 24px; width: 44px; height: 44px; border-radius: 50%;
    background: var(--primary-color); color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--box-shadow); opacity: 0; visibility: hidden; transition: all .3s; z-index: 800;
}
#back-to-top.show { opacity: 1; visibility: visible; }

/* ---------- Common blocks ---------- */
.btn { font-size: 15px; line-height: 1.4; font-family: inherit; }
.btn-primary:hover { background-color: #4f50e0; }
.btn-register:hover { background-color: #4f50e0; }
.btn-small, .btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-danger:hover { background: #c0392b; }
.btn-light { background: #f1f3f5; color: #333; }
.btn-light:hover { background: #e2e6ea; }
.btn[disabled], .btn.disabled { opacity: .6; cursor: not-allowed; transform: none !important; }
.text-muted { color: #888; }
.mt-20 { margin-top: 20px; }
.cta { background-image: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.7)), url('../images/bg.jpg'); }

.page-hero {
    background-image: linear-gradient(rgba(0, 30, 61, .85), rgba(0, 30, 61, .85)), url('../images/bg.jpg');
    background-size: cover; background-position: center; color: #fff; padding: 50px 0; text-align: center;
}
.page-hero h1 { font-size: 32px; margin-bottom: 10px; }
.page-hero p { opacity: .85; }
.page-section { padding: 50px 0 70px; }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: #888; }
.empty-state i { font-size: 48px; color: #ccd; margin-bottom: 15px; display: block; }
.empty-state p { margin-bottom: 18px; }

/* comic card */
.comic-card { display: block; color: inherit; }
.comic-card .comic-thumbnail { background: #eef0f5; }
.comic-card .comic-info h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comic-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 12px; padding: 2px 8px; border-radius: 3px;
    background: rgba(0,0,0,.6); color: #fff;
}
.comic-badge.completed { background: #2ecc71; }
.comic-badge.ongoing { background: var(--primary-color); }
.comic-badge.hiatus { background: #95a5a6; }
.comic-card .meta-line { font-size: 13px; color: #888; display: flex; justify-content: space-between; margin-top: 6px; }
.featured .view-more a, .latest-uploads .view-more a { display: inline-block; }

/* stars */
.stars-inline i { color: #f5a623; font-size: 13px; }
.rating i { color: #f5a623; }

/* pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pagination .page-link {
    min-width: 40px; height: 40px; padding: 0 10px; border-radius: 20px; display: inline-flex; align-items: center;
    justify-content: center; color: var(--dark-color); font-weight: 600; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.pagination .page-link:hover { background: #eee; }
.pagination .page-link.active { background: var(--primary-color); color: #fff; }
.pagination .page-link.disabled { opacity: .4; pointer-events: none; }

/* forms */
.form-card { background: #fff; border-radius: 10px; box-shadow: var(--box-shadow); padding: 30px; margin-bottom: 30px; }
.form-card h2 { font-size: 20px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.form-row { margin-bottom: 18px; }
.form-row > label { display: block; font-weight: 600; margin-bottom: 8px; color: #444; }
.form-row input[type=text], .form-row input[type=email], .form-row input[type=password], .form-row input[type=number],
.form-row input[type=date], .form-row select, .form-row textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #dcdfe6; border-radius: 6px; font-size: 15px; font-family: inherit;
    transition: border-color .2s;
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--primary-color); outline: none; }
.form-help { font-size: 13px; color: #888; margin-top: 6px; }
.field-error, .errorlist { color: #c0392b; font-size: 13px; margin-top: 6px; list-style: none; }
.checkbox-grid { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.checkbox-grid label, .checkbox-grid > div > label { font-weight: normal; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.checkbox-grid ul, ul.checkbox-grid { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }

/* comments (shared) */
.comment-actions button { background: none; border: none; cursor: pointer; color: #888; font-size: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 0; font-family: inherit; }
.comment-actions button:hover, .comment-actions button.liked { color: var(--primary-color); }
.comment-replies { margin-top: 12px; padding-left: 14px; border-left: 3px solid #eef; }
.reply-item { padding: 8px 0; font-size: 14px; display: flex; gap: 10px; }
.reply-item img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.reply-item .reply-body { flex: 1; }
.reply-item .reply-author { font-weight: 600; color: var(--dark-color); margin-right: 6px; }
.reply-item .reply-meta { font-size: 12px; color: #999; margin-top: 2px; display: flex; gap: 12px; }
.reply-form { margin-top: 10px; display: flex; gap: 8px; }
.reply-form input { flex: 1; padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; font-family: inherit; }
.comment-chapter-tag { font-size: 12px; color: var(--primary-color); background: #eef; padding: 1px 6px; border-radius: 3px; margin-left: 6px; }
.login-tip { background: #f7f7ff; border: 1px dashed #c8c9ff; padding: 18px; text-align: center; border-radius: 8px; margin-bottom: 25px; }
.login-tip a { color: var(--primary-color); font-weight: 600; }

/* manage pages */
.manage-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--box-shadow); }
.manage-table th, .manage-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.manage-table th { background: #fafbff; font-weight: 600; color: #555; font-size: 14px; }
.manage-table tr:last-child td { border-bottom: none; }
.manage-table .thumb { width: 54px; height: 72px; object-fit: cover; border-radius: 4px; }
.manage-table .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.status-pill { font-size: 12px; padding: 2px 8px; border-radius: 10px; background: #eef; color: var(--primary-color); white-space: nowrap; }
.status-pill.off { background: #f1f1f1; color: #888; }
.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; }
.page-thumb { position: relative; background: #fff; border-radius: 6px; box-shadow: var(--box-shadow); overflow: hidden; cursor: grab; }
.page-thumb img { width: 100%; height: 190px; object-fit: cover; display: block; pointer-events: none; }
.page-thumb .no { position: absolute; left: 6px; top: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; padding: 1px 7px; border-radius: 10px; }
.page-thumb .del { position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border-radius: 50%; border: none; background: rgba(231,76,60,.9); color: #fff; cursor: pointer; }
.page-thumb.dragging { opacity: .4; }
.manage-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; margin-bottom: 25px; }
.manage-header h1 { font-size: 26px; color: var(--dark-color); }
.breadcrumb { font-size: 14px; color: #888; margin-bottom: 10px; }
.breadcrumb a { color: var(--primary-color); }

/* uploader widget */
.uploader-drop { border: 2px dashed #c8c9ff; border-radius: 8px; padding: 26px; text-align: center; color: #777; cursor: pointer; background: #fafaff; transition: all .2s; }
.uploader-drop:hover, .uploader-drop.dragover { border-color: var(--primary-color); background: #f2f2ff; }
.uploader-drop i { font-size: 30px; color: var(--primary-color); display: block; margin-bottom: 8px; }
.uploader-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin-top: 15px; }
.uploader-item { position: relative; border-radius: 6px; overflow: hidden; background: #f3f3f3; cursor: grab; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.uploader-item img { width: 100%; height: 150px; object-fit: cover; display: block; pointer-events: none; }
.uploader-item .no { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; padding: 0 6px; border-radius: 8px; }
.uploader-item .rm { position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; border: none; background: rgba(231,76,60,.9); color: #fff; cursor: pointer; line-height: 22px; font-size: 14px; }
.uploader-item.dragging { opacity: .4; }
.uploader-tools { margin-top: 10px; display: flex; gap: 10px; align-items: center; font-size: 13px; color: #888; flex-wrap: wrap; }
.progress-wrap { display: none; margin-top: 15px; }
.progress-wrap.show { display: block; }
.progress-bar { height: 8px; background: #eee; border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--primary-color); transition: width .2s; }
.progress-text { font-size: 13px; color: #666; margin-top: 6px; }

/* static pages */
.static-page { display: grid; grid-template-columns: 220px 1fr; gap: 30px; }
.static-nav { background: #fff; border-radius: 10px; box-shadow: var(--box-shadow); padding: 10px 0; align-self: start; }
.static-nav a { display: block; padding: 12px 20px; color: #444; }
.static-nav a.active, .static-nav a:hover { color: var(--primary-color); background: #f5f5ff; }
.static-content { background: #fff; border-radius: 10px; box-shadow: var(--box-shadow); padding: 35px; line-height: 1.9; }
.static-content h2 { font-size: 24px; margin-bottom: 18px; color: var(--dark-color); }
.static-content h3 { font-size: 18px; margin: 22px 0 10px; color: var(--dark-color); }
.static-content p, .static-content li { color: #555; margin-bottom: 8px; }
.static-content ul, .static-content ol { padding-left: 22px; list-style: disc; }
.static-content ol { list-style: decimal; }

/* user cards */
.user-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.user-card { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 8px; padding: 14px; box-shadow: var(--box-shadow); }
.user-card img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }

/* error page */
.error-page { text-align: center; padding: 100px 20px; }
.error-page .code { font-size: 96px; font-weight: 800; color: var(--primary-color); line-height: 1; }
.error-page p { color: #666; margin: 20px 0 30px; font-size: 18px; }

.footer-sub { opacity: .7; font-size: 14px; margin-top: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .site-header .container { flex-wrap: wrap; flex-direction: row; }
    .menu-toggle { display: block; margin-left: auto; margin-right: 12px; }
    .site-header .logo { margin-bottom: 0; }
    .site-header .nav-menu { display: none; width: 100%; order: 3; }
    .site-header .nav-menu.active { display: block; }
    .site-header .nav-menu ul { flex-direction: column; margin: 10px 0 0; }
    .site-header .nav-menu ul li { margin: 0; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.08); }
    .site-header .user-actions { flex-direction: row; width: auto; }
    .site-header .user-actions a { width: auto; margin-bottom: 0; }
    #search-form { display: none; }
    .static-page { grid-template-columns: 1fr; }
    .manage-table .hide-sm { display: none; }
}
@media (max-width: 576px) {
    .comic-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .comic-info { padding: 10px; }
    .comic-info h3 { font-size: 15px; }
    .form-card { padding: 20px; }
    .static-content { padding: 22px; }
}
.mobile-search { display: none; }
@media (max-width: 900px) {
    .site-header .nav-menu .mobile-search { display: flex; margin-top: 12px; }
    .mobile-search input { flex: 1; padding: 8px 12px; border: none; border-radius: 5px 0 0 5px; }
    .mobile-search button { background: var(--accent-color); color: #fff; border: none; padding: 8px 14px; border-radius: 0 5px 5px 0; }
}
/* Django 多选框组件横向排列 */
.form-row > div[id^="id_"] { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.form-row > div[id^="id_"] label { font-weight: normal; display: inline-flex; gap: 6px; align-items: center; margin: 0; cursor: pointer; }
.form-row > div[id^="id_"] input[type=checkbox] { width: auto; }
@media (max-width: 576px) {
    .comic-actions { flex-wrap: wrap; gap: 8px; }
    .comic-actions .action-btn { padding: 8px 12px; white-space: nowrap; margin: 0 !important; font-size: 14px; }
}

/* ---------- 等级、硬币、商城 ---------- */
.lv-badge { display: inline-block; font-size: 10px; line-height: 14px; font-weight: 700; font-style: italic; padding: 0 4px;
    border-radius: 3px; color: #fff; margin-left: 5px; vertical-align: middle; letter-spacing: .3px; }
.lv-badge.lv1 { background: #c0c4cc; }
.lv-badge.lv2 { background: #8bd29b; }
.lv-badge.lv3 { background: #7bcdef; }
.lv-badge.lv4 { background: #feb646; }
.lv-badge.lv5 { background: #ff8c3a; }
.lv-badge.lv6 { background: #f04c49; }
.profile-username .lv-badge { font-size: 13px; line-height: 18px; padding: 0 6px; }
.exp-bar { height: 6px; background: #e8eaf6; border-radius: 3px; overflow: hidden; }
.exp-bar span { display: block; height: 100%; background: linear-gradient(90deg, #8b8cff, #6566fa); border-radius: 3px; }
.user-dropdown .dropdown-header { flex-direction: column; align-items: stretch; gap: 6px; }
.dh-name { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.dh-exp small { font-size: 11px; color: #999; }
.dh-coins { font-size: 13px; color: #555; }
.dh-coins i, .coin-pill i, .coin-icon { color: #f5a623; }
.profile-level { display: flex; align-items: center; gap: 12px; margin: 8px 0 14px; flex-wrap: wrap; }
.profile-level .exp-bar { width: 220px; }
.profile-level .exp-text { font-size: 13px; color: #888; }
.coin-pill { display: inline-flex; align-items: center; gap: 6px; background: #fff8e6; color: #b7791f; padding: 2px 12px; border-radius: 12px; font-weight: 600; font-size: 14px; }

.action-btn.coined { background: #fff8e6; border-color: #f5a623; color: #b7791f; }
.coin-modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 2000; display: none; align-items: center; justify-content: center; }
.coin-modal-mask.show { display: flex; }
.coin-modal { background: #fff; border-radius: 12px; width: 380px; max-width: 92vw; padding: 26px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.coin-modal h3 { color: var(--dark-color); margin-bottom: 6px; }
.coin-modal .sub { color: #888; font-size: 13px; margin-bottom: 18px; }
.coin-options { display: flex; gap: 14px; justify-content: center; margin-bottom: 18px; }
.coin-option { flex: 1; border: 2px solid #eee; border-radius: 10px; padding: 16px 0; cursor: pointer; transition: all .15s; background: #fff; font-family: inherit; }
.coin-option i { font-size: 30px; color: #f5a623; display: block; margin-bottom: 6px; }
.coin-option.active { border-color: var(--primary-color); background: #f5f5ff; }
.coin-option[disabled] { opacity: .4; cursor: not-allowed; }
.coin-modal .btns { display: flex; gap: 10px; justify-content: center; }

.shop-hero .balance { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); padding: 8px 18px; border-radius: 20px; margin-top: 14px; font-size: 16px; }
.shop-hero .balance i { color: #f5c542; }
.shop-rules { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 16px; font-size: 14px; opacity: .85; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 26px; }
.product-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--box-shadow); transition: var(--transition); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(0,0,0,.12); }
.product-card .pimg { aspect-ratio: 1 / 1; background: #f4f5f9; }
.product-card .pimg img { width: 100%; height: 100%; object-fit: cover; }
.product-card .pbody { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card h3 { font-size: 17px; color: var(--dark-color); }
.product-card .pdesc { font-size: 13px; color: #888; flex: 1; }
.price { color: #e67e22; font-weight: 700; font-size: 20px; display: inline-flex; align-items: center; gap: 5px; }
.price i { color: #f5a623; font-size: 16px; }
.product-card .pfoot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.product-tag { font-size: 12px; padding: 1px 8px; border-radius: 10px; background: #eef; color: var(--primary-color); }
.product-detail { display: grid; grid-template-columns: 380px 1fr; gap: 36px; align-items: start; }
.product-detail .pimg { border-radius: 10px; overflow: hidden; box-shadow: var(--box-shadow); background: #fff; }
.product-detail .pimg img { width: 100%; display: block; }
.order-card { background: #fff; border-radius: 10px; box-shadow: var(--box-shadow); padding: 18px 20px; margin-bottom: 16px; display: flex; gap: 16px; align-items: flex-start; }
.order-card img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; background: #f4f5f9; }
.order-card .oinfo { flex: 1; }
.order-card .ometa { font-size: 13px; color: #888; margin-top: 4px; line-height: 1.8; }
.order-status { font-size: 13px; padding: 2px 10px; border-radius: 12px; white-space: nowrap; }
.order-status.pending { background: #fff7e6; color: #b7791f; }
.order-status.shipped { background: #e8f0fe; color: #3451b2; }
.order-status.completed { background: #e8f8ef; color: #1e7e4a; }
.order-status.cancelled { background: #f1f1f1; color: #888; }
.coin-log { width: 100%; border-collapse: collapse; font-size: 14px; }
.coin-log td, .coin-log th { padding: 10px 8px; border-bottom: 1px solid #f2f2f2; text-align: left; }
.coin-log th { color: #888; font-weight: 600; }
.coin-log .plus { color: #1e7e4a; font-weight: 700; }
.coin-log .minus { color: #c0392b; font-weight: 700; }
@media (max-width: 800px) { .product-detail { grid-template-columns: 1fr; } }
.user-dropdown { width: 210px; }
.dh-name { flex-wrap: nowrap; white-space: nowrap; }
.dh-name strong { overflow: hidden; text-overflow: ellipsis; }
.user-dropdown li form { margin: 0; }
.repost-badge { position: absolute; top: 10px; right: 10px; z-index: 2; font-size: 12px; padding: 2px 8px; border-radius: 3px; background: rgba(255,255,255,.92); color: #555; }
.form-row ul#id_copyright_type, .form-row div#id_copyright_type { display: flex; gap: 20px; }

/* ---------- 通知与版权投诉 ---------- */
.bell { position: relative; color: #fff; font-size: 19px; padding: 4px; }
.bell:hover { color: #c9caff; }
.bell-dot { position: absolute; top: -4px; right: -8px; background: #f04c49; color: #fff; font-size: 11px; line-height: 16px; min-width: 16px; padding: 0 4px; border-radius: 8px; text-align: center; font-style: normal; font-weight: 700; }
.menu-count { background: #f04c49; color: #fff; font-size: 11px; border-radius: 8px; padding: 0 6px; margin-left: auto; }
.notice-item { background: #fff; border-radius: 10px; box-shadow: var(--box-shadow); padding: 16px 20px; margin-bottom: 14px; border-left: 4px solid transparent; }
.notice-item.unread { border-left-color: var(--primary-color); }
.notice-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.notice-head a { color: var(--dark-color); }
.notice-body { color: #555; font-size: 14px; margin-top: 8px; line-height: 1.8; }
.notice-link { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--primary-color); }
.complaint-target { display: flex; gap: 14px; align-items: center; background: #f7f8fb; border-radius: 8px; padding: 12px; margin-bottom: 16px; }
.complaint-target img { width: 54px; height: 72px; object-fit: cover; border-radius: 4px; }
.complaint-steps { padding-left: 20px; color: #666; font-size: 14px; line-height: 1.9; margin-bottom: 22px; list-style: decimal; }
.evidence-drop { border: 2px dashed #e0c3c3; background: #fffafa; border-radius: 8px; padding: 18px; text-align: center; color: #888; cursor: pointer; }
.evidence-drop i { color: #c0392b; margin-right: 6px; }
.evidence-list { margin-top: 10px; font-size: 13px; color: #555; list-style: disc; padding-left: 20px; }
.check-line { display: flex !important; gap: 8px; align-items: flex-start; font-weight: normal !important; cursor: pointer; }
.check-line input { width: auto !important; margin-top: 4px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 10px 16px; font-size: 15px; }
.kv dt { color: #888; }
.kv dd { color: #333; word-break: break-all; }
.kv a { color: var(--primary-color); }
.evidence-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.evidence-item { width: 120px; border: 1px solid #eee; border-radius: 6px; overflow: hidden; background: #fafafa; display: block; }
.evidence-item img { width: 100%; height: 100px; object-fit: cover; display: block; }
.evidence-item .pdf { height: 100px; display: flex; align-items: center; justify-content: center; font-size: 40px; color: #c0392b; }
.evidence-item .name { display: block; font-size: 12px; color: #555; padding: 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.complaint-status { font-size: 13px; padding: 3px 12px; border-radius: 12px; white-space: nowrap; }
.complaint-status.pending { background: #fff4e5; color: #8a5300; }
.complaint-status.countered { background: #e8f0fe; color: #3451b2; }
.complaint-status.upheld { background: #fdecea; color: #b42318; }
.complaint-status.rejected { background: #e8f8ef; color: #1e7e4a; }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 8px; } }

.dh-star { margin-left: 14px; color: inherit; padding: 0 !important; display: inline !important; }
.dh-star:hover { background: none !important; }
.dh-star i { color: #f0b90b !important; width: auto !important; }
.star-icon { color: #f0b90b; }
.or-coin { font-size: 12px; color: #999; font-weight: normal; margin-left: 6px; }
.or-coin i { color: #f5a623; }
