* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #006B4F;
    --primary-color-rgb: 0, 107, 79;
    --secondary-color: #004D3A;
    --secondary-color-rgb: 0, 77, 58;
    --accent-color: #00C896;
    --spacing-unit: 1rem;
    --max-width: 1400px;
    /* 卡片布局规范 */
    --card-padding: 2.5rem;
    --card-border-radius: 16px;
    --card-shadow: 0 12px 24px -8px rgba(0,0,0,0.15);
    --card-hover-shadow: 0 24px 48px -12px rgba(0,0,0,0.2);
    --grid-gap: 2rem;
    --transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-duration: 0.3s;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.05), rgba(var(--secondary-color-rgb), 0.05)), radial-gradient(circle at 50% 50%, rgba(0,0,0,0.03), transparent 80%);
    background-attachment: fixed;
}

header {
    background: var(--primary-color); /* 替换渐变背景为纯色 */
    color: white;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
    /* 移除backdrop-filter属性 */
}

body.scrolled header {
    background: var(--primary-color); /* 保持与默认状态一致 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 2);
}

.logo {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.hero {
    height: 100vh;
    background: linear-gradient(rgba(var(--primary-color-rgb), 0.9), rgba(var(--secondary-color-rgb), 0.9));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><linearGradient id="g1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.3"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0.1"/></linearGradient><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="url(%23g1)" stroke-width="1"><animate attributeName="stroke-opacity" values="0.1;0.3;0.1" dur="4s" repeatCount="indefinite"/></path></pattern><pattern id="circuit" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="2" fill="url(%23g1)"/><path d="M50 50 L80 50 M50 50 L50 80" stroke="url(%23g1)" stroke-width="1"><animate attributeName="stroke-opacity" values="0.1;0.3;0.1" dur="3s" repeatCount="indefinite"/></path></pattern></defs><rect width="200" height="200" fill="url(%23grid)"/><rect width="200" height="200" fill="url(%23circuit)"/><circle cx="100" cy="100" r="50" stroke="url(%23g1)" stroke-width="2" fill="none"><animate attributeName="r" values="50;55;50" dur="5s" repeatCount="indefinite"/><animate attributeName="stroke-opacity" values="0.1;0.3;0.1" dur="5s" repeatCount="indefinite"/></circle><path d="M20 100 Q60 20 100 100 T180 100" stroke="url(%23g1)" stroke-width="2" fill="none"><animate attributeName="d" values="M20 100 Q60 20 100 100 T180 100;M20 100 Q60 180 100 100 T180 100;M20 100 Q60 20 100 100 T180 100" dur="10s" repeatCount="indefinite"/></path></svg>');
    background-size: 800px 800px;
    animation: backgroundMove 60s linear infinite;
    transform-origin: center;
    transform: scale(2);
    opacity: 0.2;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0) rotate(0deg) scale(2); }
    100% { transform: translate(0, 0) rotate(360deg) scale(2); }
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    animation: fadeIn 1.2s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 255, 255, 0.1);
    background: linear-gradient(120deg, #ffffff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-button {
    display: inline-block;
    padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 2);
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--card-border-radius);
    font-weight: bold;
    transition: all var(--transition-duration) var(--transition-timing);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.2);
}

.subtitle {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1.2s ease-out 0.3s forwards;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-coming-soon {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.3), rgba(var(--secondary-color-rgb), 0.3));
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    animation: pulse 2s infinite, float 3s ease-in-out infinite;
    position: relative;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.3);
    transform: translateY(0);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@media (max-width: 768px) {
    .app-coming-soon {
        font-size: 1rem;
        padding: 1rem 2rem;
        position: fixed;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
        margin-top: 0;
        white-space: nowrap;
        backdrop-filter: blur(10px);
        border: 2px solid var(--accent-color);
    }
}

.features, .solutions, .about-section, .team-section, .contact-section {
    padding: calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 2);
    max-width: var(--max-width);
    margin: 0 auto calc(var(--spacing-unit) * 3); /* 简化margin */
    position: relative;
    overflow: hidden;
    min-height: 100vh; /* 使用视口单位 */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直居中内容 */
}

/* 移除所有额外padding */
section:not(:first-of-type) {
    padding-top: 0 !important;
}

.contact-section {
    min-height: 100vh; /* 统一高度 */
}

@media (max-width: 768px) {
    .features, .solutions, .about-section, .team-section, .contact-section {
        min-height: auto;
        padding: 4rem 1.5rem;
        justify-content: flex-start; /* 移动端顶部对齐 */
    }
}
.features-grid, .solutions-grid, .values-grid, .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--grid-gap);
    margin: 4rem auto;
    padding: 0 1.5rem;
    perspective: 1000px;

    @media (min-width: 768px) {
        grid-template-columns: repeat(2, 1fr);
    }
    @media (min-width: 1024px) {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card, .value-card, .team-member{
    padding: var(--card-padding);
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.08));
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255,255,255,0.2);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;

    &:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: var(--card-hover-shadow);
        background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.12));
    }
}

.contact-section {
    padding: 8rem 2rem 4rem; /* 保持垂直间距 */
    max-width: var(--max-width); /* 新增 */
    margin: 0 auto; /* 新增 */
}

.solution-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--card-hover-shadow);
}

.solution-card {
    padding: var(--card-padding);
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.08));
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);

    border: 1px solid rgba(255,255,255,0.2);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-duration) var(--transition-timing);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.solution-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.solution-card h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.solution-card p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.solution-card-image {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.solution-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.solution-card:hover .solution-card-image img {
    transform: scale(1.05);
}

.benefits {
    background: rgba(var(--primary-color-rgb), 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.benefits h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.8rem;
}

.benefits li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555;
    font-size: 1rem;
}

.benefits li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
}

@media (max-width: 768px) {
    .solution-card {
        padding: 1.5rem;
    }
    
    .solution-card h2 {
        font-size: 1.5rem;
    }
    
    .solution-card p {
        font-size: 1rem;
    }
    
    .solution-card-image {
        height: 200px;
    }
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02) rotateX(5deg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.feature-card, .value-card, .team-member, .solution-card {
    padding: var(--card-padding);
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.08));
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255,255,255,0.2);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-duration) var(--transition-timing);

    &:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: var(--card-hover-shadow);
        background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.12));
    }
}

.card-content {
    position: relative;
    z-index: 1;
    backdrop-filter: none; /* 确保内容不会被模糊 */
}

.contact {
    padding: 8rem 4rem 4rem;
    max-width: var(--max-width);
    margin: 0 auto;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.contact-form {
    display: grid;
    gap: var(--grid-gap);
    margin-top: 2rem;

    input, textarea {
        padding: 1rem;
        border: 1px solid rgba(var(--primary-color-rgb), 0.2);
        border-radius: 8px;
        background: rgba(255,255,255,0.9);
        transition: all var(--transition-duration) var(--transition-timing);

        &:focus {
            border-color: var(--accent-color);
            box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb), 0.2);
        }
    }

    button {
        justify-self: start;
        margin-top: 1rem;
    }
}


.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.2s forwards;
    
    &::after {
        content: '';
        display: block;
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        margin: 1.5rem auto 0;
        border-radius: 2px;
    }
}

.section-title p {
    font-size: 1.2rem;
    color: #666;
    margin-top: 1rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.features h2,
.solutions h2,
.about-section h2,
.contact-section h2 {
    @extend .section-title;
    letter-spacing: -0.03em;
    
    &::after {
        width: 80px;
        margin-top: 1rem;
    }
}

.contact-item svg {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    fill: var(--primary-color);
}

.contact-info {
    background: rgba(var(--primary-color-rgb), 0.05);
    padding: 2rem;
    border-radius: var(--card-border-radius);
    width: 100%; /* 修正错误宽度 */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 新增垂直居中 */
    height: 100%; /* 填充父容器高度 */
}

.contact-item span {
    flex: 1;
    min-width: 0; /* 新增 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* 防止文字换行 */
}

.form-group {
    margin-bottom: 1.5rem; /* 统一表单项间距 */
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-button {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: var(--card-border-radius);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-duration) var(--transition-timing);
    margin-top: 1rem;
}

.submit-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.2);
}

footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

.about {
    padding: 8rem 2rem 4rem;
    max-width: var(--max-width);
    margin: 0 auto;
    flex: 1;
}

.about-content {
    display: flex;
    gap: 4rem;
    margin-top: 3rem;
}

.about-text {
    flex: 1;
}

.about-image {
    width: 400px;
    height: 400px;
    flex-shrink: 0;
    background: rgba(var(--primary-color-rgb), 0.05);
    border-radius: var(--card-border-radius);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);}

    
body {
    scroll-snap-type: y mandatory;
    overflow-y: overlay;
    scroll-behavior: smooth;
}

/* 优化主要区块吸附设置 */
.features, .solutions, .about-section, .team-section, .contact-section {
    scroll-snap-align: start;
    scroll-snap-stop: always; /* 新增强制停止 */
    min-height: calc(100vh - 80px);
    scroll-margin-top: 80px; /* 精确匹配header高度 */
    
    &::after {
        bottom: -3rem; /* 优化分隔线位置 */
        background: linear-gradient(90deg, 
            transparent 10%,
            rgba(var(--primary-color-rgb), 0.4) 50%,
            transparent 90%);
        animation: lineAppear 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
}


/* 调整移动端吸附强度 */
@media (max-width: 768px) {
    body {
        scroll-snap-type: y mandatory; /* 保持强制吸附 */
    }
    
    .features, .solutions, .about-section, .team-section, .contact-section {
        scroll-margin-top: 60px; /* 匹配移动端header高度 */
        min-height: calc(100vh - 60px);
    }
}

/* 最后一个区块去除分隔线 */
section:last-of-type::after {
    display: none;
}

/* 保持hero全屏效果 */
.hero {
    height: 100vh;
    scroll-snap-align: start;
}

/* 移动端适配 */
@media (max-width: 768px) {
    body {
        scroll-snap-type: y proximity;
    }
    
    .features, .solutions, .about-section, .team-section, .contact-section {
        min-height: calc(100vh - 60px);
        margin-bottom: 2rem;
        
        &::after {
            width: 80%;
            bottom: -1rem;
        }
    }
}

/* 增强分隔线效果 */
.features, .solutions, .about-section, .team-section, .contact-section {
    scroll-snap-align: start;
    min-height: calc(100vh - 100px); /* 增加header高度补偿 */
    scroll-margin-top: 100px; /* 防止header遮挡 */
    margin: 0 auto;
    
    &::after {
        bottom: -4rem; /* 下移分隔线位置 */
        width: 50%;
        height: 2px;
        background: linear-gradient(90deg, 
            transparent, 
            rgba(var(--primary-color-rgb), 0.4),
            transparent);
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
}

/* 增强段落间距 */
section:not(:first-of-type) {
    margin-top: 6rem;
}

/* 调整移动端分隔线 */
@media (max-width: 768px) {
    .features, .solutions, .about-section, .team-section, .contact-section {
        min-height: calc(100vh - 80px);
        scroll-margin-top: 80px;
        
        &::after {
            width: 70%;
            bottom: -2rem;
            height: 1px;
        }
    }
    
    section:not(:first-of-type) {
        margin-top: 4rem;
    }
}
