/* Reset and Base Styles */
:root {
    /* 亚洲企业风格调色板：稳重蓝 + 活力橙红点缀 */
    --primary-color: #004d99; /* 稳重深蓝 */
    --primary-light: #0066cc;
    --primary-dark: #003366;
    --secondary-color: #f75c2f; /* 活力橙红，用于醒目按钮或强调 */
    --secondary-dark: #d6471e;
    
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #999999;
    
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #f0f2f5;
    
    --border-color: #eaeaea;
    --border-color-dark: #d0d0d0;
    
    --transition-fast: all 0.3s ease;
    --transition-slow: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 77, 153, 0.1); /* 带有一点主色调的阴影 */
    --shadow-hover: 0 15px 35px rgba(0, 77, 153, 0.15);
    
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif; /* 针对中文字体优化 */
    color: var(--text-main);
    line-height: 1.8;
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 90px 0;
    position: relative;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-dark);
    font-weight: 600;
    line-height: 1.3;
}

/* Section Header */
.section-header {
    margin-bottom: 50px;
}

.section-header.text-center {
    text-align: center;
}

.section-header.left-align {
    text-align: left;
}

.subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    position: relative;
}

.section-header.text-center .subtitle::before,
.section-header.text-center .subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background-color: var(--primary-color);
}

.section-header.text-center .subtitle::before {
    left: -40px;
}

.section-header.text-center .subtitle::after {
    right: -40px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #222;
}

.heading-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
    margin-bottom: 20px;
}

.heading-line.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid transparent;
    font-size: 1rem;
    outline: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 77, 153, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--primary-dark);
    transition: var(--transition-fast);
    z-index: -1;
}

.btn-primary:hover {
    color: #fff;
    box-shadow: 0 6px 15px rgba(0, 77, 153, 0.4);
}

.btn-primary:hover::before {
    left: 0;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-light {
    background-color: #fff;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-light:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Top Bar */
.top-bar {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 8px 0;
    display: none; /* Hide on mobile by default */
}

@media (min-width: 992px) {
    .top-bar {
        display: block;
    }
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact span {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
}

.top-contact i {
    color: var(--primary-color);
    margin-right: 6px;
}

.top-links a {
    color: var(--text-muted);
    margin: 0 5px;
}

.top-links a:hover {
    color: var(--primary-color);
}

/* Header & Navigation */
.header {
    background-color: rgba(255, 255, 255, 0.98);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height 0.3s ease;
}

.header.scrolled .navbar {
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 1px;
}

.logo-dot {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-btn {
    padding: 8px 20px;
    border-radius: 20px;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-dark);
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: calc(100vh - 80px); /* 视口高度减去导航栏高度 */
    min-height: 500px;
    overflow: hidden;
    background-color: var(--primary-dark); /* 加载时的背景色 */
}

.carousel-container {
    height: 100%;
    width: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    color: #fff;
    text-align: left; /* 左对齐更具现代感 */
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease-out 0.3s;
}

.carousel-slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-content h1 {
    font-size: 3.8rem;
    margin-bottom: 25px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 3;
    pointer-events: none; /* 让点击穿透，只允许按钮可点 */
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    pointer-events: auto; /* 恢复按钮可点击 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-fast);
}

.indicator.active {
    background-color: var(--secondary-color);
    width: 30px;
    border-radius: 6px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img img {
    transition: transform 0.8s ease;
}

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

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary-color);
    color: #fff;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    border: 8px solid #fff;
    transform: scale(0.9);
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    margin-top: 5px;
}

.about-text .lead {
    font-size: 1.2rem;
    color: var(--primary-dark);
    font-weight: 500;
    margin-bottom: 20px;
}

.about-features {
    margin: 30px 0;
}

.about-features li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--text-main);
    font-weight: 500;
}

.about-features i {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Advantages Section */
.advantages {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.advantage-item {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-slow);
    border-bottom: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.advantage-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, rgba(0, 77, 153, 0.05), transparent);
    transition: var(--transition-slow);
}

.advantage-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--primary-color);
}

.advantage-item:hover::before {
    height: 100%;
}

.icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background-color: rgba(0, 77, 153, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.advantage-item:hover .icon-box {
    background-color: var(--primary-color);
}

.icon-box i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.advantage-item:hover .icon-box i {
    color: #fff;
}

.advantage-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.advantage-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-img {
    height: 220px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.service-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: absolute;
    top: -30px;
    right: 30px;
    box-shadow: 0 4px 10px rgba(0, 77, 153, 0.4);
    border: 4px solid #fff;
    transition: var(--transition-fast);
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
}

.service-card:hover .service-icon i {
    transform: rotateY(180deg); /* 反向旋转图标以保持正常显示 */
}

.service-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    margin-top: 10px;
}

.service-content p {
    color: var(--text-muted);
    margin-bottom: 25px;
    flex-grow: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.read-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--primary-dark);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Contact Banner */
.contact-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    padding: 80px 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contact-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+CjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PC9yZWN0Pgo8Y2lyY2xlIGN4PSIzIiBjeT0iMyIgcj0iMSIgZmlsbD0icmdiYSsyNTUsMjU1LDI1NSwwLjEpIj48L2NpcmNsZT4KPC9zdmc+');
    opacity: 0.5;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner-content h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-top: 50px;
}

.contact-info {
    flex: 1 1 400px;
    background-color: var(--primary-dark);
    color: #fff;
    padding: 50px;
    position: relative;
    overflow: hidden;
}

.contact-info::after {
    content: '\f095'; /* Phone icon unicode */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: -50px;
    right: -20px;
    font-size: 15rem;
    opacity: 0.05;
    color: #fff;
}

.contact-info h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-info > p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    margin-bottom: 30px;
}

.info-item .icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.info-item .details h4 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-item .details p,
.info-item .details a {
    color: rgba(255, 255, 255, 0.8);
}

.info-item .details a:hover {
    color: var(--secondary-color);
}

.contact-form-container {
    flex: 2 1 500px;
    padding: 50px;
}

.contact-form-container h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-dark);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
    background-color: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 77, 153, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background-color: #1a2233;
    color: #a0aec0;
}

.footer-top {
    padding: 80px 0 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-widget h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

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

.brand-widget .footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    display: inline-block;
}

.company-desc {
    margin-bottom: 25px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.links-widget ul li {
    margin-bottom: 12px;
}

.links-widget ul li a {
    display: flex;
    align-items: center;
}

.links-widget ul li a i {
    margin-right: 8px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.links-widget ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    margin-bottom: 15px;
}

.footer-contact li i {
    margin-right: 15px;
    margin-top: 5px;
    color: var(--primary-light);
}

.footer-bottom {
    background-color: #111827;
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.footer-bottom .icp a {
    display: flex;
    align-items: center;
    gap: 5px;
}

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

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
    color: #fff;
}

/* Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-img {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 80px; /* Header height */
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-white);
        padding: 30px 20px;
        transition: var(--transition-slow);
        text-align: center;
        gap: 20px;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }
    
    .header.scrolled .nav-links {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        display: block;
        padding: 10px 0;
    }
    
    .nav-links a::after {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-btns {
        flex-direction: column;
    }
    
    .carousel-controls {
        padding: 0 10px;
    }

    .section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}