/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: hsl(210 40% 15%);
    background-color: hsl(0 0% 100%);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 主题变量 - 基于原始项目 */
.light-theme {
    --primary: hsl(203 82% 46%);
    --primary-foreground: hsl(0 0% 100%);
    --primary-light: hsl(203 82% 65%);
    --primary-dark: hsl(203 82% 35%);
    --secondary: hsl(145 63% 42%);
    --secondary-foreground: hsl(0 0% 100%);
    --secondary-light: hsl(145 63% 60%);
    --muted: hsl(210 40% 96%);
    --muted-foreground: hsl(210 20% 50%);
    --accent: hsl(203 82% 95%);
    --accent-foreground: hsl(203 82% 46%);
    --destructive: hsl(0 84% 60%);
    --destructive-foreground: hsl(0 0% 100%);
    --border: hsl(210 30% 90%);
    --input: hsl(210 30% 90%);
    --ring: hsl(203 82% 46%);
    --card: hsl(0 0% 100%);
    --card-foreground: hsl(210 40% 15%);
    --background: hsl(0 0% 100%);
    --foreground: hsl(210 40% 15%);
    --gradient-primary: linear-gradient(135deg, hsl(203 82% 46%), hsl(203 82% 65%));
    --gradient-secondary: linear-gradient(135deg, hsl(145 63% 42%), hsl(145 63% 60%));
    --shadow-elegant: 0 10px 30px -10px hsl(203 82% 46% / 0.2);
    --shadow-glow: 0 0 40px hsl(203 82% 65% / 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 通用组件 */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    outline: none;
    white-space: nowrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-elegant);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--secondary-foreground);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--accent);
    border-color: var(--primary);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.shadow-elegant {
    box-shadow: var(--shadow-elegant);
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

.transition-smooth {
    transition: var(--transition-smooth);
}

/* 动画类 */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.nav-container {
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.brand-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
}

.brand-text {
    color: var(--foreground);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--muted-foreground);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--foreground);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

.mobile-toggle span:nth-child(1) {
    margin-bottom: 5px;
}

.mobile-toggle span:nth-child(3) {
    margin-top: 5px;
}

/* 主要内容 */
main {
    padding-top: 80px;
}

/* Hero区域 */
.hero-section {
    padding: 4rem 0 6rem;
    background: linear-gradient(to bottom right, var(--background), var(--primary/5), var(--background));
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    padding: 1rem 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-icon-container {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary/20);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.feature-icon-container.secondary {
    background: var(--secondary/20);
}

.feature-title {
    font-weight: 600;
    color: var(--foreground);
    font-size: 1rem;
}

.feature-desc {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-status {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.status-dot.secondary {
    background: var(--secondary);
}

/* Hero视觉部分 */
.hero-visual {
    position: relative;
    padding: 2rem 0;
}

.product-showcase {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border/50);
}

.product-image {
    width: 100%;
    height: auto;
    transition: opacity 0.5s ease;
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--background)/80, transparent);
    pointer-events: none;
}

.image-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--muted-foreground/30);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary);
    width: 32px;
    border-radius: 4px;
}

.indicator:hover {
    background: var(--muted-foreground/50);
}

.decoration-element {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(40px);
}

.decoration-1 {
    top: -1rem;
    right: -1rem;
    width: 6rem;
    height: 6rem;
    background: var(--primary/20);
}

.decoration-2 {
    bottom: -1rem;
    left: -1rem;
    width: 8rem;
    height: 8rem;
    background: var(--secondary/20);
}

/* 核心运作机制 */
.mechanism-section {
    padding: 4rem 0;
    background: var(--card);
}

.mechanism-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.mechanism-card {
    background: var(--card);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: var(--shadow-elegant);
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
}

.mechanism-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.mechanism-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.mechanism-number.primary {
    background: var(--primary/10);
    color: var(--primary);
}

.mechanism-number.secondary {
    background: var(--secondary/10);
    color: var(--secondary);
}

.mechanism-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.mechanism-desc {
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* 为什么选择uc建站 */
.why-choose-section {
    padding: 4rem 0;
}

.choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.choose-card {
    text-align: center;
    padding: 1.5rem;
}

.choose-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
}

.choose-icon.primary {
    background: var(--accent);
    color: var(--primary);
}

.choose-icon.secondary {
    background: var(--accent);
    color: var(--secondary);
}

.choose-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.choose-desc {
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* 实战应用场景 */
.scenarios-section {
    padding: 4rem 0;
    background: var(--muted/30);
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.scenario-card {
    background: var(--card);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-elegant);
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
}

.scenario-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.scenario-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--foreground);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.scenario-emoji {
    font-size: 1.5rem;
}

.scenario-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.scenario-item {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.6;
}

.scenario-item strong {
    color: var(--foreground);
}

.scenario-note {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    color: var(--muted-foreground);
    font-size: 0.75rem;
}

/* 核心功能 */
.features-section {
    padding: 4rem 0;
    background: var(--muted/30);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-main-card {
    background: var(--card);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: var(--shadow-elegant);
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
}

.feature-main-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.feature-main-card:nth-child(odd) {
    border-color: var(--primary/20);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon.primary {
    background: var(--primary/10);
    color: var(--primary);
}

.feature-icon.secondary {
    background: var(--secondary/10);
    color: var(--secondary);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
}

.feature-content {
    margin-top: 1rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.25rem 0 0.25rem 1rem;
    position: relative;
    color: var(--muted-foreground);
    font-size: 0.9rem;
    line-height: 1.6;
}

.feature-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* 客户评价 */
.testimonials-section {
    padding: 4rem 0;
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
}

.testimonial-card {
    background: var(--card);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: var(--shadow-elegant);
    border: 1px solid var(--border);
    display: none;
    text-align: center;
}

.testimonial-card.active {
    display: block;
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    font-style: italic;
    text-align: center;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--muted-foreground);
}

.author-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--foreground);
    text-align: left;
}

.author-position {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    text-align: left;
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 1.125rem;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    gap: 1.5rem;
}

.testimonial-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--muted-foreground);
}

.testimonial-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.testimonial-indicators {
    display: flex;
    gap: 0.5rem;
}

.testimonial-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.testimonial-indicators .indicator.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

/* 页脚 */
.footer {
    background: var(--foreground);
    color: hsl(210 20% 85%);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-description {
    color: hsl(210 20% 70%);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--primary);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: hsl(210 20% 70%);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid hsl(210 20% 20%);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: hsl(210 20% 60%);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: hsl(210 20% 60%);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-legal a:hover {
    color: hsl(210 20% 80%);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .mechanism-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .choose-grid,
    .scenarios-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--background);
        flex-direction: column;
        padding: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-actions {
        display: none;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .mechanism-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .author-name,
    .author-position {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .feature-main-card,
    .scenario-card,
    .mechanism-card {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1rem;
    }
}