/* 灵动办公移动端首页样式 */
@media screen and (max-width: 768px) {
    body {
        margin: 0;
        font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
        background: #f6f8fa;
        color: #222;
    }
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        height: 56px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.03);
        position: sticky;
        top: 0;
        z-index: 10;
    }
    .mobile-header .logo {
        display: flex;
        align-items: center;
        font-size: 18px;
        font-weight: 700;
        color: #48C6EF;
    }
    .mobile-header .logo img {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }
    .mobile-header .user {
        font-size: 20px;
        color: #888;
    }
    .banner {
        width: 100vw;
        max-width: 100vw;
        overflow: hidden;
        background: linear-gradient(135deg,#eaf6fd 0%,#f8fafd 100%);
        padding: 24px 0 12px 0;
        text-align: center;
    }
    .banner img {
        width: 80px;
        height: 80px;
        margin-bottom: 12px;
    }
    .banner-title {
        font-size: 20px;
        font-weight: 700;
        color: #48C6EF;
        margin-bottom: 8px;
    }
    .banner-desc {
        font-size: 14px;
        color: #666;
        margin-bottom: 12px;
    }
    .banner-btn {
        display: inline-block;
        padding: 8px 24px;
        background: linear-gradient(90deg,#48C6EF 0%,#6F86D6 100%);
        color: #fff;
        border-radius: 20px;
        font-size: 15px;
        text-decoration: none;
        margin-top: 8px;
    }
    .category-tabs {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding: 0 16px 12px 16px;
        margin-top: 18px;
    }
    .category-tab {
        flex-shrink: 0;
        padding: 8px 18px;
        background: #f8f9fa;
        border-radius: 18px;
        font-size: 14px;
        color: #666;
        cursor: pointer;
        transition: all 0.2s;
        white-space: nowrap;
    }
    .category-tab.active {
        background: #48C6EF;
        color: #fff;
    }
    .product-section {
        margin: 20px 0 70px 0;
        padding: 0 16px;
    }
    .product-title {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 16px;
        color: #222;
    }
    .product-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .product-card {
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 18px 8px 12px 8px;
        text-align: center;
        text-decoration: none;
        color: #222;
        transition: box-shadow 0.2s;
    }
    .product-card:active {
        box-shadow: 0 4px 16px rgba(72,198,239,0.12);
    }
    .product-card img {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }
    .product-card .name {
        font-size: 15px;
        font-weight: 600;
        margin-bottom: 4px;
    }
    .product-card .desc {
        font-size: 12px;
        color: #888;
    }
    .product-more-btn {
        grid-column: 1/-1;
        background: linear-gradient(135deg,#48C6EF 0%,#6F86D6 100%);
        color: #fff;
        border-radius: 16px;
        padding: 16px 0;
        text-align: center;
        font-size: 16px;
        font-weight: 600;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 8px;
    }
    .product-more-btn img {
        width: 16px;
        height: 16px;
        margin-left: 8px;
    }
    .news-section {
        margin: 32px 0 80px 0;
        padding: 0 16px;
    }
    .news-title {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 16px;
        color: #222;
        text-align: center;
    }
    .news-tabs {
        display: flex;
        gap: 8px;
        margin-bottom: 16px;
        justify-content: center;
    }
    .news-tab {
        flex: 1;
        padding: 10px 0;
        background: #f8f9fa;
        border-radius: 20px;
        font-size: 14px;
        color: #666;
        cursor: pointer;
        text-align: center;
        transition: all 0.2s;
    }
    .news-tab.active {
        background: #48C6EF;
        color: #fff;
    }
    .news-list {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        padding: 8px 0;
    }
    .news-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        border-bottom: 1px solid #f5f5f5;
        text-decoration: none;
        color: #333;
        transition: all 0.2s;
    }
    .news-item:last-child {
        border-bottom: none;
    }
    .news-item:active {
        background: #f8f9fa;
    }
    .news-name {
        font-size: 14px;
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .news-date {
        font-size: 12px;
        color: #999;
        margin-left: 12px;
    }
    .mobile-footer {
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100vw;
        background: #fff;
        border-top: 1px solid #eee;
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 54px;
        z-index: 100;
    }
    .footer-item {
        flex: 1;
        text-align: center;
        color: #888;
        font-size: 12px;
        padding: 4px 0 0 0;
        text-decoration: none;
    }
    .footer-item.active {
        color: #48C6EF;
        font-weight: 600;
    }
    .footer-item img {
        width: 22px;
        height: 22px;
        display: block;
        margin: 0 auto 2px auto;
    }
}

@media screen and (max-width: 375px) {
    .product-grid,
    .category-tabs {
        grid-template-columns: 1fr !important;
    }
}
