/*
* Hutao Cloud - Global Network Service Styles
* Version: 1.0.0
* Author: Hutao Cloud Team
*/

/* ==========================================================================
   1. CSS Variables & Root Settings
   ========================================================================== */
   :root {
    /* Brand Colors */
    --primary-color: #1E40AF;
    --primary-darker: #1E3A8A;
    --primary-lighter: #3B82F6;
    
    /* Background Colors */
    --bg-gradient-start: #0F172A;
    --bg-gradient-end: #1E293B;
    --bg-light: #f8f9fa;
    
    /* Text Colors */
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-dark: #1E293B;
    
    /* Border Colors */
    --border-color: #e9ecef;
    
    /* Common Settings */
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   3. Navigation
   ========================================================================== */
.navbar {
    padding: 0.5rem 1rem;
    min-height: 70px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.98);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding-left: 1rem;
}

/* Logo Styles */
.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    padding: 0;
}

.navbar-brand.logo {
    display: flex;
    align-items: center;
    height: 70px;
    padding: 0.5rem 1rem;
}

.navbar-brand h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

/* Navigation Links */
.navbar-nav {
    margin-left: auto;
    padding-right: 2rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Desktop Nav Link Animation */
@media (min-width: 992px) {
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 1rem;
        right: 1rem;
        height: 2px;
        background-color: var(--primary-color);
        transform: scaleX(0);
        transition: var(--transition);
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        transform: scaleX(1);
    }
}

/* Navigation Button */
.nav-btn {
    margin-left: 1rem;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    background: var(--primary-color);
    color: white;
    transition: var(--transition);
    font-weight: 500;
}

.nav-btn:hover {
    background: var(--primary-darker);
    color: white;
    text-decoration: none;
}

/* ==========================================================================
   4. Hero Section
   ========================================================================== */
.hero-1 {
    padding: 160px 0 120px;
    position: relative;
    background: linear-gradient(
        135deg,
        var(--bg-gradient-start) 0%,
        var(--bg-gradient-end) 100%
    );
    overflow: hidden;
}

.hero-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Hero Text Elements */
.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    color: var(--primary-lighter);
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-title {
    color: var(--text-primary);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 1rem 0;
}

.text-highlight {
    display: block;
    color: var(--primary-lighter);
}

.hero-text {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    padding: 20px;
    margin-left: 2rem;
}

.hero-image {
    width: 80%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   5. Services Section
   ========================================================================== */
.section {
    padding: 100px 0;
    position: relative;
    background-color: #fff;
}

.section.bg-light {
    background-color: var(--bg-light);
}

/* Service Box Styles */
.service-box {
    background: #fff;
    border-radius: var(--border-radius);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
    padding: 2.5rem;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-box.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-darker));
    color: var(--text-primary);
    border: none;
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.service-box.active .service-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.service-box-content {
    text-align: center;
}

/* ==========================================================================
   6. Pricing Section
   ========================================================================== */
.pricing {
    background: #fff;
    border-radius: var(--border-radius);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.pricing:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Pricing Box Elements */
.pricing-title {
    padding: 1.5rem;
    background: var(--bg-light);
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.pricing-padding {
    padding: 2rem;
}

.pricing-price {
    text-align: center;
    padding: 2rem;
}

.pricing-price div:first-child {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.pricing-details {
    padding: 0 2rem;
}

.pricing-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.check-icon {
    color: var(--primary-color);
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Pricing CTA Button */
.pricing-cta {
    padding: 1.5rem;
    text-align: center;
    background: var(--bg-light);
    display: flex;
    justify-content: center;
}

.btn-subscribe {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-align: center;
    min-width: 180px;
    max-width: 80%;
}

.btn-subscribe:hover {
    background: var(--primary-darker);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: white;
    text-decoration: none;
}

/* ==========================================================================
   7. Custom Service Section
   ========================================================================== */
#custom-service .card {
    transition: var(--transition);
}

#custom-service .card:hover {
    transform: translateY(-5px);
}

#custom-service .service-icon {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

/* ==========================================================================
   8. Footer
   ========================================================================== */
   .footer {
    position: relative;
    padding: 80px 0 30px;
    background: var(--bg-gradient-start);
    color: var(--text-primary);
    overflow: hidden;
}

/* Footer Background Effect */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 25%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Footer Brand */
.footer-brand {
    margin-bottom: 2rem;
}

.footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.85;
}

/* Footer Titles and Links */
.footer-title {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-lighter);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition);
    opacity: 0.85;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--text-primary);
    opacity: 1;
    transform: translateX(5px);
}

/* Footer Contact Section */
.footer-contact p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.footer-contact a {
    color: var(--primary-lighter);
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--text-primary);
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright,
.powered-by {
    color: var(--text-secondary);
    font-size: 0.875rem;
    opacity: 0.8;
}

.powered-by a {
    color: var(--primary-lighter);
    transition: var(--transition);
}

.powered-by a:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   9. Common Components
   ========================================================================== */
/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--primary-darker);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--text-primary);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--primary-lighter);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

/* Swiper Styles */
.swiper-container {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--primary-lighter);
}

/* ==========================================================================
   10. Utilities
   ========================================================================== */
.text-white-70 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-darker));
}

.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important;
}

.shadow {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
}

.rounded-lg {
    border-radius: var(--border-radius) !important;
}

/* Font Sizes */
.font-size-16 { font-size: 1rem !important; }
.font-size-18 { font-size: 1.125rem !important; }
.font-size-22 { font-size: 1.375rem !important; }

/* ==========================================================================
   11. Responsive Styles
   ========================================================================== */
   @media (min-width: 992px) {
    .hero-slider {
        transform: scale(1.25);
        margin: 2rem 0;
    }
}

@media (max-width: 991.98px) {
    /* Navigation */
    .navbar {
        padding: 0.75rem 1rem;
    }

    .logo-img {
        height: 45px;  /* 移动端稍微降低 logo 大小 */
    }

    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        border-radius: var(--border-radius);
        margin-top: 0.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav {
        padding-right: 0;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        border-radius: var(--border-radius);
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(30, 64, 175, 0.05);
    }

    .nav-btn {
        margin: 0.5rem 1rem;
        display: block;
        text-align: center;
    }

    /* Hero Section */
    .hero-1 {
        padding: 120px 0 80px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section {
        padding: 60px 0;
    }

    .hero-slider {
        margin-left: 0;
        padding: 10px;
    }
    
    /* Footer */
    .footer {
        padding: 60px 0 30px;
    }
}

@media (max-width: 767.98px) {
    /* Hero Section */
    .hero-1 {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        margin-left: 0 !important;
        margin-bottom: 1rem;
    }

    /* Services & Pricing */
    .pricing-cta {
        padding: 1rem;
    }
    
    .btn-subscribe {
        min-width: 160px;
        padding: 0.875rem 1.5rem;
    }

    .service-box,
    .pricing {
        margin-bottom: 2rem;
    }

    /* Features Section */
    .features-img {
        margin-bottom: 2rem;
    }

    /* Footer */
    .footer-bottom {
        text-align: center;
    }
    
    .copyright,
    .powered-by {
        text-align: center;
    }
    
    .powered-by {
        margin-top: 1rem;
    }
    
    .footer-title {
        margin-top: 2rem;
    }

    /* Hero Slider */
    .hero-slider {
        transform: scale(1);
        margin: 1rem 0;
    }
}

/* Tablet Landscape Specific */
@media (min-width: 768px) and (max-width: 991.98px) {
    .section {
        padding: 70px 0;
    }
    
    .pricing {
        margin-bottom: 30px;
    }
}

/* Large Desktop Specific */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
}
 
 /* ==========================================================================
   12. Animation Styles
   ========================================================================== */
 /* Scroll Animations */
 .animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
 }
 
 .animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
 }
 
 /* Navbar Scroll Effect */
 .navbar-sticky {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
 }
 
 /* ==========================================================================
   13. Toast & Notification Styles
   ========================================================================== */
 .toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    min-width: 250px;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1050;
 }
 
 .toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
 }
 
 .toast-body {
    padding-top: 0.5rem;
 }
 
 /* ==========================================================================
   14. Background Elements
   ========================================================================== */
 .bg-overlay-img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.1;
    background-size: cover;
    background-position: center;
 }
 
 /* End of stylesheet */