/* ==================== 平台通用 ==================== */
.platform-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.platform-section {
    padding: 6rem 0 3rem;
}

/* ==================== 导航扩展 ==================== */
.nav-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    transition: background 0.2s;
    position: relative;
}

.nav-user:hover {
    background: var(--surface-hover);
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

.nav-user-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(10, 10, 12, 0.95);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.5rem;
    min-width: 160px;
    z-index: 200;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

[data-theme="light"] .nav-user-menu {
    background: rgba(245, 245, 247, 0.95);
}

.nav-user-menu.active {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.nav-user-menu a,
.nav-user-menu button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    width: 100%;
    text-align: left;
}

.nav-user-menu a:hover,
.nav-user-menu button:hover {
    background: var(--surface-hover);
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    font-size: 0.9rem;
    transition: background 0.2s;
}

.user-menu-toggle:hover {
    background: var(--surface-hover);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    background: var(--surface);
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(10, 10, 12, 0.95);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.5rem;
    min-width: 160px;
    z-index: 200;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    flex-direction: column;
    gap: 0.2rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

[data-theme="light"] .user-dropdown {
    background: rgba(245, 245, 247, 0.95);
}

.user-dropdown.active {
    display: flex;
}

.user-dropdown a,
.user-dropdown button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    width: 100%;
    text-align: left;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: var(--surface-hover);
}

.form-textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--text-muted);
}

.tag-input-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    min-height: 40px;
    transition: border-color 0.2s;
}

.tag-input-container:focus-within {
    border-color: var(--text-muted);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text);
    cursor: default;
}

.tag i {
    font-size: 0.75rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.15s;
}

.tag i:hover {
    color: var(--accent);
}

.tag-input {
    flex: 1;
    min-width: 120px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 0.85rem;
    outline: none;
    padding: 0.2rem 0.3rem;
}

.file-upload-wrapper {
    position: relative;
    display: inline-flex;
}

.file-upload-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}

.file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1px dashed var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.file-upload-btn:hover {
    border-color: var(--text-muted);
    background: var(--surface-hover);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text);
}

.form-checkbox input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1px solid var(--border);
    background: var(--bg);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.form-checkbox input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.form-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ==================== 表单 ==================== */
.form-card {
    max-width: 480px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.form-card h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-card .form-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--text-muted);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.05);
}

[data-theme="light"] .form-input:focus {
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.form-input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.form-file {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-error {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: none;
}

.form-error.show {
    display: block;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 0.75rem;
    font-size: 1rem;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-footer a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ==================== 验证码区域 ==================== */
.verify-box {
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.verify-code {
    font-family: "Courier New", monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text);
    background: var(--surface);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: inline-block;
    margin-bottom: 0.75rem;
    user-select: all;
}

.verify-timer {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.verify-timer.urgent {
    color: #ef4444;
}

.verify-instructions {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: left;
}

.verify-instructions code {
    background: var(--surface);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text);
}

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.3s;
}

.step-dot.active {
    background: var(--text);
}

/* ==================== 上传进度条 ==================== */
.upload-progress-steps {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.upload-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.upload-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-muted);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s;
}
.upload-step-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ==================== 平台头部 ==================== */
.platform-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.platform-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 2px;
    font-weight: 400;
}

.platform-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==================== 筛选栏 ==================== */
.filter-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    align-items: center;
}

.filter-bar select,
.filter-bar input {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 0.9rem;
}

.filter-bar select:focus,
.filter-bar input:focus {
    outline: none;
    border-color: var(--text-muted);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0;
}

.search-input {
    padding: 0.5rem 0.75rem;
    border-radius: 8px 0 0 8px;
    border: 1px solid var(--border);
    border-right: none;
    background: var(--bg);
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
}

.search-input:focus {
    border-color: var(--text-muted);
}

.search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0 8px 8px 0;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background: var(--surface-hover);
    border-color: var(--text-muted);
}

/* ==================== 配置卡片 ==================== */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.config-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.config-card:hover {
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.config-card-body {
    padding: 1.25rem;
    flex: 1;
}

.config-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.config-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.config-card-model {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.config-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.config-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.config-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
    background: var(--bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.config-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.config-card-actions {
    display: flex;
    gap: 0.75rem;
}

.config-action-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.15s;
    padding: 0.2rem;
}

.config-action-btn:hover {
    color: var(--text);
}

.config-action-btn.active {
    color: #ef4444;
}

.config-action-btn.active.like-btn {
    color: #ef4444;
}

.config-action-btn.active.fav-btn {
    color: #f59e0b;
}

.config-card-author {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
}

.config-card-author:hover {
    color: var(--text);
}

.config-card-author img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

/* ==================== 配置详情页 ==================== */
.config-detail {
    max-width: 800px;
    margin: 0 auto;
}

.config-detail-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.config-detail-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.config-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.config-detail-meta .author-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text);
    text-decoration: none;
}

.config-detail-meta .author-link img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.config-detail-body {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.config-detail-body p {
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.config-detail-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.config-detail-actions .btn {
    gap: 0.5rem;
}

/* ==================== 评论区 ==================== */
.comments-section {
    margin-top: 2rem;
}

.comments-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-form {
    margin-bottom: 1.5rem;
}

.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 0.75rem;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--text-muted);
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.comment-author {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

.comment-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.comment-text {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
    word-break: break-word;
}

/* ==================== 用户主页 ==================== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.profile-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.profile-info .profile-username {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.profile-info .profile-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.profile-stats {
    display: flex;
    gap: 2rem;
    margin-left: auto;
}

.profile-stat {
    text-align: center;
}

.profile-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    display: block;
}

.profile-stat .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== 模态框 ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,1);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.1rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.2rem;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text);
}

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

/* ==================== 分页 ==================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination button {
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.15s;
}

.pagination button:hover:not(:disabled) {
    background: var(--surface-hover);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

/* ==================== Toast 通知 ==================== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 1.5rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: toastSlide 0.3s ease;
    max-width: 320px;
}

.toast.success { border-left: 3px solid #22c55e; }
.toast.error { border-left: 3px solid #ef4444; }
.toast.info { border-left: 3px solid #3b82f6; }

@keyframes toastSlide {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ==================== 响应式 ==================== */
@media (max-width: 640px) {
    .platform-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    .profile-stats {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    .config-grid {
        grid-template-columns: 1fr;
    }
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-bar select,
    .filter-bar input {
        width: 100%;
    }
}

/* Cover image */
.config-card-cover {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.config-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.config-detail-cover {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
}

.config-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.config-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Notifications */
.nav-notifications {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav-notifications:hover {
    color: var(--text);
}

.notif-dot {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid var(--bg);
}

.nav-notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 2px solid var(--bg);
}

.notif-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    min-width: 280px;
    max-width: 320px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 200;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.notif-dropdown.active {
    display: block;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    font-weight: 600;
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 1;
}

.notif-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
}

.notif-clear:hover {
    color: var(--text);
}

.notif-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item:hover {
    background: var(--surface-hover);
}

.notif-item.unread {
    background: var(--surface);
}

.notif-text {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.notif-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.notif-empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Comment reply & delete */
.comment-actions-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.comment-reply,
.comment-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
}

.comment-reply:hover {
    color: var(--text);
}

.comment-delete:hover {
    color: #ef4444;
}

.comment-reply-to {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.comment-reply-to a {
    color: var(--text);
    text-decoration: none;
}

.comment-text.deleted {
    color: var(--text-muted);
    font-style: italic;
}

/* User profile delete button */
.config-card-delete {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    z-index: 10;
}

.config-card-delete:hover {
    background: #ef4444;
}

.config-card {
    position: relative;
}

/* ==================== 新增样式 ==================== */

/* Config detail cover */
.config-detail-cover {
    max-width: 300px;
    margin: 0 auto 1.5rem;
    width: auto;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--border);
}
.config-detail-cover img {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Comment threading */
.comment-replies {
    margin-top: 0.75rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (max-width: 640px) {
    .comment-replies {
        padding-left: 0.5rem;
    }
}
.comment-item.nested {
    padding: 0.75rem;
    background: var(--bg);
    border-radius: 8px;
}

@media (max-width: 640px) {
    .comment-item.nested {
        padding: 0.5rem;
    }
    .comment-item.nested .comment-avatar {
        width: 28px;
        height: 28px;
    }
}

/* Comment like button */
.comment-like-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    transition: color 0.15s;
}
.comment-like-btn:hover {
    color: #ef4444;
}
.comment-like-btn.active {
    color: #ef4444;
}

/* Profile tabs */
.profile-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.profile-tab {
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.15s;
    margin-bottom: -1px;
}
.profile-tab.active {
    color: var(--text);
    border-bottom-color: var(--text);
}
.profile-tab:hover {
    color: var(--text);
}

/* View all button */
.view-all-btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.15s;
    font-size: 0.9rem;
}
.view-all-btn:hover {
    background: var(--bg);
    color: var(--text);
}

/* Charts */
.chart-container {
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
}

/* Status dot */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
    flex-shrink: 0;
}
.status-dot.offline {
    background: #ef4444;
}

/* Load more */
.load-more {
    display: block;
    width: 100%;
    padding: 1rem;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    cursor: pointer;
    margin-top: 1.5rem;
    transition: all 0.15s;
    font-size: 0.9rem;
}
.load-more:hover {
    background: var(--bg);
    color: var(--text);
}
.load-more:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.load-more.end {
    cursor: default;
    border-style: dashed;
}
.load-more.end:hover {
    background: var(--surface);
}

/* Config tags as links */
a.config-tag {
    text-decoration: none;
    transition: all 0.15s;
}
a.config-tag:hover {
    background: var(--surface-hover);
    color: var(--text);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* 模组列表滚动条 */
.mod-list::-webkit-scrollbar {
    width: 5px;
}
.mod-list::-webkit-scrollbar-track {
    background: var(--surface);
    border-radius: 3px;
}
.mod-list::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    opacity: 0.5;
    border-radius: 3px;
}
.mod-list::-webkit-scrollbar-thumb:hover {
    background: var(--text);
    opacity: 0.7;
}

/* 文件上传按钮 */
.file-upload-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    border: 1px dashed var(--border);
    background: var(--bg);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    width: 100%;
}
.file-upload-btn:hover {
    border-color: var(--text-muted);
    color: var(--text);
}
.file-upload-btn input[type="file"] {
    display: none;
}
/* ==================== PC配置解析展示 ==================== */
.pc-tabs {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
}
.pc-tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.pc-tab-btn {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
}
.pc-tab-btn:hover {
    color: var(--text);
    background: var(--surface-hover);
}
.pc-tab-btn.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    background: var(--surface);
}
.pc-tabs-body {
    padding: 1rem;
}
.pc-tab-panel {
    display: none;
}
.pc-tab-panel.active {
    display: block;
}
.pc-table-wrap {
    max-height: 500px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.pc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.pc-table thead {
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 1;
}
.pc-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.pc-table td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.pc-table tbody tr:hover {
    background: var(--surface-hover);
}
.pc-table tbody tr:last-child td {
    border-bottom: none;
}
.pc-table td:last-child {
    font-family: monospace;
    color: var(--accent);
}

/* ==================== PC 部件层级树 ==================== */
.pc-tree-wrap {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.pc-tree-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.9rem;
}
.pc-tree-license {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}
.pc-tree-body {
    padding: 0.25rem 0;
    max-height: 600px;
    overflow-y: auto;
}
.pc-tree-node {
    border-bottom: 1px solid var(--border);
}
.pc-tree-node:last-child {
    border-bottom: none;
}
.pc-tree-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
}
.pc-tree-row:hover {
    background: var(--surface-hover);
}
.pc-tree-toggle {
    font-size: 1rem;
    color: var(--text-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
    width: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pc-tree-node.collapsed .pc-tree-toggle {
    transform: rotate(-90deg);
}
.pc-tree-spacer {
    width: 1rem;
    flex-shrink: 0;
}
.pc-tree-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
    gap: 1rem;
}
.pc-tree-slot {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50%;
}
.pc-tree-part {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
    max-width: 50%;
}
.pc-tree-children {
    display: block;
}
.pc-tree-node.collapsed .pc-tree-children {
    display: none;
}
.pc-table-vars td:last-child {
    font-family: inherit;
    color: var(--text-muted);
    font-size: 0.8rem;
}
