* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-color: #07c160;
    --secondary-color: #10aeff;
    --text-color: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --background-color: #f7f7f7;
    --border-color: #eeeeee;
    --danger-color: #fa5151;
    --warning-color: #ffc300;
    --success-color: #07c160;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.5;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 414px; /* 标准小程序宽度 */
    margin: 0 auto;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

/* 标题栏样式 */
.app-header {
    height: 44px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    padding: 0 15px;
    z-index: 100;
}

.app-header h1 {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-color);
}

.app-header .back-button {
    position: absolute;
    left: 15px;
    color: var(--text-color);
    font-size: 22px;
}

/* 内容区域样式 */
.app-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    -webkit-overflow-scrolling: touch;
}

/* 网格服务导航 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 15px 0;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-color);
    padding: 15px 0;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.service-item:active {
    transform: scale(0.98);
}

.service-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.service-icon i {
    font-size: 24px;
}

.service-title {
    font-size: 14px;
    color: var(--text-color);
}

/* 底部导航栏 */
.app-footer {
    height: 50px;
    background-color: #fff;
    border-top: 1px solid var(--border-color);
    width: 100%;
}

.tab-bar {
    display: flex;
    height: 100%;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-light);
    font-size: 12px;
}

.tab-item.active {
    color: var(--primary-color);
}

.tab-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

/* 表单控件样式 */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.form-input {
    display: block;
    width: 100%;
    height: 44px;
    padding: 10px 15px;
    font-size: 16px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-textarea {
    height: 100px;
    resize: none;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    min-width: 100px;
    height: 44px;
    line-height: 44px;
    padding: 0 15px;
    text-align: center;
    font-size: 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn:active {
    opacity: 0.8;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.card-content {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 列表样式 */
.list {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.list-item {
    padding: 15px;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-title {
    flex: 1;
    font-size: 16px;
}

.list-item-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 5px;
}

.list-item-arrow {
    color: var(--text-light);
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 4px;
    color: #fff;
    margin-right: 5px;
}

.tag-primary {
    background-color: var(--primary-color);
}

.tag-warning {
    background-color: var(--warning-color);
}

.tag-danger {
    background-color: var(--danger-color);
}

/* 加载状态 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    color: var(--text-light);
}

.loading i {
    animation: spin 1s linear infinite;
    margin-right: 5px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 地图容器 */
.map-container {
    width: 100%;
    height: 300px;
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* 自定义地图控件 */
.map-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
}

.map-control-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50%;
    margin-bottom: 10px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

/* 通知样式 */
.notification {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

.notification-success {
    background-color: rgba(7, 193, 96, 0.1);
    color: var(--success-color);
}

.notification-warning {
    background-color: rgba(255, 195, 0, 0.1);
    color: var(--warning-color);
}

.notification-error {
    background-color: rgba(250, 81, 81, 0.1);
    color: var(--danger-color);
}

/* 进度条样式 */
.progress {
    height: 6px;
    background-color: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* 搜索框 */
.search-box {
    position: relative;
    margin-bottom: 15px;
}

.search-input {
    width: 100%;
    height: 44px;
    padding: 10px 15px 10px 40px;
    border-radius: 22px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    font-size: 14px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

/* 弹出层样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    width: 85%;
    max-width: 300px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.modal-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.modal-body {
    padding: 20px 15px;
}

.modal-footer {
    display: flex;
    border-top: 1px solid var(--border-color);
}

.modal-btn {
    flex: 1;
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 16px;
    color: var(--text-color);
    border: none;
    background-color: #fff;
}

.modal-btn-primary {
    color: var(--primary-color);
    font-weight: 500;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    min-width: 120px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 10px 15px;
    font-size: 14px;
    color: var(--text-color);
    text-decoration: none;
    display: block;
}

.dropdown-item:active {
    background-color: var(--background-color);
}

/* 页面切换动画 */
.page-enter {
    opacity: 0;
    transform: translateX(100%);
}

.page-enter-active {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.3s, transform 0.3s;
}

.page-exit {
    opacity: 1;
    transform: translateX(0);
}

.page-exit-active {
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 0.3s, transform 0.3s;
} 