/* 联系我们页面专属样式 */

.contact-main {
    position: relative;
    min-height: 0;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1419 100%);
    overflow: hidden;
    /* 顶部预留明显高于导航栏高度，确保整块 Hero 完全露出 */
    padding-top: 116px;
}

/* 动态背景 */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(52, 152, 219, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 152, 219, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    pointer-events: none;
    animation: gridMove 20s linear infinite;
}

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

.glow-effect {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
}

/* Hero区域 */
.contact-hero {
    position: relative;
    z-index: 2;
    padding: 12px 0 12px;
    text-align: center;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 30px;
    color: #3498db;
    font-size: 0.9rem;
    margin-bottom: 8px;
    backdrop-filter: blur(10px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #3498db;
    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(1.5); }
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.15;
}

.title-line {
    display: block;
    background: linear-gradient(135deg, #3498db, #9b59b6, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.title-sub {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0;
    margin-left: 10px;
}

.hero-description {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 8px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* 通用高亮标语样式（Hero + 分区小标题复用） */
.highlight-tagline {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 18px;
    margin-top: 6px;
    border-radius: 999px;
    border: 1px solid rgba(52, 152, 219, 0.45);
    background:
        linear-gradient(135deg, rgba(10, 14, 39, 0.9), rgba(15, 20, 45, 0.9)) padding-box,
        linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(155, 89, 182, 0.9)) border-box;
    box-shadow:
        0 0 0 1px rgba(52, 152, 219, 0.25),
        0 12px 30px rgba(0, 0, 0, 0.45);
    font-family: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.highlight-tagline::before {
    content: "";
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.5),
        transparent
    );
    opacity: 0.7;
    transform: skewX(-20deg);
    animation: highlightShine 4s ease-in-out infinite;
}

@keyframes highlightShine {
    0% {
        transform: translateX(-150%) skewX(-20deg);
    }
    60% {
        transform: translateX(250%) skewX(-20deg);
    }
    100% {
        transform: translateX(250%) skewX(-20deg);
    }
}

/* 二维码区域 */
.qr-sections {
    position: relative;
    z-index: 2;
    padding: 20px 0;
}

.qr-section {
    margin-bottom: 22px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.qr-section.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.section-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 6px;
    background: linear-gradient(135deg, #3498db, #9b59b6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0;
    background: linear-gradient(135deg, #3498db, #9b59b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    display: inline-flex;
    font-size: 0.96rem;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 0;
    margin-top: 10px;
}

/* 二维码网格 */
.qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    max-width: 1100px;
    margin: 0 auto;
}

.qr-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    cursor: pointer;
}

.qr-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.3), transparent);
    transition: left 0.5s;
}

.qr-card:hover::before {
    left: 100%;
}

.qr-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.qr-card:hover::after {
    opacity: 1;
}

.qr-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(52, 152, 219, 0.6);
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.qr-image-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 12px;
    background: #fff;
    border-radius: 15px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s;
    overflow: hidden;
}

.qr-card:hover .qr-image-wrapper {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.5);
}

.qr-image-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(52, 152, 219, 0.3), transparent);
    transform: rotate(45deg);
    animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    border-radius: 10px;
}

.qr-label {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 6px;
    position: relative;
    z-index: 2;
}

.qr-card:hover .qr-label {
    color: #3498db;
}

/* 联系信息区域 */
.contact-info-section {
    position: relative;
    z-index: 2;
    padding: 20px 0 24px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    max-width: 1100px;
    margin: 0 auto;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 16px;
    padding: 22px;
    text-align: center;
    transition: all 0.4s;
}

.info-card:hover {
    transform: translateY(-10px);
    border-color: rgba(52, 152, 219, 0.6);
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.info-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, #3498db, #9b59b6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
}

.info-card h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.info-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .contact-main {
        padding-top: 74px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .qr-sections {
        padding: 18px 0;
    }

    .qr-section {
        margin-bottom: 20px;
    }

    .section-header {
        margin-bottom: 14px;
    }
    
    .qr-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-info-section {
        padding: 25px 0;
    }
}

/* 桌面端：Hero 与分区标题横向更紧凑布局，减少垂直占用 */
@media (min-width: 992px) {
    .hero-content {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: center;
        gap: 10px 16px;
    }

    .hero-badge {
        margin-bottom: 0;
    }

    .hero-title {
        margin-bottom: 0;
    }

    .hero-description {
        display: block;
        margin-top: 4px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .contact-main {
        padding-top: 85px;
    }
    
    .contact-hero {
        padding: 15px 0 15px;
    }
    
    .qr-sections {
        padding: 20px 0;
    }
    
    .qr-section {
        margin-bottom: 30px;
    }
    
    .section-header {
        margin-bottom: 20px;
    }
    
    .contact-info-section {
        padding: 20px 0;
    }
    
    .hero-title {
        font-size: 2.3rem;
        margin-bottom: 10px;
    }
    
    .title-sub {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.7rem;
        margin-bottom: 6px;
    }
    
    .qr-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .qr-image-wrapper {
        width: 180px;
        height: 180px;
        margin-bottom: 12px;
    }
    
    .qr-card {
        padding: 18px;
    }
    
    .info-card {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .contact-main {
        padding-top: 80px;
    }
    
    .hero-title {
        font-size: 1.9rem;
    }
    
    .qr-image-wrapper {
        width: 160px;
        height: 160px;
    }
    
    .section-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}
