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; /* 深色文字 */
}

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

.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-contact-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}

.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;
}

.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.88em;
    font-weight: 600;
    line-height: 1.35;
    background: #f1f6fd !important;
    border: 1px solid #dbe8f7 !important;
    border-radius: 8px;
    padding: 7px 12px;
}

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

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

.exchange-card {
    border: 1px solid #eee;
    padding: 18px 14px 16px;
    border-radius: 8px;
    background-color: #f9f9f9;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
}

.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: 6px;
}

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

.exchange-card .invite-code-value {
    letter-spacing: 0.2px;
}

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

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

.exchange-card .exchange-description {
    min-height: 3em;
}

.exchange-card a {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 8px 14px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: auto;
    font-size: 0.92em;
}

.exchange-card a:hover {
    background-color: #0056b3;
}

.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: 8px;
        padding: 9px 16px 7px;
        flex-wrap: wrap;
    }

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

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

    .top-contact-link {
        justify-content: center;
    }

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

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

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

@media (max-width: 560px) {
    .exchange-grid {
        grid-template-columns: 1fr;
    }
}
