@import url("fonts/index.css");

/* 原公共样式对 body 设置了 !important，仅在本页覆盖为主站背景色。 */
body.ttcl-page { background-color: #f2f4f2 !important; }

#ttcl-disclosure {
    --blue: #4793f1;
    --ink: #293445;
    --muted: #68788e;
    --line: #e7ecf3;
    background: #f2f4f2;
    color: var(--ink);
    font: 14px/1.6 "TTCL Noto Sans SC", sans-serif;
    text-align: left;
    width: 100%;
}
#ttcl-disclosure *, #ttcl-disclosure *::before, #ttcl-disclosure *::after { box-sizing: border-box; }
#ttcl-disclosure [hidden] { display: none !important; }
#ttcl-disclosure input, #ttcl-disclosure button, #ttcl-disclosure select { font: inherit; color: inherit; }
#ttcl-disclosure button { border: 0; background: none; cursor: pointer; }
#ttcl-disclosure button:disabled { opacity: .4; cursor: default; }
#ttcl-disclosure a { text-decoration: none; color: #365c87; }
#ttcl-disclosure a:hover { color: var(--blue); text-decoration: underline; }
#ttcl-disclosure :focus-visible { outline: 2px solid #468bdd; outline-offset: 2px; }
#ttcl-disclosure h1, #ttcl-disclosure h2, #ttcl-disclosure h3, #ttcl-disclosure h4 { color: var(--ink); font-weight: 600; }
#ttcl-disclosure h2 { font-size: 17px; }
#ttcl-disclosure h3 { font-size: 15px; }
#ttcl-disclosure svg { display: block; }
#ttcl-disclosure button svg, #ttcl-disclosure .search svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
#ttcl-disclosure .ttcl-wrap { max-width: 1200px; margin: 0 auto; padding: 0 30px; }
#ttcl-disclosure .hero { position: relative; display: flex; align-items: center; min-height: 170px; overflow: hidden; padding: 24px 0; }
#ttcl-disclosure .hero-copy { position: relative; z-index: 1; max-width: 80%; }
#ttcl-disclosure .eyebrow { display: flex; align-items: center; gap: 9px; font-size: 12px; letter-spacing: 2px; color: #4784d3; }
#ttcl-disclosure .eyebrow::before, #ttcl-disclosure .updated::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
#ttcl-disclosure h1 { font-size: 32px; line-height: 1.5; letter-spacing: 1px; margin: 10px 0 7px; }
#ttcl-disclosure h1 br { display: none; }
#ttcl-disclosure .hero p { color: var(--muted); font-size: 13px; }
#ttcl-disclosure .hero .dot { margin: 0 9px; color: #9aadc4; }
#ttcl-disclosure .botanical { position: absolute; width: 250px; height: 183px; right: 20px; bottom: -5px; }
#ttcl-disclosure .hero-caption { position: absolute; right: 5px; bottom: 16px; color: #738cae; font-size: 8px; letter-spacing: 3px; }
#ttcl-disclosure .summary, #ttcl-disclosure .main-card, #ttcl-disclosure .aside-card {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
#ttcl-disclosure .summary { display: grid; grid-template-columns: 1.5fr 1.12fr .85fr 1.14fr; padding: 18px 0; }
#ttcl-disclosure .metric { padding: 0 27px; min-width: 0; }
#ttcl-disclosure .metric + .metric { border-left: 1px solid var(--line); }
#ttcl-disclosure .metric-label, #ttcl-disclosure .metric-note, #ttcl-disclosure .metric-source { font-size: 12px; color: var(--muted); }
#ttcl-disclosure .metric-note, #ttcl-disclosure .metric-source { margin-top: 4px; font-size: 11px; }
#ttcl-disclosure .metric-source { color: #467bb9; }
#ttcl-disclosure .metric-value { margin-top: 6px; font-size: 25px; font-weight: 500; white-space: nowrap; letter-spacing: -.7px; font-variant-numeric: tabular-nums; }
#ttcl-disclosure .metric:first-child .metric-value { color: var(--blue); font-size: 29px; line-height: 1.4; }
#ttcl-disclosure .metric-value small { font-size: 14px; font-weight: 400; }
#ttcl-disclosure .updated { display: flex; align-items: center; justify-content: flex-end; gap: 4px; color: var(--muted); font-size: 11px; margin: 10px 2px 18px; }
#ttcl-disclosure .layout { display: grid; grid-template-columns: minmax(0, 1fr) 258px; align-items: start; gap: 23px; padding-bottom: 42px; }
#ttcl-disclosure .summary + .layout { margin-top: 22px; }
#ttcl-disclosure .main-card { min-width: 0; overflow: hidden; scroll-margin-top: 80px; }
#ttcl-disclosure .tabs { display: flex; gap: 26px; height: 55px; margin: 0 26px; border-bottom: 1px solid var(--line); }
#ttcl-disclosure [role="tab"] { position: relative; color: var(--muted); white-space: nowrap; }
#ttcl-disclosure [role="tab"][aria-selected="true"] { color: var(--ink); font-weight: 600; }
#ttcl-disclosure [role="tab"][aria-selected="true"]::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 28px; height: 3px; border-radius: 2px; background: var(--blue); }
#ttcl-disclosure .count-badge { margin-left: 5px; padding: 2px 6px; border-radius: 4px; color: #527faf; background: #edf5ff; font-size: 10px; }
#ttcl-disclosure .panel-head, #ttcl-disclosure .filters, #ttcl-disclosure .pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#ttcl-disclosure .panel-head { margin: 18px 26px 14px; }
#ttcl-disclosure .panel-head p { margin-top: 4px; font-size: 12px; color: var(--muted); }
#ttcl-disclosure .mini-label { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; white-space: nowrap; }
#ttcl-disclosure .tools { display: flex; gap: 10px; margin: 0; padding: 0 26px 14px; }
#ttcl-disclosure .search { display: flex; flex: 1; min-width: 96px; align-items: center; gap: 8px; padding: 0 11px; color: var(--muted); }
#ttcl-disclosure .search, #ttcl-disclosure select { height: 38px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
#ttcl-disclosure .search:focus-within { border-color: var(--blue); }
#ttcl-disclosure .search input { width: 100%; min-width: 0; height: 100%; outline: 0; border: 0; background: transparent; font-size: 13px; }
#ttcl-disclosure select { padding: 0 10px; font-size: 12px; }
#ttcl-disclosure .filters { border-top: 1px solid var(--line); padding: 10px 26px; color: var(--muted); font-size: 12px; }
#ttcl-disclosure .sort-options { display: flex; gap: 16px; }
#ttcl-disclosure .sort-options [aria-pressed="true"], #ttcl-disclosure .text-action, #ttcl-disclosure .detail-link { color: #397ccf; }
#ttcl-disclosure .text-action { margin-left: 5px; }
#ttcl-disclosure table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 13px; }
#ttcl-disclosure th { height: 35px; color: var(--muted); background: #f5f8fc; font-size: 11px; font-weight: 400; }
#ttcl-disclosure th, #ttcl-disclosure td { text-align: left; padding: 4px; }
#ttcl-disclosure td { height: 64px; border-bottom: 1px solid #edf1f7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ttcl-disclosure tbody tr:hover { background: #f8faff; }
#ttcl-disclosure th:first-child, #ttcl-disclosure td:first-child { padding-left: 20px; width: 9%; font-size: 11px; color: var(--muted); }
#ttcl-disclosure th:nth-child(2) { width: auto; }
#ttcl-disclosure th:nth-child(3), #ttcl-disclosure th:nth-child(4) { width: 18%; }
#ttcl-disclosure th:nth-child(5) { width: 21%; }
#ttcl-disclosure .detail-col { width: 52px; text-align: center; white-space: nowrap; }
#ttcl-disclosure .person, #ttcl-disclosure .drawer-profile { display: flex; align-items: center; gap: 10px; }
#ttcl-disclosure .avatar { display: block; flex: none; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #f3f6fa; }
#ttcl-disclosure .person-copy { min-width: 0; }
#ttcl-disclosure .person-name { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#ttcl-disclosure .person-sub { display: block; padding: 3px 0; color: #607f9f; text-align: left; font-size: 11px; }
#ttcl-disclosure .person-sub:hover { color: #397ccf; text-decoration: underline; }
#ttcl-disclosure .date { font-size: 12px; color: var(--muted); }
#ttcl-disclosure .money { color: #40536e; font-weight: 500; font-variant-numeric: tabular-nums; }
#ttcl-disclosure .detail-link { padding: 6px; font-size: 19px; }
#ttcl-disclosure .pagination { padding: 15px 26px; color: var(--muted); font-size: 11px; flex-wrap: wrap; }
#ttcl-disclosure .pagination select { height: 30px; padding: 0 3px; }
#ttcl-disclosure nav { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
#ttcl-disclosure nav button { min-width: 29px; height: 30px; padding: 0 5px; background: white; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; font-size: 12px; }
#ttcl-disclosure nav [aria-current="page"] { background: var(--blue); border-color: var(--blue); color: white; }
#ttcl-disclosure .sidebar { display: grid; gap: 18px; }
#ttcl-disclosure .gratitude { position: relative; overflow: hidden; padding: 24px; border: 1px solid #dbe7f8; border-radius: 12px; background: #edf5ff; }
#ttcl-disclosure .small-leaf { color: #6b9edc; margin-bottom: 14px; }
#ttcl-disclosure .gratitude h3 { margin: 0 0 9px; font-size: 22px; line-height: 1.7; letter-spacing: 2px; color: #3779c9; }
#ttcl-disclosure .gratitude p, #ttcl-disclosure .sign { font-size: 12px; color: #58799e; }
#ttcl-disclosure .sign { margin-top: 20px; font-size: 11px; }
#ttcl-disclosure .aside-card { padding: 21px; }
#ttcl-disclosure .aside-card h4 { font-size: 13px; margin-top: 17px; }
#ttcl-disclosure .aside-card p, #ttcl-disclosure .aside-source, #ttcl-disclosure .info-copy { color: var(--muted); font-size: 12px; margin-top: 5px; }
#ttcl-disclosure .aside-source { padding: 0 4px; }
#ttcl-disclosure .empty { text-align: center; padding: 44px 18px; }
#ttcl-disclosure .empty p, #ttcl-disclosure .drawer-body p { color: var(--muted); font-size: 13px; }
#ttcl-disclosure .soft-button { display: inline-block; background: #edf5ff; color: #3876bd; padding: 8px 15px; border-radius: 6px; margin-top: 12px; }
#ttcl-disclosure .info-panel { padding: 0 26px 24px; }
#ttcl-disclosure .source-total, #ttcl-disclosure .source-row, #ttcl-disclosure .record-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#ttcl-disclosure .source-total, #ttcl-disclosure .drawer-summary { background: #f2f7ff; border-radius: 8px; padding: 17px; }
#ttcl-disclosure .source-total strong { color: var(--blue); font-size: 24px; }
#ttcl-disclosure .source-row { padding: 13px 0; border-bottom: 1px solid var(--line); }
#ttcl-disclosure .source-row strong { font-weight: 500; }
#ttcl-disclosure .source-row .money { white-space: nowrap; }
#ttcl-disclosure .formula, #ttcl-disclosure .impact-intro { margin: 15px 0; padding: 14px; background: #f2f7ff; border-radius: 5px; color: #536d89; }
#ttcl-disclosure .impact-intro { border-left: 2px solid #91b9ec; font-size: 16px; }
#ttcl-disclosure .timeline { border-left: 1px solid #ceddef; list-style: none; padding-left: 20px; margin: 18px 5px; }
#ttcl-disclosure .timeline li { position: relative; margin: 0 0 19px; line-height: 1.9; }
#ttcl-disclosure .timeline-date { display: block; color: #4d7bb4; font-size: 12px; font-weight: 600; letter-spacing: .5px; }
#ttcl-disclosure .timeline p { margin: 5px 0 0; color: var(--muted); }
#ttcl-disclosure .timeline li::before { content: ""; position: absolute; left: -25px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: #8cb6ec; }
#ttcl-disclosure dialog.drawer { position: fixed; inset: 0 0 0 auto; margin: 0 0 0 auto; width: min(460px, 100%); max-width: 100%; height: 100%; height: 100dvh; max-height: 100%; padding: 0; border: 0; background: #fff; color: var(--ink); overflow: auto; text-align: left; z-index: 9999; }
#ttcl-disclosure dialog::backdrop { background: rgb(23 43 70 / 40%); }
#ttcl-disclosure .drawer-top { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 20px 25px; }
#ttcl-disclosure .close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); font-size: 20px; }
#ttcl-disclosure .drawer-body { padding: 24px; }
#ttcl-disclosure .drawer-body h3 { font-size: 19px; }
#ttcl-disclosure .drawer-body h4, #ttcl-disclosure #ttcl-help h3 { margin: 22px 0 9px; }
#ttcl-disclosure .drawer-summary { margin-top: 20px; }
#ttcl-disclosure .drawer-summary strong { display: block; margin: 4px 0; color: var(--blue); font-size: 29px; }
#ttcl-disclosure .drawer-summary span { font-size: 12px; color: var(--muted); }
#ttcl-disclosure .record { border-top: 1px solid var(--line); padding: 13px 0; }
#ttcl-disclosure .record-top { font-size: 13px; }
#ttcl-disclosure .record p { margin-top: 5px; white-space: pre-line; overflow-wrap: anywhere; }
#ttcl-disclosure #ttcl-detail-pages { justify-content: flex-end; margin-top: 12px; }

@media (max-width: 1050px) {
    #ttcl-disclosure .layout { grid-template-columns: minmax(0,1fr) 210px; gap: 16px; }
    #ttcl-disclosure .metric { padding: 0 16px; }
    #ttcl-disclosure .metric-value { font-size: 22px; }
    #ttcl-disclosure .metric:first-child .metric-value { font-size: 25px; }
    #ttcl-disclosure .date { font-size: 11px; }
}
@media (max-width: 800px) {
    #ttcl-disclosure .ttcl-wrap { padding: 0 18px; }
    #ttcl-disclosure .hero { min-height: 220px; }
    #ttcl-disclosure .hero-copy { max-width: 80%; }
    #ttcl-disclosure .hero p { font-size: 12px; }
    #ttcl-disclosure h1 br { display: initial; }
    #ttcl-disclosure .botanical { width: 220px; height: 200px; right: -65px; bottom: -5px; opacity: .5; }
    #ttcl-disclosure .hero-caption { display: none; }
    #ttcl-disclosure .summary { grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); padding: 0; }
    #ttcl-disclosure .metric { padding: 16px; }
    #ttcl-disclosure .metric:nth-child(3) { border-left: 0; }
    #ttcl-disclosure .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
    #ttcl-disclosure .layout { grid-template-columns: minmax(0,1fr); }
    #ttcl-disclosure .sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); }
    #ttcl-disclosure .aside-source { grid-column: 1/-1; }
}
@media (max-width: 600px) {
    #ttcl-disclosure .ttcl-wrap { padding: 0 14px; }
    #ttcl-disclosure h1 { font-size: 28px; }
    #ttcl-disclosure .hero p { max-width: 240px; }
    #ttcl-disclosure .metric { padding: 12px; }
    #ttcl-disclosure .metric-value { font-size: clamp(15px,4.5vw,23px); }
    #ttcl-disclosure .metric:first-child .metric-value { font-size: clamp(18px,5.2vw,25px); }
    #ttcl-disclosure .metric-label, #ttcl-disclosure .metric-note, #ttcl-disclosure .metric-source { font-size: 10px; }
    #ttcl-disclosure .tabs { margin: 0 14px; gap: 16px; font-size: 13px; }
    #ttcl-disclosure .panel-head { margin: 17px 14px 13px; }
    #ttcl-disclosure .tools { padding: 0 14px 12px; flex-wrap: wrap; gap: 7px; }
    #ttcl-disclosure .search { flex-basis: 100%; }
    #ttcl-disclosure .tools select { flex: 1; min-width: 0; }
    #ttcl-disclosure .filters, #ttcl-disclosure .pagination { padding: 10px 12px; font-size: 11px; }
    #ttcl-disclosure .sort-options { gap: 10px; }
    #ttcl-disclosure .first-date, #ttcl-disclosure .detail-col { display: none; }
    #ttcl-disclosure th:first-child, #ttcl-disclosure td:first-child { width: 10%; padding-left: 8px; font-size: 10px; }
    #ttcl-disclosure th:nth-child(2) { width: 38%; }
    #ttcl-disclosure th:nth-child(4) { width: 25%; }
    #ttcl-disclosure th:nth-child(5) { width: 27%; }
    #ttcl-disclosure .person { gap: 5px; }
    #ttcl-disclosure .avatar { width: 23px; height: 23px; font-size: 11px; }
    #ttcl-disclosure .person-name, #ttcl-disclosure .money { font-size: 12px; }
    #ttcl-disclosure .person-sub, #ttcl-disclosure th { font-size: 10px; }
    #ttcl-disclosure .date { font-size: 10px; }
    #ttcl-disclosure .sidebar { grid-template-columns: 1fr; }
    #ttcl-disclosure .info-panel, #ttcl-disclosure .drawer-body { padding: 0 15px 22px; }
    #ttcl-disclosure .drawer-body { padding-top: 20px; }
    #ttcl-disclosure .gratitude h3 br { display: none; }
    #ttcl-disclosure nav { gap: 3px; }
    #ttcl-disclosure nav button { min-width: 24px; height: 28px; }
}

/* The shared desktop navigation and footer are wider than a phone. Keep their
   contents reachable by horizontal swipe without widening the donation list. */
@media (max-width: 1199px) {
    body.ttcl-page .Nheader,
    body.ttcl-page #wrap_footer {
        width: 100%;
        min-width: 0;
        max-width: 100vw;
        overflow-x: auto;
        overscroll-behavior-x: contain;
    }
    body.ttcl-page #wrap_footer { height: auto; }
}
