:root {
    --wechat-green: #07c160;
    --price-red: #ff4d4f;
    --bg-gray: #f7f7f7;
    --text-main: #333;
    --text-desc: #888;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", STHeiti, "Microsoft Yahei", Tahoma, Simsun, sans-serif;
    background-color: var(--bg-gray);
    margin: 0;
    padding: 0;
    color: var(--text-main);
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
}

header {
    background: linear-gradient(135deg, #07c160 0%, #06ae56 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.header-content h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.header-content p {
    margin: 5px 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

main {
    padding: 20px 15px;
    max-width: 600px;
    margin: 0 auto;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-card {
    background: white;
    border-radius: 16px;
    padding: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: transform 0.2s;
}

.product-card:active {
    transform: scale(0.98);
    background-color: #fafafa;
}

.product-img {
    width: 80px;
    height: 80px;
    background: #f9f9f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-img img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.product-info {
    margin-left: 15px;
    flex-grow: 1;
}

.product-info h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.product-info .desc {
    font-size: 0.85rem;
    color: var(--text-desc);
    margin: 4px 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    color: var(--price-red);
    font-size: 1.2rem;
    font-weight: bold;
}

.buy-btn {
    background-color: var(--wechat-green);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(7, 193, 96, 0.2);
}

.footer {
    text-align: center;
    padding: 30px 20px;
    color: #bbb;
    font-size: 0.8rem;
}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
    z-index: 1000;
    white-space: nowrap;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
