/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.animated {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scale-in.animated {
    opacity: 1;
    transform: scale(1);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

.delay-6 {
    transition-delay: 0.6s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #e31e24;
    transition: width 0.3s ease;
}

.nav-menu li a:hover {
    color: #e31e24;
}

.nav-menu li a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 700px;
    overflow: hidden;
}

.banner-slider {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a2463 0%, #1e5fa8 50%, #3e8ed0 100%);
    position: relative;
    overflow: hidden;
}

.banner-bg::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 150, 255, 0.3) 0%, transparent 50%);
}

.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
}

.banner-content .container {
    text-align: left;
}

.banner-content h1 {
    color: #fff;
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: left;
    min-height: 70px;
}

.banner-content p {
    color: #fff;
    font-size: 28px;
    text-align: left;
    min-height: 36px;
}

/* Typewriter Effect */
.typewriter-text {
    display: inline-block;
    position: relative;
    opacity: 0;
    transition: opacity 0.3s;
}

.typewriter-text::after {
    content: '|';
    position: absolute;
    right: -8px;
    color: #fff;
    animation: blink 0.7s infinite;
}

.typewriter-text.typing-complete::after {
    display: none;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

/* Banner Controls */
.banner-controls {
    position: absolute;
    bottom: 40px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(30, 35, 45, 0.3);
    padding: 15px 30px;
    border-radius: 8px;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.banner-current,
.banner-total {
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.banner-progress {
    width: 150px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
    border-radius: 2px;
}

.banner-progress-bar {
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.banner-nav-buttons {
    display: flex;
    gap: 10px;
}

.banner-nav {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.banner-nav:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 80px;
    color: #333;
}

/* Products Section */
.products-section {
    background: #f5f5f5;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-image {
    height: 300px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.product-ai {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.product-cloud {
    background: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
}

.product-security {
    background: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.product-info p {
    color: #666;
    margin-bottom: 15px;
}

.learn-more {
    color: #e31e24;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.learn-more:hover {
    color: #c01820;
}

/* Services Section */
.services-section {
    background: #fff;
    padding: 80px 0;
}

.services-divider {
    width: 100%;
    height: 1px;
    background: #ddd;
    margin: 40px 0 0 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-bottom: 1px solid #ddd;
}

.service-item {
    display: flex;
    gap: 25px;
    align-items: center;
    padding: 50px 40px;
    position: relative;
    border-top: 1px solid #ddd;
}

.service-item:nth-child(1),
.service-item:nth-child(2) {
    border-top: none;
}

/* 右侧两个服务项右对齐 */
.service-item:nth-child(2),
.service-item:nth-child(4) {
    justify-content: flex-end;
}

.service-icon-wrapper {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.service-icon-wrapper.icon-red {
    background: #e31e24;
}

.service-icon-wrapper.icon-dark {
    background: #333;
}

.service-icon-wrapper img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transition: all 0.3s ease;
}


.icon-manage {
    background: linear-gradient(135deg, #333 0%, #666 100%);
}

.icon-custom {
    background: linear-gradient(135deg, #333 0%, #666 100%);
}

.icon-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e31e24;
}

.service-content {
    flex: 0 0 auto;
    max-width: 360px;
    width: 100%;
}

.service-content h3 {
    font-size: 20px;
    color: #333;
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
}

.service-content p {
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* News Section */
.news-section {
    background: #f5f5f5;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 40px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: row;
    cursor: pointer;
}

.news-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-image {
    min-width: 30%;
    height: 165px;
    overflow: hidden;
    flex-shrink: 0;
    padding: 15px;
    display: flex;
    align-items: center;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    transition: transform 0.5s ease;
}

.news-placeholder {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.news-content {
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.news-content h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.news-content p {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    width: 100%;
}

.news-content .learn-more {
    color: #666;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
    align-self: flex-start;
}

.news-content .learn-more:hover {
    color: #e31e24;
    border-color: #e31e24;
    background: #fff;
}

/* Partners Section */
.partners-section {
    background: #f5f5f5;
    padding: 80px 0;
}

.partners-slider {
    background: #fff;
    padding: 50px 80px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.partners-track {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 40px;
    flex-wrap: nowrap;
}

.partner-logo {
    flex: 0 0 auto;
    width: 140px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s;
}

.partner-logo:hover img {
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 40px;
}

/* Footer Left Section */
.footer-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    height: 35px;
    width: 115px;
    margin-bottom: 5px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact p {
    color: #ccc;
    font-size: 14px;
    margin: 0;
}

.footer-company {
    color: #ccc;
    font-size: 14px;
    margin-top: 10px;
}

/* Footer Middle Section */
.footer-middle {
    display: flex;
    align-items: flex-start;
    padding-top: 10px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #fff;
}

/* Footer Right Section */
.footer-right h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 500;
}

.newsletter-alert {
    padding: 10px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 13px;
}

.newsletter-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.newsletter-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.newsletter-form label {
    color: #ccc;
    font-size: 14px;
}

.newsletter-form input {
    padding: 10px 12px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #2a2a2a;
    color: #fff;
    font-size: 14px;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #666;
}

.captcha-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-group input {
    flex: 1;
}

.captcha-image {
    height: 38px;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: opacity 0.3s;
}

.captcha-image:hover {
    opacity: 0.8;
}

.btn-newsletter {
    padding: 12px 40px;
    background: #e31e24;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
    align-self: flex-start;
}

.btn-newsletter:hover {
    background: #c01519;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid #333;
    color: #999;
    font-size: 14px;
}

.footer-bottom a {
    color: #5b9bd5;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #555;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.back-to-top:hover {
    background: #333;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.back-to-top.show {
    display: flex;
}

/* Footer Section (legacy support) */
.footer-section h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #fff;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-slider {
        padding: 40px 50px;
    }
    
    .partners-track {
        flex-wrap: wrap;
    }
    
    .partner-logo {
        width: 120px;
        height: 60px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .news-card {
        flex-direction: row;
    }
    
    .news-image {
        width: 160px;
        min-width: 160px;
        height: 130px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-right {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .partners-slider {
        padding: 30px 20px;
    }
    
    .partners-track {
        gap: 30px;
        flex-wrap: wrap;
    }
    
    .partner-logo {
        width: 100px;
        height: 50px;
    }
    
    .news-image {
        width: 35%;
        min-width: 35%;
        padding: 12px;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .banner-content h1 {
        font-size: 32px;
        min-height: 42px;
    }

    .banner-content p {
        font-size: 18px;
        min-height: 24px;
    }

    .products-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-card {
        flex-direction: column;
    }
    
    .news-image {
        width: 100%;
        height: 180px;
    }
    
    .news-content {
        padding: 15px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-item {
        padding: 30px 20px;
        border-right: none !important;
        gap: 15px;
    }
    
    /* 移动端取消右对齐，统一左对齐 */
    .service-item:nth-child(2),
    .service-item:nth-child(4) {
        justify-content: flex-start;
    }

    .service-item:not(:last-child) {
        border-bottom: 1px solid #e0e0e0;
    }

    .service-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .service-icon-wrapper img {
        width: 35px;
        height: 35px;
    }
    
    .service-content {
        max-width: none;
        width: auto;
        flex: 1;
        min-width: 0;
    }

    .service-content h3 {
        font-size: 16px;
        word-wrap: break-word;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-left,
    .footer-middle,
    .footer-right {
        text-align: left;
    }
    
    .footer-nav {
        gap: 12px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .hero-banner {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .banner-content h1 {
        font-size: 24px;
        min-height: 32px;
    }

    .banner-content p {
        font-size: 16px;
        min-height: 22px;
    }
    
    .typewriter-text::after {
        right: -6px;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .hero-banner {
        height: 300px;
    }
    
    .banner-controls {
        padding: 12px 20px;
        gap: 15px;
        bottom: 20px;
        left: 20px;
    }
    
    .banner-current,
    .banner-total {
        font-size: 16px;
        min-width: 25px;
    }
    
    .banner-progress {
        width: 100px;
    }
    
    .banner-nav {
        width: 35px;
        height: 35px;
    }
    
    .banner-nav svg {
        width: 16px;
        height: 16px;
    }
}

/* About Us Page Styles */
.company-intro {
    background: #fff;
    padding: 80px 0;
}

.section-main-title {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 60px;
    letter-spacing: 2px;
}

.intro-wrapper {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.intro-content {
    flex: 1;
}

.intro-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 60px;
    border-bottom: 3px solid #333;
    padding-bottom: 20px;
}

.intro-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 60px;
    text-align: justify;
}

.mission-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    margin-top: 60px;
}

.mission-text strong {
    font-weight: 600;
    color: #333;
}

.intro-image {
    flex: 0 0 auto;
    width: 500px;
}

.intro-image img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

/* Responsive adjustments for About page */
@media (max-width: 968px) {
    .section-main-title {
        font-size: 36px;
        margin-bottom: 40px;
    }
    
    .intro-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    
    .intro-image {
        width: 100%;
    }
    
    .intro-image img {
        max-height: 300px;
    }
    
    .intro-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .section-main-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .intro-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .intro-text,
    .mission-text {
        font-size: 14px;
    }
}

