/* 蓝色科技风格网站样式 */

:root {
    --primary-blue: rgb(0, 80, 156);
    --primary-blue-dark: rgb(0, 60, 120);
    --primary-blue-light: rgb(0, 100, 180);
    --text-white: #FFFFFF;
    --text-light: rgba(255, 255, 255, 0.9);
    --text-dark: #333333;
    --border-color: rgba(255, 255, 255, 0.2);
    --overlay-dark: rgba(0, 0, 0, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 顶部栏 */
.top-bar { background: var(--primary-blue); color: var(--text-white); padding: 8px 0; font-size: 14px; }
.top-bar-content { display: flex; justify-content: space-between; align-items: center; }
.contact-info { display: flex; gap: 30px; }
.contact-item { display: flex; align-items: center; gap: 5px; }
.contact-item strong { font-weight: 600; }
.top-bar-right { display: flex; align-items: center; gap: 20px; }
.social-links { display: flex; gap: 10px; align-items: center; }
.social-link { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: var(--text-white); background: transparent; text-decoration: none; transition: all 0.3s ease; font-size: 14px; }
.social-link:hover { color: rgba(255,255,255,0.8); transform: translateY(-2px); }

/* 导航栏 */
.main-nav { background: var(--text-white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 999; }
.nav-content { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; position: relative; }
.logo { text-decoration: none; display: flex; align-items: center; }
.logo-text { font-size: 32px; font-weight: 700; font-style: italic; color: var(--primary-blue); letter-spacing: -1px; }
.nav-menu { display: flex; list-style: none; gap: 5px; margin: 0; padding: 0; }
.nav-item a { display: block; padding: 10px 20px; color: var(--text-dark); text-decoration: none; font-weight: 500; transition: all 0.3s ease; border-radius: 4px; }
.nav-item a:hover { color: var(--primary-blue); background: rgba(0,80,156,0.05); }
.nav-item.active a { color: var(--primary-blue); background: rgba(0,80,156,0.1); }
.nav-right { display: flex; align-items: center; gap: 15px; }
.search-box { display: flex; align-items: center; background: #F5F5F5; border-radius: 25px; padding: 8px 15px; transition: all 0.3s ease; }
.search-box:focus-within { background: #EBEBEB; box-shadow: 0 2px 8px rgba(0,80,156,0.15); }
.search-input { border: none; background: transparent; outline: none; padding: 0 10px; width: 200px; font-size: 14px; }
.search-btn { background: transparent; border: none; color: var(--primary-blue); cursor: pointer; font-size: 16px; padding: 0; display: flex; align-items: center; justify-content: center; }
.mobile-menu-btn { display: none; background: var(--primary-blue); border: none; color: var(--text-white); width: 40px; height: 40px; border-radius: 4px; cursor: pointer; font-size: 18px; }

/* 轮播图 */
.hero-slider { position: relative; height: 600px; }
.carousel { height: 100%; }
.carousel-inner { height: 100%; }
.carousel-item { height: 100%; position: relative; }
.slider-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; background-repeat: no-repeat; }
.slider-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3)); }
.slider-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; color: var(--text-white); max-width: 700px; animation: fadeInUp 1s ease-out; }
.slider-title { font-size: 48px; font-weight: 700; line-height: 1.2; margin-bottom: 15px; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.slider-subtitle { font-size: 24px; font-weight: 600; margin-bottom: 20px; color: rgba(255,255,255,0.95); text-shadow: 1px 1px 3px rgba(0,0,0,0.3); }
.slider-description { font-size: 16px; line-height: 1.8; margin-bottom: 30px; color: rgba(255,255,255,0.9); text-shadow: 1px 1px 2px rgba(0,0,0,0.3); }
.btn-view-more { display: inline-block; padding: 12px 35px; background: var(--primary-blue); color: var(--text-white); text-decoration: none; border-radius: 4px; font-weight: 600; transition: all 0.3s ease; align-self: flex-start; }
.btn-view-more:hover { background: var(--primary-blue-light); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,80,156,0.3); }
.carousel-indicators { bottom: 30px; }
.carousel-indicators button { width: 10px; height: 10px; border-radius: 0; background: rgba(255,255,255,0.5); border: none; margin: 0 5px; transition: all 0.3s ease; }
.carousel-indicators button.active { background: var(--primary-blue); width: 30px; }
.carousel-control-prev, .carousel-control-next { width: 50px; height: 50px; background: rgba(0,80,156,0.8); border-radius: 50%; top: 50%; transform: translateY(-50%); opacity: 0; transition: all 0.3s ease; }
.hero-slider:hover .carousel-control-prev, .hero-slider:hover .carousel-control-next { opacity: 1; }
.carousel-control-prev { left: 30px; }
.carousel-control-next { right: 30px; }
.carousel-control-prev:hover, .carousel-control-next:hover { background: var(--primary-blue); }
.carousel-control-prev i, .carousel-control-next i { font-size: 20px; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 通用页面标题导航条 */
.page-title-bar {
    background: rgb(243, 243, 243);
    padding: 14px 0;
    color: rgb(175, 175, 175);
}

.page-title-content {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: rgb(51, 51, 51);
}

.page-breadcrumb {
    font-size: 14px;
    color: rgb(175, 175, 175);
    margin-top: 4px;
}

.page-breadcrumb a {
    color: rgb(175, 175, 175);
    text-decoration: none;
    transition: color 0.3s;
}

.page-breadcrumb a:hover {
    color: rgb(51, 51, 51);
}

.page-breadcrumb .separator {
    margin: 0 10px;
}

.page-breadcrumb .current {
    color: rgb(0, 80,156);
}

/* 移动端菜单遮罩层 */
@media (max-width: 991px) {
    /* 移动端隐藏顶部蓝条 */
    .top-bar { display: none !important; }
    
    /* 隐藏顶部联系方式 */
    .contact-info { display: none !important; }
    .top-bar-right { width: 100%; justify-content: center; }
    .top-bar-content { justify-content: center; }
    
    .nav-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }
    .nav-menu-overlay.show {
        display: block;
    }
}

/* Sidebar Floating Buttons */
.sidebar-buttons {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10002;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sidebar-btn-label {
    color: white;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px 0 0 10px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2);
}

.sidebar-btn-icon {
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* WhatsApp Button Styles */
.whatsapp-btn .sidebar-btn-label {
    background: #25D366;
}

.whatsapp-btn .sidebar-btn-icon {
    background: #25D366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:hover .sidebar-btn-label {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-btn:hover .sidebar-btn-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Contact Us Button Styles */
.contact-btn .sidebar-btn-label {
    background: #00509C;
}

.contact-btn .sidebar-btn-icon {
    background: #00509C;
    box-shadow: 0 4px 15px rgba(0, 80, 156, 0.4);
}

.contact-btn:hover .sidebar-btn-label {
    opacity: 1;
    transform: translateX(0);
}

.contact-btn:hover .sidebar-btn-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 80, 156, 0.5);
}

/* Contact Us Slide Panel */
.contact-panel {
    position: fixed;
    right: -400px;
    top: 0;
    width: 380px;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.contact-panel.open {
    right: 0;
}

.contact-panel-header {
    background: #4A90D9;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

.contact-panel-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.contact-panel-welcome {
    background: #f0f4f8;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}

.contact-form-group {
    margin-bottom: 15px;
}

.contact-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.contact-form-group .required {
    color: #e74c3c;
}

.contact-form-group input,
.contact-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
    outline: none;
    border-color: #4A90D9;
}

.captcha-row {
    display: flex;
    align-items: center;
}

.contact-submit-btn {
    width: 100%;
    padding: 12px;
    background: #4A90D9;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.contact-submit-btn:hover {
    background: #3a7bc8;
}

.contact-success-msg {
    text-align: center;
    padding: 30px 20px;
}

.contact-success-msg p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.contact-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
}

.contact-panel-overlay.show {
    display: block;
}

/* Contact Panel Mobile Responsive */
@media (max-width: 768px) {
    .contact-panel {
        width: 100%;
        right: -100%;
    }
    
    .contact-panel.open {
        right: 0;
    }
    
    .contact-panel-body {
        padding: 15px;
    }
    
    .contact-panel-welcome {
        font-size: 12px;
        padding: 12px;
    }
    
    .contact-form-group input,
    .contact-form-group textarea {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .contact-submit-btn {
        padding: 10px;
        font-size: 14px;
    }
}

/* Footer Styles */
.site-footer {
    background: #1a1a2e;
    color: #fff;
    padding: 40px 0 20px;
    overflow: visible !important;
    clear: both;
}

.footer-main {
    padding-bottom: 20px;
    overflow: visible !important;
}

.footer-main .container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.footer-col {
    margin-bottom: 30px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #25D366;
    display: inline-block;
    word-break: break-word;
    white-space: normal;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
    float: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word;
}

.footer-links a:hover {
    color: #25D366;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

.footer-contact-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    overflow: visible !important;
}

.footer-contact-list li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 10px !important;
    float: none;
    display: block;
    overflow: visible !important;
}

.footer-contact-list li:last-child {
    margin-bottom: 0 !important;
}

.footer-contact-list li span {
    display: block !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    word-break: break-all !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    overflow: visible !important;
}

.footer-bottom .container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.footer-bottom-content {
    overflow: visible !important;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    text-align: center;
    margin: 0;
    word-break: break-word;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .site-footer {
        padding: 30px 15px 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .footer-main {
        padding-bottom: 15px !important;
    }
    
    .footer-main .container {
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .footer-col {
        margin-bottom: 25px !important;
        float: none !important;
        width: 100% !important;
        display: block !important;
    }
    
    .footer-title {
        font-size: 16px !important;
        margin-bottom: 15px !important;
        padding-bottom: 8px !important;
        word-break: break-word !important;
        white-space: normal !important;
    }
    
    .footer-links li {
        margin-bottom: 8px !important;
    }
    
    .footer-links a {
        font-size: 14px !important;
    }
    
    .footer-contact-list {
        padding-left: 0 !important;
        margin: 0 !important;
    }
    
    .footer-contact-list li {
        font-size: 13px !important;
        margin-bottom: 10px !important;
        float: none !important;
        display: block !important;
        width: 100% !important;
        word-break: break-all !important;
        white-space: normal !important;
    }
    
    .footer-contact-list li:last-child {
        margin-bottom: 0 !important;
    }
    
    .footer-contact-list li span {
        display: block !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        word-break: break-all !important;
        width: 100% !important;
        overflow: visible !important;
    }
    
    .footer-bottom {
        padding-top: 15px !important;
    }
    
    .footer-bottom .container {
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .footer-copyright {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }
    
    .whatsapp-phone {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .whatsapp-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
}
