* {
    box-sizing: border-box;
}

/* 变量别名：复用 common.css 中已定义的配色，仅保留本页专属命名与差异值 */
:root {
    --bg-soft: var(--soft);
    --bg-hover: var(--hover);
    --text-secondary: var(--muted);
    --text-tertiary: var(--subtle);
    --accent: var(--text);
    --success-bg: var(--successbg);
    --border-hover: #d5d5d5;
    --radius: 16px;
}
html.dark { --border-hover: #4a4a4a; }

body { transition: background .2s ease, color .2s ease; }

/* =========================
   Hero
========================= */

.hero {
    padding: 92px 20px 48px;
    text-align: center;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--success-bg);
    color: var(--success);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 22px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 0 4px color-mix(
        in srgb,
        currentColor 12%,
        transparent
    );
}

.hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.12;
    letter-spacing: -2px;
    font-weight: 700;
}

.hero p {
    margin: 18px auto 0;
    max-width: 620px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

/* =========================
   Search
========================= */

.search-wrap {
    width: min(680px, 100%);
    margin: 30px auto 0;
}

.search {
    height: 54px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 17px;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: .15s;
}

.search:focus-within {
    border-color: var(--border-hover);
    box-shadow:
        0 0 0 3px rgba(127,127,127,.08),
        var(--shadow);
}

.search-icon {
    color: var(--text-tertiary);
    font-size: 18px;
}

.search input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 15px;
}

.search input::placeholder {
    color: var(--text-tertiary);
}

/* =========================
   Main
========================= */

.main {
    width: min(860px, calc(100% - 40px));
    margin: 0 auto 80px;
}

/* =========================
   Filters
========================= */

.filters {
    margin-bottom: 36px;
}

.filter-label {
    color: var(--text-tertiary);
    font-size: 12px;
    margin-bottom: 11px;
}

.filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.filter {
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 13px;
    border-radius: 9px;
    font-size: 13px;
    transition: .15s;
}

.filter:hover {
    background: var(--bg-soft);
    color: var(--text);
}

.filter.active {
    background: var(--text);
    color: var(--bg);
}

/* =========================
   Feed Header
========================= */

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

.feed-title {
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -.2px;
}

.feed-count {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* =========================
   Restock Card
========================= */

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

.restock-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 23px 24px;
    transition:
        border-color .15s,
        box-shadow .15s,
        transform .15s;
}

.restock-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.restock-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--success);
    font-size: 12px;
    font-weight: 600;
}

.restock-status .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.time {
    color: var(--text-tertiary);
    font-size: 12px;
}

.product-name {
    margin-top: 15px;
    font-size: 19px;
    font-weight: 650;
    letter-spacing: -.4px;
}

.product-description {
    margin-top: 7px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.card-info {
    margin-top: 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.merchant {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.merchant-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--bg-soft);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.merchant-name {
    font-size: 13px;
    font-weight: 600;
}

.merchant-label {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.price {
    font-size: 18px;
    font-weight: 650;
    white-space: nowrap;
}

.price span {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 400;
}

/* =========================
   Card Bottom
========================= */

/*.card-bottom {*/
/*    margin-top: 17px;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: space-between;*/
/*}*/

/*.tags {*/
/*    display: flex;*/
/*    gap: 6px;*/
/*    flex-wrap: wrap;*/
/*}*/

/*.tag {*/
/*    padding: 4px 8px;*/
/*    border-radius: 6px;*/
/*    background: var(--bg-soft);*/
/*    color: var(--text-secondary);*/
/*    font-size: 11px;*/
/*}*/

/*.detail-link {*/
/*    color: var(--text-secondary);*/
/*    font-size: 12px;*/
/*    transition: .15s;*/
/*}*/

/*.detail-link:hover {*/
/*    color: var(--text);*/
/*}*/

/* =========================
   Load More
========================= */

.load-more {
    width: 100%;
    margin-top: 16px;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    transition: .15s;
}

.load-more:hover {
    background: var(--bg-soft);
    color: var(--text);
    border-color: var(--border-hover);
}

/* =========================
   Mobile
========================= */

@media (max-width: 700px) {

    .header {
        height: 58px;
    }

    .header-inner {
        width: calc(100% - 28px);
    }

    .nav-link {
        display: none;
    }

    .hero {
        padding: 65px 18px 38px;
    }

    .hero h1 {
        letter-spacing: -1.5px;
    }

    .hero p {
        font-size: 14px;
    }

    .search {
        height: 50px;
    }

    .main {
        width: calc(100% - 28px);
    }

    .restock-card {
        padding: 19px;
        border-radius: 14px;
    }

    .card-info {
        align-items: flex-start;
    }

    .price {
        font-size: 16px;
    }

    .card-bottom {
        align-items: flex-end;
    }
}
