:root {
    color-scheme: light;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --bg: #fafafa;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --accent: #3a3a3a;
    --accent-soft: rgba(58, 58, 58, 0.12);
    --muted: #9a9a9f;
    --border: rgba(0, 0, 0, 0.06);
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    --radius-large: 22px;
    --radius-medium: 16px;
    --radius-small: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(155deg, #fafafa 0%, #f4f5f7 100%);
    color: #2a2a2a;
    display: flex;
    justify-content: center;
}

.page-shell {
    width: min(100%, 520px);
    min-height: 100vh;
    padding: 16px clamp(16px, 4.8vw, 24px) 140px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.topbar {
    display: flex;
    justify-content: center;
    align-items: center;
    /* padding: 10px 0; */
    background: transparent;
}

.topbar--detail {
    justify-content: flex-start;
}

.topbar__title {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #2a2a2a;
}

.carousel {
    display: grid;
    gap: 12px;
}

.carousel__viewport {
    border-radius: var(--radius-large);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--surface);
    backdrop-filter: blur(20px);
}

/* 详情页轮播图为正方形 */
#detailCarousel .carousel__viewport {
    aspect-ratio: 1 / 1;
}

.carousel__track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.24, 0.82, 0.25, 1);
    cursor: grab;
    user-select: none;
}

.carousel__track:active {
    cursor: grabbing;
}

.carousel__slide {
    min-width: 100%;
    display: grid;
    place-items: center;
    font-size: clamp(1.3rem, 6vw, 1.6rem);
    color: #fff;
    background: linear-gradient(135deg, #e0e0e3 0%, #c8c9ce 100%);
}

/* 详情页轮播图图片样式 - 从底部裁剪 */
#detailCarousel .carousel__slide {
    background-size: cover;
    background-position: center top;
}

.carousel__dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel__dot--active {
    background: #3a3a3a;
    width: 24px;
    border-radius: 4px;
}

.list-head {
    display: grid;
    gap: 12px;
    padding: 0 4px;
}

.list-head__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--muted);
}

.list-head__meta strong {
    color: #3a3a3a;
}

.list-head__meta i {
    color: var(--muted);
    font-size: 0.9rem;
}

.view-toggle {
    padding: 8px 12px;
    border-radius: 10px;
    border: none;
    background: var(--surface-strong);
    color: #3a3a3a;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.view-toggle:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.view-toggle:active {
    transform: scale(0.98);
}

.content {
    flex: 1;
}

.page-support {
    display: grid;
    gap: 32px;
    padding: 20px 0;
}

.cards {
    display: grid;
    gap: 18px;
}

.card {
    display: grid;
    grid-template-rows: auto 1fr;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(245, 246, 250, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow: 0 12px 30px rgba(6, 12, 34, 0.08);
    overflow: hidden;
    transform: translateY(12px);
    opacity: 0;
    animation: card-in 0.5s ease forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(27, 27, 31, 0.14);
}

.card:nth-child(2) { animation-delay: 0.06s; }
.card:nth-child(3) { animation-delay: 0.12s; }
.card:nth-child(4) { animation-delay: 0.18s; }
.card:nth-child(5) { animation-delay: 0.24s; }
.card:nth-child(6) { animation-delay: 0.30s; }

.card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: radial-gradient(circle at top, #fdfdff 0%, #e6e8f1 45%, #d3d6e2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a4a50;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.card__content {
    padding: 15px 10px 15px;
    display: grid;
    gap: 12px;
}

.card__title {
    margin: 0;
    font-size: 1.06rem;
    font-weight: 600;
    color: #1f1f24;
}

.card__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.card__item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2e2e33;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.card__item label {
    color: #7b7b82;
    font-size: 0.86rem;
}

.card__item span {
    color: #1f1f24;
    font-weight: 600;
}

.card__row {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
}

.card__row i {
    font-size: 0.85rem;
}

.card__row span:first-child {
    color: var(--muted);
}

.card__row span:last-child {
    color: #3a3a3a;
    font-weight: 500;
}

.cards--compact {
    gap: 14px;
}

.cards--compact .card {
    grid-template-columns: minmax(110px, 36%) 1fr;
    grid-template-rows: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(6, 12, 34, 0.06);
}

.cards--compact .card__image {
    height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0;
}

.cards--compact .card__content {
    padding: 14px 18px;
    gap: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cards--compact .card__title {
    font-size: 1rem;
}

.cards--compact .card__meta {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 8px;
}

.cards--compact .card__item {
    flex: 0 1 auto;
    width: 100%;
}

.hint {
    margin: 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.86rem;
}

.dock {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    padding: 12px 20px;
    border-radius: 24px;
    backdrop-filter: blur(24px);
    width: min(90%, 480px);
}

.dock__btn {
    padding: 10px 14px;
    border-radius: 20px;
    border: none;
    font-size: 0.92rem;
    background: transparent;
    color: #3a3a3a;
    font-weight: 500;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.dock__btn i {
    font-size: 0.95rem;
}

.dock__btn--primary {
    background: #57a6ff;
    color: #fff;
}

.dock__btn:focus-visible {
    outline: 2px solid rgba(17, 17, 17, 0.18);
    outline-offset: 3px;
}

.dock__btn--active {
    background: #4a4a4f;
    color: #fff;
}

.support-header {
    text-align: center;
    padding: 20px 0;
}

.support-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    /* background: linear-gradient(145deg, #e6e8f1 0%, #d3d6e2 100%); */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a4a50;
    font-size: 2.5rem;
}

.support-title {
    margin: 0 0 12px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f1f24;
}

.support-desc {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
}

.support-qrcodes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.support-qr {
    display: grid;
    gap: 12px;
    padding: 20px;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(245, 246, 250, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow: 0 12px 30px rgba(6, 12, 34, 0.08);
    text-align: center;
}

.support-qr-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    /* background: radial-gradient(circle at center, #fdfdff 0%, #e6e8f1 45%, #d3d6e2 100%); */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7b7b82;
    font-size: 0.9rem;
}

.support-qr-label {
    font-size: 0.92rem;
    color: #4a4a50;
    font-weight: 500;
}

.support-info {
    display: grid;
    gap: 16px;
    margin-top: 8px;
}

.support-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(245, 246, 250, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow: 0 8px 20px rgba(6, 12, 34, 0.06);
}

.support-info-item i {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(145deg, #e6e8f1 0%, #d3d6e2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a4a50;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.support-info-label {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 4px;
}

.support-info-value {
    font-size: 0.95rem;
    color: #1f1f24;
    font-weight: 500;
}

.sheet {
    position: fixed;
    inset: 0;
}

.sheet[hidden] {
    display: none;
}

.sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sheet__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px;
    border-radius: 28px 28px 0 0;
    background: rgba(255, 255, 255, 0.92);
    transform: translateY(120%);
    transition: transform 0.35s ease;
    box-shadow: 0 -24px 48px rgba(0, 0, 0, 0.18);
}

.sheet--visible .sheet__backdrop {
    opacity: 1;
}

.sheet--visible .sheet__panel {
    transform: translateY(0);
}

.sheet__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(74, 74, 80, 0.1);
    color: #4a4a50;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 10;
}

.sheet__close:hover {
    background: rgba(74, 74, 80, 0.18);
}

.sheet__content {
    display: grid;
    gap: 20px;
}

.sheet__avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(145deg, #e6e8f1 0%, #d3d6e2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a4a50;
    font-size: 2rem;
}

.sheet__intro {
    text-align: center;
    margin: 0 0 20px;
}

.sheet__intro h2 {
    margin: 0 0 8px;
    font-size: 1.3rem;
    color: #1f1f24;
}

.sheet__intro p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
}

.sheet__qrcodes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 10px;
}

.sheet__qr {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(245, 246, 250, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.6);
    text-align: center;
}

.sheet__qr-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    background: radial-gradient(circle at center, #fdfdff 0%, #e6e8f1 45%, #d3d6e2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7b7b82;
    font-size: 0.9rem;
}

.sheet__qr-label {
    font-size: 0.88rem;
    color: #4a4a50;
    font-weight: 500;
}

@keyframes card-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 骨架屏加载效果 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 16px;
    margin: 8px 0;
}

.skeleton-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto;
}

.skeleton-qr {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.skeleton-card {
    height: 120px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.skeleton-carousel {
    height: 200px;
    border-radius: 12px;
}

/* 详情页样式 */
.detail-info {
    display: grid;
    gap: 24px;
    padding: 0 4px;
}

.detail-header {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(245, 246, 250, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 8px 20px rgba(6, 12, 34, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.detail-name {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f1f24;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.detail-name::before {
    content: '姓名：';
    color: #7b7b82;
    font-size: 0.86rem;
    font-weight: 400;
}

.detail-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    flex: 2;
    gap: 20px;
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #2a2a2a;
    flex: 1;
    min-width: 0;
}

.detail-meta-item i {
    color: var(--muted);
    font-size: 0.9rem;
}

.detail-meta-item label {
    color: #7b7b82;
    font-size: 0.86rem;
}

.detail-meta-item span {
    color: #1f1f24;
    font-weight: 600;
}

.detail-description {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(245, 246, 250, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(6, 12, 34, 0.06);
}

.detail-description h3 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f1f24;
}

.detail-description p {
    margin: 0;
    font-size: 0.95rem;
    color: #4a4a50;
    line-height: 1.6;
}

.detail-contact {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(245, 246, 250, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(6, 12, 34, 0.06);
}

.detail-contact h3 {
    margin: 0 0 16px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f1f24;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

