/* Hunuo Style Adaptation for Techome */
:root {
    --primary-color: #52C41A; /* Keeping the green brand color */
    --hover-color: #44a316;
    --text-dark: #333333;
    --text-gray: #666666;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --border-color: #e5e5e5;
}

body {
    font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Reset & Utilities */
ul, li { list-style: none; padding: 0; margin: 0; }
a { text-decoration: none; color: inherit; transition: all 0.3s; }
a:hover { color: var(--primary-color); }
.text-center { text-align: center; }
.img-responsive { display: block; max-width: 100%; height: auto; }

/* Navigation - Clean & White */
.navbar-hunuo {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar-hunuo .navbar-brand {
    padding: 0 15px;
    height: 50px;
    line-height: 50px;
}
.navbar-hunuo .navbar-brand img {
    height: 40px;
    margin-top: 5px;
}

.navbar-hunuo .nav > li > a {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    padding: 15px 25px;
}

.navbar-hunuo .nav > li > a:hover,
.navbar-hunuo .nav > li.active > a {
    color: var(--primary-color);
    background: transparent;
}

/* Dropdown Menu on Hover with Animation */
.navbar-hunuo .dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px; /* Inner padding for card look */
    min-width: 200px;
    margin-top: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.98);
    transform-origin: top center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
    display: block;
    background: #fff;
}

.navbar-hunuo .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    margin-top: 0;
}

/* Arrow indicator */
.navbar-hunuo .dropdown-menu:before {
    content: "";
    position: absolute;
    top: -6px;
    left: 30px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0,0,0,0.03); /* Soft shadow for arrow */
}

.navbar-hunuo .dropdown-menu > li > a {
    padding: 12px 20px;
    font-size: 15px;
    color: #666;
    border-radius: 6px;
    margin-bottom: 2px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-hunuo .dropdown-menu > li > a:hover {
    background-color: rgba(82, 196, 26, 0.08); /* Very light brand color */
    color: var(--primary-color);
    padding-left: 25px;
    font-weight: bold;
}

/* Override Bootstrap Active State in Dropdown */
.navbar-hunuo .dropdown-menu > .active > a, 
.navbar-hunuo .dropdown-menu > .active > a:hover, 
.navbar-hunuo .dropdown-menu > .active > a:focus {
    background-color: rgba(82, 196, 26, 0.1); /* Light green background */
    color: var(--primary-color);
    font-weight: bold;
}

/* Arrow indicator for active state */
.navbar-hunuo .dropdown-menu > .active > a:after {
    content: "→";
    font-family: Arial, sans-serif;
    font-size: 12px;
    opacity: 1;
    transform: translateX(0);
    color: var(--primary-color);
}

/* Add an icon or symbol on hover via CSS content if needed, or just keep clean */
.navbar-hunuo .dropdown-menu > li > a:hover:after {
    content: "→";
    font-family: Arial, sans-serif;
    font-size: 12px;
    opacity: 1;
    transform: translateX(0);
}

.navbar-hunuo .dropdown-menu > li > a:after {
    content: "→";
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s;
}

/* Force hide dropdown when clicked (helper class) */
.navbar-hunuo .dropdown.force-hide .dropdown-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
    transform: translateY(15px) !important;
}

/* Carousel / Banner */
.main-carousel {
    margin-top: 80px; /* Offset for fixed nav */
}

.carousel-item-height {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.carousel-caption-custom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.carousel-caption-custom .container {
    position: relative;
    z-index: 2;
}

.banner-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.banner-subtitle {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-hunuo {
    display: inline-block;
    padding: 12px 40px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 18px;
    border-radius: 4px;
    border: none;
    transition: all 0.3s;
}

.btn-hunuo:hover {
    background-color: var(--hover-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(82, 196, 26, 0.4);
    text-decoration: none;
}

/* Carousel Controls Hover Effect */
.carousel-control,
.carousel-control:focus {
    opacity: 0;
    transition: opacity 0.3s ease;
    background-image: none !important; /* Remove Bootstrap gradient */
}

.main-carousel:hover .carousel-control {
    opacity: 0.5;
}

.main-carousel:hover .carousel-control:hover,
.main-carousel:hover .carousel-control:focus {
    opacity: 0.9;
}

/* Content Sections - Z-Pattern */
.hunuo-section {
    padding: 80px 0;
    overflow: hidden;
}

.hunuo-section:nth-child(even) {
    background-color: var(--bg-white);
}

.hunuo-section:nth-child(odd) {
    background-color: var(--bg-light);
}

.section-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.text-col {
    padding: 0 30px;
}

.img-col {
    padding: 0 30px;
    text-align: center;
}

.img-col img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.5s;
}

.img-col:hover img {
    transform: scale(1.02);
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--primary-color);
    margin-top: 15px;
}

.section-subtitle {
    font-size: 20px;
    color: #666;
    margin-bottom: 25px;
    font-weight: 400;
    display: block;
    margin-top: 10px;
}

.section-desc {
    font-size: 16px;
    color: #888;
    line-height: 28px;
    margin-bottom: 30px;
}

.feature-list {
    margin-bottom: 30px;
}

.feature-list li {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 10px;
    background: #f0f9eb;
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.more-link {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
}

.more-link i {
    margin-left: 5px;
    transition: margin-left 0.3s;
}

.more-link:hover i {
    margin-left: 10px;
}

/* Pricing Section */
#pricing .panel {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

#pricing .panel:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.pricing-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
    text-align: center;
    border-top: 4px solid transparent;
    margin-bottom: 30px;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-top-color: var(--primary-color);
}

.pricing-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.pricing-card .price {
    font-size: 36px;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 30px;
}

.pricing-card .price small {
    font-size: 16px;
    color: #999;
    font-weight: normal;
}

.pricing-card ul {
    margin-bottom: 30px;
    text-align: left;
    padding-left: 20px;
}

.pricing-card ul li {
    margin-bottom: 10px;
    color: #666;
    position: relative;
}

.pricing-card ul li:before {
    content: "\f00c";
    font-family: FontAwesome;
    color: var(--primary-color);
    margin-right: 10px;
}

.btn-pricing {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 4px;
    transition: 0.3s;
}

.btn-pricing:hover {
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
}

/* Partners Section */
.partner-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.partner-item {
    background: #fff;
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: 0.3s;
    padding: 10px;
}

.partner-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
}

.partner-item img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%);
    transition: 0.3s;
}

.partner-item:hover img {
    filter: grayscale(0%);
}

.partner-text {
    font-size: 16px;
    font-weight: bold;
    color: #ccc;
}
.partner-item:hover .partner-text {
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .section-content {
        flex-direction: column;
    }
    
    .text-col, .img-col {
        width: 100%;
        margin-bottom: 40px;
    }
    
    .hunuo-section.reverse .section-content {
        flex-direction: column-reverse;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .banner-title {
        font-size: 32px;
    }
    
    .carousel-item-height {
        height: 400px;
    }
}

/* Footer */
.footer-hunuo {
    background-color: #2b2e37;
    color: #999;
    padding: 60px 0 20px;
}

.footer-hunuo h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-hunuo p, .footer-hunuo a {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.footer-hunuo a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #3d404a;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
}
