.bottle-page {
    padding-bottom: 70px;
}

.bottle-header {
    text-align: center;
    margin-bottom: 10px;
}

.bottle-header h1 {
    font-size: 1.8rem;
    font-weight: bold;
}

.bottle-header p {
    color: var(--muted);
    font-size: 14px;
    margin-top: 4px;
}

.top-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.top-actions button {
    background: #000;
    color: #fff;
    border: 2px solid #000;
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.top-actions button:hover {
    background: #fff;
    color: #000;
}

/* 瓶子网格 */
.bottle-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px 6px;
    padding: 0 10px;
    justify-items: center;
    max-width: 420px;
    margin: 0 auto;
}

/* 单个瓶子 */
.bottle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

/* 自定义瓶子删除按钮 */
.bottle-delete {
    position: absolute;
    top: -4px;
    right: 2px;
    width: 16px;
    height: 16px;
    line-height: 14px;
    text-align: center;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    cursor: pointer;
    z-index: 2;
    display: none;
}

.bottle-item:hover .bottle-delete {
    display: block;
}

/* 添加瓶子按钮 */
.bottle-add {
    cursor: pointer;
}

.bottle-add .bottle-svg-wrap svg {
    opacity: 0.6;
    transition: opacity 0.2s;
}

.bottle-add:hover .bottle-svg-wrap svg {
    opacity: 1;
}

/* 瓶子SVG容器 */
.bottle-svg-wrap {
    width: 48px;
    height: 90px;
    position: relative;
}

.bottle-svg-wrap svg {
    width: 100%;
    height: 100%;
    display: block;
}

.bottle-label {
    margin-top: 3px;
    font-size: 11px;
    text-align: center;
    color: var(--fg);
    line-height: 1.2;
    word-break: keep-all;
    width: 68px;
}

/* 截图提示 */
.save-toast {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 300;
}

.save-toast.show {
    display: block;
}

@media (max-width: 360px) {
    .bottle-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px 4px;
        padding: 0 6px;
        max-width: 320px;
    }

    .bottle-svg-wrap {
        width: 40px;
        height: 75px;
    }

    .bottle-label {
        font-size: 10px;
        width: 58px;
    }

    .bottle-header h1 {
        font-size: 1.4rem;
    }
}

@media (min-width: 361px) and (max-width: 480px) {
    .bottle-grid {
        grid-template-columns: repeat(5, 1fr);
        max-width: 360px;
    }

    .bottle-svg-wrap {
        width: 42px;
        height: 79px;
    }

    .bottle-label {
        font-size: 10px;
        width: 60px;
    }

    .bottle-header h1 {
        font-size: 1.5rem;
    }
}

@media (min-width: 481px) and (max-width: 599px) {
    .bottle-grid {
        grid-template-columns: repeat(6, 1fr);
        max-width: 450px;
    }

    .bottle-svg-wrap {
        width: 48px;
        height: 90px;
    }

    .bottle-label {
        font-size: 11px;
        width: 68px;
    }
}

@media (min-width: 600px) {
    .bottle-grid {
        grid-template-columns: repeat(8, 1fr);
        max-width: 660px;
        gap: 14px 10px;
    }

    .bottle-svg-wrap {
        width: 54px;
        height: 101px;
    }

    .bottle-label {
        font-size: 12px;
        width: 76px;
    }
}
