/* ==========================================================================
   关于页样式
   ========================================================================== */

.about-content {
    display: flex;
    flex-direction: column;
    padding: 0 14px 14px;
}

/* --------------------------------------------------------------------------
   区块卡片
   -------------------------------------------------------------------------- */
.section-card {
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.01em;
}

.section-title::before {
    content: "";
    width: 3px;
    height: 15px;
    flex: 0 0 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--brand), var(--brand-strong));
}

.content-text,
.support-text {
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--text-muted);
    white-space: pre-line;
    word-break: break-word;
}

/* --------------------------------------------------------------------------
   通用文本
   -------------------------------------------------------------------------- */
.social-text,
.donation-text,
.thanks-text {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-muted);
}

.donation-text,
.thanks-text {
    text-align: center;
}

/* --------------------------------------------------------------------------
   社交链接
   -------------------------------------------------------------------------- */
.social-content,
.donation-content,
.thanks-content,
.support-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
    text-decoration: none;
    transition: all var(--dur) var(--ease);
}

.social-link:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
    transform: translateY(-2px);
}

.social-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    object-fit: contain;
}

.social-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
}

/* --------------------------------------------------------------------------
   捐赠
   -------------------------------------------------------------------------- */
.qrcode-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    justify-items: center;
}

.qrcode-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.qrcode-image {
    width: 132px;
    height: 132px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #ffffff;
    object-fit: contain;
    box-shadow: var(--shadow-sm);
}

.qrcode-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.donation-tip,
.thanks-tip {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--brand-strong);
    text-align: center;
}

/* --------------------------------------------------------------------------
   功能列表
   -------------------------------------------------------------------------- */
.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
    transition: all var(--dur) var(--ease);
}

.feature-item:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 11px;
    background: var(--brand-soft);
    font-size: 17px;
    line-height: 1;
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.feature-title {
    font-size: 13.5px;
    font-weight: 650;
    color: var(--text);
}

.feature-desc {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-subtle);
}

/* --------------------------------------------------------------------------
   更新日志
   -------------------------------------------------------------------------- */
.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.version-item {
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--brand);
    border-radius: var(--radius);
    background: var(--surface-2);
}

.version-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.version-number {
    font-size: 13px;
    font-weight: 750;
    color: var(--brand-strong);
    font-variant-numeric: tabular-nums;
}

.version-date {
    font-size: 11.5px;
    color: var(--text-subtle);
    font-variant-numeric: tabular-nums;
}

.version-changes {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.change-item {
    position: relative;
    padding-left: 12px;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text-muted);
    word-break: break-word;
}

.change-item::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--brand);
}

/* --------------------------------------------------------------------------
   技术支持 / 联系方式
   -------------------------------------------------------------------------- */
.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    font-size: 13.5px;
    border-bottom: 1px solid var(--border);
}

.contact-item:last-of-type {
    border-bottom: none;
}

.email-item {
    padding: 10px 12px;
    margin: 4px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
    cursor: pointer;
    transition: all var(--dur) var(--ease);
}

.email-item:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.email-item:active {
    transform: scale(0.995);
}

.contact-label {
    flex: 0 0 auto;
    font-weight: 600;
    color: var(--text-muted);
}

.email-container {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.contact-value {
    font-weight: 600;
    color: var(--brand-strong);
    word-break: break-all;
}

.copy-hint {
    flex: 0 0 auto;
    padding: 3px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text-subtle);
    font-size: 11px;
    font-weight: 500;
}

.copy-success {
    border-color: var(--brand) !important;
    background: var(--brand-soft) !important;
}

.copy-success .copy-hint {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
    color: var(--brand-ink) !important;
}

.tip-text {
    font-size: 11.5px;
    font-style: italic;
    color: var(--text-subtle);
}

/* --------------------------------------------------------------------------
   感谢列表
   -------------------------------------------------------------------------- */
.thanks-table {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-weight: 700;
    border-bottom: 1px solid var(--border);
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    border-bottom: 1px solid var(--border);
    transition: background var(--dur) var(--ease);
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background: var(--surface-3);
}

.table-cell {
    display: flex;
    align-items: center;
    padding: 11px 13px;
    font-size: 12.5px;
    color: var(--text-muted);
    min-width: 0;
}

.table-header .table-cell {
    font-size: 12px;
    font-weight: 700;
}

.user-name {
    font-weight: 650;
    color: var(--text);
}

.support-type {
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.support-type.donation {
    background: var(--brand-soft);
    color: var(--brand-strong);
    border: 1px solid var(--brand-soft-strong);
}

.support-type.feedback {
    background: rgba(168, 85, 247, 0.12);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.22);
}

.support-type.testing {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.22);
}

.support-type.sharing {
    background: rgba(249, 115, 22, 0.12);
    color: #ea580c;
    border: 1px solid rgba(249, 115, 22, 0.22);
}

.thank-message {
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .feature-list {
        grid-template-columns: 1fr;
    }

    .social-link {
        padding: 10px 12px;
    }

    .social-name {
        font-size: 12.5px;
    }

    .qrcode-image {
        width: 148px;
        height: 148px;
    }
}

@media (max-width: 480px) {
    .table-header {
        display: none;
    }

    .table-row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 12px;
        border-bottom: 1px solid var(--border);
    }

    .table-cell {
        display: block;
        padding: 0;
        font-size: 12.5px;
    }

    .table-cell:nth-child(1)::before {
        content: "支持者：";
        font-weight: 600;
        color: var(--text-subtle);
        margin-right: 6px;
    }

    .table-cell:nth-child(2)::before {
        content: "支持方式：";
        font-weight: 600;
        color: var(--text-subtle);
        margin-right: 6px;
    }

    .table-cell:nth-child(3)::before {
        content: "感谢语：";
        font-weight: 600;
        color: var(--text-subtle);
        margin-right: 6px;
    }
}

@media (min-width: 900px) {
    .page-container {
        max-width: 860px;
        margin: 0 auto;
        padding: 8px 0 28px;
    }

    .about-content {
        flex: 1;
        min-height: 0;
        padding: 0 20px 20px;
        overflow-y: auto;
    }

    .section-card {
        padding: 20px;
        margin-bottom: 14px;
        background: var(--surface);
        box-shadow: var(--shadow-sm);
    }

    .section-title {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .section-title::before {
        height: 17px;
    }

    .content-text,
    .support-text,
    .social-text,
    .donation-text,
    .thanks-text {
        font-size: 14px;
    }

    .social-links {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .social-link {
        flex-direction: column;
        gap: 8px;
        padding: 15px 10px;
        text-align: center;
    }

    .social-icon {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }

    .qrcode-image {
        width: 150px;
        height: 150px;
    }

    .feature-desc {
        font-size: 12.5px;
    }

    .table-cell {
        padding: 13px 16px;
        font-size: 13.5px;
    }
}

@media (min-width: 900px) and (max-width: 1100px) {
    .feature-list {
        grid-template-columns: 1fr;
    }
}
