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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #fdfefe 0%, #f8fbff 100%);
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a,
a:hover,
a:focus,
a:active {
    text-decoration: none;
    color: inherit;
}

ul {
    margin: 0;
    padding: 0;
}


.section {
    padding: 56px 0;
    width: 100%;
}

.section + .section {
    border-top: 1px solid #edf2f8;
}

.section-gray {
    background: #f7f7f7;
}

.section-ink {
    position: relative;
    background: linear-gradient(135deg, #0f1e3d 0%, #1b2f59 58%, #213764 100%);
    overflow: hidden;
}

.section-ink::before {
    content: '';
    position: absolute;
    top: -180px;
    right: -120px;
    width: 480px;
    height: 480px;
    border-radius: 0;
    background: radial-gradient(circle, rgba(250, 193, 12, 0.18) 0%, rgba(250, 193, 12, 0) 72%);
    pointer-events: none;
}

.section-divider {
    background: #fff;
    border-top: 1px solid #eaf0f8;
    border-bottom: 1px solid #eaf0f8;
}

.section-header,
.about-header,
.news-header {
    text-align: center;
}

.section-header,
.about-header {
    margin-bottom: 32px;
}

.news-header {
    margin-bottom: 56px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #16233c;
}

.section-subtitle {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #65738e;
}

.btn-outline {
    background: transparent;
    color: #1a1a1a;
    border: 1.5px solid #ddd;
    border-radius: 0;
}

.btn-outline:hover {
    border-color: #274B92;
    color: #274B92;
}

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

.cta {
    padding: 120px 0;
    text-align: center;
    background: #1a1a1a;
}

.cta-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.cta-title span {
    color: #FAC10C;
}

.cta-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.cta .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.cta .btn-outline:hover {
    border-color: #fff;
}

/* ========================
   Detail Page Styles
   ======================== */

.detail-page {
    padding-top: 96px;
    min-height: 100vh;
}

.detail-breadcrumb {
    padding: 20px 0;
    border-bottom: 1px solid #eaf0f8;
    background: #fff;
}

.detail-breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    font-size: 0.85rem;
    color: #999;
}

.detail-breadcrumb-inner a {
    color: #274B92;
    transition: color 0.2s ease;
}

.detail-breadcrumb-inner a:hover {
    color: #1E3A73;
}

.detail-breadcrumb-inner span {
    margin: 0 8px;
    color: #ccc;
}

.detail-header {
    padding: 48px 0 32px;
}

.detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: #16233c;
    line-height: 1.4;
    margin-bottom: 20px;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.detail-tag {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #274B92;
    background: rgba(39, 75, 146, 0.08);
    border: 1px solid rgba(39, 75, 146, 0.15);
}

.detail-date {
    font-size: 0.85rem;
    color: #999;
}

.detail-cover {
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    margin-bottom: 40px;
    background: #f0f0f0;
}

.detail-cover img {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: cover;
}

.detail-body {
    padding-bottom: 64px;
}

.detail-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.detail-content p {
    margin-bottom: 1.2em;
}

.detail-content h2,
.detail-content h3,
.detail-content h4 {
    color: #16233c;
    margin: 1.8em 0 0.8em;
    font-weight: 600;
}

.detail-content h2 {
    font-size: 1.5rem;
}

.detail-content h3 {
    font-size: 1.25rem;
}

.detail-content h4 {
    font-size: 1.1rem;
}

.detail-content ul,
.detail-content ol {
    margin: 1em 0 1.2em 1.5em;
    padding-left: 0.5em;
}

.detail-content li {
    margin-bottom: 0.5em;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5em 0;
    display: block;
}

.detail-content a {
    color: #274B92;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.detail-content a:hover {
    color: #1E3A73;
}

.detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.9rem;
}

.detail-content table th,
.detail-content table td {
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.detail-content table th {
    background: #f7f7f7;
    font-weight: 600;
    color: #16233c;
}

.detail-content blockquote {
    margin: 1.5em 0;
    padding: 16px 20px;
    border-left: 4px solid #274B92;
    background: #f8faff;
    color: #555;
}

.detail-footer {
    padding: 32px 0 64px;
    border-top: 1px solid #eaf0f8;
    display: flex;
    justify-content: center;
}

.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 28px;
    background: #fff;
    color: #274B92;
    border: 1.5px solid #274B92;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.detail-back:hover {
    background: #274B92;
    color: #fff;
}

.detail-empty {
    padding: 120px 0;
    text-align: center;
}

.detail-empty-icon {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 16px;
}

.detail-empty-text {
    font-size: 1rem;
    color: #999;
}

@media (max-width: 768px) {
    .detail-page {
        padding-top: 72px;
    }

    .detail-title {
        font-size: 1.5rem;
    }

    .detail-breadcrumb-inner,
    .detail-header,
    .detail-body,
    .detail-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Auth & Apply Forms */
.auth-section,
.apply-section {
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: calc(100vh - 200px);
}

.auth-card,
.apply-card {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #eaf0f8;
    padding: 48px;
}

.apply-card {
    max-width: 560px;
}

.auth-header,
.apply-header {
    text-align: center;
    margin-bottom: 36px;
}

.auth-title,
.apply-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #16233c;
    margin-bottom: 8px;
}

.auth-subtitle,
.apply-subtitle {
    font-size: 0.95rem;
    color: #65738e;
}

.auth-form,
.apply-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-input {
    height: 48px;
    padding: 0 16px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 0.95rem;
    color: #1a1a1a;
    transition: border-color 0.2s ease;
    outline: none;
    width: 100%;
}

.form-input-wrap {
    position: relative;
    width: 100%;
}

.form-input-wrap .form-input {
    padding-right: 44px;
}

.pwd-toggle-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
    padding: 0;
}

.pwd-toggle-btn:hover {
    color: #274B92;
}

.pwd-toggle-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.form-input:focus {
    border-color: #274B92;
}

.form-input::placeholder {
    color: #aaa;
}

.form-textarea {
    height: auto;
    min-height: 96px;
    padding: 12px 16px;
    resize: vertical;
}

.btn-block {
    width: 100%;
    height: 48px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
}

.auth-footer {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 8px;
}

.auth-footer a {
    color: #274B92;
    font-weight: 500;
    margin-left: 4px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-footer a:hover {
    color: #1E3A73;
}

@media (max-width: 768px) {
    .auth-card,
    .apply-card {
        padding: 32px 24px;
        margin: 0 16px;
    }

    .auth-section,
    .apply-section {
        padding-top: 100px;
    }
}

/* 浮动报名按钮 */
.float-apply-btn {
    position: fixed;
    right: 24px;
    bottom: 32px;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0 16px;
    background: #274B92;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 12px rgba(39, 75, 146, 0.35);
    transition: width 0.3s ease, padding 0.3s ease, gap 0.3s ease, background 0.2s ease, box-shadow 0.2s ease;
    animation: floatApplyPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s both;
    overflow: hidden;
    border-radius: 0;
}

.float-apply-btn svg {
    flex-shrink: 0;
}

.float-apply-btn span {
    opacity: 1;
    transition: opacity 0.25s ease;
}

/* 收起状态：只显示图标 */
.float-apply-btn.collapsed {
    width: 44px;
    padding: 0;
    justify-content: center;
    gap: 0;
}

.float-apply-btn.collapsed span {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* 收起后 hover 展开 */
.float-apply-btn.collapsed:hover {
    width: auto;
    padding: 0 16px;
    gap: 6px;
    background: #1E3A73;
    box-shadow: 0 5px 18px rgba(39, 75, 146, 0.5);
}

.float-apply-btn.collapsed:hover span {
    opacity: 1;
    width: auto;
}

/* 始终 hover 变深 */
.float-apply-btn:hover {
    background: #1E3A73;
    box-shadow: 0 5px 18px rgba(39, 75, 146, 0.5);
    color: #fff;
}

/* 报名页面隐藏浮动按钮 */
body.apply-layout .float-apply-btn {
    display: none;
}

/* 入场动画 */
@keyframes floatApplyPopIn {
    0% {
        transform: scale(0) translateY(20px);
        opacity: 0;
    }
    60% {
        transform: scale(1.06) translateY(-2px);
        opacity: 1;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* ========================
   Footer
   ======================== */
.footer {
    padding: 60px 0 40px;
    background: #fff;
    border-top: 1px solid #eee;
}

.footer-grid {
display: grid;
grid-template-columns: 1.2fr 1.5fr 1fr auto;
gap: 48px;
margin-bottom: 48px;
align-items: start;
}

.footer-brand {
    margin-top: 0;
    padding-top: 2px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.footer-logo img {
    height: 32px;
    width: auto;
}

.footer-logo span {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a1a1a;
}

.footer-desc {
    font-size: 0.85rem;
    color: #999;
    line-height: 1.7;
    margin: 0;
}

.footer-links-group {
    display: flex;
    gap: 48px;
}

.footer-column h4 {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #999;
    margin-bottom: 20px;
    font-weight: 500;
    text-transform: uppercase;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: #274B92;
}

.footer-column p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-qrcodes {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

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

.footer-qrcode-item span {
    font-size: 0.75rem;
    color: #999;
    letter-spacing: 0.05em;
}

.footer-qrcode-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 0;
    border: 1px solid #eee;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-copyright {
    font-size: 0.8rem;
    color: #bbb;
    text-align: center;
    width: 100%;
}

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

    .footer-links-group {
        flex-direction: column;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-links-group {
        flex-direction: column;
        gap: 24px;
    }

    .footer-qrcodes {
        justify-content: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
