/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00ffff;
    --secondary: #ff6b6b;
    --accent: #4ecdc4;
    --dark-bg: #0a0a0f;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* 图片懒加载优化 */
img.lazy {
    filter: blur(5px);
    transition: filter 0.3s;
}

img {
    transition: opacity 0.3s;
}

.img-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--dark-bg);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-logo span {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.05rem;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* 英雄区域样式 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
}

.typing-text {
    display: inline-block;
    border-right: 3px solid var(--primary);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: var(--primary); }
    51%, 100% { border-color: transparent; }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #0080ff);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

/* 浮动图标动画 */
.floating-icons {
    position: relative;
    height: 400px;
    width: 400px;
}

.floating-icons i {
    position: absolute;
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.8;
    animation: float 6s ease-in-out infinite;
}

.floating-icons i:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
    color: var(--secondary);
}

.floating-icons i:nth-child(2) {
    top: 10%;
    right: 30%;
    animation-delay: 1s;
    color: var(--accent);
}

.floating-icons i:nth-child(3) {
    bottom: 30%;
    left: 10%;
    animation-delay: 2s;
    color: #ffd93d;
}

.floating-icons i:nth-child(4) {
    bottom: 20%;
    right: 20%;
    animation-delay: 3s;
    color: #6c5ce7;
}

.floating-icons i:nth-child(5) {
    top: 50%;
    left: 50%;
    animation-delay: 4s;
    color: #a8e6cf;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

/* 背景粒子动画 */
.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    animation: particleMove 20s linear infinite;
}

@keyframes particleMove {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}

/* 区域标题样式 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* 玻璃拟态卡片 */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

/* 比赛介绍区域样式 */
.competitions {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.competitions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.competitions-grid.second-row {
    margin-bottom: 0;
}

.competition-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.competition-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.competition-card:hover::before {
    left: 100%;
}

.competition-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), #0080ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #ffffff;
}

.competition-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.competition-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.competition-card ul {
    list-style: none;
    margin-bottom: 25px;
}

.competition-card li {
    color: #d0d0d0;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.competition-card li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.card-btn {
    background: linear-gradient(135deg, var(--secondary), #ff8e8e);
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

/* 学生展示区域样式 */
.students {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
}

/* 科技特长生认证介绍样式 */
.certification-intro {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 60px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.intro-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 30px;
}

.intro-text h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.intro-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
}

.certification-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 10px;
    color: #ffffff;
}

.benefit-item i {
    color: var(--primary);
    width: 20px;
}

.certification-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary), #ff8e8e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
}

.step span {
    color: #ffffff;
    font-weight: 600;
}

/* 认证详细信息样式 */
.certification-details {
    margin-bottom: 60px;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.detail-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.detail-card h4 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.detail-card ul {
    list-style: none;
}

.detail-card li {
    color: var(--text-secondary);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.detail-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.yichang-schools {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(0, 255, 255, 0.05);
}

.yichang-schools h4 {
    color: #ffffff;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.3rem;
}

.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.school-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.school-name {
    color: #ffffff;
    font-weight: 600;
}

.school-feature {
    color: var(--accent);
    font-size: 0.9rem;
    background: rgba(78, 205, 196, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

/* 子标题样式 */
.section-subheader {
    text-align: center;
    margin: 60px 0 40px;
}

.section-subheader h3 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.section-subheader p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.student-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.student-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 255, 255, 0.2);
}

.student-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.student-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.student-card:hover .student-image img {
    transform: scale(1.1);
}

.student-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.student-card:hover .student-overlay {
    opacity: 1;
}

.student-achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.achievement {
    background: linear-gradient(135deg, var(--primary), #0080ff);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.student-info {
    padding: 25px;
}

.student-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #ffffff;
}

.student-school {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
}

.student-desc {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.student-stats {
    display: flex;
    gap: 30px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.student-location {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 0.9rem;
}

.student-location i {
    color: var(--secondary);
}

/* 联系咨询区域样式 */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #ffffff;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.contact-item i {
    width: 20px;
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #ffffff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary), #0080ff);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

/* 页脚样式 */
.footer {
    background: var(--dark-bg);
    padding: 50px 0 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.footer-logo i {
    color: var(--secondary);
    animation: robotGlow 2s ease-in-out infinite alternate;
}

.footer-section h4 {
    color: #ffffff;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
}

/* 响应式设计 */
@media (max-width: 1024px) and (min-width: 769px) {
    .competitions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .navbar {
        background: rgba(255, 255, 255, 0.98) !important;
        border-bottom: 1px solid rgba(0,0,0,0.05) !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
        padding: 0 !important;
    }
    
    .nav-container {
        padding: 10px 15px !important;
        height: auto !important;
        min-height: 55px !important;
    }
    
    .nav-logo span {
        color: #333;
        font-size: 18px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 55px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(20px);
        padding: 15px 0;
        z-index: 999;
    }
    
    .nav-menu a {
        color: #333 !important;
        font-size: 1.1rem !important;
        padding: 10px 0;
        display: block;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
        width: 26px;
        height: 22px;
    }
    
    .nav-toggle span {
        background: #333 !important;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .floating-icons {
        height: 300px;
        width: 300px;
        margin: 0 auto;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .students-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .competitions-grid {
        grid-template-columns: 1fr;
    }

    .competition-card {
        padding: 20px;
    }

    .contact-form {
        padding: 25px;
    }
}
