body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.45;
    margin: 0;
    padding: 0;
    background-color: #fff; /* 白色背景 */
    color: #333; /* 深色文字 */
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 24px auto 30px;
    padding: 0 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.top-contact-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e4e9f2;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 12px rgba(16, 42, 87, 0.06);
}

.top-contact-wrap {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 52px;
    padding: 7px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
}

.top-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: #132238;
    flex: 0 0 auto;
}

.top-brand-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e8edf5;
    box-shadow: 0 1px 3px rgba(15, 35, 68, 0.16);
    flex: 0 0 auto;
}

.top-brand-name {
    font-size: 1em;
    font-weight: 800;
    color: #132238;
    white-space: nowrap;
    text-decoration: none;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-left: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.top-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #4b5563;
    font-size: 0.88em;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.top-nav a:hover {
    color: #1d4ed8;
    background: #f4f7fc;
}

.top-contact-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
    max-width: 100%;
}

.top-contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    box-sizing: border-box;
    text-decoration: none !important;
    color: #1b2a44;
    background: #f8fbff;
    border: 1px solid #dbe5f6;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    max-width: 100%;
}

.top-contact-link:hover {
    background: #edf5ff;
    border-color: #c7d7f4;
}

.top-contact-icon {
    display: block;
    width: 18px;
    height: 18px;
    color: #334155;
    fill: currentColor;
    flex: 0 0 auto;
    vertical-align: middle;
}

.top-announcement {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 8px;
    text-align: center;
}

.top-announcement p {
    margin: 0;
    color: #d93025 !important;
    font-size: 0.82em;
    font-weight: 600;
    line-height: 1.4;
    background: #f8fbff !important;
    border: 1px solid #e1ebf8 !important;
    border-radius: 8px;
    padding: 6px 12px;
    overflow-wrap: anywhere;
    word-break: break-all;
    white-space: normal;
    width: 100%;
}

.guide-card {
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.guide-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #111827;
    font-size: 1.05em;
    font-weight: 800;
    line-height: 1.3;
    list-style: none;
}

.guide-summary::-webkit-details-marker {
    display: none;
}

.guide-summary-toggle {
    display: none;
    color: #2563eb;
    font-size: 0.82em;
    font-weight: 700;
}

.guide-summary-closed {
    display: none;
}

.guide-disclosure:not([open]) .guide-summary-open {
    display: none;
}

.guide-disclosure:not([open]) .guide-summary-closed {
    display: inline;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid #eef1f5;
    border-radius: 7px;
    background: #fbfcfe;
    box-sizing: border-box;
    min-width: 0;
}

.guide-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #eef4ff;
    color: #2563eb;
    font-size: 0.78em;
    font-weight: 800;
    line-height: 1;
    flex: 0 0 auto;
}

.guide-step-text {
    display: block;
    color: #4b5563;
    font-size: 0.9em;
    line-height: 1.45;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-all;
}

.exchange-section {
    margin-bottom: 18px;
}

.exchange-section-header {
    margin-bottom: 10px;
    padding-bottom: 7px;
    border-bottom: 1px solid #eef1f5;
}

.exchange-section-header h2 {
    margin: 0;
    color: #1f2937;
    font-size: 1.05em;
    font-weight: 700;
    line-height: 1.3;
}

.exchange-section-header p {
    margin: 3px 0 0;
    color: #8a94a6;
    font-size: 0.84em;
    line-height: 1.4;
}

.seo-faq {
    margin-top: 2px;
    padding-top: 8px;
    border-top: 1px solid #eeeeee;
}

.seo-faq h2 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 1em;
    line-height: 1.25;
}

.seo-faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.seo-faq article {
    padding: 0;
}

.seo-faq h3 {
    margin: 0 0 5px;
    color: #111827;
    font-size: 0.9em;
    line-height: 1.3;
}

.seo-faq p {
    margin: 0;
    color: #5f6673;
    font-size: 0.9em;
    line-height: 1.6;
}

.content-page {
    max-width: 920px;
    margin: 0 auto;
    color: #374151;
    font-size: 0.98em;
    line-height: 1.75;
}

.content-page h1 {
    margin: 0 0 18px;
    color: #111827;
    font-size: 1.7em;
    line-height: 1.25;
}

.content-page h2 {
    margin: 30px 0 12px;
    color: #111827;
    font-size: 1.22em;
    line-height: 1.3;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e7eb;
}

.content-page p {
    margin: 0 0 14px;
}

.content-page ul,
.content-page ol {
    margin: 0 0 16px;
    padding-left: 1.35em;
}

.content-page li {
    margin-bottom: 7px;
}

.content-page li p {
    margin: 0;
}

.content-page a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.content-page a:hover {
    text-decoration: underline;
}

.exchange-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
    margin-bottom: 8px;
}

.exchange-item {
    min-width: 0;
}

.exchange-card {
    border: 1px solid #e8ebf0;
    padding: 18px 16px 16px;
    border-radius: 8px;
    background-color: #fbfbfc;
    text-align: center;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 284px;
    box-sizing: border-box;
}

.exchange-card img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #f0f0f0;
    padding: 3px;
}

.exchange-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.18em;
    line-height: 1.2;
    color: #000;
}

.exchange-card p {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.35;
}

.exchange-card .commission-rate {
    font-weight: bold;
    color: #28a745; /* 绿色显示返佣比例 */
    font-size: 0.95em;
    margin-bottom: 7px;
}

.exchange-card .invite-code {
    margin-top: 0;
    margin-bottom: 10px;
    color: #c93a31;
    font-size: 0.84em;
    font-weight: 600;
    line-height: 1.2;
    background: #fff7f7;
    border: 1px solid #f7c7c2;
    border-radius: 999px;
    padding: 5px 9px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.exchange-card .invite-code-value {
    letter-spacing: 0.2px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 700;
}

.exchange-card .copy-invite-btn {
    border: 1px solid #ef8f87;
    background: #fff;
    color: #c93a31;
    border-radius: 4px;
    font-size: 0.72em;
    line-height: 1;
    padding: 3px 6px;
    cursor: pointer;
}

.exchange-card .copy-invite-btn:hover {
    background: #fff3f2;
}

.exchange-card .exchange-description {
    min-height: 3.15em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exchange-card a {
    display: inline-block;
    background-color: #2563eb;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s ease, transform 0.2s ease;
    margin-top: auto;
    font-size: 0.92em;
}

.exchange-card a:hover {
    background-color: #1d4ed8;
}

.category-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.category-list li {
    background-color: #e9ecef;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9em;
}

.category-list li a {
    text-decoration: none;
    color: #007bff;
    font-weight: normal;
}

.category-list li a:hover {
    text-decoration: underline;
}

.post-list {
    list-style: none;
    padding: 0;
}

.post-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

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

.post-list h3 {
    margin: 0;
    font-size: 1.5em;
}

.post-list h3 a {
    text-decoration: none;
    color: #007bff;
}

.post-list h3 a:hover {
    text-decoration: underline;
}

.post-meta {
    font-size: 0.9em;
    color: #777;
    margin-top: 5px;
}

@media (max-width: 640px) {
    .top-contact-wrap {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 7px 16px 6px;
        flex-wrap: wrap;
    }

    .top-brand-avatar {
        width: 30px;
        height: 30px;
    }

    .top-brand-name {
        font-size: 0.95em;
    }

    .top-brand {
        justify-content: center;
    }

    .top-nav {
        order: 2;
        width: 100%;
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
        gap: 2px;
    }

    .top-nav a {
        min-height: 26px;
        padding: 4px 8px;
        font-size: 0.82em;
    }

    .top-contact-actions {
        order: 3;
        justify-content: center;
        width: 100%;
        margin-left: 0;
    }

    .top-contact-link {
        justify-content: center;
        min-height: 30px;
        padding: 5px 9px;
        font-size: 13px;
        gap: 6px;
    }

    .top-contact-link {
        flex: 0 1 auto;
    }

    .top-contact-icon {
        width: 16px;
        height: 16px;
    }

    .top-announcement {
        padding: 0 16px 6px;
    }

    .top-announcement p {
        font-size: 0.78em;
        line-height: 1.35;
        padding: 5px 8px;
    }
}

@media (max-width: 1100px) {
    .exchange-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .guide-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .exchange-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .seo-faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .top-contact-actions {
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }

    .top-contact-link {
        width: auto;
        box-sizing: border-box;
    }

    .container {
        margin-top: 14px;
        padding: 0 20px;
    }

    .exchange-section {
        margin-bottom: 14px;
    }

    .exchange-section-header {
        margin-bottom: 8px;
        padding-bottom: 6px;
    }

    .exchange-section-header h2 {
        font-size: 0.98em;
        font-weight: 700;
    }

    .exchange-section-header p {
        margin-top: 2px;
        font-size: 0.78em;
        line-height: 1.35;
    }

    .guide-card {
        margin-bottom: 16px;
        padding: 0;
    }

    .guide-summary {
        margin-bottom: 0;
        padding: 12px 14px;
        font-size: 1em;
        cursor: pointer;
    }

    .guide-summary-toggle {
        display: inline-flex;
        align-items: center;
    }

    .guide-disclosure[open] .guide-summary {
        margin-bottom: 0;
        border-bottom: 1px solid #eef1f5;
    }

    .guide-steps {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px 14px 14px;
    }

    .guide-step {
        min-height: 42px;
        padding: 10px 11px;
    }

    .content-page {
        font-size: 0.94em;
    }

    .content-page h1 {
        font-size: 1.35em;
    }

    .exchange-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .exchange-card {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr) auto;
        grid-template-areas:
            "logo name cta"
            "logo rate cta"
            "invite invite invite";
        align-items: center;
        gap: 5px 10px;
        min-height: 0;
        padding: 12px;
        text-align: left;
        box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04);
    }

    .exchange-card img {
        grid-area: logo;
        width: 34px;
        height: 34px;
        margin: 0;
        border-radius: 9px;
        padding: 2px;
    }

    .exchange-card h3 {
        grid-area: name;
        margin: 0;
        font-size: 1em;
        line-height: 1.2;
    }

    .exchange-card .commission-rate {
        grid-area: rate;
        margin: 0;
        font-size: 0.86em;
        line-height: 1.25;
    }

    .exchange-card .invite-code {
        grid-area: invite;
        justify-self: start;
        max-width: 100%;
        margin: 5px 0 0;
        padding: 4px 7px;
        gap: 5px;
        font-size: 0.78em;
        line-height: 1.2;
        flex-wrap: wrap;
    }

    .exchange-card .copy-invite-btn {
        padding: 2px 5px;
        font-size: 0.72em;
    }

    .exchange-card .exchange-description {
        display: none;
    }

    .exchange-card a {
        grid-area: cta;
        margin: 0;
        padding: 7px 10px;
        border-radius: 6px;
        font-size: 0.82em;
        line-height: 1.15;
        white-space: nowrap;
    }
}
