/* ============================================
   清爽风格 - 明亮、干净、舒适
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #555;
    background: #fff;
}

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

/* ============================================
   头部导航 - 清爽白色
   ============================================ */
.header {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    flex-wrap: wrap;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c7da0;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.logo i {
    font-size: 30px;
    color: #61a5c2;
}

.logo span {
    background: linear-gradient(135deg, #2c7da0, #89c2d9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 导航菜单 */
.menu {
    display: flex;
    flex-wrap: wrap;
}

.menu a {
    color: #555;
    text-decoration: none;
    padding: 10px 18px;
    margin: 0 2px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 15px;
}

.menu a:hover {
    color: #2c7da0;
    background: #f0f7fa;
}

.menu a.active {
    background: #2c7da0;
    color: #fff;
}

.menu a i {
    margin-right: 6px;
    font-size: 14px;
}

/* 头部右侧 */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon {
    position: relative;
    color: #555;
    font-size: 22px;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    color: #2c7da0;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -12px;
    background: #e9c46a;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

.user-menu {
    position: relative;
    cursor: pointer;
}

.user-menu > span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 30px;
    transition: all 0.3s ease;
    color: #555;
}

.user-menu > span:hover {
    background: #e9ecef;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 10px;
    min-width: 140px;
    overflow: hidden;
    z-index: 100;
    border: 1px solid #eee;
}

.user-dropdown a {
    display: block;
    padding: 10px 20px;
    color: #555;
    text-decoration: none;
    transition: background 0.3s;
}

.user-dropdown a:hover {
    background: #f8f9fa;
    color: #2c7da0;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.login-btn {
    background: #e9c46a;
    padding: 8px 22px;
    border-radius: 30px;
    color: #fff !important;
    font-weight: bold;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: #e76f51;
    transform: translateY(-2px);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #555;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    z-index: 999;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.mobile-menu a {
    padding: 15px 20px;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
}

.mobile-menu a:hover {
    background: #f8f9fa;
    color: #2c7da0;
}

.mobile-menu.show {
    display: flex;
}

/* ============================================
   轮播图 - 清新渐变
   ============================================ */
.banner {
    position: relative;
    min-height: 500px;
    background: linear-gradient(135deg, #89c2d9 0%, #61a5c2 50%, #89c2d9 100%);
    display: flex;
    align-items: center;
    text-align: center;
}

.banner .container {
    width: 100%;
}

.banner h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: fadeInUp 0.8s ease;
}

.banner p {
    font-size: 20px;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #2c7da0;
    padding: 14px 35px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    background: #f8f9fa;
}

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

/* ============================================
   通用区块样式
   ============================================ */
.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 45px;
    position: relative;
    padding-bottom: 20px;
    color: #333;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #e9c46a;
    border-radius: 3px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header .section-title {
    margin-bottom: 0;
    text-align: left;
}

.section-header .section-title:after {
    left: 0;
    transform: none;
}

.more-link {
    color: #2c7da0;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.more-link:hover {
    color: #e76f51;
    transform: translateX(5px);
    display: inline-block;
}

/* ============================================
   服务优势 - 清爽卡片
   ============================================ */
.services-section {
    background: #fff;
    padding: 60px 0;
}

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

.service-card {
    text-align: center;
    padding: 35px 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-color: #e9c46a;
}

.service-icon {
    font-size: 50px;
    margin-bottom: 20px;
    display: inline-block;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #333;
}

.service-card p {
    color: #888;
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================
   产品卡片 - 干净明亮
   ============================================ */
.products-section {
    padding: 60px 0;
    background: #fafcfd;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #e9c46a;
}

.product-img {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: #f8f9fa;
}

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

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44,125,160,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    font-size: 14px;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-card h3 {
    font-size: 16px;
    padding: 15px 15px 5px;
    color: #333;
    min-height: 60px;
}

.product-card a {
    text-decoration: none;
    color: inherit;
}

.price {
    color: #e76f51;
    font-size: 20px;
    font-weight: bold;
    padding: 0 15px;
}

.btn-buy {
    display: block;
    width: calc(100% - 30px);
    margin: 15px;
    padding: 10px;
    background: #e9c46a;
    border: none;
    border-radius: 30px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-buy:hover {
    background: #e76f51;
    transform: translateY(-2px);
}

/* ============================================
   新闻列表
   ============================================ */
.news-section {
    padding: 60px 0;
    background: #fff;
}

.news-list {
    display: grid;
    gap: 20px;
}

.news-item {
    background: #fafcfd;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.news-item:hover {
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transform: translateX(5px);
    border-color: #e9c46a;
}

.news-item a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.news-date {
    background: #2c7da0;
    color: #fff;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: bold;
    min-width: 80px;
    text-align: center;
}

.news-item h3 {
    color: #333;
    font-size: 18px;
    flex: 1;
}

.news-item p {
    color: #888;
    font-size: 14px;
    width: 100%;
    margin-top: 8px;
}

/* ============================================
   客户案例
   ============================================ */
.cases-section {
    padding: 60px 0;
    background: #fafcfd;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.case-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-color: #e9c46a;
}

.case-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f8f9fa;
}

.case-info {
    padding: 20px;
}

.case-info h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.case-info p {
    color: #888;
    font-size: 13px;
}

/* ============================================
   页脚 - 浅色清爽
   ============================================ */
.footer {
    background: #f8f9fa;
    color: #666;
    padding: 50px 0 20px;
    border-top: 1px solid #eee;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: #e9c46a;
}

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

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

.footer-col ul li a,
.footer-col ul li {
    color: #888;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: #2c7da0;
    padding-left: 5px;
}

.footer-col i {
    margin-right: 8px;
    width: 20px;
    color: #aaa;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #e9ecef;
    border-radius: 50%;
    color: #888;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #2c7da0;
    color: #fff;
}

.qrcode {
    text-align: center;
}

.qrcode img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.qrcode p {
    font-size: 12px;
    color: #888;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #aaa;
}

.copyright a {
    color: #aaa;
    text-decoration: none;
}

.copyright a:hover {
    color: #2c7da0;
}

/* ============================================
   临时二维码样式
   ============================================ */
.temp-qrcode {
    width: 100px;
    height: 100px;
    background: #fff;
    border: 2px dashed #ddd;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.temp-qrcode i {
    font-size: 40px;
    color: #2c7da0;
    margin-bottom: 5px;
}

.temp-qrcode span {
    font-size: 11px;
    color: #999;
}

.temp-qrcode-mobile {
    width: 140px;
    height: 140px;
    background: #fff;
    border: 2px dashed #ddd;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    cursor: pointer;
}

.temp-qrcode-mobile i {
    font-size: 50px;
    color: #2c7da0;
    margin-bottom: 10px;
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1024px) {
    .menu { display: none; }
    .mobile-menu-btn { display: block; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .case-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .container { padding: 0 15px; }
    .banner { min-height: 350px; }
    .banner h2 { font-size: 28px; }
    .banner p { font-size: 16px; }
    .section-title { font-size: 26px; }
    .service-grid { grid-template-columns: 1fr; gap: 20px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .case-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col h4:after { left: 50%; transform: translateX(-50%); }
    .news-item a { flex-direction: column; text-align: center; }
    .section-header { flex-direction: column; gap: 15px; }
    .section-header .section-title { text-align: center; }
    .section-header .section-title:after { left: 50%; transform: translateX(-50%); }
    .footer-col:not(:last-child) { display: none; }
    .footer-col:last-child { display: block; width: 100%; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    z-index: 2000;
}

/* ============================================
   官网风格头部样式
   ============================================ */

/* 顶部第一行 */
.top-bar {
    background: #f5f5f5;
    border-bottom: 1px solid #eee;
    font-size: 12px;
    color: #666;
    padding: 8px 0;
}

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

.welcome-text i {
    margin-right: 5px;
    color: #2c7da0;
}

.top-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.top-links a:hover {
    color: #2c7da0;
}

.cart-link {
    position: relative;
}

.cart-count {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 50%;
    margin-left: 3px;
}

/* 用户下拉菜单 - 修复鼠标移动问题 */
.user-dropdown-top {
    position: relative;
    cursor: pointer;
    display: inline-block;
}

.user-dropdown-top > span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 30px;
    transition: all 0.3s ease;
    color: #555;
    font-size: 14px;
}

.user-dropdown-top > span:hover {
    background: #e9ecef;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 10px;
    min-width: 130px;
    overflow: hidden;
    z-index: 1000;
    border: 1px solid #eee;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

/* 关键修复：鼠标悬停时显示下拉菜单 */
.user-dropdown-top:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

/* 添加一个透明的连接层，防止鼠标移动时菜单消失 */
.dropdown-menu:before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

/* 下拉菜单项样式 */
.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
    color: #2c7da0;
}

.user-dropdown-top:hover .dropdown-menu {
    display: block;
}

.register-link {
    border-left: 1px solid #ddd;
    padding-left: 15px;
}

/* 中间区域 */
.header-middle {
    background: #fff;
    padding: 25px 0;
}

.header-middle .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo i {
    font-size: 45px;
    color: #2c7da0;
}

.logo span {
    font-size: 24px;
    font-weight: bold;
    color: #2c7da0;
}

.company-desc {
    border-left: 2px solid #e9c46a;
    padding-left: 20px;
}

.company-desc .desc1 {
    color: #333;
    font-size: 14px;
    margin-bottom: 5px;
}

.company-desc .desc2 {
    color: #888;
    font-size: 13px;
}

.hotline {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #f8f9fa, #fff);
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.hotline i {
    font-size: 32px;
    color: #e76f51;
}

.hotline-text {
    display: flex;
    flex-direction: column;
}

.hotline-text span {
    font-size: 12px;
    color: #888;
}

.hotline-text strong {
    font-size: 20px;
    color: #e76f51;
}

/* 导航菜单区域 */
.main-nav {
    background: #2c7da0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.main-nav .container {
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 14px 22px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: #1a5a7a;
}

.nav-menu li a i {
    margin-right: 6px;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    padding: 12px 0;
    cursor: pointer;
}

/* Banner区域 */
.banner-container {
    width: 100%;
    overflow: hidden;
}

.banner-container img {
    width: 100%;
    display: block;
}

/* 响应式 */
@media (max-width: 1024px) {
    .logo-area {
        gap: 15px;
    }
    .company-desc {
        display: none;
    }
    .nav-menu li a {
        padding: 12px 15px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .header-middle {
        padding: 15px 0;
    }
    
    .header-middle .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo-area {
        justify-content: center;
    }
    
    .hotline {
        padding: 8px 20px;
    }
    
    .hotline i {
        font-size: 24px;
    }
    
    .hotline-text strong {
        font-size: 16px;
    }
    
    /* 手机端导航 */
    .mobile-menu-btn {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .nav-menu li a {
        padding: 12px 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
}

@media (max-width: 480px) {
    .logo i {
        font-size: 32px;
    }
    .logo span {
        font-size: 18px;
    }
    .hotline {
        padding: 5px 15px;
    }
    .hotline-text strong {
        font-size: 14px;
    }
}
