* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f3f4f6;
    color: #374151;
    line-height: 1.6;
}

.title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.75rem;
}

.title .icon {
    color: #7c3aed;
}

.intro-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.intro-card p {
    margin: 0 0 0.75rem;
    color: #4b5563;
}

.intro-card p:last-child {
    margin-bottom: 0;
}

.intro-card a {
    color: #4f46e5;
    text-decoration: none;
}

.intro-card a:hover {
    text-decoration: underline;
}

.stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.stat-item {
    flex: 1;
    min-width: 140px;
    text-align: center;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.stat-label {
    font-size: 0.8125rem;
    color: #6b7280;
}

.qr-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.qr-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.qr-card.wechat {
    border-top: 3px solid #07c160;
}

.qr-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    color: #111827;
}

.qr-card p {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.qr-image {
    width: 300px;
    height: 300px;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.section-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.section-card h2 {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    color: #111827;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.expense-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.expense-list li {
    padding: 0.625rem 0;
    border-bottom: 1px dashed #e5e7eb;
    font-size: 0.9375rem;
    color: #4b5563;
}

.expense-list li:last-child {
    border-bottom: none;
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.donation-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.donation-table th,
.donation-table td {
    padding: 0.75rem 0.625rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.donation-table th {
    background: #f9fafb;
    color: #374151;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.donation-table td:nth-child(4),
.donation-table th:nth-child(4) {
    text-align: right;
}

.donation-table tbody tr:hover {
    background: #f9fafb;
}

.donation-table .amount {
    color: #059669;
    font-weight: 600;
}

.donation-table .message,
.donation-table .reply {
    max-width: 200px;
    white-space: normal;
    word-break: break-word;
}

.method-wechat {
    color: #07c160;
}

.table-note {
    margin: 1rem 0 0;
    font-size: 0.8125rem;
    color: #9ca3af;
    text-align: center;
}

@media (max-width: 640px) {
    .title {
        font-size: 1.375rem;
    }

    .donation-table {
        font-size: 0.8125rem;
    }

    .donation-table th,
    .donation-table td {
        padding: 0.5rem 0.375rem;
    }
}
