/* 全局重置 & 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.5;
}

/* 移动端容器 */
.container {
    max-width: 500px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* 头部导航 */
.header {
    background-color: #fff;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #fff;
}
.header .logo {
    font-size: 20px;
    font-weight: 600;
    color: #5cb85c;
}
.header .back-btn,
.header .share-btn {
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
}
.header .share-btn {
    color: #5cb85c;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 500px;
    margin: 0 auto;
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    padding: 10px 0 12px;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.02);
    z-index: 10;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #999;
    text-decoration: none;
    gap: 4px;
}
.nav-item.active {
    color: #5cb85c;
}
.nav-item i {
    font-size: 22px;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 16px;
    margin: 12px 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s;
}
.card:hover {
    transform: translateY(-2px);
}

/* 按钮 */
.btn-primary {
    background-color: #5cb85c;
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary:active {
    background-color: #4cae4c;
}
.btn-outline {
    background: transparent;
    border: 1px solid #5cb85c;
    color: #5cb85c;
    padding: 8px 16px;
    border-radius: 40px;
    cursor: pointer;
}

/* 轮播图 */
.swiper-container {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    gap: 12px;
    padding: 0 16px;
    scrollbar-width: none;
}
.swiper-container::-webkit-scrollbar {
    display: none;
}
.swiper-slide {
    scroll-snap-align: start;
    flex: 0 0 85%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}
.swiper-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.slide-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

/* 工具类 */
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mb-2 { margin-bottom: 8px; }
.flex { display: flex; align-items: center; gap: 8px; }