/* ========== 紫蒲酒店 - 主要样式 ========== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f0eb;
    min-height: 100vh;
    color: #333;
}

/* ===== 页面容器 ===== */
.page {
    max-width: 420px;
    margin: 0 auto;
    min-height: 100vh;
    background: #f5f0eb;
    position: relative;
    padding-bottom: 60px;
}

/* ===== 音乐按钮 ===== */
.music-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 100;
    transition: transform 0.2s;
}

.music-btn:active {
    transform: scale(0.9);
}

.music-icon {
    font-size: 20px;
}

/* ===== 问候语 ===== */
.greeting {
    padding: 60px 24px 20px;
    text-align: center;
}

.greeting-main {
    font-size: 28px;
    font-weight: 700;
    color: #5a4a3a;
    letter-spacing: 2px;
}

.greeting-em {
    font-style: italic;
    font-weight: 300;
    color: #b8956e;
}

.greeting-sub {
    display: block;
    font-size: 14px;
    color: #8a7a6a;
    margin-top: 8px;
    letter-spacing: 4px;
}

/* ===== 猫咪卡片轮播 ===== */
.card-swiper {
    padding: 0 16px;
    overflow: hidden;
}

.card-track {
    display: flex;
    transition: transform 0.3s ease;
    cursor: grab;
}

.card-track:active {
    cursor: grabbing;
}

/* 卡片项 — 每项占满 swiper 宽度 */
.card-item {
    flex: 0 0 100%;
    min-width: 0;
    padding: 0 4px;
}

/* 卡片本体 */
.card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.card-img {
    width: 100%;
    display: block;
    height: 280px;
    object-fit: cover;
    cursor: pointer;
}

/* 卡片底部信息区 */
.card-info {
    padding: 16px 20px 20px;
}

.info-top {
    margin-bottom: 12px;
}

.info-name {
    font-size: 18px;
    font-weight: 600;
    color: #5a4a3a;
    margin-bottom: 4px;
}

.info-tags {
    font-size: 13px;
    color: #8a7a6a;
    line-height: 1.5;
}

.info-bottom {
    display: flex;
    align-items: center;
}

.btn-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.left-icons {
    display: flex;
    gap: 8px;
}

.msg-btn,
.phone-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f5f0eb;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    font-size: 16px;
}

.msg-btn:active,
.phone-btn:active {
    transform: scale(0.9);
}

.info-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    background: #b8956e;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    font-weight: 500;
}

.info-btn:active {
    transform: scale(0.95);
    background: #a07a55;
}

/* ===== 轮播指示点 ===== */
.swiper-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 16px 0;
}

.swiper-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s;
    cursor: pointer;
}

.swiper-dots .dot.active {
    width: 24px;
    border-radius: 4px;
    background: #b8956e;
}

/* ===== 功能按钮区 ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 8px 16px 24px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.feature-item:active {
    transform: scale(0.92);
}

.feature-img-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== 底部导航 ===== */
.nav-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0;
    background: #fff;
    border-top: 1px solid #eee;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 420px;
    margin: 0 auto;
    z-index: 50;
}

.nav-link {
    font-size: 13px;
    color: #999;
    cursor: pointer;
    padding: 4px 16px;
    transition: color 0.2s;
    user-select: none;
}

.nav-link.active {
    color: #b8956e;
    font-weight: 600;
}

.nav-link:active {
    color: #a07a55;
}

/* ===== 详情页头部 ===== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 8px;
    background: transparent;
}

.back-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: transform 0.2s;
}

.back-btn:active {
    transform: scale(0.9);
}

.back-icon {
    font-size: 18px;
    color: #5a4a3a;
}

.title {
    font-size: 17px;
    font-weight: 600;
    color: #5a4a3a;
}

.placeholder {
    width: 36px;
}

/* ===== 详情页图片列表 ===== */
.image-list {
    padding: 0 16px;
}

.image-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.image-item {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.cat-image {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* ===== 响应式 ===== */
@media (min-width: 420px) {
    .page {
        border-left: 1px solid #eee;
        border-right: 1px solid #eee;
    }
}
