/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f7f9fc;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* 头部样式 */
.header {
    background-color: #0d1f3a;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    padding: 8px 12px;
    transition: color 0.3s;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #4dabf7;
}

.user-section {
    display: flex;
    align-items: center;
}

.user-icon {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.user-icon i {
    font-size: 18px;
}

/* Hero 区域 */
.hero {
    background: linear-gradient(rgba(13, 31, 58, 0.8), rgba(13, 31, 58, 0.8)), url('https://24344043.s21i.faiusr.com/4/ABUIABAEGAAg1LS0vwYo59-38gUw7g44rQg.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 120px 0;
    text-align: center;
    position: relative;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-pattern.png');
    opacity: 0.2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.main-title {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: bold;
}

.sub-title {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: normal;
}

.hero-btn {
    display: inline-block;
    background-color: #2196f3;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s;
    border: 2px solid #2196f3;
}

.hero-btn:hover {
    background-color: transparent;
    color: #fff;
}

/* 搜索区域 */
.search-section {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 10px;
}

.tag-item {
    padding: 5px 15px;
    background-color: #f0f4f8;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.tag-item:hover, .tag-item.active {
    background-color: #2196f3;
    color: #fff;
}

.search-box {
    display: flex;
    max-width: 500px;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px 0 0 5px;
    font-size: 14px;
    outline: none;
}

.search-box button {
    background-color: #2196f3;
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

/* 产品分类区域 */
.product-section {
    padding: 60px 0;
}

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

.section-title {
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.section-title i {
    color: #2196f3;
}

.more-link {
    color: #777;
    font-size: 14px;
    transition: color 0.3s;
}

.more-link:hover {
    color: #2196f3;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.product-btn {
    display: inline-block;
    background-color: #2196f3;
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s;
}

.product-btn:hover {
    background-color: #0d6efd;
}

/* 热门产品区域 */
.hot-product-section {
    padding: 60px 0;
    background-color: #f0f4f8;
}

.hot-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.hot-product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.hot-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hot-product-image {
    height: 180px;
    background: url('../images/hot-product.jpg');
    background-size: cover;
    background-position: center;
}

.hot-product-info {
    padding: 15px;
    text-align: center;
}

.hot-product-btn {
    display: inline-block;
    background-color: #2196f3;
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s;
}

.hot-product-btn:hover {
    background-color: #0d6efd;
}

/* 服务区域 */
.service-section {
    padding: 60px 0;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
}

.service-card {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 20px;
    flex-shrink: 0;
}

.app-dev .service-icon {
    background-color: #ffecb3;
    color: #f57c00;
}

.web-dev .service-icon {
    background-color: #bbdefb;
    color: #1976d2;
}

.service-content {
    flex: 1;
}

.service-content h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.service-content p {
    color: #777;
    font-size: 14px;
}

.service-arrow {
    margin-left: 15px;
    color: #ccc;
    transition: all 0.3s;
}

.service-card:hover .service-arrow {
    color: #2196f3;
    transform: translateX(5px);
}

/* Banner区域 */
.banner-section {
    padding: 80px 0;
    background: linear-gradient(rgba(13, 31, 58, 0.8), rgba(13, 31, 58, 0.8)), url('https://24344043.s21i.faiusr.com/4/ABUIABAEGAAgieK0vwYo-bSK1wIwsAk4rAI.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.banner {
    text-align: center;
    color: #fff;
}

.banner h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.banner h3 {
    font-size: 20px;
    font-weight: normal;
}

/* 页脚 */
.footer {
    background-color: #0d1f3a;
    color: #a4b5c6;
    padding: 30px 0;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
}

.footer-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: bold;
}

.footer-content p {
    margin-bottom: 10px;
    font-size: 14px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qrcode-item {
    text-align: center;
    margin-bottom: 20px;
}

.qrcode-item img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
    background-color: #fff;
    padding: 5px;
}

.footer-bottom {
    text-align: center;
    font-size: 12px;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #0d1f3a;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 30px;
        transition: left 0.3s ease;
        z-index: 1000;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0 0 20px;
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 10px 0;
        font-size: 18px;
    }
    
    .hero {
        padding: 100px 0;
    }
    
    .main-title {
        font-size: 36px;
    }
    
    .sub-title {
        font-size: 20px;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 30px;
    }
    
    .product-grid, .hot-product-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 80px 0;
    }
    
    .main-title {
        font-size: 28px;
    }
    
    .sub-title {
        font-size: 18px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
} 