/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 添加字体规范系统 */
/* 字体系统 - 确保跨平台一致性 */
:root {
    --spacing-unit: clamp(8px, 1vw, 20px);
    --content-width: clamp(320px, 90%, 1600px);
    --hero-padding: clamp(40px, 5vh, 120px);
    --dashboard-size: clamp(180px, 20vw, 350px);
    
    /* 响应式字体大小变量 */
    --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);     /* 12-14px */
    --font-size-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);       /* 14-16px */
    --font-size-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);       /* 16-18px */
    --font-size-md: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);      /* 18-20px */
    --font-size-lg: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);       /* 20-24px */
    --font-size-xl: clamp(1.5rem, 1.3rem + 1vw, 1.875rem);         /* 24-30px */
    --font-size-2xl: clamp(1.875rem, 1.6rem + 1.375vw, 2.25rem);   /* 30-36px */
    --font-size-3xl: clamp(2.25rem, 1.9rem + 1.75vw, 3rem);        /* 36-48px */
    --font-size-4xl: clamp(3rem, 2.4rem + 3vw, 4rem);              /* 48-64px */
    
    /* 更新三色配色方案 - 减少青色，增强蓝紫色 */
    --primary-color: #4B89DC;
    --primary-dark: #3A70BD;
    --primary-light: #e6ecff;
    --primary-hover: #3A70BD;
    --secondary-color: #f8f9fa;
    --text-color: #212529;
    --light-text: #6c757d;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    
    /* 添加新的紫色和青色变量 */
    --purple-color: #9B7AD5;
    --purple-dark: #7E68C1;
    --purple-light: rgba(155, 122, 213, 0.1);
    --teal-color: #5BC0BE;
    --teal-dark: #41A3A0;
    --teal-light: rgba(91, 192, 190, 0.05);
    
    /* Solution dropdown colors */
    --work-color: #3a86ff;
    --home-color: #38b000;
    --other-color: #ff9f1c;
    --error-color: #e63946;
    --done-color: #38b000;
    
    /* Menu colors */
    --menu-gradient-start: #f3f6ff;
    --menu-gradient-end: #ffffff;
    --menu-hover-color: #f0f5ff;
    --menu-active-color: #e6ecff;
    --menu-border-color: rgba(75, 137, 220, 0.1);
    --menu-shadow: 0 10px 30px rgba(75, 137, 220, 0.1);
    --menu-active-shadow: 0 3px 8px rgba(75, 137, 220, 0.2);
    --menu-active-border: rgba(75, 137, 220, 0.3);
    
    /* 更新统一背景变量 */
    --section-bg-color: #f5f8ff; /* 更新为淡蓝色背景 */
    --section-grid-color: rgba(75, 137, 220, 0.03);
    --section-gradient-color: rgba(75, 137, 220, 0.04);
    
    /* 字体变量 */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    --font-mono: 'Roboto Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

body {
    font-family: var(--font-sans);
    font-weight: var(--font-weight-regular);
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'kern';
    background-color: #f5f8ff; /* 更新为淡蓝色背景色 */
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(155, 122, 213, 0.03) 0%, transparent 8%),
        radial-gradient(circle at 80% 70%, rgba(75, 137, 220, 0.04) 0%, transparent 10%),
        radial-gradient(circle at 10% 90%, rgba(155, 122, 213, 0.02) 0%, transparent 5%),
        radial-gradient(circle at 90% 10%, rgba(75, 137, 220, 0.03) 0%, transparent 7%),
        radial-gradient(circle, rgba(75, 137, 220, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 30px 30px;
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -1;
    pointer-events: none;
}

.content-section .feature-grid {
    display: flex;
    gap:16px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 0px;
    margin: auto;
    max-width: none;
    flex-wrap: wrap;
}

/* 统一定义标题字体样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    letter-spacing: -0.015em;
    line-height: 1.2;
}

h1 {
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-4xl);
    background-image: linear-gradient(45deg, #333 60%, var(--primary-color) 100%);
    background-size: 100%;
    background-repeat: repeat;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; 
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
    position: relative;
}

h2 {
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-3xl);
}

h3 {
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-2xl);
}

h4 {
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-xl);
}

h5 {
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-lg);
}

h6 {
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-md);
}

/* 正文文本元素 */
p, li, blockquote, label, input, textarea, select {
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
}

/* 强调文本 */
strong, b {
    font-weight: var(--font-weight-semibold);
}

/* 按钮和输入元素 */
button, .button, .btn, input, textarea, select {
    font-family: var(--font-sans);
    font-weight: var(--font-weight-medium);
}

/* 紫色文本渐变效果 */
.purple-text {
    background-image: linear-gradient(45deg, #4B89DC 0%, #6B5CE7 50%, #8B4FDF 100%);
    background-size: 100%;
    background-repeat: repeat;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; 
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
}

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

/* 页面入场动画 */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 在 hero 部分的 h1 特殊样式 */
.hero-content h1 {
    font-size: var(--font-size-4xl);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: var(--font-size-md);
    color: var(--light-text);
    margin-bottom: 2rem;
    max-width: 650px;
    text-align: center;
}

.hero-subtitle {
    font-size: var(--font-size-base);
    color: #777;
    margin-bottom: 30px;
    max-width: 80%;
    line-height: 1.6;
}

.user-avatars {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.avatars-row {
    display: flex;
    margin-bottom: 10px;
    transform: translateX(-8px);
}

.avatars-row .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -8px;
    background-color: #f0f0f0;
    transition: all 0.3s ease;
}

.avatars-row .avatar:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.user-count {
    font-size: var(--font-size-xs);
    color: #666;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: var(--font-size-md);
    color: #444;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: var(--font-size-sm);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.no-credit {
    font-size: var(--font-size-xs);
    color: #888;
    margin-bottom: 50px;
}

/* 图标样式 */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    background-color: var(--primary-light);
    border-radius: 50%;
    padding: 5px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.icon use {
    width: 100%;
    height: 100%;
    fill: currentColor;
    transition: all 0.3s ease;
}

.icon:hover {
    transform: scale(1.1);
    background-color: var(--primary-color);
    color: white;
}

/* 社交媒体图标 */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    position: relative;
}

.social-icons::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: #ddd;
}

.social-icons::after {
    content: 'Connect with us';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--font-size-xs);
    color: #888;
    white-space: nowrap;
}

/* 英雄区图片 */
.hero-images {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    position: relative;
    width: 100%;
}

.dashboard-preview {
    width: var(--dashboard-size);
    height: var(--dashboard-size);
    border-radius: 20px;
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: absolute;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dashboard-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.left-top {
    top: 0;
    left: calc(50% - var(--dashboard-size) - 40px);
    transform: rotate(-10deg);
}

.right-top {
    top: 0;
    right: calc(50% - var(--dashboard-size) - 40px);
    transform: rotate(10deg);
}

.left-bottom {
    bottom: 0;
    left: calc(50% - var(--dashboard-size) - 40px);
    transform: rotate(10deg);
}

.right-bottom {
    bottom: 0;
    right: calc(50% - var(--dashboard-size) - 40px);
    transform: rotate(-10deg);
}

.dashboard-preview:hover {
    transform: translateY(-10px) rotate(0);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* 背景元素 */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(155, 122, 213, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 85% 85%, rgba(75, 137, 220, 0.1) 0%, transparent 30%);
    z-index: -1;
    opacity: 0.7;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-image: linear-gradient(to top, rgba(245, 248, 255, 1), transparent);
    z-index: -1;
}

footer {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: var(--font-size-xs);
    background-color: #f8f9fa;
    margin-top: 100px;
}

/* 响应式布局调整 */
@media (min-width: 2560px) {
    :root {
        --dashboard-size: clamp(300px, 25vw, 450px);
        --hero-padding: clamp(60px, 8vh, 180px);
        --content-width: 2000px;
    }
    
    .hero-content {
        max-width: 1200px;
    }
    
    .left-top {
        top: 50px;
        left: calc(50% - var(--dashboard-size) - 100px);
    }
    
    .right-top {
        top: 50px;
        right: calc(50% - var(--dashboard-size) - 100px);
    }
    
    .left-bottom {
        bottom: 50px;
        left: calc(50% - var(--dashboard-size) - 100px);
    }
    
    .right-bottom {
        bottom: 50px;
        right: calc(50% - var(--dashboard-size) - 100px);
    }
}

@media (min-width: 1700px) and (max-width: 2559px) {
    :root {
        --dashboard-size: clamp(250px, 20vw, 400px);
        --hero-padding: clamp(50px, 6vh, 150px);
        --content-width: 1700px;
    }
}

@media (max-width: 1699px) and (min-width: 1441px) {
    :root {
        --dashboard-size: clamp(220px, 18vw, 350px);
        --hero-padding: clamp(40px, 5vh, 120px);
        --content-width: 1400px;
    }
}

@media (max-width: 1440px) {
    :root {
        --dashboard-size: clamp(180px, 15vw, 300px);
    }
    
    .left-top {
        left: calc(50% - var(--dashboard-size) - 20px);
    }
    
    .right-top {
        right: calc(50% - var(--dashboard-size) - 20px);
    }
    
    .left-bottom {
        left: calc(50% - var(--dashboard-size) - 20px);
    }
    
    .right-bottom {
        right: calc(50% - var(--dashboard-size) - 20px);
    }
}

@media (max-width: 1200px) {
    :root {
        --dashboard-size: clamp(150px, 14vw, 250px);
    }
    
    .left-top {
        left: calc(50% - var(--dashboard-size) - 10px);
    }
    
    .right-top {
        right: calc(50% - var(--dashboard-size) - 10px);
    }
    
    .left-bottom {
        left: calc(50% - var(--dashboard-size) - 10px);
    }
    
    .right-bottom {
        right: calc(50% - var(--dashboard-size) - 10px);
    }
}

@media (max-width: 992px) {
    :root {
        --dashboard-size: clamp(120px, 13vw, 200px);
        --hero-padding: clamp(30px, 4vh, 80px);
        --content-width: 90%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding-bottom: 50px;
    }
    
    :root {
        --dashboard-size: clamp(100px, 12vw, 180px);
        --hero-padding: 50px;
    }
    
    .dashboard-preview {
        transform: none;
    }
    
    .dashboard-preview:hover {
        transform: translateY(-5px);
    }
    
    .left-top {
        left: 5%;
        top: 20px;
    }
    
    .right-top {
        right: 5%;
        top: 20px;
    }
    
    .left-bottom {
        left: 5%;
        bottom: 20px;
    }
    
    .right-bottom {
        right: 5%;
        bottom: 20px;
    }
    
    .center-logo {
        margin: 60px 0;
    }
}

@media (max-width: 480px) {
    :root {
        --dashboard-size: 110px;
    }
    
    .dashboard-preview {
        border-radius: 12px;
    }
    
    .left-top, .right-top {
        top: 10px;
    }
    
    .left-bottom, .right-bottom {
        bottom: 10px;
    }
    
    .center-logo {
        width: 140px;
        height: 140px;
    }
    
    .hero-content {
        padding: 0 10px;
    }
}

@media (max-width: 360px) {
    :root {
        --dashboard-size: 110px;
    }
    
    .dashboard-preview {
        max-width: 110px;
    }
    
    .left-top {
        left: 1%;
    }
    
    .right-top {
        right: 1%;
    }
    
    .left-bottom {
        left: 1%;
    }
    
    .right-bottom {
        right: 1%;
    }
}

/* 等宽字体元素 */
code, pre, .monospace {
    font-family: var(--font-mono);
    font-weight: var(--font-weight-regular);
}
