/* ===== CSS Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-cyan: #40C4B0;
    --color-yellow: #F5C518;
    --color-red: #E63946;
    --color-blue: #3B82F6;
    --color-purple: #6B21A8;
    --color-green: #22863A;
    --color-dark: #2D3748;
    --color-light: #F7FAFC;
    --color-white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #40C4B0 0%, #3B82F6 50%, #6B21A8 100%);
    --gradient-warm: linear-gradient(135deg, #F5C518 0%, #FF6B35 50%, #E63946 100%);
    --gradient-fun: linear-gradient(135deg, #40C4B0 0%, #4ECDC4 30%, #44CF6C 60%, #F5C518 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --font-main: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--color-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Language Switcher ===== */
.lang-switcher-wrap {
    position: relative;
    margin-left: 12px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--color-light);
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lang-switcher:hover {
    background: var(--color-cyan);
    color: var(--color-white);
    border-color: var(--color-cyan);
}

.lang-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.lang-dropdown.open + .lang-switcher .lang-arrow,
.lang-switcher-wrap .lang-dropdown.open ~ .lang-switcher .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--color-white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    min-width: 120px;
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--color-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lang-option:hover {
    background: var(--color-light);
    color: var(--color-cyan);
}

.lang-option.active {
    background: var(--color-cyan);
    color: var(--color-white);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo img {
    height: 45px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-dark);
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--color-cyan);
    color: var(--color-white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(180deg, #E8F8F5 0%, #D4F1ED 30%, #B8E6F0 60%, #C3E8FF 100%);
    padding-top: 70px;
    overflow: hidden;
}

.hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

/* Cloud decorations */
.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

.cloud-1 {
    width: 120px;
    height: 40px;
    top: 15%;
    left: 10%;
    animation: floatCloud 20s ease-in-out infinite;
}

.cloud-1::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 20px;
}

.cloud-1::after {
    width: 35px;
    height: 35px;
    top: -15px;
    left: 55px;
}

.cloud-2 {
    width: 100px;
    height: 35px;
    top: 25%;
    right: 15%;
    animation: floatCloud 15s ease-in-out infinite reverse;
}

.cloud-2::before {
    width: 45px;
    height: 45px;
    top: -22px;
    left: 15px;
}

.cloud-2::after {
    width: 30px;
    height: 30px;
    top: -12px;
    left: 45px;
}

.cloud-3 {
    width: 80px;
    height: 30px;
    top: 20%;
    left: 50%;
    animation: floatCloud 18s ease-in-out infinite 2s;
}

.cloud-3::before {
    width: 35px;
    height: 35px;
    top: -18px;
    left: 12px;
}

.cloud-3::after {
    width: 25px;
    height: 25px;
    top: -10px;
    left: 38px;
}

/* Star decorations */
.star {
    position: absolute;
    font-size: 20px;
    color: var(--color-yellow);
    animation: twinkle 2s ease-in-out infinite;
}

.star::before {
    content: '\2605';
}

.star-1 {
    top: 30%;
    left: 5%;
    font-size: 16px;
    animation-delay: 0s;
}

.star-2 {
    top: 15%;
    right: 25%;
    font-size: 22px;
    animation-delay: 0.5s;
}

.star-3 {
    bottom: 40%;
    left: 15%;
    font-size: 14px;
    animation-delay: 1s;
}

.star-4 {
    bottom: 35%;
    right: 10%;
    font-size: 18px;
    animation-delay: 1.5s;
}

/* Bubble decorations */
.bubble {
    position: absolute;
    border-radius: 50%;
    animation: floatBubble 8s ease-in-out infinite;
}

.bubble-1 {
    width: 60px;
    height: 60px;
    background: rgba(245, 197, 24, 0.2);
    bottom: 30%;
    left: 8%;
    animation-delay: 0s;
}

.bubble-2 {
    width: 40px;
    height: 40px;
    background: rgba(230, 57, 70, 0.15);
    bottom: 25%;
    right: 20%;
    animation-delay: 2s;
}

.bubble-3 {
    width: 50px;
    height: 50px;
    background: rgba(107, 33, 168, 0.15);
    top: 40%;
    right: 5%;
    animation-delay: 4s;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    padding: 20px;
}

.hero-logo {
    width: 280px;
    margin: 0 auto 30px;
    animation: bounceIn 1s ease-out;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #4A5568;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--color-cyan);
    color: var(--color-white);
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(64, 196, 176, 0.4);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(64, 196, 176, 0.5);
    background: #35b09e;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ===== Section Common ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 16px;
}

.section-title.light {
    color: var(--color-white);
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-divider::before,
.section-divider::after {
    content: '';
    width: 40px;
    height: 3px;
    background: var(--color-cyan);
    border-radius: 3px;
}

.divider-star {
    color: var(--color-yellow);
    font-size: 20px;
}

.divider-star.light {
    color: var(--color-yellow);
}

.section-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-top: 16px;
}

/* ===== About Section ===== */
.about {
    padding: 100px 0;
    background: var(--color-white);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-card {
    background: var(--color-light);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-cyan);
}

.about-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--color-dark);
}

.about-card p {
    color: #718096;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ===== Brands Section ===== */
.brands {
    padding: 100px 0;
    background: linear-gradient(135deg, #40C4B0 0%, #3B82F6 50%, #6B21A8 100%);
    position: relative;
}

.brands-wave-top,
.brands-wave-bottom {
    position: absolute;
    left: 0;
    right: 0;
}

.brands-wave-top {
    top: 0;
}

.brands-wave-bottom {
    bottom: 0;
}

.brands-wave-top svg,
.brands-wave-bottom svg {
    display: block;
    width: 100%;
    height: 80px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.brand-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.brand-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.brand-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.brand-card:hover .brand-img {
    transform: scale(1.05);
}

/* ===== Contact Section ===== */
.contact {
    padding: 100px 0;
    background: var(--color-white);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.contact-card {
    background: var(--color-light);
    padding: 35px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.contact-card h3 {
    font-size: 1.1rem;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.contact-card p {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-card a {
    color: var(--color-cyan);
    font-weight: 500;
}

.contact-card a:hover {
    color: var(--color-blue);
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(135deg, #2D3748 0%, #1A202C 100%);
    color: var(--color-white);
    padding: 60px 0 30px;
    position: relative;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

.footer-content {
    text-align: center;
    padding-top: 30px;
}

.footer-logo img {
    height: 50px;
    margin: 0 auto 16px;
}

.footer-slogan {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.footer-info a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-info a:hover {
    color: var(--color-cyan);
}

.beian-icon {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 4px;
}

.footer-beian {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.footer-beian a {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.beian-divider {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.3);
}

/* ===== Animations ===== */
@keyframes floatCloud {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(30px);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

@keyframes floatBubble {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Scroll reveal animation */
.about-card,
.brand-card,
.contact-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.about-card.visible,
.brand-card.visible,
.contact-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .lang-switcher-wrap {
        position: absolute;
        right: 60px;
        top: 50%;
        transform: translateY(-50%);
    }

    .lang-switcher {
        padding: 5px 10px;
        font-size: 12px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 20px;
        gap: 10px;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-logo {
        width: 200px;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about,
    .brands,
    .contact {
        padding: 70px 0;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 60px;
    }

    .nav-logo img {
        height: 35px;
    }

    .nav-menu {
        top: 60px;
    }

    .lang-switcher-wrap {
        right: 50px;
    }

    .lang-switcher {
        padding: 4px 8px;
        font-size: 11px;
    }

    .hero-logo {
        width: 160px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-btn {
        padding: 12px 30px;
        font-size: 14px;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .brand-card {
        padding: 8px;
    }

    .about-card {
        padding: 30px 20px;
    }

    .contact-card {
        padding: 25px 15px;
    }
}
