/* pet-house.css — 宠物小屋样式 */

#pet-house { display: none; }

#pet-house.active { display: flex; height: calc(100vh - 160px); gap: 20px; }

/* ====== 左侧学生列表 ====== */
.house-left { width: 240px; background: white; border-radius: 16px; padding: 20px; flex-shrink: 0; display: flex; flex-direction: column; overflow: hidden; }

.house-left-title { font-size: 12px; color: #999; margin-bottom: 15px; flex-shrink: 0; }

#house-student-list { flex: 1; overflow-y: auto; min-height: 0; }

.house-student-item { padding: 12px; background: #f8f9fa; border-radius: 10px; cursor: pointer; display: flex; align-items: center; gap: 10px; border: 2px solid transparent; transition: all 0.2s ease; }
.house-student-item:hover { background: #f0f1f3; }
.house-student-item.active { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border-color: #2563eb; box-shadow: 0 2px 10px rgba(59,130,246,0.25), inset 0 0 0 1px rgba(59,130,246,0.1); }
.house-student-item img { width: 32px; height: 32px; border-radius: 6px; object-fit: contain; flex-shrink: 0; }
.house-student-item > div { flex: 1; min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }

/* ====== 中间区域 ====== */
.house-center {
    flex: 1;
    min-width: 0;
    position: relative;
    background: linear-gradient(135deg, #f6f7f9 0%, #c3cfe2 100%);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.house-room-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.house-pet-in-room {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -12px;  /* 往下挪一点点，让宠物更"踩"在地面上；JS 会在背景图加载后用 positionPet() 覆盖 */
    margin: 0 auto;
    width: 70%;
    max-width: 720px;
    height: 58%;  /* 默认高度，JS 会按形态阶段覆盖（egg 36% / baby 44% / teen 52% / youth 60% / adult 68% / ultimate 76%）*/
    transform-origin: center bottom;
    z-index: 5;
    pointer-events: auto;
    cursor: pointer;
    filter: drop-shadow(rgba(0,0,0,0.34) 0px 28px 22px);
    transition: transform 0.25s ease-in;
    display: flex;
    align-items: flex-end;      /* 图片底部对齐展示区域 */
    justify-content: center;    /* 图片水平居中 */
}
.house-pet-in-room.pet-float {
    animation: housePetFloat 2.5s ease-in-out infinite;
}
@keyframes housePetFloat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}
.house-pet-in-room img,
.house-pet-in-room span {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    display: block;
    text-align: center;
    object-fit: contain;
    object-position: center bottom;
}

.house-room-info {
    position: absolute;
    left: 50%;
    bottom: 5%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
    border-radius: 9999px;
    z-index: 7;
    flex-shrink: 0;
}
.house-room-info .pet-name {
    font-size: 12px;
    font-weight: 500;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.house-room-info .pet-level {
    padding: 0;
    background: none;
    color: #111827;
    border-radius: 0;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.house-room-info .exp-bar-wrap {
    flex: 0 0 48px;
    min-width: 48px;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 9999px;
    overflow: hidden;
}
.house-room-info .exp-pct {
    font-size: 12px;
    font-weight: 700;
    color: #111827;
    flex-shrink: 0;
}
.house-room-info .exp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #34d399, #6ee7b7);
    border-radius: 9999px;
    transition: width 0.4s ease;
}

/* 宠物浮动动效 */
#house-pet-img.pet-float,
#house-pet-emoji.pet-float {
    animation: housePetFloat 3s ease-in-out infinite;
}
@keyframes housePetFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ====== 空屋提示气泡 ====== */
.house-empty-tip {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 260px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    z-index: 20;
    pointer-events: auto;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}
.house-empty-tip::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 34px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 12px solid rgba(255, 255, 255, 0.96);
}
.house-empty-tip-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.house-empty-tip-body {
    font-size: 13px;
    line-height: 1.7;
    color: #6b7280;
    margin-bottom: 12px;
}
.house-empty-tip-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: none;
    background: none;
    color: var(--brand-500);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}
.house-empty-tip-btn:hover { color: var(--brand-600); text-decoration: underline; }

/* ====== 右侧管理面板 ====== */
.house-right { width: 220px; background: white; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 15px; flex-shrink: 0; }

.house-action-btn { padding: 15px; border: 2px solid #667eea; border-radius: 10px; background: white; color: #667eea; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; }
.house-action-btn:hover { background: #f0f4ff; }

/* ====== 右侧徽章墙 ====== */
.house-badge-section { background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%); border-radius: 14px; padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 0; border: 1px solid #e5e7eb; }
.house-badge-header { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 700; color: #111827; }
.house-badge-count { font-size: 11px; color: #FFFFFF; font-weight: 600; background: linear-gradient(135deg, #667eea, #764ba2); padding: 2px 10px; border-radius: 10px; }

/* 网格：2列纵向滚动 */
.house-badge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 10px; padding: 6px 4px 6px 0; align-content: start; }
.house-badge-grid::-webkit-scrollbar { width: 4px; }
.house-badge-grid::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.house-badge-grid::-webkit-scrollbar-track { background: transparent; }

/* 徽章项：圆形图标 + 名字 */
.hb-item { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: default; transition: transform 0.2s ease; }
.hb-item:hover { transform: translateY(-2px); }
.hb-item.hb-empty { opacity: 0.4; cursor: pointer; transition: opacity 0.2s; }
.hb-item.hb-empty:hover { transform: none; opacity: 0.7; }
.hb-item.hb-empty .hb-icon-wrap { border: 2px dashed #d1d5db !important; background: rgba(241,245,249,0.5) !important; }
.hb-item.hb-empty .hb-icon-wrap .hb-emoji { font-size: 22px; color: #d1d5db; }
.hb-item.hb-empty .hb-name { color: #d1d5db !important; }
.hb-item.hb-empty:hover .hb-icon-wrap { transform: none; box-shadow: none; }

/* 圆形图标框（参考勋章频道 badge-icon-wrap）*/
.hb-icon-wrap {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 3px solid #e5e7eb;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.hb-item:hover .hb-icon-wrap {
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.hb-icon-inner {
    width: 100%; height: 100%;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}

.hb-emoji { font-size: 28px; line-height: 1; }

/* 名字文字 */
.hb-name {
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
    max-width: 80px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

/* 空状态提示 */
.house-badge-empty-tip {
    grid-column: span 2;
    text-align: center; padding: 20px 12px;
    color: #9ca3af; font-size: 13px;
    line-height: 1.7;
    border-radius: 10px;
    background: rgba(255,255,255,0.7);
}
.house-badge-empty-tip span { font-size: 11px; color: #d1d5db; }

/* 全部按钮 */
.house-badge-all { width: 100%; padding: 10px; border: none; background: linear-gradient(135deg, #667eea, #764ba2); color: #FFFFFF; font-size: 13px; font-weight: 600; border-radius: 8px; cursor: pointer; text-align: center; transition: all 0.2s ease; margin-top: 4px; letter-spacing: 0.5px; }
.house-badge-all:hover { background: linear-gradient(135deg, #5a67d8, #6b46c1); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(102,126,234,0.35); }

@media (max-width: 900px) {
    #pet-house.active { height: auto; flex-direction: column; }
    .house-left { width: 100%; }
    .house-center { overflow-x: auto; }
    .house-right { width: 100%; flex-direction: row; flex-wrap: wrap; }
    .house-right .house-action-btn { flex: 1; min-width: 120px; }
}

/* ====== 购买确认弹窗 ====== */
.house-confirm-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    animation: hcFadeIn 0.2s ease;
}
.house-confirm-box {
    background: white;
    border-radius: 20px;
    padding: 32px 28px;
    width: 380px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    animation: hcSlideUp 0.25s ease;
}
.house-confirm-icon { font-size: 40px; margin-bottom: 12px; }
.house-confirm-title { font-size: 18px; font-weight: 700; color: #111827; margin-bottom: 12px; }
.house-confirm-desc { font-size: 14px; color: #6b7280; line-height: 1.7; margin-bottom: 24px; }
.house-confirm-btns { display: flex; gap: 12px; }
.house-confirm-btn { flex: 1; padding: 12px; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid #e5e7eb; font-family: inherit; transition: all 0.15s; }
.house-confirm-cancel { background: white; color: #4B5563; }
.house-confirm-cancel:hover { background: #f9fafb; }
.house-confirm-ok { background: var(--brand-500); color: #FFFFFF; border-color: var(--brand-500); }
.house-confirm-ok:hover { background: var(--brand-600); }
@keyframes hcFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes hcSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ====== 购买成功庆祝弹窗 ====== */
.house-celebrate-overlay {
    position: fixed; inset: 0;
    background: rgba(60,40,20,0.85);
    z-index: 3000;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    cursor: pointer;
    animation: hcelFadeIn 0.3s ease;
}
.house-celebrate-content {
    text-align: center;
    animation: hcelSlideUp 0.4s ease;
}
.house-celebrate-pet-wrap {
    position: relative;
    width: 180px; height: 180px;
    margin: 0 auto 24px;
}
.house-celebrate-pet-img {
    width: 180px; height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,215,0,0.4);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.house-celebrate-key {
    position: absolute;
    top: -20px; right: 10px;
    font-size: 56px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    animation: keyFloat 1.5s ease-in-out infinite;
}
@keyframes keyFloat {
    0%, 100% { transform: translateY(0) rotate(-10deg); }
    50% { transform: translateY(-12px) rotate(10deg); }
}
.house-celebrate-title {
    font-size: 24px; font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    margin-bottom: 12px;
}
.house-celebrate-skip {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}
@keyframes hcelFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes hcelSlideUp { from { opacity: 0; transform: translateY(30px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ====== 植物系统（按用户最新标注图 1:1 像素锁定：1920x880 视口） ====== */
/* 植物紧贴 .house-center 右下角，尺寸放大到 240x280，按钮仍悬浮在植物上方 */
.house-plants-layer { position: absolute; right: 125px; bottom: 5%; width: 430px; height: 360px; padding: 0; z-index: 6; pointer-events: none; }
.house-plant-item { position: absolute; left: 50%; transform: translateX(-50%); bottom: 22px; width: 410px; height: 288px; pointer-events: auto; transition: transform 0.2s ease; }
.house-plant-item:hover { transform: translateX(-50%) translateY(-4px); }
/* 注意：必须同时保留 translateX(-50%)，否则 hover 会丢失水平居中 */
/* 植物异常时只改变色调，不做晃动/位移，避免 transform + drop-shadow 合成重影 */
.house-plant-item.has-issue .plant-img { filter: sepia(0.15) brightness(0.96); }
.plant-img { position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 240px; height: 288px; object-fit: contain; }
/* 按钮组：悬浮在植物上方，与植物水平居中 */
/* 按钮相对于 item 宽 410（中心205）的居中偏移：组中心从290→205 */
.plant-care-bar { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: auto; }
.house-plant-item.has-issue .plant-care-bar { pointer-events: auto; }
/* 圆 1（左） */
.plant-care-btn:nth-child(1) { position: absolute; left: 79px; top: -39px; }
/* 圆 2（中）—— 与左右等间距：79 + (265-79)/2 = 172 */
.plant-care-btn:nth-child(2) { position: absolute; left: 172px;  top: -63px; }
/* 圆 3（右） */
.plant-care-btn:nth-child(3) { position: absolute; left: 265px;  top: -38px; }
.plant-care-btn { width: 66px; height: 66px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.95); display: flex; align-items: center; justify-content: center; font-size: 30px; cursor: pointer; transition: transform .15s; font-family: inherit; opacity: 1; }
.house-plant-item.has-issue .plant-care-btn { opacity: 1; }
.plant-care-btn:hover { transform: scale(1.12); }
.plant-care-btn:active { transform: scale(0.94); }
.plant-care-btn[data-action="water"] { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.plant-care-btn[data-action="fertilize"] { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.plant-care-btn[data-action="catch"] { background: linear-gradient(135deg, #a78bfa, #8b5cf6); }
/* 植物状态「脑泡」：出现问题时在植物上方弹出对话气泡，带小尾巴指向植物 */
.plant-thought {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 240px;
    padding: 9px 15px;
    background: #ffffff;
    color: #374151;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 18px;
    white-space: nowrap;
    z-index: 7;
    pointer-events: none;
    animation: plantThoughtPop 0.35s cubic-bezier(0.16,1,0.3,1) both;
}
/* 小尾巴，指向植物 */
.plant-thought::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -9px;
    transform: translateX(-50%);
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 11px solid #ffffff;
    /* 尾巴不单独加阴影，避免与气泡 box-shadow 叠加出重影 */
}
.plant-thought-emoji { font-size: 18px; line-height: 1; }
.plant-thought-text { letter-spacing: 0.3px; }
@keyframes plantThoughtPop {
    from { opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.85); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
/* 植物经验条：底层 bottom:0（=植物层 bottom:5%，与宠物经验条水平对齐），居中贴在植物正下方 */
.plant-xpbar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 248px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
    background: rgba(17,24,39,0.42);
    backdrop-filter: blur(4px);
    border-radius: 9999px;
    z-index: 7;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.plant-xpbar .px-name { font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; flex-shrink: 0; }
.plant-xpbar .px-bar-wrap { flex: 1 1 auto; min-width: 90px; height: 7px; background: rgba(255,255,255,0.22); border-radius: 9999px; overflow: hidden; }
.plant-xpbar .px-bar-fill { height: 100%; background: linear-gradient(90deg, #a7f3d0, #34d399); border-radius: 9999px; transition: width 0.4s ease; }
.plant-xpbar .px-pct { font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0; }

/* 植物收入账本（小屋中间右上角，低调） */
.house-plant-ledger {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 7;
    width: 176px;
    background: rgba(255,255,255,0.62);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(79,70,229,0.10);
    border-radius: 12px;
    padding: 7px 9px 8px;
    box-shadow: 0 4px 14px rgba(17,24,39,0.07);
    pointer-events: none;
}
.house-plant-ledger .hpl-head { display: flex; align-items: center; margin-bottom: 5px; }
.house-plant-ledger .hpl-title { font-size: 10px; font-weight: 700; color: #9ca3af; letter-spacing: 0.5px; }
.house-plant-ledger .hpl-list { display: flex; flex-direction: column; gap: 5px; }
.house-plant-ledger .hpl-item { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.house-plant-ledger .hpl-name { font-size: 11px; color: #4b5563; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.house-plant-ledger .hpl-amt { font-size: 11px; color: #16a34a; font-weight: 700; flex-shrink: 0; }
.house-plant-ledger .hpl-date { font-size: 9px; color: #b0b6c0; margin: -3px 0 1px 1px; }

/* 植物领养弹窗 */
/* ===== 植物花店 - 售楼处风 ===== */
.plant-shop-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); backdrop-filter: blur(4px); z-index: 2000; display: flex; align-items: center; justify-content: center; animation: hcFadeIn 0.2s ease; }
.plant-shop-box { background: linear-gradient(180deg, #fafdf9 0%, #ffffff 100%); border-radius: 24px; width: 880px; max-width: 94vw; max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,0.18), 0 0 0 1px rgba(16,185,129,0.1); animation: hcSlideUp 0.3s ease; }
.plant-shop-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; border-bottom: 1px solid #e8f5e9; background: linear-gradient(90deg, #f0fdf4 0%, #ecfdf5 50%, #f0fdf4 100%); gap: 12px; }
.plant-shop-title { font-size: 19px; font-weight: 800; color: #065f46; display: flex; align-items: center; gap: 8px; letter-spacing: -0.3px; }
.plant-shop-coins { font-size: 13px; color: #6b7280; white-space: nowrap; background: #fff; padding: 6px 14px; border-radius: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.plant-shop-coins strong { color: #f59e0b; }
.plant-shop-close { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: none; background: #fff; color: #6b7280; font-size: 20px; cursor: pointer; line-height: 1; box-shadow: 0 1px 3px rgba(0,0,0,0.08); transition: all 0.15s; }
.plant-shop-close:hover { background: #fef2f2; color: #ef4444; }
.plant-shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 20px 28px; overflow-y: auto; flex: 1; align-content: start; }
/* 植物花店弹窗顶部的「领养说明」提示栏 */
.plant-shop-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin: 0 28px;
    padding: 12px 16px;
    background: linear-gradient(90deg, #f0fdf4 0%, #ecfeff 100%);
    border: 1px solid #d1fae5;
    border-radius: 14px;
    font-size: 12.5px;
    color: #374151;
    line-height: 1.5;
}
.plant-shop-notice .psn-title { font-weight: 800; color: #047857; display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; }
.plant-shop-notice .psn-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.plant-shop-notice .psn-item b { color: #065f46; font-weight: 700; }
.plant-shop-card { border: 2px solid #e5e7eb; border-radius: 18px; background: white; overflow: hidden; display: flex; flex-direction: column; transition: all 0.25s ease; cursor: pointer; position: relative; min-height: 270px; }
.plant-shop-card:hover { border-color: #34d399; transform: translateY(-4px); box-shadow: 0 12px 28px rgba(16,185,129,0.12); }
.plant-shop-card.owned { border-color: #d1fae5; background: #f0fdf4; cursor: default; }
.plant-shop-card.owned:hover { transform: none; box-shadow: none; }
.plant-shop-img { height: 130px; background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%); display: flex; align-items: center; justify-content: center; position: relative; }
.plant-shop-img img { max-width: 70%; max-height: 70%; object-fit: contain; }
.plant-shop-price-tag { position: absolute; top: 10px; right: 10px; background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 12px; box-shadow: 0 2px 6px rgba(245,158,11,0.3); }
.plant-shop-info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; }
.plant-shop-name { font-size: 15px; font-weight: 700; color: #111827; display: flex; align-items: center; gap: 6px; }
.plant-shop-desc { font-size: 11px; color: #9ca3af; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; min-height: 33px; }
.plant-shop-btn { width: 100%; padding: 10px; border-radius: 12px; border: none; font-size: 13px; font-weight: 700; cursor: pointer; margin-top: 6px; transition: all 0.15s; font-family: inherit; letter-spacing: 0.2px; }
.plant-shop-btn.buy { background: linear-gradient(135deg, #10b981, #059669); color: #fff; box-shadow: 0 2px 8px rgba(16,185,129,0.25); }
.plant-shop-btn.buy:hover { background: linear-gradient(135deg, #059669, #047857); transform: scale(1.02); }
.plant-shop-btn.buy:disabled { background: #e5e7eb; color: #9ca3af; cursor: not-allowed; box-shadow: none; transform: none; }
.plant-shop-btn.owned { background: #d1fae5; color: #065f46; cursor: default; }
/* 已拥有植物底部栏 */
.plant-shop-footer { border-top: 2px solid #e8f5e9; padding: 16px 28px; background: #f0fdf4; }
.plant-shop-footer-title { font-size: 14px; font-weight: 700; color: #065f46; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.plant-shop-footer-card { background: #fff; border-radius: 14px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; border: 1px solid #d1fae5; }
.plant-shop-footer-card .psf-img { width: 48px; height: 48px; border-radius: 12px; background: #f0fdf4; display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.plant-shop-footer-card .psf-info { flex: 1; min-width: 0; }
.plant-shop-footer-card .psf-name { font-size: 14px; font-weight: 700; color: #111827; }
.plant-shop-footer-card .psf-meta { font-size: 11px; color: #6b7280; margin-top: 2px; }
.plant-shop-footer-card .psf-stat { display: flex; gap: 14px; margin-top: 4px; }
.plant-shop-footer-card .psf-stat-item { font-size: 11px; color: #059669; font-weight: 600; }
.plant-shop-footer-empty { color: #9ca3af; font-size: 13px; text-align: center; padding: 10px 0; }
/* 右侧已拥有植物面板 */
.house-owned-plant { margin-top: 8px; }
.hop-header { font-size: 13px; font-weight: 700; color: #6b7280; margin-bottom: 6px; display: flex; align-items: center; gap: 4px; }
.hop-card { background: linear-gradient(135deg, #f0fdf4, #ecfdf5); border: 1px solid #d1fae5; border-radius: 14px; padding: 12px; display: flex; align-items: center; gap: 10px; }
.hop-card .hop-img { width: 40px; height: 40px; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.hop-card .hop-info { flex: 1; min-width: 0; }
.hop-card .hop-name { font-size: 13px; font-weight: 700; color: #065f46; }
.hop-card .hop-lv { font-size: 10px; color: #059669; font-weight: 600; }
.hop-card .hop-status { font-size: 10px; color: #f59e0b; margin-top: 1px; }

@media (max-width: 700px) {
    .plant-shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
    .plant-shop-grid { grid-template-columns: 1fr; }
}
