* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    padding: 1rem;
    margin: 0;
}

.page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    min-height: 90vh;
    justify-content: center;
}

.main-wrapper {
    width: 100%;
    margin: 0 auto 1.5rem auto;
}

.initial-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.sticky-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: none;
    padding: 2.8rem 0 0.4rem 0;
}

header[role="banner"] {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#main-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

#main-header img {
    height: 48px;
    width: auto;
    display: block;
}

#main-header .brand-text {
    display: none;
}

.slogan {
    font-family: 'Ysbth', sans-serif;
    font-size: 0.95rem;
    color: #319EFF;
    text-align: center;
    margin-top: 0.1rem;
    margin-bottom: 0.2rem;
    letter-spacing: 1px;
    font-weight: normal;
}

.ksab-title {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.ksab-subtitle {
    margin-top: 0;
    margin-bottom: 1rem;
}

.grid-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    width: 100%;
    border: none;
    border-radius: 0;
    overflow: visible;
    margin-bottom: 1.5rem;
    flex-direction: column;
}

.partner-item {
    flex: 0 0 100%;
    width: 100%;
    min-width: unset;
    background: transparent;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    aspect-ratio: auto;
    border: none;
    box-shadow: none;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.15s ease;
    position: relative;
    padding: 0.8rem 0.4rem;
}

.partner-item:last-child {
    border-bottom: none;
}

.partner-item .item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
    background: transparent;
    padding: 0;
    text-align: center;
}

.partner-image {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    background: #f1f5f9;
}

.partner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.partner-item:hover .partner-image img {
    transform: scale(1.02);
}

.partner-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
    width: 100%;
}

.partner-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    text-align: center;
}

.partner-link {
    margin-top: 0.1rem;
}

.partner-link .ksab-button {
    font-size: 0.65rem;
    padding: 5px 18px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    border-width: 1.5px;
}

.partner-link .ksab-button:hover {
    background-color: #319EFF;
    color: #fff;
}

.partner-item:hover {
    background: rgba(0, 0, 0, 0.01);
}

.team-intro {
    width: 100%;
    font-size: 0.7rem;
    line-height: 1.7;
    color: #475569;
    text-align: justify;
    padding: 0.8rem 0.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.team-intro strong {
    color: #1e293b;
    font-weight: 600;
}

.footer {
    width: 100%;
    text-align: center;
    padding: 1rem 0 0.5rem 0;
    color: #94a3b8;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    border-top: 1px solid #f1f5f9;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.65rem;
    color: #64748b;
}

.footer-email img {
    height: 16px;
    width: auto;
    display: block;
    opacity: 0.7;
}

.footer-email a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-email a:hover {
    color: #319EFF;
    text-decoration: underline;
}

.email-separator {
    color: #cbd5e1;
    margin: 0 0.2rem;
}

@media (max-width: 420px) {
    .partner-item {
        padding: 0.6rem 0.2rem;
        border-bottom: 1px solid #e2e8f0;
    }

    .partner-item:last-child {
        border-bottom: none;
    }

    .partner-item .item-content {
        gap: 0.4rem;
    }

    .partner-image {
        max-width: 100%;
    }

    .partner-title {
        font-size: 0.8rem;
    }

    .partner-link .ksab-button {
        font-size: 0.55rem;
        padding: 4px 14px;
    }

    .slogan {
        font-size: 0.85rem;
    }
    .team-intro {
        font-size: 0.65rem;
        padding: 0.6rem 0.1rem;
        line-height: 1.6;
    }
    .footer {
        font-size: 0.6rem;
        padding: 0.8rem 0 0.3rem 0;
    }
    .footer-email {
        font-size: 0.55rem;
        gap: 0.3rem;
    }
    .footer-email img {
        height: 14px;
    }
}

@media (min-width: 421px) and (max-width: 520px) {
    .partner-item {
        padding: 0.6rem 0.3rem;
    }
    .partner-title {
        font-size: 0.8rem;
    }
    .partner-link .ksab-button {
        font-size: 0.55rem;
        padding: 4px 14px;
    }
}

@media (max-width: 340px) {
    .partner-item {
        padding: 0.5rem 0.15rem;
    }
    .partner-title {
        font-size: 0.7rem;
    }
    .partner-link .ksab-button {
        font-size: 0.5rem;
        padding: 3px 10px;
    }
    .team-intro {
        font-size: 0.6rem;
        padding: 0.4rem 0.05rem;
        line-height: 1.5;
    }
    .footer-email {
        flex-direction: column;
        gap: 0.2rem;
    }
    .email-separator {
        display: none;
    }
}