:root {
    --primary-color: #00d2ff;
    --secondary-color: #3a7bd5;
    --dark-bg: #0b0e14;
    --text-light: #ffffff;
    --text-grey: #a0a0a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-light);
    background: radial-gradient(circle at center, rgba(26, 42, 68, 0.3) 0%, rgba(11, 14, 20, 0.5) 100%), url('bafang_hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(11, 14, 20, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

/* Logo Design */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
}

.logo-img {
    height: 48px;
    /* 调整为您合适的高度 */
    width: auto;
    margin-right: 15px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s;
}

.logo:hover .logo-img {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.5));
}




@keyframes rotate-vortex {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-cn {
    order: 1;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: filter 0.3s ease;
}

.logo-en {
    order: 2;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--text-grey);
    text-transform: uppercase;
    margin-top: 5px;
    transition: color 0.3s ease;
}

/* 稳重的流光动画 - 仅在悬浮时触发 */
@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* 移除旧版简化悬浮效果 */

.logo:hover .logo-cn {
    background: linear-gradient(90deg,
            #ffffff 0%,
            #00d2ff 25%,
            #3a7bd5 50%,
            #00d2ff 75%,
            #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 4s linear infinite;
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.4));
}

.logo:hover .logo-en {
    color: rgba(255, 255, 255, 0.8);
}

/* 英文模式下的 Logo 样式反转 */
.en-mode .logo-cn {
    order: 2;
    font-size: 0.8rem;
    font-weight: 400;
    background: none;
    -webkit-text-fill-color: var(--text-grey);
    color: var(--text-grey);
    letter-spacing: 2px;
    opacity: 0.5;
}

.en-mode .logo-en {
    order: 1;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.en-mode .logo:hover .logo-en {
    background: linear-gradient(90deg,
            #ffffff 0%,
            #00d2ff 25%,
            #3a7bd5 50%,
            #00d2ff 75%,
            #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 4s linear infinite;
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.4));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent;
}

.hero-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11, 14, 20, 0.6), rgba(11, 14, 20, 0.9));
    z-index: -1;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hero-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-right: 12px;
    box-shadow: 0 0 12px var(--primary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.3);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-grey);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* 微光扫过效果 */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: all 0.6s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 0 20px rgba(0, 210, 255, 0.6),
        0 0 40px rgba(0, 210, 255, 0.3),
        0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
    transform: translateY(-2px) scale(0.95);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.8);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    margin-left: 1rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(255, 255, 255, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-outline:active {
    transform: translateY(-2px) scale(0.95);
}

/* 导航链接基础样式 */
.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--primary-color);
}

/* 悬浮状态：轻微提醒 */
.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.nav-links a:hover::after {
    width: 40%;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
}

/* 选中状态：深度突出 */
.nav-links a.active {
    color: var(--primary-color);
    background: rgba(0, 210, 255, 0.15);
    box-shadow: inset 0 0 15px rgba(0, 210, 255, 0.1);
    font-weight: 700;
}

.nav-links a.active::after {
    width: 70%;
    background: var(--primary-color);
    height: 3px;
    box-shadow: 0 0 15px var(--primary-color);
}

/* Services Section */
.services {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.underline {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s, transform 0.3s;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-10px);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Language Switcher */
.btn-lang {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    padding: 2px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s;
    margin-left: 1rem;
}

.btn-lang:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* About Section */
.about {
    padding: 100px 0;
    background: transparent;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 5rem;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-text p {
    color: var(--text-grey);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 15px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
}

.value-card h4 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.value-card p {
    color: var(--text-grey);
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 4rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 210, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.info-detail h4 {
    margin-bottom: 0.25rem;
}

.info-detail p {
    color: var(--text-grey);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-grey);
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.submit-btn {
    align-self: flex-start;
    padding: 1rem 3rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.5), 0 0 15px rgba(0, 210, 255, 0.2);
}

.submit-btn:active {
    transform: translateY(-1px) scale(0.98);
}

footer {
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-grey);
}

@media (max-width: 992px) {

    .about-content,
    .contact-container {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3rem;
    }
}