:root {
    --primary-gradient: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 30%, #6366f1 60%, #8b5cf6 100%);
    --secondary-gradient: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 50%, #3b82f6 100%);
    --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --cyber-green: #22d3ee;
    --cyber-blue: #3b82f6;
    --cyber-purple: #8b5cf6;
    --dark-bg: #0a0e17;
    --dark-surface: #111827;
    --dark-card: rgba(30, 41, 59, 0.6);
    --dark-card-hover: rgba(51, 65, 85, 0.8);
    --border-color: rgba(59, 130, 246, 0.2);
    --border-glow: rgba(59, 130, 246, 0.4);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Effects */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.bg-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 60% 60%, rgba(34, 211, 238, 0.06) 0%, transparent 35%);
    animation: bgFloat 25s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(4%, 3%) rotate(0.5deg); }
    50% { transform: translate(-2%, 2%) rotate(-0.5deg); }
    75% { transform: translate(3%, -2%) rotate(0.3deg); }
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.bg-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--cyber-blue);
    border-radius: 50%;
    animation: particleFloat 18s linear infinite;
    box-shadow: 0 0 8px var(--cyber-blue);
}

.particle:nth-child(1) { left: 5%; animation-delay: 0s; }
.particle:nth-child(2) { left: 15%; animation-delay: 3s; }
.particle:nth-child(3) { left: 28%; animation-delay: 6s; }
.particle:nth-child(4) { left: 42%; animation-delay: 1s; }
.particle:nth-child(5) { left: 55%; animation-delay: 8s; }
.particle:nth-child(6) { left: 68%; animation-delay: 4s; }
.particle:nth-child(7) { left: 82%; animation-delay: 7s; }
.particle:nth-child(8) { left: 92%; animation-delay: 2s; }
.particle:nth-child(9) { left: 20%; animation-delay: 9s; }
.particle:nth-child(10) { left: 75%; animation-delay: 5s; }

@keyframes particleFloat {
    0% { transform: translateY(-20px) scale(0); opacity: 0; }
    10% { opacity: 1; transform: translateY(0) scale(1); }
    90% { opacity: 0.8; }
    100% { transform: translateY(100vh) scale(0); opacity: 0; }
}

.bg-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    animation: orbPulse 15s ease-in-out infinite;
}

.orb:nth-child(1) {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    top: -15%;
    left: -15%;
}

.orb:nth-child(2) {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #06b6d4, #0ea5e9);
    top: 50%;
    right: -10%;
    animation-delay: 5s;
}

.orb:nth-child(3) {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    bottom: -10%;
    left: 30%;
    animation-delay: 10s;
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.25; }
    50% { transform: scale(1.2) translate(20px, -20px); opacity: 0.4; }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(10, 14, 23, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    position: relative;
    padding: 12px 28px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    border-radius: 30px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-glow);
}

.mobile-toggle {
    display: none;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 24px;
    display: none;
    flex-direction: column;
    gap: 8px;
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-menu a {
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu a:hover {
    background: rgba(59, 130, 246, 0.15);
    color: var(--text-primary);
}

/* Footer */
.footer {
    position: relative;
    background: linear-gradient(180deg, rgba(10, 14, 23, 0.98) 0%, rgba(17, 24, 39, 1) 100%);
    border-top: 1px solid var(--border-color);
    padding: 60px 32px;
    margin-top: 60px;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 200px;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
}

.footer-logo {
    width: 52px;
    height: 52px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

.footer-brand h3 {
    font-size: 22px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.footer-copyright {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 500;
}

.footer-description {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    max-width: 500px;
    margin: 0 auto 32px;
    border: 1px solid var(--border-color);
}

.footer-link {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
}

.footer-link:hover {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    right: 32px;
    bottom: 40px;
    width: 56px;
    height: 56px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.5);
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.form-box {
    background: var(--dark-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-card);
    transition: all 0.4s ease;
}

.form-box:hover {
    border-color: var(--border-glow);
    box-shadow: 0 12px 48px rgba(59, 130, 246, 0.15);
}

.form-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 32px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--cyber-blue);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

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

.form-group .hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

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

/* Buttons */
.btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
}

.btn:hover::before {
    left: 100%;
}

.btn-secondary {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--text-primary);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: var(--cyber-blue);
}

/* Messages */
.success-message {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
    padding: 18px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    text-align: center;
    font-weight: 500;
}

.error-message {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 18px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

/* Cards */
.card {
    background: var(--dark-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.4s ease;
}

.card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.12);
    transform: translateY(-2px);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.card-meta {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.card-content {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 12px 20px;
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--cyber-blue);
    color: var(--text-primary);
}

.page-btn.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content { padding: 12px 16px; }
    .logo-text h1 { font-size: 20px; }
    .logo-icon { width: 44px; height: 44px; font-size: 22px; }
    .nav-links { display: none; }
    .mobile-toggle { display: flex; align-items: center; justify-content: center; }
    
    .form-box { padding: 24px; }
    .form-title { font-size: 22px; }
    .form-row { grid-template-columns: 1fr; }
    
    .footer { padding: 40px 20px; }
    .footer-links { padding: 16px; }
}
