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

:root {
    --primary-color: #2196F3;
    --primary-dark: #1976D2;
    --primary-light: #42A5F5;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-white: #FFFFFF;
    --bg-gray: #F5F5F5;
    --border-color: #E0E0E0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 60px;
}

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

ul {
    list-style: none;
}

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

/* ===== 顶部导航栏 ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.header-inner {
    height: 100%;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

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

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

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

.logo-slogan {
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.2;
}

.menu-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
}

.menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

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

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

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

/* 侧边菜单 */
.side-menu {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 260px;
    height: calc(100vh - 60px);
    background: var(--bg-white);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 99;
    overflow-y: auto;
}

.side-menu.active {
    right: 0;
}

.side-menu ul {
    padding: 10px 0;
}

.side-menu li {
    border-bottom: 1px solid var(--border-color);
}

.side-menu a {
    display: block;
    padding: 15px 24px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.2s;
}

.side-menu a:hover {
    background: var(--bg-gray);
    color: var(--primary-color);
    padding-left: 28px;
}

.menu-mask {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 98;
}

.menu-mask.active {
    opacity: 1;
    visibility: visible;
}

/* ===== 轮播图 Banner ===== */
.banner {
    margin-top: 60px;
    position: relative;
    height: 220px;
    overflow: hidden;
}

.banner-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slide.active {
    opacity: 1;
}

.banner-content {
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 2;
    padding: 20px;
}

.banner-illustration {
    font-size: 60px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.person-1, .person-2, .car-icon, .briefcase-icon {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.banner-tag {
    display: inline-block;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    padding: 4px 16px;
    border-radius: 16px;
    font-size: 12px;
    margin-bottom: 10px;
}

.banner-title {
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

.banner-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
    cursor: pointer;
}

.banner-dots .dot.active {
    width: 24px;
    background: #fff;
}

/* ===== 通用区块样式 ===== */
.section-header {
    text-align: center;
    padding: 30px 16px 20px;
    position: relative;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.search-fab {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4);
}

/* ===== 功能介绍区 ===== */
.product-section {
    background: var(--bg-white);
}

.tab-container {
    padding: 0 16px;
    margin-bottom: 20px;
}

.tab-list {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.tab-item {
    padding: 8px 24px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-white);
}

.tab-item.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.tab-content {
    padding: 0 16px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-bottom: 20px;
}

.product-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s;
}

.product-card:active {
    transform: scale(0.98);
}

.product-img {
    width: 100%;
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    position: relative;
}

/* 手机模拟界面 */
.phone-mockup {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mockup-header {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    font-weight: 500;
}

.mockup-list {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mockup-item {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px;
    background: var(--bg-gray);
    border-radius: 6px;
}

.mockup-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FF9800;
    flex-shrink: 0;
}

.mockup-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mockup-line {
    height: 8px;
    border-radius: 4px;
    background: #ddd;
}

.mockup-line.w90 { width: 90%; }
.mockup-line.w85 { width: 85%; }
.mockup-line.w80 { width: 80%; }
.mockup-line.w75 { width: 75%; }
.mockup-line.w70 { width: 70%; }
.mockup-line.w65 { width: 65%; }
.mockup-line.w60 { width: 60%; }
.mockup-line.w55 { width: 55%; }
.mockup-line.w50 { width: 50%; }

.mockup-map {
    flex: 1;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border-radius: 6px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.map-pin {
    position: absolute;
    font-size: 20px;
}

.product-info {
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-info h4 {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.more-link {
    font-size: 12px;
    color: var(--primary-color);
}

/* ===== 关于我们 ===== */
.about-section {
    background: var(--bg-gray);
    padding-bottom: 30px;
}

.about-content {
    padding: 0 20px;
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
    text-align: justify;
}

.value-block {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-white);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.value-title {
    font-size: 15px;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: bold;
}

.value-block p {
    margin-bottom: 0;
}

/* ===== 成功案例 ===== */
.case-section {
    background: var(--bg-white);
    padding-bottom: 30px;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 16px;
}

.case-card {
    text-align: center;
    transition: transform 0.2s;
}

.case-card:active {
    transform: scale(0.98);
}

.case-img {
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-card h4 {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

/* ===== 新闻资讯 ===== */
.news-section {
    background: var(--bg-gray);
    padding-bottom: 30px;
}

.news-list {
    padding: 0 16px;
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: block;
    background: var(--bg-white);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.news-item:active {
    transform: scale(0.99);
}

.news-title {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.4;
}

.news-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-date {
    font-size: 12px;
    color: var(--text-light);
}

.news-tags {
    font-size: 12px;
    color: var(--primary-color);
    background: rgba(33, 150, 243, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

/* ===== 底部Footer ===== */
.footer {
    background: #2c3e50;
    color: #bdc3c7;
    padding: 30px 16px 20px;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 15px;
    font-weight: 500;
}

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

.footer-col ul li a {
    color: #bdc3c7;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--primary-light);
}

.footer-contact .qrcode-group {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.qrcode-item {
    text-align: center;
}

.qrcode {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 6px;
    padding: 6px;
    margin-bottom: 4px;
}

.qr-pattern {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, #000 25%, transparent 25%),
        linear-gradient(-45deg, #000 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #000 75%),
        linear-gradient(-45deg, transparent 75%, #000 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
    border-radius: 4px;
}

.qrcode-item span {
    font-size: 11px;
    color: #bdc3c7;
    display: block;
}

.footer-phone {
    display: block;
    color: var(--primary-light);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
}

.footer-time {
    font-size: 12px;
    color: #95a5a6;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 16px;
    text-align: center;
}

.friend-links {
    margin-bottom: 10px;
    font-size: 12px;
}

.friend-links a {
    color: #bdc3c7;
    margin: 0 6px;
}

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

.copyright {
    font-size: 12px;
    color: #7f8c8d;
    line-height: 1.8;
}

.copyright a {
    color: #95a5a6;
    margin: 0 4px;
}

.copyright a:hover {
    color: var(--primary-light);
}

/* ===== 底部固定导航栏 ===== */
.tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--primary-color);
    display: flex;
    z-index: 100;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.tabbar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    gap: 2px;
    transition: color 0.2s;
}

.tabbar-item.active {
    color: #fff;
}

.tabbar-item svg {
    width: 22px;
    height: 22px;
}

/* ===== 响应式适配 ===== */
@media (min-width: 768px) {
    .banner {
        height: 320px;
    }
    
    .banner-title {
        font-size: 36px;
    }
    
    .banner-illustration {
        font-size: 90px;
    }
    
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
    
    .case-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .news-list {
        padding: 0 16px;
    }
}

@media (min-width: 1024px) {
    .banner {
        height: 400px;
    }
    
    .banner-title {
        font-size: 42px;
    }
    
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .header-inner {
        max-width: 1200px;
    }
    
    .tab-container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .product-grid {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* 移动端适配 */
@media (max-width: 480px) {
    .case-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-contact {
        grid-column: 1 / -1;
    }
    
    .banner-illustration {
        font-size: 50px;
    }
    
    .banner-title {
        font-size: 20px;
    }
}
