/* ==========================================
   飞连VPN首页专属样式
   ========================================== */

/* 顶部导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.logo-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 20px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Hero区域样式 */
.hero-section {
    margin-top: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,133.3C672,139,768,181,864,181.3C960,181,1056,139,1152,128C1248,117,1344,139,1392,149.3L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInLeft 1s ease-out;
    text-align: left;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-align: left;
}

.hero-features {
    margin-bottom: 30px;
    text-align: left;
}

.hero-feature-item {
    font-size: 20px;
    opacity: 0.95;
    line-height: 1.6;
    text-align: left;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.stat-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #fff;
    color: #667eea;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero图片展示 */
.hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 1s ease-out;
}

.hero-main-img {
    width: 100%;
    max-width: 550px;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.3));
    animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 应用展示区域 */
.apps-section {
    padding: 100px 20px;
    background: #f8f9fa;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: #666;
    margin-top: -40px;
    margin-bottom: 50px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.app-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.app-card:hover {
    transform: translateY(-10px);
}

.app-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.app-card:hover .app-icon {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.app-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* 核心功能区域 */
.features-section {
    padding: 100px 20px;
    background: #fff;
}

.feature-block {
    margin-bottom: 100px;
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-block.reverse .feature-content {
    grid-template-columns: 1fr 400px;
}

.feature-block.reverse .feature-image {
    order: 2;
}

.feature-block.reverse .feature-text {
    order: 1;
    text-align: right;
}

/* 功能图片容器 */
.feature-image {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-img {
    width: 100%;
    height: auto;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    display: block;
}

.feature-block:hover .feature-img {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

/* 功能文字内容 */
.feature-text {
    padding: 20px 0;
}

.feature-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.3;
}

.feature-description {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    max-width: 600px;
}

/* 下载区域 */
.download-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.download-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.download-icon {
    margin-bottom: 20px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.download-desc {
    font-size: 14px;
    color: #999;
    margin-bottom: 25px;
}

.download-btn {
    display: inline-block;
    padding: 12px 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    /* Logo区域 */
    .logo {
        gap: 8px;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    /* Hero区域 */
    .hero-section {
        padding: 60px 20px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-feature-item {
        font-size: 16px;
    }
    
    .stat-item {
        font-size: 14px;
    }
    
    .hero-image {
        order: -1;
        margin-bottom: 20px;
    }
    
    .hero-main-img {
        max-width: 100%;
        width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 100%;
        text-align: center;
        padding: 14px 30px;
    }
    
    /* 应用展示 */
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* 功能区域 */
    .features-section {
        padding: 60px 20px;
    }
    
    .feature-block {
        margin-bottom: 60px;
    }
    
    .feature-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .feature-block.reverse .feature-content {
        grid-template-columns: 1fr;
    }
    
    .feature-block.reverse .feature-image {
        order: 0;
    }
    
    .feature-block.reverse .feature-text {
        text-align: center;
        order: 0;
    }
    
    .feature-image {
        max-width: 100%;
    }
    
    .feature-img {
        max-width: 100%;
        width: 100%;
    }
    
    .feature-title {
        font-size: 28px;
    }
    
    .feature-description {
        font-size: 16px;
        max-width: 100%;
    }
    
    /* 下载区域 */
    .download-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 平板适配 */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    /* Logo区域 */
    .logo-icon {
        width: 36px;
        height: 36px;
    }
    
    .logo-text {
        font-size: 19px;
    }
    
    /* Hero区域 */
    .hero-container {
        gap: 40px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-main-img {
        max-width: 400px;
    }
    
    /* 功能区域 */
    .feature-content {
        grid-template-columns: 300px 1fr;
        gap: 50px;
    }
    
    .feature-block.reverse .feature-content {
        grid-template-columns: 1fr 300px;
    }
    
    .feature-img {
        max-width: 300px;
    }
    
    .feature-title {
        font-size: 30px;
    }
    
    .feature-description {
        font-size: 16px;
    }
}

/* 超大屏幕优化 */
@media screen and (min-width: 1400px) {
    /* Hero区域 */
    .hero-container {
        gap: 80px;
    }
    
    .hero-main-img {
        max-width: 600px;
    }
    
    /* 功能区域 */
    .feature-content {
        grid-template-columns: 450px 1fr;
        gap: 100px;
    }
    
    .feature-block.reverse .feature-content {
        grid-template-columns: 1fr 450px;
    }
    
    .feature-img {
        max-width: 450px;
    }
}

/* 社交媒体链接 */
.social-links {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* 超小屏幕优化 */
@media screen and (max-width: 480px) {
    /* Logo区域 */
    .logo {
        gap: 6px;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    /* Hero区域 */
    .hero-section {
        padding: 40px 15px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-feature-item {
        font-size: 14px;
    }
    
    .stat-item {
        font-size: 13px;
        gap: 8px;
    }
    
    .hero-main-img {
        max-width: 100%;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    /* 社交媒体 */
    .social-links {
        gap: 15px;
        margin-top: 15px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
}

