* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    overflow-x: hidden;
}

.app-container {
    max-width: 750px;
    margin: 0 auto;
    background: #f5f5f5;
    min-height: 100vh;
    position: relative;
    padding-bottom: 56px;
}

.page-content {
    min-height: calc(100vh - 56px);
}

.navbar {
    background: #07c160;
    color: #fff;
    padding: 12px 15px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-title {
    font-size: 18px;
    font-weight: 500;
}

.page-body {
    padding: 12px;
}

.banner {
    background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
    border-radius: 12px;
    padding: 30px 20px;
    margin-bottom: 12px;
    color: #fff;
}

.banner-text h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.banner-text p {
    font-size: 14px;
    opacity: 0.9;
}

.banner-link {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-link:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.banner-link-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-right: 15px;
    flex-shrink: 0;
}

.banner-link-text {
    flex: 1;
    color: #fff;
}

.banner-link-text h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.banner-link-text p {
    font-size: 13px;
    opacity: 0.9;
}

.banner-link-arrow {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 10px;
    flex-shrink: 0;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 20px 10px;
    margin-bottom: 12px;
}

.quick-actions.three-items {
    grid-template-columns: repeat(3, 1fr);
}

.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-item:active {
    transform: scale(0.95);
}

.quick-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 8px;
}

.quick-icon.hot {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
}

.quick-icon.news {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.quick-icon.business {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.quick-icon.query {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.quick-icon.consult {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.quick-icon.law {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.quick-icon.aid {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
}

.quick-icon.notary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.quick-icon.map {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.quick-label {
    font-size: 12px;
    color: #333;
    text-align: center;
}

.section {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.section-header {
    padding: 15px 15px 10px;
    border-bottom: 1px solid #f0f0f0;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.function-list {
    padding: 0 15px;
}

.function-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.function-item:last-child {
    border-bottom: none;
}

.function-item:active {
    background: #f5f5f5;
}

.function-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-right: 12px;
    flex-shrink: 0;
}

.function-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    width: 100%;
}

.function-name {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
}

.function-desc {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    -moz-line-clamp: 2;
    -moz-box-orient: vertical;
    -ms-line-clamp: 2;
    -ms-box-orient: vertical;
    line-clamp: 2;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 36px;
}

.function-arrow {
    font-size: 20px;
    color: #ccc;
    margin-left: 10px;
    flex-shrink: 0;
}

.tabbar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 750px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    padding: 6px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 4px 12px;
    transition: all 0.3s ease;
    flex: 1;
}

.tab-icon {
    font-size: 22px;
    margin-bottom: 2px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.tab-label {
    font-size: 10px;
    color: #666;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.tab-item.active .tab-icon {
    opacity: 1;
    transform: scale(1.1);
}

.tab-item.active .tab-label {
    color: #07c160;
    opacity: 1;
    font-weight: 500;
}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2000;
    max-width: 80%;
    text-align: center;
}

.toast.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 480px) {
    .navbar-title {
        font-size: 16px;
    }

    .page-body {
        padding: 10px;
    }

    .banner {
        padding: 25px 15px;
    }

    .banner-text h2 {
        font-size: 20px;
    }

    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding: 15px 8px;
    }

    .quick-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }

    .quick-label {
        font-size: 11px;
    }

    .function-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .function-name {
        font-size: 14px;
    }

    .function-desc {
        font-size: 11px;
    }
}