/* ==========================================================================
   首页专用样式文件
   ========================================================================== */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==========================================================================
   导航栏样式
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo .logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-logo .logo-link:hover {
    transform: scale(1.05);
}

.nav-logo-img {
    width: 45px;
    height: 45px;
    transition: transform 0.3s ease;
    border-radius: 50%;
    object-fit: cover;
}

.nav-logo .logo-link:hover .nav-logo-img {
    transform: rotate(360deg);
}

.logo-text {
    background: linear-gradient(45deg, #667eea, #764ba2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: #666;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.nav-link:hover {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.nav-link.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* 移除移动端菜单按钮，直接显示导航链接 */

/* ==========================================================================
   主要内容区
   ========================================================================== */

.main-content {
    padding-top: 70px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   页面头部
   ========================================================================== */

.page-header {
    text-align: center;
    padding: 60px 0 80px;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.main-logo {
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.header-logo-img {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 8px 25px rgba(102, 126, 234, 0.3));
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    object-fit: cover;
}

.header-logo-img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 12px 35px rgba(102, 126, 234, 0.4));
}

.header-text {
    max-width: 600px;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    color: #666;
    margin-bottom: 25px;
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.decoration-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

.decoration-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 1px;
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ==========================================================================
   区块样式
   ========================================================================== */

.section {
    margin-bottom: 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 2.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.section-icon {
    color: #667eea;
    font-size: 2rem;
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    font-weight: 300;
}

/* ==========================================================================
   卡片网格
   ========================================================================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

/* ==========================================================================
   资源卡片样式
   ========================================================================== */

.resource-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.resource-card:hover::before {
    left: 100%;
}

.resource-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 20px 20px 0 0;
}

.lanzou-card .card-background {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.cloud123-card .card-background {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.cloud123-card .card-icon {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
}

.card-badge {
    padding: 6px 12px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.cloud123-card .card-badge {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
}

.card-content {
    margin-bottom: 25px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.card-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-features {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.cloud123-card .feature-tag {
    background: rgba(78, 205, 196, 0.1);
    color: #4ecdc4;
}

.card-footer {
    text-align: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cloud123-card .download-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.download-btn .btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.download-btn:hover .btn-ripple {
    width: 300px;
    height: 300px;
}

/* ==========================================================================
   社交卡片样式
   ========================================================================== */

.social-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
}

.social-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.social-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    border-radius: 20px 20px 0 0;
}

.bilibili-card .social-background {
    background: linear-gradient(45deg, #00A1D6, #FF6699);
}

.youtube-card .social-background {
    background: linear-gradient(45deg, #FF0000, #FF4500);
}

.social-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.bilibili-icon {
    background: linear-gradient(45deg, #00A1D6, #FF6699);
}

.youtube-icon {
    background: linear-gradient(45deg, #FF0000, #FF4500);
}

.social-platform {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.social-content {
    margin-bottom: 25px;
}

.social-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.social-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    font-size: 0.9rem;
}

.youtube-card .stat-item {
    color: #FF0000;
}

.social-footer {
    text-align: center;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bilibili-btn {
    background: linear-gradient(45deg, #00A1D6, #FF6699);
}

.youtube-btn {
    background: linear-gradient(45deg, #FF0000, #FF4500);
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 161, 214, 0.4);
}

.youtube-btn:hover {
    box-shadow: 0 15px 35px rgba(255, 0, 0, 0.4);
}

.social-btn .btn-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.social-btn:hover .btn-wave {
    width: 300px;
    height: 300px;
}

/* ==========================================================================
   底部信息
   ========================================================================== */

.page-footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-info {
    text-align: center;
}

.footer-text {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #764ba2;
}

.footer-legal {
    color: #999;
    font-size: 0.8rem;
    line-height: 1.5;
}

.copyright {
    margin-bottom: 8px;
}

.legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.legal-link {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: #667eea;
}

.site-info {
    margin: 0;
    font-size: 0.75rem;
}

.footer-divider {
    color: #ccc;
}

/* ==========================================================================
   返回顶部按钮
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.back-to-top:hover .btn-glow {
    opacity: 1;
}

/* ==========================================================================
   响应式设计
   ========================================================================== */

@media (max-width: 968px) {
    .nav-links {
        gap: 20px;
    }
    
    .nav-link {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        gap: 15px;
    }
    
    .nav-link {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .nav-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .main-content {
        padding-top: 60px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .page-header {
        padding: 40px 0 60px;
    }
    
    .header-logo-svg {
        width: 100px;
        height: 100px;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .resource-card,
    .social-card {
        padding: 25px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .nav-links {
        gap: 10px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .nav-logo-img {
        width: 35px;
        height: 35px;
    }
    
    .resource-card,
    .social-card {
        padding: 20px;
    }
    
    .card-title,
    .social-title {
        font-size: 1.2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-legal {
        font-size: 0.7rem;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 5px;
    }
    
    .footer-divider {
        display: none;
    }
}

/* ==========================================================================
   加载动画
   ========================================================================== */

.main-content {
    animation: pageLoad 0.8s ease-out;
}

@keyframes pageLoad {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   自定义滚动条
   ========================================================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
} 