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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

h1 {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
}

h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 1rem;
}

.separator {
    width: 100%;
    height: 1px;
    background-color: #e5e5e5;
    margin: 1rem 0;
}

.time-display {
    font-size: 1.125rem;
    text-align: center;
}

/* 商品列表样式 */
.goods-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.goods-table th {
    background-color: #f3f4f6;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
}

.goods-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.goods-table tr:hover {
    background-color: #f9fafb;
}

.goods-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-active {
    background-color: #dcfce7;
    color: #166534;
}

.status-pending {
    background-color: #fed7aa;
    color: #9a3412;
}

/* 消息列表样式 - 微信群聊天框风格 */
.message-list {
    max-height: 600px;
    overflow-y: auto;
    width: 100%;
    background: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1rem;
}

.message-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.message-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    margin: 0.5rem -0.5rem;
}

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

.message-content {
    flex: 1;
    max-width: calc(100% - 50px);
}

.message-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.message-sender {
    font-weight: 600;
    font-size: 0.875rem;
    color: #333;
}

.message-time {
    font-size: 0.75rem;
    color: #999;
    min-width: 80px;
    text-align: right;
}

.message-bubble {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    border-top-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    position: relative;
    word-wrap: break-word;
}

.message-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-right-color: white;
    border-top: none;
    border-left: none;
}

.message-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

.message-text {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
}

.message-image {
    margin: 0.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    max-width: 200px;
}

.message-image img {
    width: 100%;
    height: auto;
    display: block;
}

.message-actions {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.copy-btn {
    background-color: #07c160;
    color: white;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: background-color 0.2s;
}

.copy-btn:hover {
    background-color: #06ad56;
}

.delete-btn {
    background-color: #ff4757;
    color: white;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: background-color 0.2s;
}

.delete-btn:hover {
    background-color: #e63946;
}

.message-status {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.25rem;
}

/* 滚动条样式 */
.message-list::-webkit-scrollbar {
    width: 6px;
}

.message-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

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

.message-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 手机卡专区样式 */
.phone-card-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
}

.phone-card-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
    align-items: center;
}

.phone-card-img {
    width: 300px;
    border-radius: 8px;

    margin-bottom: 30px;
}

.partner-link {
    color: #3b82f6;
    text-decoration: none;
}

.partner-link:hover {
    text-decoration: underline;
}

.qr-code {
    text-align: center;
    margin-top: 1rem;
}

.qr-code img {
    width: 150px;
    border-radius: 8px;
}

/* FAQ样式 */
.faq-section {
    width: 100%;
}

.faq-item {
    background: white;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.faq-question {
    padding: 1rem;
    background: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.125rem;
    color: #374151;
    border: none;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background-color: #f9fafb;
}

.faq-answer {
    padding: 0 1rem 1rem;
    color: #6b7280;
    display: none;
}

.faq-answer.active {
    display: block;
}

.faq-toggle {
    transition: transform 0.3s ease;
}

.faq-toggle.active {
    transform: rotate(180deg);
}

/* 页脚样式 */
.footer {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0.5rem 0 1rem;
    text-align: center;
    color: #6b7280;
}

.footer p {
    display: inline;
    margin: 0 0.5rem;
}

.online-count {
    font-size: 1rem;
    text-align: center;
    color: #07c160;
    font-weight: 500;
    margin: 0.5rem 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .goods-table th,
    .goods-table td {
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    .goods-image {
        width: 64px;
        height: 64px;
    }

    .message-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .copy-btn {
        align-self: flex-end;
    }

    /* 移动端聊天框样式 */
    .message-list {
        padding: 0.5rem;
        max-height: 400px;
    }

    .message-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .message-bubble {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .message-title {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }

    .message-text {
        font-size: 0.8rem;
    }

    .message-image {
        max-width: 150px;
        margin: 0.3rem 0;
    }

    .message-sender {
        font-size: 0.8rem;
    }

    .message-time {
        font-size: 0.7rem;
        min-width: 70px;
        text-align: right;
    }

    .copy-btn {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }

    .delete-btn {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
}

/* 表单样式 */
.message-form {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1.5rem 1rem 1rem 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}
.form-input, .form-textarea, .form-input-file {
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    outline: none;
    background: #f9fafb;
    transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus {
    border-color: #3b82f6;
    background: #fff;
}
.form-input {
    flex: 1 1 180px;
    min-width: 120px;
}
.form-textarea {
    width: 100%;
    min-height: 60px;
    resize: vertical;
}
.form-input-file {
    border: none;
    background: none;
    padding: 0;
}
.form-btn {
    background: #07c160;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.form-btn:hover {
    background: #06ad56;
}

@media (max-width: 768px) {
    .message-form {
        padding: 1rem 0.5rem 0.5rem 0.5rem;
    }
    .form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .form-btn {
        width: 100%;
    }
}

/* 图片模态框样式 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-modal.show {
    opacity: 1;
    visibility: visible;
}

.image-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.image-modal.show .image-modal-content {
    transform: scale(1);
}

.image-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.2s ease;
}

.image-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.image-modal-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

/* 移动端图片模态框样式 */
@media (max-width: 768px) {
    .image-modal-content {
        max-width: 95%;
        max-height: 95%;
        border-radius: 8px;
    }

    .image-modal-close {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .image-modal-img {
        max-height: 85vh;
    }
} 
