/* 桃源 - 列表页：单列大图服务卡流 */

.list-page {
    background: var(--ty-bg-page);
    color: var(--ty-text-primary);
}

.list-page .main-content {
    padding-top: calc(8px + env(safe-area-inset-top));
}

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

.list-topbar {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 10px;
}

.list-back,
.list-filter-open {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ty-border);
    border-radius: 999px;
    background: var(--ty-bg-glass);
    color: var(--ty-accent-strong);
    font-weight: 850;
    backdrop-filter: blur(16px);
}

.list-back {
    font-size: 28px;
    line-height: 1;
}

.list-filter-open {
    padding: 0 14px;
    font-size: 12px;
}

.list-topbar p {
    margin: 0;
    color: var(--ty-accent-strong);
    font-size: 11px;
    font-weight: 800;
}

.list-topbar h1 {
    margin: 1px 0 0;
    color: var(--ty-ink-green);
    font-size: 20px;
    line-height: 1.15;
}

.list-sticky-tools {
    position: sticky;
    top: 0;
    z-index: 30;
    margin: 0 calc(var(--ty-space-md) * -1);
    padding: 8px var(--ty-space-md) 9px;
    background: rgba(243, 247, 244, 0.9);
    border-bottom: 1px solid rgba(22, 63, 52, 0.08);
    backdrop-filter: blur(18px);
}

.list-chip-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.list-chip-strip::-webkit-scrollbar {
    display: none;
}

.list-chip {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid var(--ty-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ty-text-secondary);
    font-size: 12px;
    font-weight: 800;
}

.list-chip.is-active {
    background: var(--ty-ink-green);
    border-color: var(--ty-ink-green);
    color: var(--ty-text-inverse);
}

.list-result-summary {
    margin: 7px 2px 0;
    color: var(--ty-text-muted);
    font-size: 11px;
    font-weight: 700;
}

.list-service-feed {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 18px;
}

.ty-feed-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: var(--ty-bg-soft);
    box-shadow: var(--ty-shadow-sm);
}

.ty-feed-card:active {
    transform: scale(0.992);
}

.ty-feed-link {
    display: block;
    color: inherit;
}

.ty-feed-media {
    position: relative;
    min-height: 330px;
    aspect-ratio: 4 / 4.9;
    overflow: hidden;
}

.ty-feed-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ty-feed-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 18, 14, 0.02) 35%, rgba(8, 18, 14, 0.56) 100%);
}

.ty-feed-top {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ty-feed-pill {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--ty-text-inverse);
    font-size: 11px;
    font-weight: 850;
    backdrop-filter: blur(16px);
}

.ty-feed-pill--status {
    background: rgba(8, 114, 78, 0.86);
}

.ty-feed-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 20px 18px 18px;
    color: var(--ty-text-inverse);
}

.ty-feed-name-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.ty-feed-name {
    margin: 0;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 850;
}

.ty-feed-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
}

.ty-feed-tag {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 250, 242, 0.92);
    font-size: 11px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.empty-state {
    min-height: 220px;
    display: grid;
    place-items: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
    color: var(--ty-text-secondary);
}

.empty-reset {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--ty-ink-green);
    color: var(--ty-text-inverse);
    font-size: 13px;
    font-weight: 800;
}

.empty-card {
    padding: 18px;
    border: 1px dashed var(--ty-border-strong);
    border-radius: var(--ty-radius-lg);
    background: var(--ty-bg-glass);
    color: var(--ty-text-secondary);
    font-size: 13px;
}

.list-scroll-sentinel {
    height: 1px;
}

.ty-drawer[hidden] {
    display: none;
}

.ty-drawer {
    position: fixed;
    inset: 0;
    z-index: 100;
}

.ty-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 24, 20, 0.38);
}

.ty-drawer-panel {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(100%, 480px);
    transform: translateX(-50%);
    padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
    border-radius: 26px 26px 0 0;
    background: var(--ty-bg-surface);
    box-shadow: var(--ty-shadow-float);
}

.ty-drawer-handle {
    width: 42px;
    height: 4px;
    margin: 2px auto 12px;
    border-radius: 999px;
    background: var(--ty-border-strong);
}

.ty-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ty-drawer-head h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.2;
}

.ty-drawer-head button {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--ty-bg-soft);
    color: var(--ty-text-secondary);
    font-size: 24px;
}

.ty-drawer-fields {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.ty-drawer-fields label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--ty-border);
    border-radius: 16px;
    background: #f5faf6;
}

.ty-drawer-fields span {
    color: var(--ty-text-muted);
    font-size: 11px;
    font-weight: 800;
}

.ty-drawer-fields select {
    min-height: 38px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ty-text-primary);
    font-size: 16px;
    font-weight: 750;
}

.ty-drawer-actions {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 10px;
    margin-top: 16px;
}

.ty-drawer-reset,
.ty-drawer-apply {
    min-height: 50px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 850;
}

.ty-drawer-reset {
    background: var(--ty-bg-soft);
    color: var(--ty-text-secondary);
}

.ty-drawer-apply {
    background: var(--ty-ink-green);
    color: var(--ty-text-inverse);
}
