/* 公共样式文件 - 延伸智慧城市 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
/* 基础样式 */
body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: #f8fafc;
    color: #333;
    margin: 0;
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 123, 255, 0.2);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
}

.logo img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    color: #1e3a74;
    white-space: nowrap;
}

.logo:hover .logo-text {
    color: #0056b3;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 20px;
}

.nav-menu a:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #007bff;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #007bff;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    color: #0056b3;
}

/* Mega Menu 产品中心下拉菜单 */
.nav-product-center {
    position: relative;
}
.mega-menu {
    display: none;
    position: fixed;
    left: 0;
    top: calc(var(--navbar-height, 70px));
    width: 100vw;
    min-width: unset;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    border-top: 2px solid #2563eb;
    z-index: 1000;
    padding: 40px 0 30px 0;
    max-height: 500px;
    overflow: visible;
}
.mega-menu-flex {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    width: 100%;
}
.mega-menu-tabs {
    min-width: 160px;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 10px;
}
.tab-btn {
    background: none;
    border: none;
    outline: none;
    font-size: 1.1rem;
    color: #344067;
    padding: 12px 0 12px 10px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    border-radius: 6px 0 0 6px;
    margin-bottom: 8px;
    transition: background 0.2s, color 0.2s;
}
.tab-btn.active, .tab-btn:hover {
    background: #f1f5fa;
    color: #2563eb;
    font-weight: bold;
}
.mega-menu-panel {
    flex: 1;
    padding-left: 40px;
    display: flex;
    align-items: flex-start;
    max-height: 420px;
    overflow: auto;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 32px;
    width: 100%;
}
.product-card {
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 18px 18px 14px 18px;
    transition: box-shadow 0.2s, background 0.2s;
    font-size: 1rem;
    min-height: 80px;
}
.product-card:hover {
    background: #f1f5fa;
    box-shadow: none;
    border: none;
}
.product-card a,
.product-card a:hover,
.product-card a:focus {
    color: #1e293b;
    text-decoration: none;
    display: block;
    outline: none;
    background: none;
}
.product-card:hover,
.product-card a:hover {
    background: #f1f5fa;
    box-shadow: none;
    border: none;
}
.product-card a:focus {
    outline: none;
    text-decoration: none;
}
.product-card strong {
    font-size: 1.08em;
    font-weight: bold;
    display: block;
    margin-bottom: 6px;
}
.product-card span {
    color: #64748b;
    font-size: 0.98em;
}
.product-card1 {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 18px 18px 14px 18px;
    transition: box-shadow 0.2s, background 0.2s;
    font-size: 1rem;
    min-height: 80px;
}
.product-card1:hover {
    background: #f1f5fa;
    box-shadow: none;
    border: none;
    cursor: pointer;
}
.product-card1 a,
.product-card1 a:hover,
.product-card1 a:focus {
    color: #1e293b;
    text-decoration: none;
    display: block;
    outline: none;
    background: none;
}
.product-card1:hover,
.product-card1 a:hover {
    background: #f1f5fa;
    box-shadow: none;
    border: none;
}
.product-card1 a:focus {
    outline: none;
    text-decoration: none;
}
.product-card1 strong {
    font-size: 1.08em;
    font-weight: bold;
    display: block;
    margin-bottom: 6px;
}
.product-card1 span {
    color: #64748b;
    font-size: 0.98em;
}
@media (max-width: 1300px) {
    .mega-menu-flex { max-width: 98vw; gap: 30px; }
    .mega-menu { min-width: unset; }
}
@media (max-width: 900px) {
    .mega-menu-flex { flex-direction: column; gap: 20px; max-width: 100vw; }
    .mega-menu-tabs { flex-direction: row; border-right: none; border-bottom: 1px solid #e5e7eb; min-width: unset; padding: 0 0 10px 0; }
    .tab-btn { border-radius: 6px 6px 0 0; margin-bottom: 0; margin-right: 8px; padding: 10px 16px; }
    .mega-menu-panel { padding-left: 0; }
    .product-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .mega-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        padding: 20px 0 10px 0;
    }
    .mega-menu-flex { max-width: 100vw; gap: 10px; }
    .mega-menu-tabs { flex-direction: row; border-right: none; border-bottom: 1px solid #e5e7eb; min-width: unset; padding: 0 0 10px 0; }
    .tab-btn { border-radius: 6px 6px 0 0; margin-bottom: 0; margin-right: 8px; padding: 10px 16px; }
    .mega-menu-panel { padding-left: 0; }
    .product-grid { grid-template-columns: 1fr; }
}
.product-card-desc {
    color: #64748b;
    font-size: 0.98em;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 900px) {
    .mega-menu {
        display: none !important;
    }
    .nav-menu {
        z-index: 2000 !important;
    }
}

/* 主要内容区域 */
.main-content {
    max-width: 1200px;
    margin: 100px auto 0 auto;
    padding: 0 20px 60px 20px;
}

/* 标题样式 */
.section-title {
    font-size: 2rem;
    color: #2563eb;
    margin-bottom: 32px;
    font-weight: bold;
    text-align: center;
}

.product-title {
    font-size: 28px;
    color: #2563eb;
    margin-bottom: 20px;
    font-weight: bold;
}

.product-subtitle {
    font-size: 16px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.product-header {
    text-align: center;
    margin-bottom: 60px;
}

/* 区块样式 */
.section {
    margin-bottom: 80px;
}

.section-title-with-icon {
    font-size: 1.8rem;
    color: #007bff;
    margin-bottom: 30px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title-with-icon i {
    font-size: 1.5rem;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 网格布局 */
.grid {
    display: grid;
    gap: 25px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* 特性卡片 */
.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    border-left: 4px solid #007bff;
}

.feature-card h3 {
    color: #1e293b;
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* 优势卡片 */
.advantage-card {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.advantage-card i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.advantage-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.advantage-card p {
    line-height: 1.6;
    opacity: 0.9;
    margin: 0;
}

/* 预览区域 */
.preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-image {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    height: 630px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.3);
}

/* 页脚样式 */
.footer {
    background: #1e293b;
    color: white;
    padding: 60px 0 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页脚内容支持5列 */
.footer-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}
@media (max-width: 1100px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 700px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-section h3 {
    margin-bottom: 22px;
    color: #ffffff;
}

.footer-section p,
.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    line-height: 1.8;
    font-size: 14px;
}

.footer-section a:hover {
    color: #2563eb;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #334155;
    color: #cbd5e1;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
        gap: 20px;
    }
    .nav-menu.active {
        display: flex;
        height: 300px;
        left: 0;
    }
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        padding: 15px 30px;
    }
    
    .logo img {
        height: 50px;
    }
    
    .logo-text {
        font-size: 22px;
    }
    
    .main-content {
        padding: 0 5vw 60px 5vw;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .product-title {
        font-size: 1.8rem;
    }
    
    .product-subtitle {
        font-size: 1rem;
    }
    
    .preview-image {
        height: 400px;
        font-size: 2.5rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card,
    .advantage-card {
        padding: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 通用工具类 */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}

.p-20 {
    padding: 20px;
}

.p-30 {
    padding: 30px;
}

.p-40 {
    padding: 40px;
}

/* 小屏幕设备适配 */
@media (max-width: 480px) {
    .logo img {
        height: 50px;
    }
    
    .logo-text {
        font-size: 22px;
    }
} 

