* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-size: calc(100vw / 375 * 16);
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: #fff7fb;
    color: #333;
    padding-bottom: 3.2rem;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    display: block;
}
button {
    border: none;
    background: none;
    cursor: pointer;
}
input {
    outline: none;
}
[v-cloak] {
    display: none !important;
}

/*顶部搜索栏*/
.header-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    z-index: 99;
    padding: 0.6rem 0.8rem;
    box-shadow: 0 1px 4px rgba(255, 105, 180, 0.08);
}
.search-wrap {
    display: flex;
    align-items: center;
}
.search-input {
    flex: 1;
    background-color: #fff0f6;
    border-radius: 999px;
    border: none;
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    color: #555;
}
.search-input:focus {
    background-color: #ffe4ef;
}
.icon-user {
    width: 1.8rem;
    text-align: center;
    margin-left: 0.6rem;
    color: #ff66a8;
    font-size: 1.1rem;
}
.space-top {
    height: 3.2rem;
}

/*banner轮播*/
.banner-box {
    width: 100%;
    overflow: hidden;
    position: relative;
}
.banner-list {
    display: flex;
    transition: transform 0.4s ease;
}
.banner-item {
    flex-shrink: 0;
    width: 100%;
}
.banner-item img {
    width: 100%;
    display: block;
    object-fit: cover;
}
.banner-dots {
    position: absolute;
    bottom: 0.6rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.3rem;
}
.dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}
.dot.active {
    background: #ff66a8;
}

/*分类宫格导航*/
.cate-nav {
    background: #fff;
    padding: 1rem 0.4rem;
    margin: 0.8rem 0.6rem;
    border-radius: 0.8rem;
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.06);
}
.cate-row {
    display: flex;
    flex-wrap: wrap;
}
.cate-item {
    width: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    color: #666;
}
.cate-icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffe4ef, #ffd7ec);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.4rem;
    color: #ff66a8;
    font-size: 1.2rem;
}
.cate-item span:active {
    color: #ff66a8;
}

/*模块标题*/
.module-title {
    padding: 1rem 0.8rem 0.6rem;
    font-size: 1rem;
    font-weight: 600;
    color: #444;
}

/*商品双列卡片*/
.goods-wrap {
    padding: 0 0.6rem;
}
.goods-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}
.goods-card {
    background: #fff;
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.06);
}
.goods-img {
    width: 100%;
	height:100%;
    aspect-ratio: 1/1;
    background: #fffafd;
}
.goods-info {
    padding: 0.6rem;
}
.goods-name {
    font-size: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #444;
}
.goods-price {
    color: #ff4d88;
    font-size: 0.95rem;
    margin-top: 0.4rem;
    font-weight: bold;
}

/*资讯卡片*/
.news-wrap {
    margin-top: 1rem;
    padding-bottom: 1rem;
}
.news-item {
    background: #fff;
    margin: 0.4rem 0.6rem;
    border-radius: 0.8rem;
    display: flex;
    padding: 0.6rem;
    gap: 0.6rem;
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.06);
}
.news-img {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 0.6rem;
    background: #fffafd;
    flex-shrink: 0;
}
.news-text {
    flex: 1;
}
.news-title {
    font-size: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: #444;
}

/*底部Tab导航*/
.footer-tab {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3.2rem;
    background: #fff;
    display: flex;
    border-top: 1px solid #ffe4ef;
    z-index: 99;
}
.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #999;
}
.tab-item.active {
    color: #ff66a8;
}
.tab-icon {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

/*AI对话悬浮按钮样式*/
.ai-float-btn {
    position: fixed;
    right: 1rem;
    bottom: 4rem;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff66a8, #ff4d88);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 77, 136, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    z-index: 100;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ai-float-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(255, 77, 136, 0.35);
}
.ai-panel {
    position: fixed;
    right: 1rem;
    bottom: 8rem;
    width: 18rem;
    max-height: 26rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(255, 105, 180, 0.18);
    z-index: 101;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(1rem);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.ai-panel.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.ai-panel-header {
    padding: 0.9rem 1rem;
    background: linear-gradient(135deg, #ff66a8, #ff4d88);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ai-panel-header strong {
    font-size: 0.95rem;
}
.ai-panel-close {
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.85;
}
.ai-panel-close:active {
    opacity: 1;
}
.ai-panel-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 14rem;
    max-height: 18rem;
}
.ai-msg {
    margin-bottom: 0.8rem;
    display: flex;
    gap: 0.6rem;
    align-items: flex-end;
}
.ai-msg.user {
    flex-direction: row-reverse;
}
.ai-avatar {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: #ffe4ef;
    color: #ff66a8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.ai-msg.user .ai-avatar {
    background: #ff66a8;
    color: #fff;
}
.ai-bubble {
    max-width: 13rem;
    padding: 0.7rem 0.9rem;
    border-radius: 1rem;
    background: #fff0f6;
    color: #555;
    font-size: 0.85rem;
    line-height: 1.5;
}
.ai-msg.user .ai-bubble {
    background: #ff66a8;
    color: #fff;
    border-bottom-right-radius: 0.3rem;
}
.ai-bubble.typing {
    color: #ff66a8;
    font-size: 0.8rem;
}
.ai-panel-footer {
    padding: 0.8rem;
    border-top: 1px solid #ffe4ef;
    display: flex;
    gap: 0.5rem;
}
.ai-input {
    flex: 1;
    border: 1px solid #ffd7ec;
    border-radius: 999px;
    padding: 0.55rem 0.8rem;
    font-size: 0.85rem;
    outline: none;
    color: #555;
    background: #fffafd;
}
.ai-input:focus {
    border-color: #ff66a8;
    background: #fff;
}
.ai-send-btn {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff66a8, #ff4d88);
    color: #fff;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
}
.ai-send-btn:active {
    transform: scale(0.95);
}
.ai-quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
}
.ai-quick-btn {
    border: 1px solid #ffd7ec;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    color: #ff66a8;
    background: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}
.ai-quick-btn:active {
    background: #fff0f6;
}
.ai-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.ai-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/*加载、空状态*/
.load-more {
    text-align: center;
    padding: 1.2rem;
    font-size: 0.8rem;
    color:#999;
    grid-column:1/-1;
}
.empty-tip{
    text-align:center;
    padding:2rem 1rem;
    color:#999;
    grid-column:1/-1;
}
