﻿/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    min-height: 100vh;
}

/* 主图片样式 */
.main-image-container {
    text-align: center;
    margin: 20px 0 30px 0;
}

.main-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 步骤说明样式 */
.steps-container {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.step-item {
    display: flex;
    align-items: center;
    margin: 15px 0;
    font-size: 16px;
}

.step-number {
    font-weight: bold;
    color: #007bff;
    margin-right: 10px;
    font-size: 18px;
}

.step-text {
    flex: 1;
}

.highlight {
    color: #007bff;
    font-weight: bold;
    background: rgba(0, 123, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* 验证区域样式 */
.verification-container {
    margin: 30px 0;
    padding: 25px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.input-group {
    width: 100%;
}

.input-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #495057;
    font-size: 16px;
}

.input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

.store-name-input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.store-name-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.verify-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.verify-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* 验证状态样式 */
.verification-success {
    text-align: center;
    padding: 25px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    color: #155724;
}

.verification-success i {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 15px;
    display: block;
}

.verification-success h3 {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 700;
}

.verification-success p {
    font-size: 16px;
    margin: 0;
}

.verification-warning {
    text-align: center;
    padding: 25px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    color: #856404;
}

.verification-warning i {
    font-size: 48px;
    color: #ffc107;
    margin-bottom: 15px;
    display: block;
}

.verification-warning h3 {
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 700;
}

.verification-warning p {
    font-size: 16px;
    margin: 8px 0;
}

.verification-failed {
    text-align: center;
    padding: 25px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
    border: 2px solid #dc3545;
    border-radius: 12px;
    color: #721c24;
}

.verification-failed i {
    font-size: 48px;
    color: #dc3545;
    margin-bottom: 15px;
    display: block;
}

.verification-failed h3 {
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 700;
}

.verification-failed p {
    font-size: 16px;
    margin: 0;
}

/* 搜索结果样式 */
.search-results {
    margin-top: 20px;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-size: 16px;
}

.loading i {
    margin-right: 8px;
    color: #007bff;
}

.results-count {
    margin-bottom: 15px;
    padding: 10px 15px;
    background: #e7f3ff;
    border-radius: 6px;
    color: #0056b3;
    font-weight: 600;
}

.results-list {
    max-height: 600px;
    overflow-y: auto;
}

.result-item {
    padding: 20px;
    margin-bottom: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.result-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.result-item h4 {
    margin-bottom: 8px;
    font-size: 18px;
}

.result-item h4 a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.result-item h4 a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.result-item .subtitle {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 8px;
    font-style: italic;
}

.result-item .content {
    color: #495057;
    margin-bottom: 12px;
    line-height: 1.6;
}

.result-item .date {
    color: #6c757d;
    font-size: 12px;
    display: inline-block;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

.no-results, .error-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 16px;
    background: white;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.error-message {
    color: #dc3545;
    border-color: #f5c6cb;
    background: #f8d7da;
}

/* 注意事项样式 */
.notice {
    margin: 30px 0;
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.notice p {
    color: #856404;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* 聊天区域样式 */
.chat-section {
    margin: 30px 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    max-height: 600px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 20px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    font-weight: 600;
    font-size: 18px;
    text-align: center;
    position: relative;
}

.scroll-hint {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(-50%);
    }
    40% {
        transform: translateY(-40%);
    }
    60% {
        transform: translateY(-45%);
    }
}

.chat-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 400px;
    max-height: 500px;
}

/* 自定义滚动条 */
.chat-messages-container::-webkit-scrollbar {
    width: 6px;
}

.chat-messages-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-messages-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chat-messages-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.chat-message {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #007bff;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.chat-message:active {
    transform: translateY(0);
}

.message-label {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.chat-message:hover .message-label {
    opacity: 1;
}

.message-content {
    color: #333;
    line-height: 1.6;
    font-size: 14px;
    margin-right: 80px;
    word-wrap: break-word;
}

/* 复制成功提示 */
.copy-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #28a745;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 1000;
    animation: copyFeedback 2s ease-out forwards;
}

@keyframes copyFeedback {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    10% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    90% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

/* 底部样式 */
.footer {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #dee2e6;
    color: #6c757d;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .input-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .verify-btn, .search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .search-options {
        flex-direction: column;
        gap: 15px;
    }
    
    .option-group {
        justify-content: space-between;
    }
    
    .step-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    /* 聊天区域移动端优化 */
    .chat-section {
        max-height: 500px;
        margin: 20px 0;
    }
    
    .chat-header {
        padding: 15px;
        font-size: 16px;
    }
    
    .scroll-hint {
        position: static;
        display: block;
        margin-top: 5px;
        font-size: 12px;
        transform: none;
        animation: none;
    }
    
    .chat-messages-container {
        min-height: 300px;
        max-height: 400px;
        padding: 15px;
    }
    
    .chat-message {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .message-content {
        margin-right: 60px;
        font-size: 13px;
    }
    
    .message-label {
        padding: 4px 8px;
        font-size: 11px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .verification-container,
    .search-container {
        padding: 15px;
    }
    
    .steps-container {
        padding: 15px;
    }
    
    .result-item {
        padding: 15px;
    }
    
    /* 聊天区域小屏幕优化 */
    .chat-section {
        max-height: 400px;
        margin: 15px 0;
    }
    
    .chat-header {
        padding: 12px;
        font-size: 14px;
        flex-direction: column;
        gap: 5px;
    }
    
    .scroll-hint {
        font-size: 11px;
    }
    
    .chat-messages-container {
        min-height: 250px;
        max-height: 320px;
        padding: 10px;
    }
    
    .chat-message {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .message-content {
        margin-right: 50px;
        font-size: 12px;
    }
    
    .message-label {
        padding: 3px 6px;
        font-size: 10px;
        right: 8px;
        top: 8px;
    }
} 