:root {
    --primary-color: #2C7873;  /* 主色调-青绿 */
    --secondary-color: #6FB3B8; /* 辅助色-浅蓝 */
    --background-color: #F7F9FB; /* 背景色 */
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: var(--background-color);
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    padding: 20px 0;
}

footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 0.9em;
    margin-top: auto;
}

header {
    background: white;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* 新增定位上下文 */
}

.company-name {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
    white-space: nowrap;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .company-name {
        font-size: 1rem;
        left: 55%;
    }
    nav {
        gap: 1rem;
    }
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    background: rgba(44,120,115,0.1);
}

nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 2px;
    background: var(--secondary-color);
}

.logo-container {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 1rem;
    text-align: center;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 4rem 1rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(44,120,115,0.2);
}

.feature-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 25%,
        rgba(111,179,184,0.1) 25%,
        rgba(111,179,184,0.1) 50%,
        transparent 50%,
        transparent 75%,
        rgba(111,179,184,0.1) 75%
    );
    transform: rotate(45deg);
    z-index: 0;
}

footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 0.9em;
}

/* 图片占位动画 */
@keyframes placeholder-glow {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

.app-preview {
    width: 320px;
    height: 640px;
    margin: 2rem auto;
    border-radius: 25px;
    background: 
        linear-gradient(90deg, 
            #f0f0f0 25%, 
            #e0e0e0 50%, 
            #f0f0f0 75%
        );
    background-size: 200% 100%;
    animation: placeholder-glow 1.5s infinite linear;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.app-preview::after {
    content: "待替换图片";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-color);
    font-size: 1.2em;
    opacity: 0.8;
}

/* 产品页样式 */
.product-hero {
    background: var(--primary-color);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
}

.feature-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

/* 产品页增强样式 */
.feature-item {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    background: linear-gradient(145deg, white, #f8fafb);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(111,179,184,0.1);
    border-radius: 10px;
}

/* 关于我们页优化 */
.timeline-event {
    position: relative;
    padding: 2rem;
    margin-bottom: 3rem;
}

.timeline-event::before {
    content: "";
    position: absolute;
    left: -2.3rem;
    top: 1rem;
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
}

.partner-logos {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.partner-logos img {
    height: 60px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

/* 关于我们页样式 */
.timeline {
    border-left: 3px solid var(--secondary-color);
    padding-left: 2rem;
    margin: 2rem auto;
    max-width: 800px;
}

.timeline-event {
    position: relative;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
}

.app-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
    overflow-x: auto;
}

.app-gallery img {
    width: 100%;
    height: 100%; /* 改为固定高度 */
    object-fit: cover; /* 填充容器 */
    aspect-ratio: 9/16;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    background: white;
}

.app-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0; /* 去除间隙 */
    margin: 2rem auto;
    padding: 0;
    overflow: hidden; /* 隐藏溢出部分 */
}

/* 联系表单样式 */
.modern-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.dual-input {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s;
}

.submit-btn:hover {
    transform: translateX(10px);
}

/* 移除自然拼读图标样式 */
.feature-item {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    /* 删除原渐变背景 */
}

/* 新增语音输入样式 */
.step-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step-icon i {
    color: white;
    font-size: 1.5rem;
}

.step {
    transition: transform 0.3s;
}

.step:hover {
    transform: translateY(-5px);
}

/* 联系页面增强样式 */
.contact-hero {
    background: linear-gradient(135deg, var(--primary-color), #2c7873dd);
    color: white;
    text-align: center;
    padding: 4rem 1rem;
    margin-bottom: 3rem;
}

.contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 0 1rem;
}

.contact-methods {
    display: grid;
    gap: 1.5rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.card-hover:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.card-icon i {
    color: white;
    font-size: 1.5rem;
}

.contact-channels a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    padding: 0.8rem;
    border-radius: 8px;
    transition: background 0.3s;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
}