/* Custom CSS for WinRAR Download Site */

:root {
    --primary-red: #dc3545;
    --primary-blue: #0d6efd;
    --primary-green: #198754;
    --secondary-red: #e74c3c;
    --secondary-blue: #3498db;
    --secondary-green: #27ae60;
    --dark-bg: #2c3e50;
    --light-bg: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #34495e 100%) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.brand-logo {
    display: inline-block;
    height: 33px;
    width: auto;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-blue) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 50%, var(--primary-red) 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section .min-vh-100 {
    min-height: 70vh !important;
}

.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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-heading {
    letter-spacing: 0.5px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.hero-stats {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.stat-item h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.software-icon {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* Features Section */
.features-section {
    background: var(--light-bg);
    position: relative;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.feature-card h4 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 15px;
}

.feature-card p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Download Section */
.download-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-header {
    padding: 20px;
    text-align: center;
}

.card-body {
    padding: 30px;
}

.version-info {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Support Section */
.support-section {
    background: white;
}

.support-item {
    padding: 20px;
}

.support-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #34495e 100%) !important;
}

.footer h6 {
    color: var(--text-light);
    font-weight: 600;
}

.footer a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-blue);
}

.social-links a {
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-blue) !important;
}

.simple-pagination {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.simple-pagination a {
    padding: 8px 12px;
    color: #6c757d;
    text-decoration: none;
    background: transparent;
    border: none;
    box-shadow: none;
}

.simple-pagination a:hover {
    color: var(--primary-blue);
}

.simple-pagination .active {
    color: var(--primary-blue);
    font-weight: 700;
}

.simple-pagination .disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Language Switching */
.lang-zh, .lang-en {
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 60px 0 30px;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .software-icon {
        width: 150px;
        height: 150px;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .download-card {
        margin-bottom: 20px;
    }
    
    .footer .row > div {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .btn-primary, .btn-outline-light {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .hero-stats {
        padding: 15px;
    }
    
    .feature-card {
        padding: 25px 15px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-blue);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Card Hover Effects */
.card-hover-effect {
    transition: all 0.3s ease;
}

.card-hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Gradient Backgrounds */
.bg-gradient-red {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-red) 100%);
}

.bg-gradient-blue {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
}

.bg-gradient-green {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
}

/* Text Gradients */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Variations */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-blue) 50%, var(--primary-green) 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: white;
}

/* Section Spacing */
section {
    position: relative;
}

.py-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.py-7 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* Shadow Variations */
.shadow-soft {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08) !important;
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
}

/* Border Radius */
.border-radius-xl {
    border-radius: 1rem !important;
}

.border-radius-xxl {
    border-radius: 1.5rem !important;
}

/* Typography */
.display-5 {
    font-weight: 700;
}

.lead-lg {
    font-size: 1.25rem;
    font-weight: 400;
}

/* Icon Sizes */
.icon-xl {
    font-size: 3rem;
}

.icon-xxl {
    font-size: 4rem;
}

/* Background Patterns */
.bg-pattern {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><rect width="60" height="60" fill="none"/><path d="M0 30h60M30 0v60" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    background-size: 60px 60px;
}

/* Z-index */
.z-index-1 { z-index: 1; }
.z-index-2 { z-index: 2; }
.z-index-3 { z-index: 3; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-visible { overflow: visible; }

/* Position */
.position-relative { position: relative; }
.position-absolute { position: absolute; }

/* Utility Classes */
.transition-all {
    transition: all 0.3s ease;
}

.cursor-pointer {
    cursor: pointer;
}

.user-select-none {
    user-select: none;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
}

/* News card images */
.news-card .thumb {
    height: 160px;
}

.news-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


