/* 橘子橙主题 + 毛玻璃 */
:root {
    --orange: #ff7a33;
    --orange-deep: #e85d1a;
    --orange-soft: #ffb88c;
    --orange-glow: rgba(255, 122, 51, 0.45);
    --glass-bg: rgba(255, 255, 255, 0.28);
    --glass-bg-strong: rgba(255, 255, 255, 0.42);
    --glass-border: rgba(255, 255, 255, 0.55);
    --glass-shadow: 0 8px 32px rgba(180, 80, 30, 0.12);
    --text: #3d2918;
    --text-muted: #6b5344;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    background:
        radial-gradient(ellipse 120% 80% at 20% 10%, rgba(255, 200, 160, 0.55) 0%, transparent 50%),
        radial-gradient(ellipse 100% 70% at 90% 80%, rgba(255, 140, 80, 0.35) 0%, transparent 45%),
        linear-gradient(165deg, #fff4e8 0%, #ffd4b8 35%, #ffb07a 70%, #ff8c42 100%);
    background-attachment: fixed;
    overflow: auto;
}

/* 毛玻璃 mixin 效果：主容器 */
.game-container {
    width: 412px;
    max-height: 915px;
    min-height: 600px;
    text-align: center;
    padding: 28px 22px 26px;
    border-radius: 20px;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    overflow-y: auto;
}

h1 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 18px;
    background: linear-gradient(135deg, var(--orange-deep) 0%, var(--orange) 50%, #ff9d5c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 24px var(--orange-glow);
}

/* 用户信息卡片（与猫咪档案风格统一） */
.user-info {
    margin-bottom: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 6px 22px rgba(160, 80, 40, 0.08);
    text-align: left;
    overflow: hidden;
}

.user-info__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px 9px;
    background: linear-gradient(135deg, rgba(255, 122, 51, 0.12) 0%, rgba(255, 210, 175, 0.14) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.user-info__head-icon {
    font-size: 0.75rem;
    color: var(--orange-deep);
    opacity: 0.85;
    line-height: 1;
}

.user-info__head-text {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--orange-deep);
}

.user-info__body {
    padding: 14px 16px 15px;
}

.user-info__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.user-info__field-label {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.user-info__name-main {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    gap: 10px;
    min-width: 0;
}

.user-info__name-text {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-info__link-btn {
    flex-shrink: 0;
    padding: 5px 12px !important;
    font-size: 0.72rem !important;
    font-weight: 600;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.55) !important;
    color: var(--orange-deep) !important;
    border: 1px solid rgba(255, 122, 51, 0.35) !important;
    box-shadow: none !important;
}

.user-info__link-btn:hover {
    background: rgba(255, 255, 255, 0.85) !important;
    filter: none !important;
}

.user-info__edit {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 122, 51, 0.25);
}

.user-info__edit[hidden] {
    display: none !important;
}

.user-info__input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    font-size: 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.55);
    color: var(--text);
    outline: none;
}

.user-info__input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 122, 51, 0.2);
}

.user-info__pill-btn {
    flex-shrink: 0;
    padding: 10px 18px !important;
    font-size: 0.85rem !important;
    border-radius: 12px !important;
}

/* 猫咪区域 */
.cat-display {
    margin-bottom: 16px;
}

.cat-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cat-image img {
    border-radius: 12px;
}

.cat-image:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 36px rgba(255, 120, 60, 0.2);
}

.cat-status {
    margin-top: 12px;
    padding: 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    text-align: left;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(160, 80, 40, 0.08);
}

.cat-status__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 10px;
    background: linear-gradient(135deg, rgba(255, 122, 51, 0.14) 0%, rgba(255, 200, 160, 0.12) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.cat-status__head-icon {
    font-size: 0.65rem;
    color: var(--orange-deep);
    opacity: 0.85;
}

.cat-status__head-text {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--orange-deep);
}

.cat-status__name-block {
    padding: 14px 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.cat-status__name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cat-status__field-label {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 2.5em;
}

.cat-status__name-main {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    gap: 10px;
    min-width: 0;
}

.cat-status__name-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cat-status__link-btn {
    flex-shrink: 0;
    padding: 5px 12px !important;
    font-size: 0.72rem !important;
    font-weight: 600;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.55) !important;
    color: var(--orange-deep) !important;
    border: 1px solid rgba(255, 122, 51, 0.35) !important;
    box-shadow: none !important;
}

.cat-status__link-btn:hover {
    background: rgba(255, 255, 255, 0.85) !important;
    filter: none !important;
}

.cat-status__name-edit {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 122, 51, 0.25);
}

.cat-status__name-edit[hidden] {
    display: none !important;
}

.cat-status__input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    font-size: 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.55);
    color: var(--text);
    outline: none;
}

.cat-status__input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 122, 51, 0.2);
}

.cat-status__pill-btn {
    flex-shrink: 0;
    padding: 10px 18px !important;
    font-size: 0.85rem !important;
    border-radius: 12px !important;
}

.cat-status__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px 14px 14px;
}

.cat-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.cat-stat--span {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cat-stat__label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.cat-stat__value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    word-break: break-word;
}

.cat-stat__unit {
    font-size: 0.8em;
    font-weight: 500;
    color: var(--text-muted);
}

.cat-stat__value--level {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2em;
    padding: 2px 10px;
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(255, 122, 51, 0.2), rgba(255, 180, 120, 0.25));
    border: 1px solid rgba(255, 122, 51, 0.28);
    font-variant-numeric: tabular-nums;
}

.cat-stat__value--status {
    font-size: 0.95rem;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 122, 51, 0.28);
    color: var(--text);
}

@media (max-width: 360px) {
    .cat-status__stats {
        grid-template-columns: 1fr;
    }

    .cat-stat--span {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 状态拱形条：网格卡片 */
.status-bars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.status-card {
    padding: 10px 10px 6px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.48);
    box-shadow: 0 4px 18px rgba(180, 90, 50, 0.08);
    text-align: left;
}

.status-card--wide {
    grid-column: 1 / -1;
}

.status-card__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}

.status-card__label {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.status-card__value {
    font-size: 0.78rem;
    color: var(--text);
    font-weight: 600;
    text-align: right;
    line-height: 1.25;
    max-width: 58%;
}

.arc-gauge {
    width: 100%;
    margin-top: 2px;
}

.arc-gauge svg {
    width: 100%;
    height: auto;
    max-height: 76px;
    display: block;
    overflow: visible;
}

.arc-gauge__track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 7;
    stroke-linecap: round;
    filter: drop-shadow(0 1px 2px rgba(120, 60, 30, 0.12));
}

.arc-gauge__fill {
    fill: none;
    stroke-width: 7;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.45s cubic-bezier(0.33, 1, 0.68, 1);
    filter: drop-shadow(0 2px 6px rgba(255, 120, 60, 0.25));
}

@media (max-width: 360px) {
    .status-bars {
        grid-template-columns: 1fr;
    }

    .status-card--wide {
        grid-column: auto;
    }
}

/* 操作按钮 */
.controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 6px 24px rgba(180, 90, 50, 0.08);
}

button {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* 投喂按钮 - 橙色 */
#feedBtn {
    background: linear-gradient(160deg, #FF9800 0%, #F57C00 100%);
    box-shadow: 0 4px 16px rgba(245, 124, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* 铲屎按钮 - 蓝色 */
#cleanBtn {
    background: linear-gradient(160deg, #2196F3 0%, #1976D2 100%);
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* 逗猫按钮 - 紫色 */
#playBtn {
    background: linear-gradient(160deg, #9C27B0 0%, #7B1FA2 100%);
    box-shadow: 0 4px 16px rgba(123, 31, 162, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* 遛猫按钮 - 绿色 */
#trainBtn {
    background: linear-gradient(160deg, #4CAF50 0%, #388E3C 100%);
    box-shadow: 0 4px 16px rgba(56, 142, 60, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* PK按钮 - 红色 */
#pkBtn {
    background: linear-gradient(160deg, #F44336 0%, #D32F2F 100%);
    box-shadow: 0 4px 16px rgba(211, 47, 47, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

button:hover::before {
    left: 100%;
}

/* 导航按钮 */
.nav-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 6px 24px rgba(180, 90, 50, 0.08);
}

.nav-btn {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* 投喂按钮 - 橙色 */
.nav-btn:nth-child(1) {
    background: linear-gradient(160deg, #FF9800 0%, #F57C00 100%);
    box-shadow: 0 4px 16px rgba(245, 124, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* 铲屎按钮 - 蓝色 */
.nav-btn:nth-child(2) {
    background: linear-gradient(160deg, #2196F3 0%, #1976D2 100%);
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* 逗猫按钮 - 紫色 */
.nav-btn:nth-child(3) {
    background: linear-gradient(160deg, #9C27B0 0%, #7B1FA2 100%);
    box-shadow: 0 4px 16px rgba(123, 31, 162, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* 遛猫按钮 - 绿色 */
.nav-btn:nth-child(4) {
    background: linear-gradient(160deg, #4CAF50 0%, #388E3C 100%);
    box-shadow: 0 4px 16px rgba(56, 142, 60, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* PK按钮 - 红色 */
.nav-btn:nth-child(5) {
    background: linear-gradient(160deg, #F44336 0%, #D32F2F 100%);
    box-shadow: 0 4px 16px rgba(211, 47, 47, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    grid-column: 1 / -1;
}

.nav-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.nav-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.nav-btn:hover::before {
    left: 100%;
}

/* 老虎机抽奖 */
.lottery-section {
    margin-bottom: 24px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 6px 24px rgba(180, 90, 50, 0.1);
}

.lottery-section h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #5a3d28;
    font-size: 1.1rem;
    text-align: center;
}

.lottery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 老虎机样式 */
.slot-machine {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    perspective: 1000px;
}

.slot-column {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
    border: 3px solid #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    position: relative;
}

.slot-items {
    transition: transform 5s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

.slot-item {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

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

/* 滚动动画 */
.slot-column.rolling {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-1deg); }
    75% { transform: rotate(1deg); }
}

.lottery-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 24px;
    background: linear-gradient(135deg, #FF6B6B, #EE5A24);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.lottery-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

.lottery-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.lottery-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.lottery-result {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: #5a3d28;
    min-height: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 消息提示 */
.message {
    min-height: 44px;
    margin-top: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    color: #5a3d28;
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 18px rgba(200, 100, 50, 0.1);
}

@media (max-width: 400px) {
    .nav-buttons {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 1.4rem;
    }
}

/* 页面样式 */
.page {
    margin-bottom: 16px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.page-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.back-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.back-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-content {
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 16px rgba(160, 80, 40, 0.08);
}

/* 投喂页面样式 */
.food-list {
    max-height: 600px;
    overflow-y: auto;
}

.food-category {
    margin: 15px 0 10px 0;
    padding: 8px 12px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.food-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.food-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    text-align: center;
}

.food-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
}

.food-item__image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 152, 0, 0.3);
    position: relative;
}

.food-item__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.food-item__info h3 {
    font-size: 12px;
    font-weight: bold;
    margin: 0;
    color: #333;
}

.food-item__info p {
    font-size: 10px;
    margin: 0;
    color: #666;
}

.food-btn {
    padding: 8px 16px;
    font-size: 10px;
    font-weight: bold;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.food-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.buy-btn {
    padding: 8px 16px;
    font-size: 10px;
    font-weight: bold;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.buy-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.food-price {
    font-size: 10px;
    font-weight: bold;
    color: #e91e63;
    margin: 2px 0;
}

.food-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background: linear-gradient(135deg, #FF6B6B, #EE5A24);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.food-item__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.food-item__info {
    flex: 1;
    text-align: left;
}

.food-item__info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.food-item__info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.food-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.food-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

/* 铲屎页面样式 */
.clean-content {
    text-align: center;
}

.clean-image {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 16px;
}

.clean-content p {
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: var(--text);
}

#doCleanBtn {
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#doCleanBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* 逗猫页面样式 */
.play-content {
    text-align: center;
}

.play-image {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 16px;
}

.play-content p {
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: var(--text);
}

#doPlayBtn {
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#doPlayBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3);
}

/* 遛猫页面样式 */
.train-content {
    text-align: center;
}

.train-image {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 16px;
}

.train-content p {
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: var(--text);
}

#doTrainBtn {
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#doTrainBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* PK页面样式 */
.pk-content {
    text-align: center;
}

.opponent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.opponent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.opponent-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: linear-gradient(135deg, #F44336 0%, #D32F2F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.opponent-info {
    flex: 1;
    text-align: left;
}

.opponent-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.opponent-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.opponent-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #F44336 0%, #D32F2F 100%);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.opponent-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}
