/* 页面英雄区域 */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* 主内容区域 */
.main-content {
    padding: 30px 0;
    background-color: #f5f7fa;
    min-height: calc(100vh - 200px);
}

.shangbiao-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 卡片样式 */
.cp-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 24px;
    transition: box-shadow 0.3s ease;
}

.cp-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.cp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 16px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
    flex-shrink: 0;
}

.header-icon svg {
    width: 24px;
    height: 24px;
}

.header-text {
    display: flex;
    flex-direction: column;
}

.cp-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.cp-card-subtitle {
    font-size: 14px;
    color: #888;
    margin: 4px 0 0;
}

.header-right {
    display: flex;
    align-items: center;
}

.result-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
}

.stat-valid {
    background: rgba(72, 187, 120, 0.1);
}

.stat-valid .stat-value {
    color: #48bb78;
}

.stat-invalid {
    background: rgba(239, 68, 68, 0.1);
}

.stat-invalid .stat-value {
    color: #ef4444;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
}

.stat-label {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: #e0e0e0;
}

/* 搜索区域 */
.search-section {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 768px) {
    .search-section {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0 16px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    min-height: 48px;
}

.search-input-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.search-icon {
    width: 20px;
    height: 20px;
    color: #888;
    margin-right: 12px;
    flex-shrink: 0;
}

.search-input-wrapper input {
    flex: 1;
    height: 44px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #333;
    outline: none;
}

.search-input-wrapper input::placeholder {
    color: #aaa;
}

.search-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 按钮样式 */
.cp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    height: 48px;
}

.cp-btn svg {
    width: 18px;
    height: 18px;
}

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

.cp-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.cp-btn-secondary {
    background: #f0f0f0;
    color: #666;
    border: 1px solid #e0e0e0;
}

.cp-btn-secondary:hover:not(:disabled) {
    background: #e8e8e8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* 结果区域 */
.results-section {
    display: none;
}

.results-section.active {
    display: block;
}

.results-content {
    padding: 0 24px;
    overflow-x: auto;
}

/* 表格样式 */
.cp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.cp-table th,
.cp-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.cp-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

.cp-table tbody tr {
    transition: background-color 0.2s ease;
}

.cp-table tbody tr:hover {
    background: #fafafa;
}

.cp-table tbody tr:last-child td {
    border-bottom: none;
}

/* 商标图片 */
.tm-img-wrapper {
    display: flex;
    justify-content: center;
}

.tm-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tm-img:hover {
    transform: scale(2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-valid {
    background: rgba(72, 187, 120, 0.15);
    color: #48bb78;
}

.status-invalid {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.status-other {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
}

/* 空状态、加载状态、错误状态 */
.empty-state,
.loading-state,
.error-state {
    text-align: center;
    padding: 40px 20px !important;
    color: #888;
}

.empty-state svg,
.loading-state svg,
.error-state svg {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.5;
}

.empty-state p,
.loading-state p,
.error-state p {
    margin: 0;
    font-size: 15px;
}

.error-state {
    color: #ef4444;
}

.error-state svg {
    color: #ef4444;
}

/* 加载动画 */
.spin {
    animation: spin 1s linear infinite;
}

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

/* 消息提示 */
.cp-message-box {
    margin: 16px 24px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.cp-message-success {
    background: rgba(72, 187, 120, 0.15);
    color: #48bb78;
    border-left: 4px solid #48bb78;
}

.cp-message-error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-left: 4px solid #ef4444;
}

.cp-message-info {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border-left: 4px solid #3b82f6;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 24px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #f5f7fa;
    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: #fff;
    border-color: #667eea;
}

.pagination-btn.active:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-title {
        font-size: 28px;
    }
    
    .page-hero {
        padding: 40px 0;
    }
    
    .cp-card-header {
        padding: 16px;
    }
    
    .search-section {
        padding: 16px;
    }
    
    .cp-btn {
        min-width: 100px;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .results-content {
        padding: 0 16px;
        overflow-x: auto;
    }
    
    .cp-table {
        min-width: 800px;
    }
    
    .cp-table th,
    .cp-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .result-stats {
        width: 100%;
        justify-content: center;
    }
}