ion-content {
    --background: linear-gradient(135deg, #F8F9FF, #E6F7FF);
    background-size: cover;   
    --padding-start: 16px;  
    --padding-end: 16px;    
}

:root {
    --primary: #3A5FE5;
    --secondary: #00C4A1;
    --danger: #FF4D4F;
    --bg: #F8F9FF;
    --text: #2D3748;
    --card: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部导航 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-top: 15px;
    margin-bottom: 15px;
    
}

.logo {
    font-weight: bold;
    font-size: 20px;
    color: #3A5FE5;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 8px;
    color: #00C4A1;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #3A5FE5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* 搜索框 */
.search-bar {
    display: flex;
    background: white;
    border-radius: 24px;
    padding: 10px 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 5px;
    font-size: 16px;
}

.search-btn {
    background: none;
    border: none;
    color: #3A5FE5;
    font-size: 18px;
}

/* 服务入口 */
.services {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 20px 0;
}

.service-card {
    width: 23%;
    aspect-ratio: 1;
    background: white;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.service-card:active {
    transform: scale(0.95);
}

.service-icon {
    font-size: 24px;
    margin-bottom: 8px;
    color: #3A5FE5;
}

.service-name {
    font-size: 12px;
    color: #2D3748;
}

/* 热点推荐 */
.section-title {
    font-size: 18px;
    font-weight: bold;
    margin: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title a {
    font-size: 14px;
    font-weight: normal;
    color: #3A5FE5;
    text-decoration: none;
}

.hot-topics {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
}

.topic-card {
    min-width: 200px;
    height: 100px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3A5FE5, #6A8EFF);
    color: white;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}

.topic-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" opacity="0.1"><text x="10" y="20" font-family="Arial" font-size="10">《民法典》</text></svg>');
}

.topic-title {
    font-weight: bold;
    margin-bottom: 5px;
    position: relative;
}

.topic-desc {
    font-size: 12px;
    opacity: 0.9;
    position: relative;
}

/* 动态通知 */
.notice-bar {
    background: white;
    border-radius: 12px;
    padding: 12px 15px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.notice-icon {
    color: #FF4D4F;
    margin-right: 10px;
    font-size: 18px;
}

.notice-content {
    flex: 1;
    font-size: 14px;
}

.notice-close {
    color: #999;
    font-size: 14px;
}

.latest-news {
    margin: 20px 0;
}

.latest-news h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.news-card {
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}

.news-card p {
    font-size: 14px;
    color: #2D3748;
            margin: 12px 0;
}
