/* 移动端导航页样式 */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 10px 0;
    position: relative;
    overflow-x: hidden;
}

/* SVG背景动画 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        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%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10zm10 0c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: 60px 60px, 40px 40px;
    background-position: 0 0, 30px 30px;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

/* 浮动动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.2;
    }
}

/* 添加更多动画元素 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpolygon points='40,0 80,40 40,80 0,40'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: 80px 80px;
    background-position: 40px 40px;
    animation: rotate 30s linear infinite;
    pointer-events: none;
    z-index: -1;
}

/* 旋转动画 */
@keyframes rotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* 容器 */
.container {
    max-width: 400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 第一部分：Logo */
.logo-section {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px 0;
}

.main-logo {
    max-width: 180px;
    max-height: 180px;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

/* 通用卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* 第二部分：公告 */
.announcement-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.announcement-text {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    color: #2c3e50;
    line-height: 1.4;
}

.copyable-domain {
    color: #e74c3c;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
    margin-left: 5px;
}

.copyable-domain:hover {
    color: #c0392b;
}

/* 第三部分：通知 */
.notice-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.notice-text {
    font-size: 13px;
    text-align: center;
    color: #7f8c8d;
}

/* 第四、五、六、七部分：福利专员和下载 */
.welfare-section,
.download-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.welfare-section:hover,
.download-section:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.welfare-item,
.download-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.small-logo {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    flex-shrink: 0;
}

.welfare-content,
.download-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welfare-left,
.download-left {
    flex: 1;
}

.welfare-title,
.download-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 3px;
}

.welfare-id {
    font-size: 13px;
    color: #3498db;
    font-weight: bold;
}

.welfare-action,
.download-action {
    font-size: 12px;
    color: #27ae60;
    cursor: pointer;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(39, 174, 96, 0.1);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.welfare-action:hover,
.download-action:hover {
    background: rgba(39, 174, 96, 0.2);
    color: #229954;
}

.download-url {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 2px;
}

/* 注意事项 */
.notice-footer {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.footer-text {
    font-size: 11px;
    color: #7f8c8d;
}

.server-code {
    font-size: 16px;
    font-weight: bold;
    color: #e74c3c;
    margin: 0 3px;
}

.view-link {
    color: #3498db;
    cursor: pointer;
    text-decoration: underline;
    margin-left: 5px;
    transition: color 0.3s ease;
}

.view-link:hover {
    color: #2980b9;
}

/* 悬浮客服按钮 */
.floating-service {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(238, 90, 36, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-service:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(238, 90, 36, 0.6);
}

.service-icon {
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* 弹窗样式 */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.dialog-overlay.show {
    display: flex;
}

.dialog-content {
    background: white;
    border-radius: 16px;
    max-width: 90%;
    max-height: 80%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: dialogSlideIn 0.3s ease;
}

@keyframes dialogSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.dialog-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.dialog-close {
    font-size: 24px;
    cursor: pointer;
    color: #95a5a6;
    transition: color 0.3s ease;
}

.dialog-close:hover {
    color: #e74c3c;
}

.dialog-body {
    padding: 20px;
    text-align: center;
}

.server-code-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

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

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

/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .main-logo {
        width: 200px;
        height: 200px;
    }
    
    .floating-service {
        width: 50px;
        height: 50px;
        right: 15px;
    }
    
    .service-icon {
        font-size: 12px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 500px;
    }
    
    .main-logo {
        width: 140px;
        height: 140px;
    }
    
    .announcement-text {
        font-size: 20px;
    }
    
    .welfare-title,
    .download-title {
        font-size: 18px;
    }
}

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

.container > section {
    animation: fadeInUp 0.6s ease forwards;
}

.container > section:nth-child(1) { animation-delay: 0.1s; }
.container > section:nth-child(2) { animation-delay: 0.2s; }
.container > section:nth-child(3) { animation-delay: 0.3s; }
.container > section:nth-child(4) { animation-delay: 0.4s; }
.container > section:nth-child(5) { animation-delay: 0.5s; }
.container > section:nth-child(6) { animation-delay: 0.6s; }
.container > section:nth-child(7) { animation-delay: 0.7s; }
.container > section:nth-child(8) { animation-delay: 0.8s; }

