/* 关键渲染路径CSS - 整合原有样式 */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Simple页面样式 */
body {
    font-family: Arial, sans-serif !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 20px 20px 80px 20px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* 移动端完全隐藏滚动条 */
@media (max-width: 768px) {
    /* 隐藏body和html的滚动条 */
    html, body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    
    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        width: 0px !important;
        height: 0px !important;
        background: transparent !important;
        display: none !important;
    }
    
    /* 隐藏容器滚动条 */
    .container::-webkit-scrollbar {
        width: 0px !important;
        height: 0px !important;
        background: transparent !important;
        display: none !important;
    }

    .container {
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
        overflow-x: hidden !important;
    }
    
    /* 隐藏所有可能的滚动条 */
    *::-webkit-scrollbar {
        width: 0px !important;
        height: 0px !important;
        background: transparent !important;
        display: none !important;
    }
    
    * {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
}

/* 桌面端保持原有的滚动条隐藏功能 */
.container::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.container {
    background: white !important;
    padding: 35px 30px !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
    text-align: center !important;
    max-width: 480px !important;
    width: 100% !important;
    max-height: calc(100vh - 160px) !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    position: relative !important;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* 品牌区域 */
.brand-section {
    text-align: center;
    margin-bottom: 1.8rem;
}

.logo-container {
    margin-bottom: 1rem;
}

.site-logo {
    max-height: 70px;
    max-width: 200px;
    height: auto;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.02);
}

.site-subtitle {
    color: #5a67d8;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0;
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(90, 103, 216, 0.08), rgba(139, 92, 246, 0.08));
    border-radius: 20px;
    border: 1px solid rgba(90, 103, 216, 0.15);
    display: inline-block;
    letter-spacing: 0.3px;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(90, 103, 216, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 输入框组 */
.input-flex {
    display: flex !important;
    margin-bottom: 20px !important;
    max-width: 450px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.input-flex input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-right: none;
    font-size: 14px;
    outline: none;
    background: #fff;
    color: #333;
    border-radius: 0;
}

.input-flex input::placeholder {
    color: #999;
    font-size: 14px;
}

.input-flex input:focus {
    border-color: #007bff;
}

.input-flex button {
    padding: 12px 24px;
    background: #ff5757;
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.input-flex button:hover {
    background: #ff4444;
}

/* 查询按钮 */
.query-button {
    width: 180px;
    border-radius: 20px;
    background: #17a2b8;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.2);
}

.query-button:hover {
    background: #138496;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(23, 162, 184, 0.3);
}

/* 结果区域 */
.result-area {
    margin-top: 20px;
    min-height: 0;
    transition: all 0.3s ease;
}

/* 兑换结果样式 */
.exchange-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.exchange-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.exchange-success {
    padding: 20px;
    margin-top: 15px;
    border-radius: 10px;
    background: #d4edda;
    color: #155724;
}

.exchange-error {
    padding: 15px;
    margin-top: 15px;
    border-radius: 10px;
    background: #f8d7da;
    color: #721c24;
}

.exchange-success h4 {
    margin: 0 0 15px 0;
    color: #dc3545;
    text-align: center;
    font-size: 1.1rem;
}

/* 兑换成功标题区域垂直居中修复 */
.exchange-success-header {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 16px 16px;
    text-align: center;
    position: relative;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exchange-success-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* 查询结果标题区域垂直居中修复 */
.query-success-header {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: white;
    padding: 16px 16px;
    text-align: center;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.query-success-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.exchange-success p {
    margin: 8px 0;
    text-align: center;
}

.exchange-success h5 {
    margin: 0 0 15px 0;
    color: #dc3545;
    text-align: center;
}

.content-item {
    margin: 12px 0;
    padding: 12px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
}

.content-item h6 {
    margin: 0 0 8px 0;
    color: #856404;
    font-size: 0.95rem;
}

.content-item p {
    margin: 4px 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.download-link {
    display: inline-block;
    margin: 8px 0;
    padding: 8px 16px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-link:hover {
    background: linear-gradient(45deg, #0056b3, #007bff);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.download-link:active {
    transform: translateY(0);
}

.content-detail {
    background: #fffbf0;
    padding: 15px;
    border-radius: 6px;
    margin: 10px 0;
    text-align: left;
    line-height: 1.8;
    border: 1px solid #f1c40f;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.content-description {
    margin: 10px 0;
    padding: 10px;
    background: rgba(255,255,255,0.7);
    border-radius: 5px;
    font-style: italic;
    color: #666;
}

/* 推广模块样式 */
.promotion-module {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.promotion-title {
    color: #dc3545;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}

.promotion-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: nowrap;
}

.promotion-btn {
    background: #6f42c1;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 60px;
    text-align: center;
    display: inline-block;
}

.promotion-btn:hover {
    background: #5a32a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(111, 66, 193, 0.3);
    color: white;
    text-decoration: none;
}

.promotion-contact {
    color: #dc3545;
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
}

.promotion-contact-value {
    color: #dc3545;
    font-weight: bold;
}

/* 说明区域 */
.note {
    margin-top: 25px;
    padding: 16px 18px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    border: 1px solid #e9ecef;
    position: relative;
}

.note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #6c63ff;
}

.note strong {
    color: #495057;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 4px;
    line-height: 1.4;
}

.note strong::before {
    content: '📄';
    margin-right: 6px;
    font-size: 14px;
    opacity: 0.8;
    vertical-align: middle;
}

/* 加载状态 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

/* 动画定义 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 - 移动端 */
@media (max-width: 768px) {
    body {
        padding: 15px 10px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .container {
        padding: 25px 20px;
        margin: 0;
        border-radius: 16px;
    }
    
    .input-flex {
        flex-direction: column;
        gap: 10px;
        max-width: 100%;
    }
    
    .input-flex input {
        width: 100%;
        border-radius: 8px;
        padding: 12px 16px;
        box-sizing: border-box;
        border: 1px solid #e0e0e0;
        font-size: 14px;
    }

    .input-flex button {
        width: 100%;
        border-radius: 8px;
        padding: 12px;
        box-sizing: border-box;
        font-size: 14px;
        background: #ff5757;
    }
    
    .query-button {
        width: 100%;
        border-radius: 12px;
    }
    
    .site-logo {
        max-height: 55px;
        max-width: 160px;
    }
    
    .site-subtitle {
        font-size: 0.85rem;
        padding: 6px 14px;
        margin: 0 10px;
    }
    
    .note {
        padding: 14px 12px;
        font-size: 13px;
        margin-top: 20px;
        text-align: justify;
        line-height: 1.7;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }
    
    .input-flex input,
    .input-flex button {
        padding: 14px;
        font-size: 15px;
    }
}

/* 滚动提示样式 */
.scroll-hint {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #ff6b6b, #ff8e53, #ff6b6b);
    background-size: 200% 200%;
    color: white;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    z-index: 1001;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
    min-width: 180px;
    white-space: nowrap;
    max-width: 85vw;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.scroll-hint.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.scroll-hint::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53, #4ecdc4, #45b7d1);
    background-size: 400% 400%;
    border-radius: 27px;
    z-index: -1;
    animation: gradientShift 3s ease infinite;
}

.scroll-hint::after {
    content: '↓';
    margin-left: 8px;
    font-size: 16px;
    animation: bounce 1.5s infinite;
    display: inline-block;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
    }
    50% {
        box-shadow: 0 6px 30px rgba(255, 107, 107, 0.6);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* 查询弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

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

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
}

.close:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.modal-body {
    padding: 25px !important;
    text-align: center !important;
}

.modal-body p {
    margin-bottom: 15px;
    color: #333;
    font-size: 1rem;
}

.modal-body input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

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

.modal-buttons {
    display: flex !important;
    gap: 10px !important;
    justify-content: center !important;
    align-items: center !important;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* 响应式设计 */
@media (max-width: 576px) {
    .modal-content {
        margin: 5% auto;
        width: 95%;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-buttons {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .scroll-hint {
        bottom: 90px;
        font-size: 12px;
        padding: 8px 20px;
        min-width: 200px;
        white-space: nowrap;
        max-width: 90vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* 移动端推广按钮优化 */
    .promotion-buttons {
        gap: 6px;
        padding: 0 5px;
    }

    .promotion-btn {
        font-size: 12px;
        padding: 6px 8px;
        max-width: 100px;
    }
    
    .content-detail {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .content-description {
        padding: 8px;
        font-size: 0.85rem;
    }
}

/* 底部信息样式 */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
    text-align: center;
    z-index: 1000;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
}

.copyright,
.icp-info {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    line-height: 1.4;
}

.icp-info a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.icp-info a:hover {
    color: #fff;
    text-decoration: underline;
}

/* 响应式底部信息 */
@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    .copyright::after {
        content: '|';
        margin-left: 20px;
        opacity: 0.6;
    }
}

/* 悬浮联系客服容器 */
.floating-contact-container {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
}

/* PC端悬停卡片 */
.contact-hover-card {
    background: white;
    border-radius: 12px 0 0 12px;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15);
    margin-right: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    min-width: 280px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.floating-contact-container:hover .contact-hover-card {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.contact-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px 0 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-card-header i {
    font-size: 16px;
    min-width: 16px;
}

.contact-card-header span {
    line-height: 1.2;
}

.contact-card-body {
    padding: 8px 0;
}

.contact-card-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    gap: 10px;
    font-size: 13px;
}

.contact-card-item:hover {
    background-color: #f8fafc;
}

.contact-card-item i {
    color: #667eea;
    width: 16px;
    text-align: center;
    font-size: 14px;
}

.contact-card-item span {
    color: #2d3748;
    font-weight: 500;
    flex: 1;
}

/* 复制图标样式 */
.copy-icon {
    color: #6c757d !important;
    opacity: 0.6;
    font-size: 12px !important;
    margin-left: auto;
    transition: all 0.2s ease;
    pointer-events: none;
}

.copyable-item:hover .copy-icon {
    opacity: 1;
    color: #007bff !important;
    transform: scale(1.1);
}

/* 复制成功动画效果 - 已禁用，保持简洁 */
/*
.copy-success {
    background-color: rgba(40, 167, 69, 0.1) !important;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.copy-success .copy-icon {
    color: #28a745 !important;
    opacity: 1;
    transform: scale(1.2);
}
*/

/* 可复制项的提示样式 */
.copyable-item {
    position: relative;
    transition: all 0.2s ease;
}

.copyable-item:hover {
    background-color: rgba(0, 123, 255, 0.05) !important;
}

/* 悬浮按钮 */
.floating-contact-btn {
    position: relative;
    width: 60px;
    height: 60px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    user-select: none;
}

.floating-contact-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.floating-contact-btn i {
    font-size: 24px;
    color: white;
}

/* 联系客服弹窗 */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-modal.show {
    opacity: 1;
}

.contact-modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

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

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

.contact-modal-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-modal-header h4 i {
    font-size: 1.1rem;
    min-width: 18px;
}

.contact-modal-header h4 span {
    line-height: 1.2;
}

.contact-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.contact-close:hover {
    opacity: 1;
}

.contact-modal-body {
    padding: 0;
    max-height: 60vh;
    overflow-y: auto;
}

.contact-modal-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 12px;
}

.contact-modal-item:hover {
    background-color: #f8fafc;
}

.contact-modal-item:last-child {
    border-bottom: none;
}

.contact-modal-item i {
    font-size: 18px;
    color: #667eea;
    min-width: 20px;
    text-align: center;
}

.contact-modal-item span {
    flex: 1;
    font-size: 14px;
    color: #2d3748;
    font-weight: 500;
    word-break: break-all;
}

/* 复制成功提示 */
.copy-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-toast.show {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 移动端：隐藏悬停卡片，调整按钮位置 */
    .floating-contact-container {
        right: 20px;
        bottom: 120px;
        top: auto;
        transform: none;
    }

    .contact-hover-card {
        display: none;
    }

    .floating-contact-btn {
        width: 50px;
        height: 50px;
    }

    .floating-contact-btn i {
        font-size: 18px;
    }

    .contact-modal-content {
        width: 95%;
        margin: 20px;
    }

    .contact-modal-header {
        padding: 16px;
    }

    .contact-modal-header h4 {
        font-size: 1.1rem;
    }

    .contact-modal-item {
        padding: 14px 16px;
    }
}

@media (max-width: 480px) {
    .floating-contact-container {
        right: 15px;
        bottom: 100px;
    }

    .floating-contact-btn {
        width: 46px;
        height: 46px;
    }

    .floating-contact-btn i {
        font-size: 16px;
    }

    .contact-modal-content {
        width: 98%;
        margin: 10px;
    }
}

/* 确保按钮不被底部内容遮挡 */
@media (max-width: 768px) {
    body {
        padding-bottom: 120px;
    }

    .site-footer {
        margin-bottom: 0;
        height: auto;
        min-height: 60px;
    }

    /* 确保主容器有足够的底部间距 */
    .user-page {
        padding-bottom: 120px !important;
    }

    .exchange-container {
        margin-bottom: 20px !important;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .floating-contact-container {
        right: 12px;
        bottom: 90px;
    }

    .floating-contact-btn {
        width: 44px;
        height: 44px;
    }

    .floating-contact-btn i {
        font-size: 15px;
    }
}

/* PC端特定样式 */
@media (min-width: 769px) {
    /* PC端：显示悬停卡片效果 */
    .floating-contact-container {
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .contact-hover-card {
        display: block;
    }

    /* 添加进入动画延迟，让用户有时间看到卡片 */
    .floating-contact-container:hover .contact-hover-card {
        transition-delay: 0.2s;
    }

    .floating-contact-container:not(:hover) .contact-hover-card {
        transition-delay: 0s;
    }
}

/* 强制保持容器宽度一致性 */
.container,
div.container {
    max-width: 720px !important;
    width: 100% !important;
    padding: 35px 30px !important;
}

.input-flex,
div.input-flex {
    max-width: 600px !important;
    width: auto !important;
}

/* 强制弹窗按钮居中显示 */
.modal-buttons,
div.modal-buttons,
.alert-modal-footer,
div.alert-modal-footer {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

/* PC端弹窗按钮布局 */
@media (min-width: 577px) {
    .modal-buttons,
    .alert-modal-footer {
        flex-direction: row !important;
        gap: 10px !important;
    }
}

/* ===== 警告弹窗样式 ===== */

/* 弹窗遮罩层 */
.alert-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 弹窗内容容器 */
.alert-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

/* 弹窗头部 */
.alert-modal-header {
    padding: 25px 20px 15px 20px;
    border-radius: 15px 15px 0 0;
    position: relative;
}

/* 成功样式 */
.alert-modal-header.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

/* 错误样式 */
.alert-modal-header.error {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    color: white;
}

/* 警告样式 */
.alert-modal-header.warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
}

/* 信息样式 */
.alert-modal-header.info {
    background: linear-gradient(135deg, #17a2b8 0%, #007bff 100%);
    color: white;
}

/* 图标样式 */
.alert-modal-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

/* 标题样式 */
.alert-modal-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

/* X关闭按钮样式 */
.alert-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

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

/* 弹窗主体 */
.alert-modal-body {
    padding: 20px 25px;
    color: #333;
    line-height: 1.6;
}

.alert-modal-message {
    font-size: 1rem;
    margin: 0;
    word-wrap: break-word;
}

/* 确认按钮 */
.alert-modal-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    min-width: 100px;
}

.alert-modal-btn:hover {
    background: linear-gradient(45deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.alert-modal-btn:active {
    transform: translateY(0);
}

.alert-modal-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
}

/* 错误按钮样式 */
.alert-modal-btn.error {
    background: linear-gradient(45deg, #dc3545, #e74c3c);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.alert-modal-btn.error:hover {
    background: linear-gradient(45deg, #e74c3c, #dc3545);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* 成功按钮样式 */
.alert-modal-btn.success {
    background: linear-gradient(45deg, #28a745, #20c997);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.alert-modal-btn.success:hover {
    background: linear-gradient(45deg, #20c997, #28a745);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* 警告按钮样式 */
.alert-modal-btn.warning {
    background: linear-gradient(45deg, #ffc107, #fd7e14);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.alert-modal-btn.warning:hover {
    background: linear-gradient(45deg, #fd7e14, #ffc107);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

/* 取消按钮样式 */
.alert-modal-btn-cancel {
    background: linear-gradient(45deg, #6c757d, #495057) !important;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3) !important;
}

.alert-modal-btn-cancel:hover {
    background: linear-gradient(45deg, #495057, #6c757d) !important;
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4) !important;
}

/* 关闭动画 */
.alert-modal-closing {
    animation: fadeOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.alert-modal-closing .alert-modal-content {
    animation: slideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
}
