/* ============================================
   无形者AI - 多页面网站样式
   基于原单页版本设计风格
   ============================================ */

:root {
    --primary-color: #0891b2;
    --primary-light: #06b6d4;
    --primary-dark: #0e7490;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --bg-primary: #fafafa;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Global link styles - remove underline */
a, a:link, a:visited, a:hover, a:active, a:focus {
    text-decoration: none;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, #fafafa 0%, #f0f4f8 100%);
    color: #0f172a;
    line-height: 1.8;
    letter-spacing: 0.02em;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #06b6d4, #8b5cf6); border-radius: 4px; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.glass-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #0891b2 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-animated {
    background: linear-gradient(90deg, #06b6d4, #8b5cf6, #3b82f6, #06b6d4);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-x 5s ease infinite;
}

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

/* Grid Background */
.grid-bg {
    background-image: 
        linear-gradient(rgba(6, 182, 212, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom-color: rgba(226, 232, 240, 0.8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.navbar-logo img {
    height: 40px;
    width: auto;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    padding: 4px;
    transition: all 0.3s ease;
}

.navbar-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 0.05em;
}

.navbar-logo:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.navbar-logo span { 
    background: linear-gradient(135deg, #0891b2 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav {
    display: none;
    align-items: center;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .navbar-nav { display: flex; }
}

.navbar-nav a {
    position: relative;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #475569;
    letter-spacing: 0.02em;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.navbar-nav a:hover,
.navbar-nav a.active { 
    color: #0891b2; 
}

.navbar-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #06b6d4, #8b5cf6);
    border-radius: 2px;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-dropdown > a::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 2px;
    transition: transform 0.3s;
}

.nav-dropdown:hover > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 1000;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.dropdown-menu-wide {
    min-width: 280px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem 0.75rem 1.5rem !important;
    border-radius: 6px;
    transition: all 0.2s;
    text-decoration: none;
    margin-bottom: 4px;
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-item:hover {
    background: rgba(6, 182, 212, 0.08);
}

.dropdown-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.125rem;
    letter-spacing: 0.01em;
}

.dropdown-item:hover .dropdown-title {
    color: #0891b2;
}

.dropdown-desc {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

.navbar-cta { display: none; }
@media (min-width: 768px) { .navbar-cta { display: block; } }

/* Button Styles - Original Style */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.4);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: rgba(255, 255, 255, 0.5);
    color: #0f172a;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 9999px;
    border: 1px solid rgba(6, 182, 212, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: #06b6d4;
    background: rgba(6, 182, 212, 0.1);
    transform: translateY(-2px);
}

/* Mobile Menu */
.navbar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: #475569;
}

@media (min-width: 768px) { .navbar-toggle { display: none; } }

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active { transform: translateX(0); }

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: #475569;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100% - 64px);
    gap: 2rem;
}

.mobile-menu-nav a {
    font-size: 1.25rem;
    font-weight: 500;
    color: #475569;
}

.mobile-menu-nav a:hover { color: #0891b2; }

/* Hero Section - Original Style */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 64px;
    background: linear-gradient(180deg, #fafafa 0%, #f0f4f8 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: rgba(6, 182, 212, 0.2);
    border-radius: 50%;
    filter: blur(120px);
    animation: pulse-glow 3s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    filter: blur(100px);
    animation: pulse-glow 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 5rem 0;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 2rem;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #06b6d4;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.3);
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2rem;
    line-height: 1.3;
    letter-spacing: 0.05em;
}

@media (min-width: 640px) { .hero-title { font-size: 3.5rem; letter-spacing: 0.08em; } }
@media (min-width: 1024px) { .hero-title { font-size: 4rem; letter-spacing: 0.1em; } }

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: textGlow 3s ease-in-out infinite;
}

@media (min-width: 640px) { .hero-subtitle { font-size: 2rem; letter-spacing: 0.2em; } }

.hero-description {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 3rem;
    letter-spacing: 0.08em;
    line-height: 2;
}

.hero-description strong {
    color: #0891b2;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

@media (min-width: 640px) { .hero-buttons { flex-direction: row; } }

/* Carousel - Original Style */
.carousel { position: relative; }

.carousel-slide {
    display: none;
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide.active { display: block; }

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

.carousel-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 4rem;
}

.carousel-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    color: #475569;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.carousel-btn:hover {
    border-color: #06b6d4;
    color: #0891b2;
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    background: #cbd5e1;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    width: 32px;
    background: linear-gradient(90deg, #06b6d4, #8b5cf6);
    border-radius: 4px;
}

.carousel-pause {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.carousel-pause:hover {
    color: #0891b2;
}

/* Stats */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .stat-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(6, 182, 212, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transition: all 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 20px 40px rgba(6, 182, 212, 0.15),
        0 0 0 1px rgba(6, 182, 212, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 50%, #3b82f6 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.1em;
    animation: gradientShift 3s ease infinite;
}

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

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Section */
.section { padding: 5rem 0; }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #0891b2;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
    letter-spacing: 0.08em;
}

@media (min-width: 640px) { .section-title { font-size: 2.5rem; letter-spacing: 0.1em; } }

.section-description {
    font-size: 1.125rem;
    color: #64748b;
}

/* Cards - Original Style */
.card {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.1);
}

.card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.card:hover .card-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.4));
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #0f172a;
    letter-spacing: 0.05em;
}

.card-text {
    color: #64748b;
    font-size: 0.9375rem;
    line-height: 2;
    letter-spacing: 0.05em;
}

/* Grid */
.grid { display: grid; gap: 1.5rem; }

.grid-3 {
    grid-template-columns: 1fr;
}

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

.grid-2 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

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

@media (min-width: 768px) {
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Feature List */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 145, 178, 0.1);
    border-radius: 0.75rem;
    color: #0891b2;
}

.feature-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #0f172a;
}

.feature-content p {
    font-size: 0.9375rem;
    color: #64748b;
}

/* Products */
.product-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.1);
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(6, 182, 212, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.product-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.product-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    position: relative;
    z-index: 1;
}

.product-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #0f172a;
    letter-spacing: 0.08em;
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

.product-card:hover .product-title {
    color: #0891b2;
}

.product-description {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.product-feature {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: #64748b;
}

.product-feature svg {
    width: 16px;
    height: 16px;
    color: #22c55e;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #faf5ff 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 50%;
    filter: blur(150px);
    pointer-events: none;
}

.cta-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

@media (min-width: 640px) { .cta-card { padding: 4rem; } }

/* Footer */
.footer {
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand p {
    color: #64748b;
    margin: 1rem 0;
    font-size: 0.9375rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 50%;
    color: #64748b;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
    color: white;
    border-color: transparent;
}

.footer-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1rem;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }

.footer-links a {
    font-size: 0.9375rem;
    color: #64748b;
    transition: color 0.2s;
}

.footer-links a:hover { color: #0891b2; }

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom p {
    font-size: 0.875rem;
    color: #64748b;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    font-size: 0.875rem;
    color: #64748b;
    transition: color 0.2s;
}

.footer-bottom-links a:hover { color: #0891b2; }

/* Page Header */
.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(180deg, #fafafa 0%, #f0f4f8 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: rgba(6, 182, 212, 0.15);
    border-radius: 50%;
    filter: blur(100px);
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: rgba(139, 92, 246, 0.12);
    border-radius: 50%;
    filter: blur(80px);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

@media (min-width: 640px) { .page-title { font-size: 3rem; letter-spacing: 0.15em; } }

.page-description {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Section */
.content-section { padding: 4rem 0; }

.content-block { max-width: 800px; margin: 0 auto; }

.content-block h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin: 2.5rem 0 1rem;
}

.content-block h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin: 2rem 0 0.75rem;
}

.content-block p {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-block ul {
    list-style: none;
    margin: 1rem 0;
    padding-left: 0;
}

.content-block li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #64748b;
}

.content-block li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    background: #0891b2;
    border-radius: 50%;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .two-column { grid-template-columns: 1fr 1fr; }
}

/* Visual Block */
.visual-block {
    background: linear-gradient(135deg, #f0f9ff 0%, #faf5ff 100%);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.visual-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.visual-item {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.visual-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 145, 178, 0.1);
    border-radius: 0.75rem;
    color: #0891b2;
}

.visual-number {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0891b2 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.visual-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Contact Form */
.contact-form { max-width: 600px; margin: 0 auto; }

.form-group { margin-bottom: 1.5rem; }

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.2s;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(6, 182, 212, 0.3); }
    50% { box-shadow: 0 0 40px rgba(6, 182, 212, 0.6), 0 0 60px rgba(139, 92, 246, 0.3); }
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(6, 182, 212, 0.3); }
    50% { text-shadow: 0 0 20px rgba(6, 182, 212, 0.6), 0 0 30px rgba(139, 92, 246, 0.3); }
}

.animate-float { animation: float 4s ease-in-out infinite; }
.animate-float-delay { animation: float 4s ease-in-out infinite; animation-delay: 1s; }
.animate-float-delay-2 { animation: float 4s ease-in-out infinite; animation-delay: 2s; }

.animate-glow { animation: glow 3s ease-in-out infinite; }
.animate-text-glow { animation: textGlow 3s ease-in-out infinite; }

/* Bubble Quotes - From BubbleQuotes.jsx */
.bubble-quotes-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 100;
}

.bubble-quote {
    position: absolute;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.45) 0%, rgba(168, 85, 247, 0.4) 50%, rgba(192, 132, 252, 0.35) 100%);
    border-radius: 14px;
    box-shadow: 
        0 4px 20px rgba(139, 92, 246, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: bubble-rise 15s ease-out forwards;
    opacity: 0;
    bottom: -100px;
    max-width: 260px;
}

.bubble-quote span {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    line-height: 1.7;
    display: block;
    max-width: 240px;
}

@keyframes bubble-rise {
    0% {
        bottom: -100px;
        opacity: 0;
        transform: scale(0.9);
    }
    8% {
        opacity: 0.9;
        transform: scale(1);
    }
    75% {
        opacity: 0.9;
        transform: scale(1);
    }
    100% {
        bottom: 75%;
        opacity: 0;
        transform: scale(0.85);
    }
}

/* Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.bg-white { background: white; }
.bg-light { background: #fafafa; }


/* ============================================
   Mobile Responsive Optimizations
   ============================================ */

/* Ensure images don't overflow on mobile */
img {
    max-width: 100%;
    height: auto;
}

/* Mobile font size adjustments */
@media (max-width: 640px) {
    .page-title {
        font-size: 1.75rem !important;
    }
    
    .section-title {
        font-size: 1.5rem !important;
    }
    
    /* About page stat numbers */
    div[style*="font-size: 3.5rem"] {
        font-size: 2rem !important;
    }
    
    /* Ensure proper padding on mobile */
    .content-section {
        padding: 3rem 0;
    }
    
    /* Contact page - 全平台影响力 - force 3 columns */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(100px, 1fr))"] {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
    }
    
    /* Contact page - 全平台影响力 cards - reduce padding */
    div[style*="grid-template-columns: repeat(3, 1fr)"] > div {
        padding: 0.75rem !important;
    }
    
    /* Contact page - 全平台影响力 titles - smaller font */
    div[style*="grid-template-columns: repeat(3, 1fr)"] h4 {
        font-size: 0.875rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Contact page - 全平台影响力 QR images - smaller */
    div[style*="grid-template-columns: repeat(3, 1fr)"] img,
    div[style*="grid-template-columns: repeat(3, 1fr)"] > div > div {
        max-width: 80px !important;
    }
    
    /* Contact page - 全平台影响力 subtitles */
    div[style*="grid-template-columns: repeat(3, 1fr)"] p {
        font-size: 0.65rem !important;
    }
    
    /* Contact page WeChat section - single column on mobile */
    section[style*="background: linear-gradient(135deg, #f0fdf4"] > div > div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Contact page WeChat cards - reduce padding */
    section[style*="background: linear-gradient(135deg, #f0fdf4"] > div > div[style*="grid-template-columns: repeat(2, 1fr)"] > div {
        padding: 1.5rem 1rem !important;
        border-radius: 20px !important;
    }
    
    /* Contact page WeChat icons - smaller */
    section[style*="background: linear-gradient(135deg, #f0fdf4"] div[style*="width: 64px; height: 64px"] {
        width: 48px !important;
        height: 48px !important;
        margin-bottom: 0.75rem !important;
    }
    
    section[style*="background: linear-gradient(135deg, #f0fdf4"] div[style*="width: 64px; height: 64px"] svg {
        width: 24px !important;
        height: 24px !important;
    }
    
    /* Contact page WeChat titles - smaller */
    section[style*="background: linear-gradient(135deg, #f0fdf4"] h4 {
        font-size: 1.25rem !important;
    }
    
    /* Contact page WeChat QR - smaller */
    section[style*="background: linear-gradient(135deg, #f0fdf4"] div[style*="max-width: 180px"] {
        max-width: 150px !important;
    }
    
    /* Index page social section - force 2 columns on mobile */
    section.social-section div[style*="grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))"],
    section[style*="padding: 6rem 0"] > div > div[style*="grid-template-columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        padding: 0 0.5rem !important;
    }
    
    /* Index page social cards - reduce padding */
    section.social-section div[style*="grid-template-columns: repeat(2, 1fr)"] > div,
    section[style*="padding: 6rem 0"] > div > div[style*="grid-template-columns"] > div {
        padding: 1.5rem 1rem !important;
    }
    
    /* Index page social icons - smaller */
    section.social-section div[style*="width: 72px; height: 72px"] {
        width: 48px !important;
        height: 48px !important;
        border-radius: 12px !important;
    }
    
    /* Index page social QR images - smaller */
    section.social-section img[style*="width: 200px"],
    section.social-section div[style*="width: 200px"] {
        width: 100% !important;
        max-width: 120px !important;
        height: auto !important;
    }
    
    /* Products page - single column on mobile */
    .grid-2 {
        grid-template-columns: 1fr !important;
    }
    
    /* Product cards - reduce padding */
    .product-card {
        padding: 1.5rem !important;
        border-radius: 1rem !important;
    }
    
    /* Products page titles - smaller */
    .product-card h3 {
        font-size: 1.125rem !important;
    }
    
    /* Products page descriptions - smaller */
    .product-card p {
        font-size: 0.875rem !important;
    }
    
    /* Footer adjustments */
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.5rem !important;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    /* Further reduce font sizes */
    .page-title {
        font-size: 1.5rem !important;
    }
    
    .section-title {
        font-size: 1.25rem !important;
    }
    
    /* About page stat numbers */
    div[style*="font-size: 3.5rem"] {
        font-size: 1.75rem !important;
    }
    
    /* Contact page - 全平台影响力 - 2 columns on very small screens */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(100px, 1fr))"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Index page social - 1 column on very small screens */
    section.social-section div[style*="grid-template-columns: repeat(2, 1fr)"],
    section[style*="padding: 6rem 0"] > div > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Footer single column */
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Ensure modals work properly on mobile */
@media (max-width: 640px) {
    #imageModal img {
        max-width: 95% !important;
        max-height: 80% !important;
    }
}

/* ============================================
   Product Detail Pages Mobile Optimizations
   ============================================ */

/* Product hero section mobile */
@media (max-width: 640px) {
    .product-hero {
        padding: 6rem 0 3rem !important;
    }
    
    .product-title {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
    
    .product-subtitle {
        font-size: 1rem !important;
    }
    
    .product-badge {
        font-size: 0.75rem !important;
        padding: 0.375rem 0.75rem !important;
    }
    
    /* Feature grid single column - override inline styles */
    .feature-grid,
    div[class*="feature-grid"],
    [class*="feature-grid"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin-top: 2rem !important;
    }
    
    /* Feature cards reduce padding */
    .feature-card {
        padding: 1.5rem !important;
    }
    
    .feature-card h3 {
        font-size: 1.125rem !important;
    }
    
    .feature-card p {
        font-size: 0.875rem !important;
    }
    
    /* Product content reduce padding */
    .product-content {
        padding: 2rem 0 !important;
    }
    
    /* Product content section titles - smaller */
    .product-content h2 {
        font-size: 1.5rem !important;
        margin-bottom: 2rem !important;
    }
    
    /* Product content overview text - smaller */
    .product-content > div > div:first-child p {
        font-size: 1rem !important;
    }
    
    /* Technical advantages box - reduce padding */
    .product-content > div > div:last-child,
    .product-content div[style*="background: white"] {
        padding: 1.5rem !important;
        border-radius: 12px !important;
    }
    
    /* Technical advantages list items - smaller font */
    .product-content ul li {
        font-size: 0.875rem !important;
    }
    
    /* Emoji sizes in feature cards */
    .feature-card div[style*="font-size: 2.5rem"],
    .feature-card div[style*="font-size: 3rem"] {
        font-size: 2rem !important;
    }
    
    /* CTA section reduce padding */
    .cta-section {
        padding: 3rem 0 !important;
        margin-top: 2rem !important;
    }
}
