/* ============================================
   IT Association Recruitment 2026
   Geek/Tech Theme Stylesheet
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --bg-dark: #0a0a0f;
    --bg-dark-2: #0f1117;
    --bg-light: #f2efeb;
    --bg-light-2: #e8e5e0;
    --accent: #00ff41;
    --accent-dim: #00cc33;
    --accent-secondary: #00d4ff;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    --text-dark: #0b0b0b;
    --text-dark-secondary: #333333;
    --border: rgba(255,255,255,0.08);
    --border-light: rgba(0,0,0,0.08);
    --glass: rgba(10,10,15,0.75);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;
    --easing-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
    --easing-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --font-sans: 'Inter', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Courier New', monospace;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--accent);
    color: var(--bg-dark);
}

/* ---- Custom Cursor ---- */
.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    mix-blend-mode: difference;
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0,255,65,0.4);
    transition: width 0.3s var(--easing-out-quart), height 0.3s var(--easing-out-quart), border-color 0.3s ease;
}

body:hover .cursor-dot,
body:hover .cursor-ring {
    opacity: 1;
}

/* Hide custom cursor on touch devices */
@media (pointer: coarse) {
    .cursor-dot, .cursor-ring { display: none !important; }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(0,255,65,0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: background 0.4s var(--easing-out-quart), backdrop-filter 0.4s ease, padding 0.3s ease;
}

.nav.scrolled {
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo-bracket {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 100px;
    transition: color 0.3s ease, background 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(255,255,255,0.06);
}

.nav-link-highlight {
    background: rgba(0,255,65,0.1);
    color: var(--accent);
    border: 1px solid rgba(0,255,65,0.2);
}

.nav-link-highlight:hover {
    background: rgba(0,255,65,0.2);
    color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--easing-out-quart);
}

/* ---- Hero Section ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 100px 24px 80px;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(10,10,15,0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 24px;
    letter-spacing: 0.15em;
}

.tag-pulse {
    display: block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    white-space: nowrap;
}
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.typewriter {
    color: var(--text-primary);
}

.cursor-blink {
    color: var(--accent);
    font-weight: 300;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
}

.sparkle {
    color: var(--accent);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 100px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s var(--easing-out-quart);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--accent-dim);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,255,65,0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1rem;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 12px 24px;
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.2);
}

.btn-icon {
    font-family: var(--font-mono);
    font-weight: 400;
}

/* ---- Hero Code Block ---- */
.hero-code-block {
    max-width: 520px;
    margin: 0 auto;
    background: rgba(0,0,0,0.5);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,255,65,0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
    text-align: left;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(0,255,65,0.08);
}

.code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.code-dot.red { background: #ff5f56; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #27c93f; }

.code-filename {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: auto;
}

.code-body {
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.8;
    color: var(--text-secondary);
    overflow-x: auto;
}

.code-body .code-keyword { color: #c678dd; }
.code-body .code-var { color: #e5c07b; }
.code-body .code-func { color: #61afef; }
.code-body .code-string { color: #98c379; }
.code-body .code-prop { color: #e06c75; }
.code-body .code-bool { color: #d19a66; }

.hero-qq-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 22px;
}

/* ---- Hero Scroll Hint ---- */
.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.hero-scroll-hint span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ---- Marquee ---- */
.marquee-section {
    background: var(--bg-dark-2);
    padding: 20px 0;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
}

.marquee-content span {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0 24px;
    letter-spacing: 0.1em;
}

.marquee-sep {
    color: var(--accent) !important;
    opacity: 0.5;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- QR Code Modal ---- */
.qrcode-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.qrcode-modal-content {
    background: var(--bg-dark-2);
    border: 1px solid rgba(0,255,65,0.25);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    max-width: 320px;
    width: 90%;
}

.qrcode-modal-close {
    position: absolute;
    top: 8px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.qrcode-modal-content img {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    border: 2px solid rgba(0,255,65,0.3);
    background: #fff;
    object-fit: cover;
}

.qrcode-modal-text {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 600;
    margin-top: 16px;
}

.qrcode-modal-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ---- Sections ---- */
.section {
    padding: 120px 24px;
    position: relative;
}

.section-dark {
    background: var(--bg-dark);
}

.section-light {
    background: var(--bg-light);
    color: var(--text-dark);
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    opacity: 0.8;
}

.section-light .section-tag {
    color: var(--accent-dim);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-light .section-desc {
    color: var(--text-dark-secondary);
}

/* ---- Reveal Animation ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--easing-out-quart), transform 0.8s var(--easing-out-quart);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Benefits Grid ---- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.benefit-card {
    background: rgba(255,255,255,0.5);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.4s var(--easing-out-quart), box-shadow 0.4s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    color: var(--accent-dim);
}

.benefit-icon svg {
    width: 100%;
    height: 100%;
}

.benefit-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.benefit-text {
    font-size: 0.9rem;
    color: var(--text-dark-secondary);
    line-height: 1.6;
}

.benefits-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 24px;
    background: rgba(0,255,65,0.06);
    border: 1px solid rgba(0,255,65,0.15);
    border-radius: var(--radius-md);
    text-align: center;
}

.benefits-note p {
    font-size: 0.95rem;
    color: var(--text-dark-secondary);
}

.benefits-note strong {
    color: var(--accent-dim);
}

.note-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ---- Departments Grid ---- */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.dept-card {
    background: var(--bg-dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: border-color 0.4s ease, transform 0.4s var(--easing-out-quart);
    position: relative;
    overflow: hidden;
}

.dept-card:hover {
    border-color: rgba(0,255,65,0.2);
    transform: translateY(-2px);
}

.dept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.dept-card:hover::before {
    opacity: 1;
}

.dept-number {
    font-size: 0.75rem;
    color: var(--accent);
    opacity: 0.6;
    letter-spacing: 0.1em;
}

.dept-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.dept-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.tag {
    font-size: 0.75rem;
    padding: 4px 12px;
    background: rgba(0,255,65,0.08);
    color: var(--accent);
    border-radius: 100px;
    border: 1px solid rgba(0,255,65,0.15);
}

.dept-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.training-note {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 24px;
    padding: 20px 24px;
    background: rgba(0,255,65,0.06);
    border: 1px solid rgba(0,255,65,0.14);
    border-radius: var(--radius-md);
}

.training-note-label {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.12em;
}

.training-note p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.dept-visual {
    margin-top: auto;
    padding-top: 16px;
}

.dept-code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.8;
    color: var(--text-muted);
    background: rgba(0,0,0,0.3);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
}

.dept-code .code-line {
    display: block;
}

.dept-code .code-keyword { color: #c678dd; }
.dept-code .code-func { color: #61afef; }
.dept-code .code-string { color: #98c379; }
.dept-code .code-var { color: #e5c07b; }
.dept-code .code-num { color: #d19a66; }

.dept-illustration {
    width: 48px;
    height: 48px;
    color: var(--accent);
    opacity: 0.3;
}

.dept-illustration svg {
    width: 100%;
    height: 100%;
}

/* ---- Form ---- */
.form-wrapper {
    max-width: 720px;
    margin: 0 auto;
}

.form-terminal {
    background: var(--bg-dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 8px;
}

.terminal-body {
    padding: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group-full {
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

.form-label {
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.05em;
}

.form-hint {
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    margin-left: 8px;
}

.form-input {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    padding: 14px 16px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: rgba(0,255,65,0.4);
    box-shadow: 0 0 0 3px rgba(0,255,65,0.08);
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23606070' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.radio-group {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.radio-label input {
    display: none;
}

.radio-box {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, background 0.3s ease;
    flex-shrink: 0;
}

.radio-label input:checked + .radio-box {
    border-color: var(--accent);
    background: var(--accent);
}

.radio-label input:checked + .radio-box::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--bg-dark);
    border-radius: 50%;
}

.radio-label .mono {
    color: var(--accent);
    font-size: 0.85rem;
}

/* Photo Upload */
.photo-upload {
    position: relative;
}

.photo-input {
    display: none;
}

.photo-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(0,0,0,0.3);
    border: 2px dashed rgba(0,255,65,0.2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.photo-label:hover {
    border-color: rgba(0,255,65,0.5);
    background: rgba(0,255,65,0.05);
}

.photo-placeholder {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.photo-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.photo-filename {
    font-size: 0.85rem;
    color: var(--accent);
    font-family: var(--font-mono);
}

.photo-preview {
    margin-top: 12px;
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(0,255,65,0.3);
}

.photo-requirements {
    margin: 12px 0 0;
    padding-left: 12px;
    border-left: 2px solid rgba(0, 255, 65, 0.45);
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.7;
}

.photo-requirements strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.form-actions {
    text-align: center;
    padding-top: 16px;
}

/* ---- Activities ---- */
.activities-grid {
    column-count: 3;
    column-gap: 16px;
}

.balanced-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.gallery-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-card {
    display: inline-block;
    width: 100%;
    margin: 0;
    background: var(--bg-dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    padding: 10px;
    break-inside: avoid;
    transition: transform 0.4s var(--easing-out-quart), border-color 0.4s ease;
}

.activity-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,255,65,0.2);
}

.activity-photo {
    display: block;
    width: 100%;
    height: auto;
    border-radius: calc(var(--radius-md) - 6px);
    background: rgba(255,255,255,0.04);
    transition: transform 0.5s var(--easing-out-quart);
}

.activity-card:hover .activity-photo {
    transform: scale(1.015);
}

.team-building-block {
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.team-building-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.team-building-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.14em;
}

.team-building-title {
    font-size: 1.35rem;
    font-weight: 700;
}

.team-building-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

/* ---- Honors ---- */
.honors-grid {
    column-count: 3;
    column-gap: 16px;
}

.honor-card {
    display: inline-block;
    width: 100%;
    margin: 0;
    background: rgba(255,255,255,0.72);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    padding: 10px;
    break-inside: avoid;
    transition: transform 0.4s var(--easing-out-quart), box-shadow 0.4s ease;
}

.honor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.honor-card-feature {
    display: inline-block;
}

.honor-photo {
    display: block;
    width: 100%;
    height: auto;
    border-radius: calc(var(--radius-md) - 6px);
    background: #f7f7f5;
    transition: transform 0.5s var(--easing-out-quart);
}

.honor-card:hover .honor-photo {
    transform: scale(1.015);
}

/* ---- Contest ---- */
#contests,
#contests .section-title,
#contests .section-desc,
#contests .contest-title,
#contests .contest-meta,
#contests .detail-label,
#contests .detail-value {
    color: var(--text-primary);
}

.contest-card {
    max-width: 1080px;
    margin: 0 auto;
    background: var(--bg-dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.4s ease;
}

.contest-card:hover {
    border-color: rgba(0,255,65,0.2);
}

.contest-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--border);
}

.contest-badge {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contest-badge span {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--bg-dark);
    letter-spacing: 0;
}

.contest-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contest-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.contest-body {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
    gap: 32px;
    padding: 32px;
    align-items: start;
}

.contest-detail {
    margin: 0;
}

.contest-resources {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.resource-group {
    display: grid;
    gap: 14px;
}

.resource-heading {
    display: grid;
    gap: 5px;
}

.resource-kicker {
    color: var(--accent);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
}

.resource-heading h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.resource-heading p {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.6;
}

.resource-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.resource-link,
.course-link {
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.025);
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.resource-link {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 12px 10px;
    border-radius: 7px;
}

.resource-link:hover,
.course-link:hover {
    border-color: rgba(0,255,65,0.45);
    background: rgba(0,255,65,0.06);
    transform: translateY(-2px);
}

.resource-link span,
.resource-link small,
.course-link small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-link span {
    font-size: 0.84rem;
    font-weight: 600;
}

.resource-link small,
.course-link small {
    color: var(--text-secondary);
    font-size: 0.7rem;
}

.resource-link b,
.course-link b {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 400;
}

.course-link {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 7px;
}

.course-link-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(0,255,65,0.35);
    border-radius: 6px;
    color: var(--accent);
    font-size: 0.95rem;
}

.course-link strong,
.course-link small {
    display: block;
}

.course-link strong {
    margin-bottom: 3px;
    font-size: 0.86rem;
}

.contest-exam-panel {
    display: grid;
    gap: 20px;
    min-width: 0;
    padding: 22px;
    background: rgba(0,0,0,0.18);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.contest-panel-heading {
    display: grid;
    gap: 5px;
}

.contest-panel-heading h4 {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
}

.contest-panel-heading p {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.6;
}

.detail-row {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 100px;
    flex-shrink: 0;
}

.detail-value {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.detail-value.highlight {
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 600;
}

.contest-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---- Footer ---- */
.footer {
    background: var(--bg-dark-2);
    border-top: 1px solid var(--border);
    padding: 80px 24px 32px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
}

.footer-slogan {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    margin-bottom: 20px;
}

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

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

.footer-column a,
.footer-column li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-copyright,
.footer-version,
.footer-beian {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-beian {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-beian:hover {
    color: var(--accent);
}

/* ---- Toast ---- */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    max-width: min(560px, calc(100vw - 32px));
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--bg-dark-2);
    border: 1px solid rgba(0,255,65,0.3);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
    z-index: 9998;
    transform: translate(-50%, calc(-50% + 24px));
    opacity: 0;
    transition: transform 0.4s var(--easing-out-quart), opacity 0.4s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.toast.show {
    transform: translate(-50%, -50%);
    opacity: 1;
}

.toast-icon {
    color: var(--accent);
    font-weight: 700;
}

/* ---- Mono Utility ---- */
.mono {
    font-family: var(--font-mono);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .activities-grid {
        column-count: 2;
    }

    .honors-grid {
        column-count: 2;
    }

    .balanced-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }

    .contest-body {
        grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
        gap: 24px;
    }

    .resource-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(10,10,15,0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 32px 32px;
        gap: 4px;
        transition: right 0.4s var(--easing-out-quart);
        border-left: 1px solid var(--border);
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 12px 16px;
        font-size: 1rem;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .section {
        padding: 80px 20px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .dept-grid {
        grid-template-columns: 1fr;
    }

    .training-note {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .activities-grid {
        column-count: 1;
    }

    .team-building-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .team-building-grid {
        grid-template-columns: 1fr;
    }
    
    .honors-grid {
        column-count: 1;
    }

    .balanced-gallery {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .contest-header {
        flex-direction: column;
        text-align: center;
    }

    .contest-body {
        grid-template-columns: 1fr;
        padding: 28px 24px;
    }
    
    .contest-actions {
        flex-direction: column;
    }

    .resource-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .marquee-content span {
        font-size: 0.75rem;
        padding: 0 16px;
    }

    .hero-qq-actions {
        margin-top: 18px;
    }

    .qrcode-modal-content {
        padding: 28px 20px;
    }

    .qrcode-modal-content img {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .terminal-body {
        padding: 20px;
    }
    
    .dept-card {
        padding: 24px;
    }

    .resource-links {
        grid-template-columns: 1fr;
    }
    
    .toast {
        left: 50%;
        right: auto;
        width: max-content;
        max-width: calc(100vw - 32px);
        padding: 14px 18px;
    }
}
