/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-download {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.5);
}

/* 捕鱼背景主页面 */
.fishing-background {
    background: url('images/图片修改_副本.png') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
    min-height: 100vh;
}

/* 游戏标题 */
.game-title {
    text-align: center;
    margin-bottom: 50px;
    z-index: 2;
    animation: fadeInDown 1s ease-out;
}

.game-title h1 {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #ffd700;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}

.game-title p {
    font-size: 24px;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    opacity: 0.9;
}

/* 下载按钮区域 */
.download-section {
    z-index: 2;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* 联系方式滑块 */
.contact-slider {
    position: fixed;
    top: 50%;
    right: -230px;
    transform: translateY(-50%);
    width: 250px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px 0 0 20px;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    backdrop-filter: blur(15px);
}

.contact-slider.open {
    right: 0;
}

/* 滑块切换按钮 */
.slider-toggle {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 20px 6px;
    border-radius: 12px 0 0 12px;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: 700;
    box-shadow: -3px 0 12px rgba(255, 107, 107, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.95;
    font-size: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.slider-toggle:hover {
    background: linear-gradient(45deg, #ee5a24, #ff6b6b);
    left: -30px;
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
    box-shadow: -5px 0 18px rgba(255, 107, 107, 0.5);
    border-color: rgba(255, 255, 255, 0.6);
}

/* 滑块内容 */
.slider-content {
    padding: 35px 25px;
}

.slider-content h3 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 20px;
    text-align: center;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 10px;
}

.slider-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border-radius: 2px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.contact-item:hover {
    transform: translateY(-3px) translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: rgba(255, 107, 107, 0.3);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* 不同联系方法的渐变颜色 */
.contact-email .contact-icon {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.contact-chat .contact-icon {
    background: linear-gradient(45deg, #4ecdc4, #45b7aa);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.contact-wechat .contact-icon {
    background: linear-gradient(45deg, #4caf50, #45a049);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.contact-qq .contact-icon {
    background: linear-gradient(45deg, #1890ff, #096dd9);
    box-shadow: 0 4px 15px rgba(24, 144, 255, 0.3);
}

.contact-weibo .contact-icon {
    background: linear-gradient(45deg, #ff4d4f, #cf1322);
    box-shadow: 0 4px 15px rgba(255, 77, 79, 0.3);
}

.contact-qrcode .contact-icon {
    background: linear-gradient(45deg, #faad14, #d48806);
    box-shadow: 0 4px 15px rgba(250, 173, 20, 0.3);
}

/* 悬停时的阴影效果 */
.contact-item:hover .contact-email .contact-icon {
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.contact-item:hover .contact-chat .contact-icon {
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.contact-item:hover .contact-wechat .contact-icon {
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.contact-item:hover .contact-qq .contact-icon {
    box-shadow: 0 6px 20px rgba(24, 144, 255, 0.4);
}

.contact-item:hover .contact-weibo .contact-icon {
    box-shadow: 0 6px 20px rgba(255, 77, 79, 0.4);
}

.contact-item:hover .contact-qrcode .contact-icon {
    box-shadow: 0 6px 20px rgba(250, 173, 20, 0.4);
}

.contact-text h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #2d3436;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.contact-text h4::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.contact-item:hover .contact-text h4::before {
    transform: scaleX(1);
}

.contact-text p {
    margin: 8px 0 0;
    font-size: 15px;
    font-weight: 600;
    color: #2d3436;
    line-height: 1.5;
    word-break: break-all;
}

.btn-chat {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(45deg, #4ecdc4, #45b7aa);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-chat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
    background: linear-gradient(45deg, #45b7aa, #3ca89e);
}

/* 聊天窗口样式 */
.chat-window {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    height: 450px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.chat-window.open {
    transform: scale(1);
}

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

.chat-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.close-chat:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
}

.message {
    margin-bottom: 15px;
    max-width: 80%;
    animation: fadeIn 0.3s ease;
}

.message.user {
    margin-left: auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 18px 18px 0 18px;
    padding: 12px 16px;
}

.message.support {
    margin-right: auto;
    background: white;
    color: #333;
    border-radius: 18px 18px 18px 0;
    padding: 12px 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.chat-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #e9ecef;
}

.chat-input-area textarea {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    resize: none;
    min-height: 50px;
    transition: all 0.3s ease;
}

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

.chat-input-area button {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-input-area button:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #69438d 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* 聊天按钮 */
.chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.chat-button:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.95) 0%, rgba(238, 90, 36, 0.95) 100%);
    padding: 25px 0;
    position: relative;
    z-index: 2;
    margin-top: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.copyright {
    text-align: center;
    color: #fff;
    opacity: 0.9;
    font-size: 12px;
    line-height: 1.6;
}

.copyright p {
    margin: 5px 0;
}

.copyright p:last-child {
    font-size: 11px;
    opacity: 0.8;
    max-width: 800px;
    margin: 8px auto 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .game-title h1 {
        font-size: 36px;
    }
    
    .game-title p {
        font-size: 16px;
    }
    
    .btn-download {
        padding: 18px 50px;
        font-size: 18px;
    }
    
    .contact-slider {
        width: 280px;
        right: -280px;
    }
    
    .chat-window {
        width: 100%;
        height: 70vh;
        right: 0;
        bottom: 0;
        border-radius: 20px 20px 0 0;
    }
}