* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

#app {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 60px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    height: 60px;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    color: #999;
    transition: all 0.3s;
}

.nav-item.active {
    color: #4a6cf7;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 12px;
}

/* 首页样式 */
.home-page {
    padding: 15px;
}

.banner {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4a6cf7, #6a8ff8);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(74, 108, 247, 0.3);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.feature-item {
    background-color: white;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-item i {
    font-size: 32px;
    margin-bottom: 10px;
    color: #4a6cf7;
}

.feature-item h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.recommendation {
    background-color: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.recommendation h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.recommendation-list {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
}

.recommendation-item {
    min-width: 140px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 10px;
}

.recommendation-item h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.recommendation-item p {
    font-size: 12px;
    color: #666;
}

/* 对话页面样式 */
.chat-page {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    background-color: #4a6cf7;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.message {
    margin-bottom: 15px;
    display: flex;
}

.message.user {
    justify-content: flex-end;
}

.message.bot {
    justify-content: flex-start;
}

.message-content {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 18px;
}

.user .message-content {
    background-color: #4a6cf7;
    color: white;
    border-bottom-right-radius: 5px;
}

.bot .message-content {
    background-color: #f1f1f1;
    color: #333;
    border-bottom-left-radius: 5px;
}

.chat-input {
    padding: 15px;
    background-color: white;
    display: flex;
    align-items: center;
    border-top: 1px solid #eee;
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

.chat-input button {
    background-color: #4a6cf7;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* 列表页面样式 */
.list-page {
    padding: 15px;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.list-header h2 {
    font-size: 20px;
}

.list-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.filter-item {
    padding: 5px 12px;
    background-color: #f1f1f1;
    border-radius: 15px;
    font-size: 14px;
    white-space: nowrap;
}

.filter-item.active {
    background-color: #4a6cf7;
    color: white;
}

.list-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.list-item {
    background-color: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.list-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.list-item-title {
    font-size: 16px;
    font-weight: bold;
}

.list-item-tag {
    background-color: #e6f7ff;
    color: #1890ff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.list-item-content {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.list-item-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

/* 产品页面样式 */
.product-page {
    padding: 15px;
}

.product-header {
    margin-bottom: 20px;
}

.product-header h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.product-search {
    position: relative;
}

.product-search input {
    width: 100%;
    padding: 10px 15px;
    padding-left: 40px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

.product-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.product-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.category-item {
    padding: 8px 15px;
    background-color: #f1f1f1;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
}

.category-item.active {
    background-color: #4a6cf7;
    color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.product-item {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-image {
    width: 100%;
    height: 150px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.product-info {
    padding: 10px;
}

.product-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    color: #ff4d4f;
    font-size: 16px;
    font-weight: bold;
}

.product-price small {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-left: 5px;
}

/* 会员页面样式 */
.membership-page {
    padding: 15px;
}

.user-info {
    background: linear-gradient(135deg, #4a6cf7, #6a8ff8);
    border-radius: 12px;
    padding: 20px;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(74, 108, 247, 0.3);
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.user-avatar i {
    font-size: 30px;
    color: #4a6cf7;
}

.user-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.user-status {
    font-size: 14px;
    opacity: 0.8;
}

.membership-plans {
    background-color: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.membership-plans h2 {
    font-size: 18px;
    margin-bottom: 15px;
}

.plan-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}

.plan-item.recommended {
    border-color: #4a6cf7;
}

.recommended-tag {
    position: absolute;
    top: -10px;
    right: 10px;
    background-color: #4a6cf7;
    color: white;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
}

.plan-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.plan-price {
    font-size: 24px;
    color: #ff4d4f;
    margin-bottom: 10px;
}

.plan-price small {
    font-size: 14px;
    color: #999;
}

.plan-features {
    margin-bottom: 15px;
}

.plan-feature {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 14px;
}

.plan-feature i {
    color: #52c41a;
    margin-right: 5px;
}

.plan-button {
    background-color: #4a6cf7;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 0;
    width: 100%;
    font-size: 14px;
    cursor: pointer;
}

.membership-benefits {
    background-color: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.membership-benefits h2 {
    font-size: 18px;
    margin-bottom: 15px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background-color: #e6f7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.benefit-icon i {
    color: #4a6cf7;
    font-size: 20px;
}

.benefit-content h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.benefit-content p {
    font-size: 14px;
    color: #666;
} 