/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 图片懒加载优化 */
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: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #0a0a0f;
    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.95);
    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: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #00ffff;
}

.nav-logo i {
    font-size: 28px;
    color: #ff6b6b;
    animation: robotGlow 2s ease-in-out infinite alternate;
}

@keyframes robotGlow {
    0% {
        color: #ff6b6b;
        text-shadow: 0 0 5px rgba(255, 107, 107, 0.5);
    }
    100% {
        color: #4ecdc4;
        text-shadow: 0 0 15px rgba(78, 205, 196, 0.8);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ffff, #ff6b6b);
    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: #00ffff;
    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::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(4, 8, 24, 0.86) 0%, rgba(8, 13, 34, 0.62) 48%, rgba(8, 13, 34, 0.78) 100%),
        radial-gradient(circle at 75% 18%, rgba(0, 255, 255, 0.24), transparent 34%);
    pointer-events: none;
}

.hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.74;
    filter: saturate(1.12) contrast(1.05);
}

.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;
    min-height: 2.65em;
    line-height: 1.2;
    background: linear-gradient(135deg, #00ffff, #ff6b6b, #4ecdc4);
    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;
    min-width: 8em;
    min-height: 1.2em;
    white-space: nowrap;
    vertical-align: baseline;
    border-right: 3px solid #00ffff;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: #00ffff; }
    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: #b0b0b0;
    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, #00ffff, #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: #00ffff;
    border: 2px solid #00ffff;
}

.btn-secondary:hover {
    background: #00ffff;
    color: #0a0a0f;
    transform: translateY(-3px);
}

/* 浮动图标动画 */
.floating-icons {
    position: relative;
    height: 400px;
    width: 400px;
}

.floating-icons i {
    position: absolute;
    font-size: 2rem;
    color: #00ffff;
    opacity: 0.8;
    animation: float 6s ease-in-out infinite;
}

.floating-icons i:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
    color: #ff6b6b;
}

.floating-icons i:nth-child(2) {
    top: 10%;
    right: 30%;
    animation-delay: 1s;
    color: #4ecdc4;
}

.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: #00ffff;
    border-radius: 50%;
    animation: particleMove 20s linear infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: 5s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: 10s;
    animation-duration: 22s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: 15s;
    animation-duration: 16s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 20s;
    animation-duration: 20s;
}

@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, #00ffff, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    font-size: 1.1rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
}

/* 比赛介绍区域样式 */
.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: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.1);
    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: #00ffff;
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00ffff, #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: #b0b0b0;
    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: #00ffff;
}

.card-btn {
    background: linear-gradient(135deg, #ff6b6b, #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);
}

/* 竞赛卡片样式增强 */
.competition-stats {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
}

.competition-stats span {
    color: #ffd93d;
    font-size: 0.9rem;
    font-weight: 600;
}

.load-more-section {
    text-align: center;
    margin-top: 50px;
}

.load-more-btn {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(78, 205, 196, 0.3);
}

.load-more-btn.rotated i {
    transform: rotate(180deg);
}

/* 学生展示区域样式 */
.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 rgba(0, 255, 255, 0.1);
    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: #b0b0b0;
    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: #00ffff;
    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, #ff6b6b, #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: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    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: #b0b0b0;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.detail-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4ecdc4;
    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 #00ffff;
}

.school-name {
    color: #ffffff;
    font-weight: 600;
}

.school-feature {
    color: #4ecdc4;
    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: #b0b0b0;
    font-size: 1rem;
}

.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.student-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.1);
    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, #00ffff, #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: #00ffff;
    font-weight: 600;
    margin-bottom: 15px;
}

.student-desc {
    color: #b0b0b0;
    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: #ff6b6b;
}

.stat-label {
    font-size: 0.9rem;
    color: #b0b0b0;
}

.student-location {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4ecdc4;
    font-size: 0.9rem;
}

.student-location i {
    color: #ff6b6b;
}

/* 联系咨询区域样式 */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
}

.contact-content,
.contact-static-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-static-section {
    align-items: stretch;
}

.contact-qr-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.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: #b0b0b0;
}

.contact-item i {
    width: 20px;
    color: #00ffff;
    font-size: 1.2rem;
}

.contact-item a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #00ffff;
}

.contact-qr-card {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 260px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.14);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.contact-qr-card img {
    width: 190px;
    height: 190px;
    object-fit: contain;
    flex: 0 0 auto;
    border-radius: 12px;
    background: #ffffff;
    padding: 8px;
}

.contact-qr-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.contact-qr-card strong {
    color: #ffffff;
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
    line-height: 1.18;
    min-height: 2.4em;
    text-shadow: 0 0 22px rgba(0, 255, 255, 0.24);
}

.contact-qr-card span {
    color: #b0b0b0;
    line-height: 1.7;
}

.contact-qr-type {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.08em;
}

.contact-type-cursor {
    display: inline-block;
    width: 0.12em;
    height: 0.9em;
    margin-left: 0.08em;
    border-radius: 999px;
    background: linear-gradient(180deg, #00ffff, #78f890);
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.7);
    animation: qrBlink 0.85s steps(2, start) infinite;
}

@keyframes qrBlink {
    50% { opacity: 0.15; }
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    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: #00ffff;
    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, #00ffff, #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: #0a0a0f;
    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: #00ffff;
    margin-bottom: 15px;
}

.footer-logo i {
    color: #ff6b6b;
    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: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #00ffff;
}

.footer-section p {
    color: #b0b0b0;
    margin-bottom: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
}

/* 咨询窗口样式 */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00ffff, #0080ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.chat-button:hover {
    transform: scale(1.1);
}

.chat-button i {
    font-size: 1.5rem;
    color: #ffffff;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(0, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 255, 0);
    }
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background: rgba(10, 10, 15, 0.95);
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    display: none;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.chat-window.show {
    display: flex;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    color: #ffffff;
    margin: 0;
}

.chat-close {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.chat-close:hover {
    color: #ff6b6b;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 15px;
}

.bot-message p {
    background: rgba(0, 255, 255, 0.1);
    padding: 12px;
    border-radius: 15px;
    color: #ffffff;
    margin: 0;
}

.quick-questions {
    margin-top: 20px;
}

.quick-btn {
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    text-align: left;
}

.quick-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: #00ffff;
}

.chat-footer {
    padding: 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
}

.chat-footer-static a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 40px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #00ffff, #0080ff);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.chat-footer-static a:hover {
    transform: translateY(-2px);
}

/* 响应式设计 */
@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;
    }

    /* Logo优化 */
    .nav-logo {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        font-size: 16px !important;
        color: #333 !important;
    }

    .nav-logo img {
        height: 36px !important;
        width: auto !important;
    }

    .nav-logo i {
        font-size: 20px !important;
    }

    .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: 0.95rem !important;
    }

    .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;
    }

.contact-content,
.contact-static-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-qr-card {
        flex-direction: column;
        text-align: center;
    }

    .contact-qr-grid {
        grid-template-columns: 1fr;
    }

    .students-grid {
        grid-template-columns: 1fr;
    }

    .chat-window {
        width: 300px;
        height: 400px;
    }

    .chat-widget {
        bottom: 20px;
        right: 20px;
    }
}

@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;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #00ffff;
    animation: spin 1s ease-in-out infinite;
}

/* 联系咨询区双二维码稳定布局 */
.contact-static-section {
    grid-template-columns: minmax(300px, 0.82fr) minmax(520px, 1.18fr);
    gap: 46px;
    align-items: center;
}

.contact-qr-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 20px;
}

.contact-qr-card {
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    min-height: 0;
    padding: 24px 20px 22px;
    text-align: center;
}

.contact-qr-card img {
    width: min(170px, 100%);
    height: auto;
    aspect-ratio: 1;
}

.contact-qr-copy {
    align-items: center;
    gap: 8px;
}

.contact-qr-card strong {
    min-height: 0;
    font-size: clamp(1.28rem, 1.6vw, 1.55rem);
    line-height: 1.2;
}

.contact-qr-card span {
    font-size: 0.9rem;
    line-height: 1.55;
}

@media (max-width: 1100px) {
    .contact-static-section {
        grid-template-columns: 1fr;
    }

    .contact-qr-grid {
        max-width: 620px;
        margin: 0 auto;
    }
}

@media (max-width: 560px) {
    .contact-qr-grid {
        grid-template-columns: 1fr;
    }
}

/* 全部赛事联系区：上下双老师卡片，卡片内左右排列 */
.contact-static-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
    max-width: 920px;
    margin: 0 auto;
}

.contact-teacher-card {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 188px;
    gap: 28px;
    align-items: center;
    padding: 28px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(0, 255, 255, 0.16);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.contact-teacher-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 255, 0.32);
}

.contact-teacher-copy {
    min-width: 0;
}

.contact-teacher-copy h3 {
    margin: 8px 0 24px;
    color: #ffffff;
    font-size: clamp(1.55rem, 2.3vw, 2rem);
}

.contact-teacher-eyebrow {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    color: #00ffff;
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.14);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
}

.contact-teacher-card .contact-item {
    margin-bottom: 14px;
    line-height: 1.6;
}

.contact-teacher-qr {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.contact-teacher-qr img {
    width: 164px;
    height: 164px;
    object-fit: contain;
    border-radius: 16px;
    background: #ffffff;
    padding: 8px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

.contact-teacher-qr figcaption {
    color: #d8f8ff;
    font-size: 0.88rem;
}

@media (max-width: 720px) {
    .contact {
        padding: 72px 0;
    }

    .contact-static-section {
        gap: 18px;
    }

    .contact-teacher-card {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 24px 18px;
        text-align: center;
    }

    .contact-teacher-card .contact-item {
        justify-content: center;
        align-items: flex-start;
    }

    .contact-teacher-qr img {
        width: 158px;
        height: 158px;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 成功提示样式 */
.success-message {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: #ffffff;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 错误提示样式 */
.error-message {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: #ffffff;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}
