/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4e6ef2;    /* 主色调 */
    --secondary-color: #ff5a5f;  /* 辅助色 */
    --accent-color: #00c6b6;     /* 强调色 */
    --dark-color: #333333;       /* 深色 */
    --light-color: #f8f9fa;      /* 浅色 */
    --gray-color: #6c757d;       /* 灰色 */
    --white-color: #ffffff;      /* 白色 */
    --success-color: #28a745;    /* 成功色 */
    --warning-color: #ffc107;    /* 警告色 */
    --error-color: #dc3545;      /* 错误色 */
    --text-color: #333333;       /* 文字颜色 */
    --border-radius: 8px;        /* 边框圆角 */
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 盒子阴影 */
    --transition: all 0.3s ease;  /* 过渡效果 */
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: darken(var(--primary-color), 10%);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-description {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    font-size: 1rem;
    margin: 5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: #3a58d4;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(78, 110, 242, 0.1);
    transform: translateY(-2px);
}

/* 页眉样式 */
header {
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo h1 {
    margin: 0;
    font-size: 1.8rem;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 1.5px;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 英雄区块样式 */
.hero {
    padding: 100px 0;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.svg') repeat;
    opacity: 0.1;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    box-shadow: var(--box-shadow);
    border-radius: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--gray-color);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    margin: -5px;
}

/* 特性部分样式 */
.features {
    padding: 100px 0;
    background-color: var(--white-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.feature-icon {
    margin-bottom: 20px;
    font-size: 3rem;
    color: var(--primary-color);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* 使用场景部分样式 */
.use-cases {
    padding: 100px 0;
    background-color: var(--light-color);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.use-case {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.use-case:hover {
    transform: translateY(-10px);
}

.use-case img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.use-case h3 {
    padding: 20px 20px 10px;
    font-size: 1.4rem;
}

.use-case p {
    padding: 0 20px 20px;
    color: var(--gray-color);
}

/* 用户评价部分样式 */
.testimonials {
    padding: 100px 0;
    background-color: var(--white-color);
}

.testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.testimonial {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 30px;
    width: 100%;
    max-width: 350px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.testimonial:hover {
    transform: translateY(-5px);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    color: var(--dark-color);
    position: relative;
    padding-left: 30px;
}

.testimonial-content p::before {
    content: '\201C';
    font-size: 3rem;
    position: absolute;
    left: 0;
    top: -20px;
    color: var(--primary-color);
    opacity: 0.5;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.testimonial-author h4 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.testimonial-author p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* 下载部分样式 */
.download {
    padding: 100px 0;
    background-color: var(--light-color);
}

.download-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.download-btn {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    background-color: var(--dark-color);
    color: var(--white-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.download-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
    color: var(--white-color);
}

.download-btn i {
    font-size: 2rem;
    margin-right: 15px;
}

.download-btn span {
    text-align: left;
}

.download-btn small {
    display: block;
    font-size: 0.7rem;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* CTA部分样式 */
.cta {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-primary {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.cta .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* 页脚样式 */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo h2 {
    color: var(--white-color);
    margin-bottom: 15px;
}

.footer-info p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-links h3 {
    color: var(--white-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--light-color);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-newsletter h3 {
    color: var(--white-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-newsletter p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-newsletter form {
    display: flex;
}

.footer-newsletter input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    outline: none;
}

.footer-newsletter button {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 0 20px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.footer-newsletter button:hover {
    background-color: #3a58d4;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .feature-card, .use-case, .testimonial {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -300px;
        height: 100vh;
        width: 300px;
        background-color: var(--white-color);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: 0.3s;
        z-index: 1001;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 80px 0 0 40px;
    }
    
    nav ul li {
        margin: 0 0 20px 0;
    }
    
    .footer-newsletter form {
        flex-direction: column;
    }
    
    .footer-newsletter input {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }
    
    .footer-newsletter button {
        border-radius: var(--border-radius);
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .download-options {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        width: 100%;
    }
}

/* 图片占位符样式 */
.img-placeholder {
  display: inline-block; /* 或者 block，取决于布局需要 */
  padding: 10px;
  border: 1px dashed #ccc;
  background-color: #f0f0f0;
  color: #888;
  text-align: center;
  font-size: 0.9em;
  min-height: 50px; /* 可以根据需要调整 */
  min-width: 100px; /* 可以根据需要调整 */
  box-sizing: border-box;
  /* 保持和原图片类似的尺寸可能需要更具体的规则 */
  /* 例如： */
  /* max-width: 100%; */
  /* height: auto; */
} 