/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a90e2;
    --secondary-color: #357abd;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s;
}

/* 移动端菜单 */
.mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 20px;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu a {
    display: block;
    padding: 15px 0;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* 主横幅 */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 150px 20px 100px;
    text-align: center;
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-button {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 15px 40px;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-weight: bold;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 功能介绍 */
.features {
    padding: 60px 20px;
    background: var(--white);
}

.features h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--light-text);
    font-size: 0.95rem;
}

/* 关于我们 */
.about {
    padding: 60px 20px;
    background: var(--bg-color);
}

.about h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.about p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--light-text);
    line-height: 1.8;
}

.about-image {
    max-width: 800px;
    margin: 0 auto;
}

.placeholder {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    height: 300px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
}

/* 首页图片 */
.home-image {
    padding: 0;
    background: var(--white);
    width: 100%;
    overflow: hidden;
}

.home-image-container {
    width: 100%;
    margin: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.home-image-content {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin: 0 auto;
    object-fit: contain;
}

/* 联系我们 */
.contact {
    padding: 60px 20px;
    background: var(--white);
    text-align: center;
}

.contact h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem;
}

.qrcode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    width: 100%;
    max-width: 100%;
}

.qrcode-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.qrcode-text {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* 页脚 */
footer {
    background: var(--text-color);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
}

footer p {
    opacity: 0.8;
}

/* 响应式设计 */
@media screen and (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.5rem;
    }

    .features h2,
    .about h2,
    .contact h2 {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 767px) {
    .hero {
        padding: 120px 20px 80px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .features {
        padding: 40px 20px;
    }

    .about,
    .contact {
        padding: 40px 20px;
    }

    .feature-card {
        padding: 20px;
    }

    .placeholder {
        height: 200px;
        font-size: 1.2rem;
    }
}

/* 小屏设备优化 */
@media screen and (max-width: 320px) {
    .logo {
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 1.2rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .cta-button,
    .contact-form button {
        min-height: 48px;
        min-width: 48px;
    }
}