/**
 * 网点管理系统 - 自定义样式
 * 配合 Tailwind CSS 使用
 */

/* ==================== 基础样式 ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f7fa;
}

/* ==================== 主容器布局 ==================== */

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* 头部区域 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

/* 搜索栏 */
.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-input-wrapper {
    position: relative;
}

.poi-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 360px;
    max-width: min(80vw, 420px);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    display: none;
    z-index: 140;
}

.poi-dropdown.open {
    display: block;
}

.poi-dropdown-list {
    max-height: 320px;
    overflow-y: auto;
}

.poi-dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.poi-dropdown-list::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.poi-dropdown-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.poi-dropdown-item {
    width: 100%;
    border: none;
    background: transparent;
    padding: 12px 16px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.poi-dropdown-item:hover,
.poi-dropdown-item.active {
    background: #f8fafc;
}

.poi-dropdown-item + .poi-dropdown-item {
    border-top: 1px solid #f1f5f9;
}

.poi-dropdown-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
}

.poi-dropdown-item-address {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

.poi-dropdown-footer {
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
}

.poi-dropdown-status {
    padding: 12px 16px;
    font-size: 12px;
    color: #6b7280;
}

.search-input {
    width: 280px;
    padding: 10px 16px 10px 40px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: #374151;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.search-input::placeholder {
    color: #999;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* 城市菜单 */
.city-menu {
    position: relative;
    display: inline-flex;
}

.city-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 25px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
}

.city-menu-trigger:hover,
.city-menu-trigger:focus {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.city-menu-chevron {
    font-size: 12px;
    color: #6b7280;
}

.city-menu-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 220px;
    max-height: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    border: 1px solid #e5e7eb;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 8px;
    z-index: 110;
    overflow-y: auto;
}

.city-menu-panel.open {
    display: flex;
}

.city-menu-item {
    width: 100%;
    border: none;
    background: transparent;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #1f2937;
    cursor: pointer;
    transition: background 0.2s ease;
}

.city-menu-item:hover,
.city-menu-item.active {
    background: #f3f4f6;
}

.city-menu-item-name {
    font-weight: 500;
}

.city-menu-item-count {
    font-size: 12px;
    color: #9ca3af;
}

/* 城市选择 */
.city-select {
    padding: 10px 36px 10px 16px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.city-select:focus {
    background-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* ==================== 标签筛选 ==================== */

.filter-bar {
    background: white;
    padding: 12px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid transparent;
}

.filter-tag:hover {
    background: #e5e7eb;
}

.filter-tag.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* ==================== 主内容区域 ==================== */

.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* 左侧列表 */
.sidebar {
    width: 420px;
    background: white;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.list-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    background: #fafafa;
}

.list-header-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.list-context {
    font-size: 12px;
    line-height: 1.5;
    color: #6b7280;
    text-align: right;
    max-width: 220px;
}

.list-title {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}

.list-count {
    font-size: 13px;
    color: #9ca3af;
}

/* 网点列表 */
.location-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

/* 滚动条美化 */
.location-list::-webkit-scrollbar {
    width: 6px;
}

.location-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.location-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.location-list::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 网点卡片 */
.location-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.location-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.location-card.active {
    border-color: #667eea;
    background: linear-gradient(to right, rgba(102, 126, 234, 0.05), transparent);
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.card-title {
    flex: 1;
    min-width: 0;
}

.card-name-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.card-name {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    word-break: break-word;
}

.card-distance {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.card-city {
    font-size: 12px;
    color: #9ca3af;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.card-info-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #9ca3af;
}

.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.tag-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    background: #fef3c7;
    color: #d97706;
}

.tag-badge.vip {
    background: #fce7f3;
    color: #db2777;
}

.tag-badge.urgent {
    background: #fee2e2;
    color: #dc2626;
}

.tag-badge.new {
    background: #d1fae5;
    color: #059669;
}

/* 分页 */
.pagination {
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: #fafafa;
}

.pagination-btn {
    padding: 8px 16px;
    min-width: 70px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    color: #4b5563;
    white-space: nowrap;
}

.pagination-btn.nav-btn {
    min-width: 90px;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #667eea;
    color: #667eea;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.pagination-ellipsis {
    font-size: 14px;
    color: #9ca3af;
}

/* 右侧地图 */
.map-container {
    flex: 1;
    position: relative;
}

.poi-marker {
    width: 28px;
    height: 40px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.marker-pin {
    width: 18px;
    height: 18px;
    background: #ef4444;
    border-radius: 50% 50% 45% 45%;
    box-shadow: 0 6px 12px rgba(239, 68, 68, 0.6);
    position: relative;
}

.marker-pin::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 12px;
    background: #ef4444;
    border-radius: 3px;
    box-shadow: 0 6px 10px rgba(239, 68, 68, 0.3);
}

.poi-marker.active .marker-pin {
    transform: scale(1.2);
    box-shadow: 0 10px 18px rgba(239, 68, 68, 0.8);
}

.poi-marker.active {
    pointer-events: auto;
}

.poi-marker.poi-search-marker .marker-pin {
    background: #22c55e;
    box-shadow: 0 6px 12px rgba(34, 197, 94, 0.6);
}

.poi-marker.poi-search-marker .marker-pin::after {
    background: #22c55e;
    box-shadow: 0 6px 10px rgba(34, 197, 94, 0.3);
}

.poi-marker.poi-search-marker {
    filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.35));
}

#map {
    width: 100%;
    height: 100%;
}

.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #6b7280;
}

.map-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==================== 弹窗样式 ==================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* 详情内容 */
.detail-photo {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #f3f4f6;
}

.detail-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-section {
    margin-bottom: 20px;
}

.detail-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.detail-row {
    display: flex;
    margin-bottom: 12px;
}

.detail-label {
    width: 80px;
    font-size: 14px;
    color: #6b7280;
    flex-shrink: 0;
}

.detail-value {
    flex: 1;
    font-size: 14px;
    color: #1f2937;
    line-height: 1.6;
}

.detail-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 业务范围 */
.business-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.business-tag {
    padding: 4px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 12px;
    color: #4b5563;
}

/* 评论区域 */
.comments-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
    margin-top: 20px;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.comments-title {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}

.comments-count {
    font-size: 13px;
    color: #9ca3af;
}

.comments-list {
    max-height: 200px;
    overflow-y: auto;
}

.comment-item {
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 10px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-author {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.comment-time {
    font-size: 12px;
    color: #9ca3af;
}

.comment-content {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}

.no-comments {
    text-align: center;
    padding: 20px;
    color: #9ca3af;
    font-size: 14px;
}

/* 评论表单 */
.comment-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.form-group {
    margin-bottom: 12px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-light {
    background: rgba(255, 255, 255, 0.16);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.24);
}

.btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 260px;
}

.admin-status {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.92);
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.modal-compact {
    max-width: 420px;
}

.modal-wide {
    max-width: 760px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

.form-group-span-2 {
    grid-column: span 2;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

.form-help-text {
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
}

.tag-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-selector-item {
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #374151;
}

.tag-selector-item.active {
    border-color: transparent;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tag-selector-empty {
    font-size: 13px;
    color: #9ca3af;
}

.tag-badge.loading {
    opacity: 0.6;
    pointer-events: none;
}

.tag-badge.disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.tag-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #9ca3af;
}

.btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* ==================== 空状态 ==================== */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-text {
    font-size: 15px;
}

/* ==================== 加载状态 ==================== */

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ==================== 响应式设计 ==================== */

@media (max-width: 1024px) {
    .sidebar {
        width: 350px;
    }

    .search-input {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: 50%;
        order: 2;
    }

    .map-container {
        height: 50%;
        order: 1;
    }

    .header-content {
        flex-direction: column;
        align-items: stretch;
    }

    .search-bar {
        justify-content: center;
    }

    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-actions {
        justify-content: flex-start;
    }

    .search-input {
        width: 100%;
    }

    .city-select {
        width: 100%;
    }

    .filter-bar {
        justify-content: center;
    }

    .modal {
        width: 95%;
        max-height: 85vh;
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .form-group-span-2 {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 16px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .filter-tag {
        padding: 5px 12px;
        font-size: 12px;
    }

    .location-card {
        padding: 12px;
    }

    .card-name {
        font-size: 14px;
    }

    .sidebar {
        width: 100%;
    }

    .map-container {
        width: 100%;
    }
}

/* ==================== 地图信息窗体样式 ==================== */

.amap-info-window {
    border-radius: 12px;
    overflow: hidden;
}

.info-window-content {
    padding: 16px;
    min-width: 200px;
}

.info-window-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.info-window-address {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}

.info-window-btn {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.info-window-btn:hover {
    opacity: 0.9;
}

/* ==================== 动画 ==================== */

.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Toast 提示 */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    background: #1f2937;
    color: white;
    border-radius: 8px;
    font-size: 14px;
    z-index: 2000;
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: #059669;
}

.toast.error {
    background: #dc2626;
}

/* 复制功能样式 */
.detail-value.copyable {
    position: relative;
}

.detail-value.copyable:hover {
    background-color: #f3f4f6;
    border-radius: 4px;
    padding: 2px 4px;
    margin: -2px -4px;
}

.copy-btn {
    display: inline-block;
    cursor: pointer;
    font-size: 12px;
    margin-left: 6px;
    vertical-align: middle;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.copy-btn:hover {
    opacity: 1;
}

.detail-value.copy-success {
    color: #10b981;
    font-weight: 500;
}

/* 全屏图片查看器 */
.image-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.image-viewer.active {
    display: flex;
}

.image-viewer-content {
    max-width: 90%;
    max-height: 90%;
    cursor: default;
}

.image-viewer-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.image-viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.image-viewer-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 交互式标签样式 */
.detail-tags.interactive {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-tags.interactive .tag-badge {
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.5;
    border: 2px solid transparent;
}

.detail-tags.interactive .tag-badge.active {
    opacity: 1;
    border-color: currentColor;
}

.detail-tags.interactive .tag-badge:hover {
    transform: scale(1.05);
}

.detail-tags.interactive .tag-badge.loading {
    opacity: 0.3;
    pointer-events: none;
}

.tag-hint {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 8px;
}

/* 多选标签样式 */
.filter-tag {
    position: relative;
}

.filter-tag.selected::after {
    content: '✓';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 14px;
    height: 14px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
