/* MedicNex - Main Stylesheet (Apple Design + Glassmorphism) */

:root {
    /* Apple Design Color Palette */
    --color-black: #1d1d1f;
    --color-gray: #86868b;
    --color-light-gray: #f5f5f7;
    --color-white: #ffffff;
    --color-accent: #0071e3; /* Apple blue */
    --color-accent-light: #42a5f5;
    --color-accent-dark: #0058b9;
    --color-success: #34c759; /* Apple green */
    --color-warning: #ff9500; /* Apple orange */
    
    /* Glassmorphism Variables */
    --glass-background: rgba(255, 255, 255, 0.7);
    --glass-background-dark: rgba(29, 29, 31, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    
    /* Spacing */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --transition-standard: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    --animation-duration: 0.8s;
    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.5;
    color: var(--color-black);
    background: linear-gradient(180deg, #f5f5f7 0%, #e8e8ed 50%, #f0f0f5 100%);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.6), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.4), transparent 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    z-index: 0;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: var(--color-accent);
    transition: var(--transition-standard);
}

a:hover {
    color: var(--color-accent-dark);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Header & Navigation - Expandable White Glass Design Style */
header {
    background-color: var(--glass-background);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001;
    animation: fadeIn var(--animation-duration) ease-out;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    overflow: hidden;
}

/* Header with scroll background */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}



nav {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1.2rem var(--spacing-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-black);
    position: relative;
    overflow: hidden;
    max-width: 220px;
    height: auto;
}

img.logo {
    display: block;
    width: 100%;
    height: auto;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-black);
    margin-left: var(--spacing-md);
    transition: var(--transition-standard);
    position: relative;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.4);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-accent);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

/* 保持所有链接的hover效果 */
.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-button {
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.8), rgba(66, 165, 245, 0.8));
    color: var(--color-white) !important;
    padding: 0.5rem 1.2rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    transition: var(--transition-standard);
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-button:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.nav-button::after {
    display: none;
}

/* Main Content */
main {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 6rem;
}

/* 为锚点定位添加滚动边距，避免被固定导航栏遮挡 */
section {
    scroll-margin-top: 6.5rem;
}

/* Hero Section - Apple Design + Glassmorphism */
.hero {
    padding: calc(var(--spacing-xl) - 2rem) var(--spacing-sm) var(--spacing-xl) var(--spacing-sm);
    margin-top: -6rem;
    opacity: 0;
    animation: fadeIn var(--animation-duration) ease-out forwards;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: var(--spacing-lg);
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.hero-content.centered {
    justify-content: center;
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-lg);
    min-height: 30vh;
}

.hero-content.centered .hero-text {
    margin-right: 0;
    max-width: 800px;
}

.hero-text {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: var(--spacing-md);
}

.hero-image {
    flex: 1.3;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow: visible;
    margin-left: var(--spacing-md);
}

.hero-image a {
    display: block;
    text-decoration: none;
    transition: var(--transition-standard);
    cursor: pointer;
}

.hero-preview-img {
    width: 130%;
    max-width: 130%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    opacity: 0;
    animation: fadeInUp var(--animation-duration) ease-out forwards;
    animation-delay: 0.8s;
    transition: var(--transition-standard);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: -25%;
}

.hero-preview-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-black);
    opacity: 0;
    animation: fadeInUp var(--animation-duration) ease-out forwards;
    animation-delay: 0.2s;
    letter-spacing: -0.03em;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.5rem;
    color: var(--color-gray);
    margin-bottom: var(--spacing-md);
    opacity: 0;
    animation: fadeInUp var(--animation-duration) ease-out forwards;
    animation-delay: 0.4s;
    max-width: 600px;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.8), rgba(66, 165, 245, 0.8));
    color: var(--color-white);
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    transition: var(--transition-standard);
    opacity: 0;
    animation: fadeInUp var(--animation-duration) ease-out forwards;
    animation-delay: 0.6s;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.4);
}

/* Features Section - Apple Design Style */
.features {
    padding: var(--spacing-lg) 0;
    position: relative;
    width: 100%;
}

.features .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center !important;
    margin-bottom: var(--spacing-lg);
    color: var(--color-black);
    opacity: 0;
    animation: fadeInUp var(--animation-duration) ease-out forwards;
    animation-delay: 0.8s;
    position: relative;
    display: block;
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: var(--spacing-xs);
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    z-index: 2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

/* Feature Card - Glassmorphism Style */
.feature-card {
    background: var(--glass-background);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    text-align: center;
    transition: var(--transition-standard);
    opacity: 0;
    animation: scaleIn var(--animation-duration) ease-out forwards;
    animation-delay: calc(1s + var(--delay) * 0.2s);
    box-shadow: var(--glass-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--glass-border);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.feature-icon, .model-icon {
    margin-bottom: var(--spacing-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.1) 0%, rgba(255, 255, 255, 0.5) 100%);
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-accent);
}

.feature-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-black);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.feature-card p {
    color: var(--color-gray);
    line-height: 1.7;
    font-size: 1rem;
    flex-grow: 1;
    margin-bottom: var(--spacing-sm);
}

/* Models Section - Apple Design + Glassmorphism */
.models {
    padding: var(--spacing-lg) 0;
    width: 100%;
    opacity: 0;
    animation: fadeIn var(--animation-duration) ease-out forwards;
    animation-delay: 1.2s;
    position: relative;
}

.models .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    position: relative;
    z-index: 2;
}

.models .feature-card {
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--glass-background) 0%, rgba(255, 255, 255, 0.9) 100%);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.models .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 0;
}

.models .feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    color: var(--color-black);
    position: relative;
    padding-bottom: 0.5rem;
    z-index: 1;
}

.models .feature-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-accent);
}

.models .feature-card p {
    line-height: 1.7;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.models .feature-card p:last-child {
    margin-bottom: 0;
}

/* About Section - Apple Design Style */
.about {
    background: linear-gradient(135deg, #f5f5f7 0%, #e5e5ea 100%);
    padding: var(--spacing-lg) var(--spacing-sm);
    text-align: center;
    opacity: 0;
    animation: fadeIn var(--animation-duration) ease-out forwards;
    animation-delay: 1.8s;
}

.about .container {
    background: var(--glass-background);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
}

.about h2 {
    color: var(--color-black);
    margin-bottom: var(--spacing-sm);
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-gray);
    line-height: 1.8;
    font-size: 1.1rem;
}

.about a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}

.about a:hover {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

/* Footer - Apple Design Style */
footer {
    background-color: var(--color-black);
    color: var(--color-white);
    text-align: center;
    padding: var(--spacing-md);
    margin-top: 0;
    opacity: 0;
    animation: fadeIn var(--animation-duration) ease-out forwards;
    animation-delay: 2s;
    position: relative;
    z-index: 1;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Styles */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    /* 移动端导航栏高度更大，需要更大的滚动边距 */
    section {
        scroll-margin-top: 10rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }

    nav {
        flex-direction: column;
        padding: 1rem var(--spacing-xs);
    }
    
    .nav-links {
        margin-top: var(--spacing-xs);
        display: flex;
        width: 100%;
        justify-content: space-around;
    }
    
    .nav-links a {
        margin: 0;
        font-size: 0.85rem;
    }

    .logo {
        max-width: 140px;  /* Adjusted logo size for mobile devices */
    }
    
    .cta-button {
        padding: 0.8rem 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: var(--spacing-md);
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .hero-content.centered {
        flex-direction: column;
        gap: var(--spacing-md);
        padding: var(--spacing-lg) var(--spacing-md);
        min-height: 50vh;
    }
    
    .hero-content.centered .hero-text {
        margin-right: 0;
        max-width: 100%;
    }
    
    .hero-text {
        text-align: center;
        align-items: center;
        margin-right: 0;
        order: 1;
    }
    
    .hero-image {
        order: 2;
        margin-left: 0;
    }
    
    .hero-preview-img {
        width: 120%;
        max-width: 120%;
        margin-left: -10%;
    }
    

}

@media (min-width: 769px) and (max-width: 1024px) {
    .container, .features, .models {
        max-width: 90%;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content {
        gap: var(--spacing-md);
    }
    
    .hero h1 {
        font-size: 3.2rem;
    }
    
    .hero p {
        font-size: 1.3rem;
    }
    
    /* 中等屏幕保持默认布局 */
}

@media (min-width: 1025px) {
    #features .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Legal Page Specific Styles */
.legals-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.legals-nav {
    display: inline-flex;
    margin-left: 1rem;
    margin: 2rem auto;
    border-bottom: 1px solid var(--glass-border);
    max-width: fit-content;
    background: var(--glass-background);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-md);
    padding: 1rem;
}

.legals-nav a {
    text-decoration: none;
    color: var(--color-gray);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-standard);
    font-weight: 500;
}

.legals-nav a:hover, .legals-nav a.active {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.legals-content {
    animation: fadeInUp var(--animation-duration) ease-out;
    margin-top: -2rem;
    line-height: 1.7;
    background: var(--glass-background);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
}

.legals-content h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 0.5rem;
    color: var(--color-black);
    letter-spacing: -0.02em;
}

.legals-content h2 {
    font-size: 1.6rem;
    margin: 2rem 0 1rem;
    color: var(--color-black);
    position: relative;
    padding-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.legals-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-accent);
}

.legals-content h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--color-black);
    letter-spacing: -0.01em;
}

.legals-content p {
    margin-bottom: 1rem;
    color: var(--color-gray);
}

.legals-content ul, .legals-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: var(--color-gray);
}

.legals-content li {
    margin-bottom: 0.75rem;
}

.legals-content strong {
    font-weight: 600;
    color: var(--color-black);
}

/* Tab Content Styles */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

@media (max-width: 768px) {
    .legals-nav {
        position: static;
        margin-top: 4rem;
        background: var(--glass-background);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: auto;
        padding-top: 1rem;
    }

    .legals-content h1 {
        font-size: 1.8rem;
    }

    .legals-content h2 {
        font-size: 1.4rem;
    }

    .legals-content h3 {
        font-size: 1.2rem;
    }
}

/* 404 Page Specific Styles */
.error-container {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--glass-background);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    max-width: 600px;
    width: 100%;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    animation: fadeInUp var(--animation-duration) ease-out;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--color-black);
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-message {
    font-size: 1.5rem;
    color: var(--color-gray);
    margin-bottom: 2rem;
}

.home-button {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-white);
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    transition: var(--transition-standard);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
    letter-spacing: -0.01em;
}

.home-button:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.4);
}

@media (max-width: 768px) {
    .error-code {
        font-size: 5rem;
    }

    .error-message {
        font-size: 1.25rem;
    }
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 0 12px 0;
    border-top: none !important;
    font-size: 15px;
    color: #6c7a89;
    flex-wrap: wrap;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.footer-left {
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    width: 120px;
    margin-bottom: 16px;
}

.footer-company p {
    margin: 0 0 4px 0;
    font-size: 13px;
}

.footer-right {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.footer-col {
    min-width: 120px;
    margin-bottom: 16px;
    flex: 0 0 auto;
    position: relative;
    z-index: 3;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #fff !important;
    height: 24px;
    display: flex;
    align-items: center;
}

.footer-col a {
    display: block;
    color: #fff !important;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #42a5f5 !important;
}

@media (max-width: 800px) {
    .footer-container {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 1rem;
    }
    .footer-right {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        width: 100%;
        justify-content: center;
    }
    .footer-col {
        min-width: unset;
        width: 100%;
        text-align: left;
    }
    .footer-col h4 {
        justify-content: flex-start;
        margin-bottom: 1rem;
    }
    .footer-col a {
        text-align: left;
    }
    .footer-left {
        max-width: 100%;
        text-align: left;
    }
    .footer-logo {
        margin: 0 0 1rem;
    }
    .footer-company {
        text-align: left;
    }
    .footer-col.language-switch-container {
        grid-column: 1 / -1;
        margin: 1rem 0 0;
        padding-left: 0;
        text-align: right;
    }
    .language-switch {
        margin: 0 0 0 auto;
    }
}

footer, .footer-container, .footer-left, .footer-company, .footer-company p, .footer-right, .footer-col {
    text-align: left !important;
}

.footer-col a:hover {
    color: #42a5f5 !important;
}

.footer-col h4 {
    color: #fff !important;
}

.footer-company p {
    color: #fff !important;
    opacity: 0.85;
}

.footer-company a, .footer-company a:visited {
    color: #fff !important;
}

.footer-col.language-switch-container {
    position: relative;
    margin-left: auto;
    padding-left: 24px;
    white-space: nowrap;
}

.language-switch {
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    padding: 4px 12px;
    border: 1px solid var(--color-white);
    border-radius: 20px;
    width: fit-content;
}

.language-switch::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.9;
    position: relative;
    top: 1px;
    margin-right: 8px;
}

/* 客服按钮样式 */
.customer-service-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #306FDB;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.customer-service-button:hover {
    transform: scale(1.1);
}

.customer-service-button img {
    width: 30px;
    height: 30px;
}

/* 客服弹窗样式 */
.customer-service-modal {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    flex-direction: column;
}

.customer-service-modal.active {
    display: flex;
}

.modal-header {
    padding: 15px;
    background-color: #306FDB;
    color: white;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.clear-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 14px;
}

.clear-button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.clear-button:hover svg {
    transform: rotate(15deg);
    transition: transform 0.3s ease;
}

.modal-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.modal-footer {
    padding: 15px;
    border-top: 1px solid #e5e5e5;
    display: flex;
}

.modal-footer input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    margin-right: 10px;
}

.modal-footer button {
    padding: 10px 15px;
    background-color: rgba(0, 113, 227, 0.4);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal-footer button:hover {
    background-color: #306FDB;
}

.message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    max-width: 80%;
}

.user-message {
    background-color: #e3f2fd;
    margin-left: auto;
}

.bot-message {
    background-color: #f1f1f1;
}

/* 微信公众号二维码样式 */
.wechat-link {
    position: relative;
    cursor: pointer;
    display: inline-block;
}

.qr-popup {
    display: none;
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 10px;
    z-index: 99999;
    pointer-events: auto;
}

.qr-code-img {
    width: 160px;
    height: 160px;
    display: block;
    border-radius: 4px;
}

.wechat-link:hover .qr-popup,
.qr-popup.active {
    display: block;
}

.footer-col {
    position: relative;
    overflow: visible !important;
    z-index: 3;
}

/* 移动设备上的二维码样式 */
@media (max-width: 768px) {
    .qr-popup {
        position: fixed;
        bottom: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 99999;
        padding: 15px;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    }
    
    .qr-code-img {
        width: 200px;
        height: 200px;
    }
    
    /* 添加半透明背景遮罩 */
    .qr-popup::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        z-index: -1;
        border-radius: 12px;
    }
}

.qr-popup p {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    color: #000;
    font-weight: 500;
}

/* 社交媒体图标样式 */
.social-icons {
    display: flex;
    gap: 12px;
    margin: 2px 0;
    padding: 0;
    justify-content: flex-start;
    position: relative;
    z-index: 5;
}

.footer-logo {
    width: 120px;
    margin-bottom: 6px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s ease;
    overflow: visible;
    padding: 0;
}

.social-icon:hover {
    color: rgba(255, 255, 255, 0.7);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* 微信图标特殊处理 */
.wechat-icon {
    position: relative;
    cursor: pointer;
    z-index: 10000;
}

.wechat-icon svg {
    width: 18px;
    height: 18px;
    transform: scale(0.95);
}

.social-qr-popup {
    display: none;
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 10px;
    z-index: 99999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: auto;
}

/* 悬停或激活时显示二维码 */
.social-qr-popup.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .social-icons {
        justify-content: flex-start;
        margin-bottom: 16px;
    }
    
    .social-qr-popup {
        position: fixed;
        bottom: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 99999;
        padding: 15px;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    }
    
    .social-qr-popup::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        z-index: -1;
        border-radius: 12px;
    }
}

/* 性能表现样式 */
.performance-test {
    padding: var(--spacing-xl) 0 var(--spacing-md) 0;
    position: relative;
}

.performance-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
    z-index: 2;
}

.performance-description {
    padding: var(--spacing-md);
}

.performance-description p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-black);
    line-height: 1.6;
    font-size: 1rem;
}

.performance-description strong {
    color: var(--color-accent);
    font-weight: 600;
}

.performance-highlights {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(134, 134, 139, 0.2);
}

.highlight-item {
    text-align: center;
    padding: var(--spacing-sm);
    background: var(--glass-background);
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    flex: 1;
}

.highlight-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.highlight-label {
    display: block;
    font-size: 0.875rem;
    color: var(--color-gray);
    font-weight: 500;
}

.chart-container {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(134, 134, 139, 0.1);
    height: 450px;
    max-width: 650px;
    position: relative;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* 移动设备样式 */
@media (max-width: 768px) {
    .performance-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .performance-highlights {
        flex-direction: row;
        gap: var(--spacing-sm);
    }
    
    .highlight-number {
        font-size: 1.5rem;
    }
    
    .chart-container {
        height: 450px;
        max-width: 100%;
        padding: var(--spacing-sm);
    }
    
    .performance-description {
        padding: var(--spacing-sm);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .performance-content {
        gap: var(--spacing-md);
    }
    
    .chart-container {
        height: 450px;
        max-width: 600px;
    }
}

/* Company Stats Section */
.company-stats {
    padding: var(--spacing-xl) 0;
    background: var(--color-white);
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.stat-item {
    padding: var(--spacing-md) var(--spacing-sm);
    background: var(--glass-background);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: var(--transition-standard);
    animation: fadeInUp var(--animation-duration) ease-out;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    color: var(--color-gray);
    font-size: 1.1rem;
    font-weight: 500;
}

/* About Section */
.about-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 2;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--color-black);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    text-align: center;
}

.about-content p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    opacity: 0;
    animation: fadeInUp var(--animation-duration) ease-out 0.2s forwards;
}

.about-content p:nth-child(3) {
    animation-delay: 0.4s;
}

.about-content p:nth-child(4) {
    animation-delay: 0.6s;
}

/* Product Links */
.product-link {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: var(--color-white);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    transition: var(--transition-standard);
    margin-top: var(--spacing-sm);
}

.product-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.3);
    text-decoration: none;
    color: var(--color-white);
}

/* Legal Disclaimer */
.legal-disclaimer {
    padding: var(--spacing-md) 0;
    background: var(--color-light-gray);
    border-top: 1px solid rgba(134, 134, 139, 0.2);
}

/* Mobile Responsive for New Sections */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .about-content h2 {
        font-size: 2rem;
    }
    
    .about-content p {
        font-size: 1.1rem;
    }
    
    .about-content {
        padding: 0 var(--spacing-sm);
    }


        /* 客服按钮样式 */
        .customer-service-button {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            background-color: #306FDB;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            transition: transform 0.3s ease;
        }

        .customer-service-button:hover {
            transform: scale(1.1);
        }

        .customer-service-button img {
            width: 30px;
            height: 30px;
        }

        /* 客服弹窗样式 */
        .customer-service-modal {
            display: none;
            position: fixed;
            bottom: 100px;
            right: 30px;
            width: 350px;
            height: 400px;
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            z-index: 1001;
            flex-direction: column;
        }

        .customer-service-modal.active {
            display: flex;
        }

        .modal-header {
            padding: 15px;
            background-color: #306FDB;
            color: white;
            border-radius: 10px 10px 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h3 {
            margin: 0;
        }

        .close-button {
            background: none;
            border: none;
            color: white;
            font-size: 20px;
            cursor: pointer;
        }

        .clear-button {
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 5px 10px;
            border-radius: 5px;
            transition: background-color 0.3s ease;
        }

        .clear-button:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        .clear-button svg {
            width: 16px;
            height: 16px;
            fill: currentColor;
            transition: transform 0.3s ease;
        }

        .clear-button:hover svg {
            transform: rotate(15deg);
            transition: transform 0.3s ease;
        }

        .modal-content {
            flex: 1;
            padding: 15px;
            overflow-y: auto;
        }

        .modal-footer {
            padding: 15px;
            border-top: 1px solid #e5e5e5;
            display: flex;
        }

        .modal-footer input {
            flex: 1;
            padding: 10px;
            border: 1px solid #e5e5e5;
            border-radius: 5px;
            margin-right: 10px;
        }

        .modal-footer button {
            padding: 10px 15px;
            background-color: rgba(0, 113, 227, 0.4);
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }

        .modal-footer button:hover {
            background-color: rgba(0, 113, 227, 0.6);
        }

        .message {
            margin-bottom: 10px;
            padding: 10px;
            border-radius: 5px;
        }

        .user-message {
            background-color: #e3f2fd;
            text-align: right;
        }

        .bot-message {
            background-color: #f5f5f5;
        }

        .message-time {
            font-size: 0.8em;
            color: #666;
            margin-top: 5px;
        }

        @media (max-width: 768px) {
            .customer-service-modal {
                width: 300px;
                height: 350px;
            }
            
            .customer-service-button {
                bottom: 20px;
                right: 20px;
                width: 50px;
                height: 50px;
            }
            
            .customer-service-button img {
                width: 25px;
                height: 25px;
            }
        }
    }


