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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.nav-logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #667eea;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 首页横幅样式 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.6);
}

.cta-button i {
    margin-right: 10px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff" fill-opacity="0.1" points="0,1000 1000,0 1000,1000"/></svg>');
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* 下载区域样式 */
.downloads-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.downloads-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.section-description {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.download-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #e9ecef;
}

.download-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.download-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.download-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.file-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
}

.file-info span {
    display: flex;
    align-items: center;
    color: #666;
}

.file-info i {
    margin-right: 5px;
    color: #667eea;
}

.download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

.download-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.download-btn.small-btn {
    padding: 8px 16px;
    font-size: 14px;
    flex: 1;
    min-width: 120px;
}

.download-btn.alt-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.download-btn.alt-btn:hover {
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.file-size-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0;
    font-size: 14px;
    color: #856404;
}

.file-size-warning i {
    margin-right: 5px;
}

/* 关于我们样式 */
.about-section {
    padding: 100px 0;
    background: white;
}

.about-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature i {
    font-size: 2.5rem;
    color: #667eea;
    margin-top: 5px;
}

.feature h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.feature p {
    color: #666;
    line-height: 1.6;
}

/* 文件管理区域样式 */
.file-manager-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.upload-area {
    margin-bottom: 50px;
}

.upload-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 2px dashed #e9ecef;
    transition: all 0.3s ease;
}

.upload-card:hover {
    border-color: #667eea;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.upload-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2.5rem;
}

.upload-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #333;
}

.upload-card p {
    color: #666;
    margin-bottom: 30px;
}

.upload-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.upload-single, .upload-multiple {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.upload-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.upload-btn.alt-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.upload-btn.alt-btn:hover {
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.upload-progress {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 5px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 14px;
    color: #666;
    text-align: center;
    display: block;
}

/* 文件列表区域样式 */
.file-list-area {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.file-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.file-list-header h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.file-list-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e9ecef;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.action-btn:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.action-btn.alt-btn {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.action-btn.alt-btn:hover {
    background: #5a6fd8;
}

.action-btn.delete-btn {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.action-btn.delete-btn:hover {
    background: #c82333;
}

.file-list {
    min-height: 200px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.file-item:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.file-item.selected {
    background: #e3f2fd;
    border-color: #2196f3;
}

.file-checkbox {
    margin-right: 15px;
}

.file-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 15px;
}

.file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.file-details {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #666;
}

.file-actions {
    display: flex;
    gap: 10px;
}

.file-action-btn {
    background: transparent;
    border: 1px solid #e9ecef;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.file-action-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.file-action-btn.download-btn {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.file-action-btn.download-btn:hover {
    background: #218838;
}

.file-action-btn.delete-btn {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.file-action-btn.delete-btn:hover {
    background: #c82333;
}

.loading-files {
    text-align: center;
    padding: 50px;
    color: #666;
}

.loading-files i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.empty-files {
    text-align: center;
    padding: 50px;
    color: #666;
}

.empty-files i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    color: #e9ecef;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .upload-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .file-list-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .file-list-actions {
        justify-content: center;
    }
    
    .file-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .file-actions {
        justify-content: center;
    }
}

/* 页脚样式 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #667eea;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .file-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 保护提示消息样式 */
.protection-message {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.protection-message div {
    animation: fadeOut 0.5s ease-in 2.5s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* 彩虹动画样式 */
@keyframes rainbow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* HOS系统文件彩虹渐变色高级边框 */
.download-card.hos-gold-border {
    position: relative;
    border: none;
    border-radius: 20px;
    background: white;
    animation: rainbowGlowHover 3s ease-in-out infinite alternate;
    box-shadow: 0 0 45px rgba(76, 217, 100, 0.8);
    transform: scale(1.02);
    z-index: 10;
}

/* HOS系统文件云盘下载按钮居中拉长样式 */
.download-card.hos-gold-border .download-options {
    display: flex;
    justify-content: center;
    width: 100%;
}

.download-card.hos-gold-border .download-btn.alt-btn {
    width: 100%;
    max-width: 300px;
    padding: 15px 30px;
    font-size: 18px;
    justify-content: center;
    margin: 0 auto;
}

@keyframes rainbowGlow {
    0% {
        box-shadow: 0 0 25px rgba(255, 107, 107, 0.4);
        border-image: linear-gradient(45deg, #ff6b6b, #ffa726, #ffee58, #4cd964, #5ac8fa, #007aff, #5856d6) 1;
    }
    25% {
        box-shadow: 0 0 35px rgba(255, 167, 38, 0.5);
        border-image: linear-gradient(45deg, #ffa726, #ffee58, #4cd964, #5ac8fa, #007aff, #5856d6, #ff6b6b) 1;
    }
    50% {
        box-shadow: 0 0 45px rgba(76, 217, 100, 0.6);
        border-image: linear-gradient(45deg, #ffee58, #4cd964, #5ac8fa, #007aff, #5856d6, #ff6b6b, #ffa726) 1;
    }
    75% {
        box-shadow: 0 0 35px rgba(90, 200, 250, 0.5);
        border-image: linear-gradient(45deg, #4cd964, #5ac8fa, #007aff, #5856d6, #ff6b6b, #ffa726, #ffee58) 1;
    }
    100% {
        box-shadow: 0 0 25px rgba(88, 86, 214, 0.4);
        border-image: linear-gradient(45deg, #5ac8fa, #007aff, #5856d6, #ff6b6b, #ffa726, #ffee58, #4cd964) 1;
    }
}

.download-card.hos-gold-border::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #ff6b6b, #ffa726, #ffee58, #4cd964, #5ac8fa, #007aff, #5856d6);
    border-radius: 22px;
    z-index: -1;
    animation: rainbowBorderPulse 5s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes rainbowBorderPulse {
    0% {
        opacity: 0.7;
        background: linear-gradient(45deg, #ff6b6b, #ffa726, #ffee58, #4cd964, #5ac8fa, #007aff, #5856d6);
        filter: blur(6px);
    }
    25% {
        opacity: 0.8;
        background: linear-gradient(45deg, #ffa726, #ffee58, #4cd964, #5ac8fa, #007aff, #5856d6, #ff6b6b);
        filter: blur(7px);
    }
    50% {
        opacity: 0.9;
        background: linear-gradient(45deg, #ffee58, #4cd964, #5ac8fa, #007aff, #5856d6, #ff6b6b, #ffa726);
        filter: blur(8px);
    }
    75% {
        opacity: 0.8;
        background: linear-gradient(45deg, #4cd964, #5ac8fa, #007aff, #5856d6, #ff6b6b, #ffa726, #ffee58);
        filter: blur(7px);
    }
    100% {
        opacity: 0.7;
        background: linear-gradient(45deg, #5ac8fa, #007aff, #5856d6, #ff6b6b, #ffa726, #ffee58, #4cd964);
        filter: blur(6px);
    }
}

.download-card.hos-gold-border .card-icon {
    animation: rainbowIconGlow 3s ease-in-out infinite alternate;
    box-shadow: 0 0 18px rgba(255, 107, 107, 0.6);
    background: linear-gradient(135deg, #ff6b6b, #ffa726, #ffee58, #4cd964, #5ac8fa, #007aff, #5856d6) !important;
}

@keyframes rainbowIconGlow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 18px rgba(255, 107, 107, 0.6);
        background: linear-gradient(135deg, #ff6b6b, #ffa726, #ffee58, #4cd964, #5ac8fa, #007aff, #5856d6) !important;
    }
    20% {
        transform: scale(1.015);
        box-shadow: 0 0 22px rgba(255, 167, 38, 0.65);
        background: linear-gradient(135deg, #ffa726, #ffee58, #4cd964, #5ac8fa, #007aff, #5856d6, #ff6b6b) !important;
    }
    40% {
        transform: scale(1.025);
        box-shadow: 0 0 26px rgba(255, 238, 88, 0.7);
        background: linear-gradient(135deg, #ffee58, #4cd964, #5ac8fa, #007aff, #5856d6, #ff6b6b, #ffa726) !important;
    }
    60% {
        transform: scale(1.035);
        box-shadow: 0 0 28px rgba(76, 217, 100, 0.75);
        background: linear-gradient(135deg, #4cd964, #5ac8fa, #007aff, #5856d6, #ff6b6b, #ffa726, #ffee58) !important;
    }
    80% {
        transform: scale(1.025);
        box-shadow: 0 0 26px rgba(90, 200, 250, 0.7);
        background: linear-gradient(135deg, #5ac8fa, #007aff, #5856d6, #ff6b6b, #ffa726, #ffee58, #4cd964) !important;
    }
    100% {
        transform: scale(1.015);
        box-shadow: 0 0 22px rgba(88, 86, 214, 0.65);
        background: linear-gradient(135deg, #5856d6, #ff6b6b, #ffa726, #ffee58, #4cd964, #5ac8fa, #007aff) !important;
    }
}

.download-card.hos-gold-border:hover {
    animation: rainbowGlowHover 2.5s ease-in-out infinite alternate;
}

@keyframes rainbowGlowHover {
    0% {
        box-shadow: 0 0 30px rgba(255, 107, 107, 0.65);
    }
    20% {
        box-shadow: 0 0 35px rgba(255, 167, 38, 0.7);
    }
    40% {
        box-shadow: 0 0 40px rgba(255, 238, 88, 0.75);
    }
    60% {
        box-shadow: 0 0 45px rgba(76, 217, 100, 0.8);
    }
    80% {
        box-shadow: 0 0 40px rgba(90, 200, 250, 0.75);
    }
    100% {
        box-shadow: 0 0 35px rgba(88, 86, 214, 0.7);
    }
}