:root {
    --primary-color: #2ecc71;
    --secondary-color: #27ae60;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --mobile-width: 480px;
    --tablet-width: 768px;
    --desktop-width: 1024px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* 导航栏样式 */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 添加菜单图标默认样式 */
.menu-toggle {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-right: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
}

.login-btn {
    background: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
}

/* 主要内容样式 */
.hero {
    position: relative;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
}

.wave {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
}

.wave1 {
    bottom: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2400 200'%3E%3Cpath d='M-200,100 C0,180 200,20 400,100 C600,180 800,20 1000,100 C1200,180 1400,20 1600,100 C1800,180 2000,20 2200,100 C2400,180 2600,20 2800,100' fill='rgba(255,255,255,0.3)'/%3E%3C/svg%3E");
    background-size: 2400px 100%;
    background-repeat: repeat-x;
    animation: wave-animation 15s linear infinite;
}

.wave2 {
    bottom: 30px;
    height: 50px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2400 200'%3E%3Cpath d='M-200,100 C0,150 200,50 400,100 C600,150 800,50 1000,100 C1200,150 1400,50 1600,100 C1800,150 2000,50 2200,100 C2400,150 2600,50 2800,100' fill='rgba(255,255,255,0.2)'/%3E%3C/svg%3E");
    background-size: 2400px 100%;
    background-repeat: repeat-x;
    animation: wave-animation 20s linear infinite;
    animation-delay: -0.5s;
}

.wave3 {
    bottom: 60px;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2400 200'%3E%3Cpath d='M-200,100 C0,130 200,70 400,100 C600,130 800,70 1000,100 C1200,130 1400,70 1600,100 C1800,130 2000,70 2200,100 C2400,130 2600,70 2800,100' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E");
    background-size: 2400px 100%;
    background-repeat: repeat-x;
    animation: wave-animation 25s linear infinite;
    animation-delay: -1s;
}

@keyframes wave-animation {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-2400px);
    }
}

/* 确保内容在波浪上方 */
.hero h1,
.hero p,
.hero .cta-buttons {
    position: relative;
    z-index: 2;
    color: white;
}

/* 调整现有的 hero 样式 */
.hero {
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.cta-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.primary-btn, .secondary-btn {
    padding: 0.8rem 2rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.primary-btn {
    background: white;
    color: var(--primary-color);
}

.secondary-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
}

/* 功能卡片样式 */
.features {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.feature-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.feature-card button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    margin-top: 1rem;
    cursor: pointer;
}

/* 页脚样式 */
footer {
    background: var(--light-bg);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section ul {
    list-style: none;
    margin-top: 1rem;
}

.footer-section a {
    text-decoration: none;
    color: var(--text-color);
    line-height: 2;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

/* 导航栏响应式调整 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        margin-right: 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }

    .login-btn {
        width: 100%;
        display: block;
        text-align: center;
    }
}

/* Hero 区域响应式调整 */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 1rem 3rem;
        min-height: 400px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .primary-btn, .secondary-btn {
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* 功能卡片响应式调整 */
@media (max-width: 768px) {
    .features {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        margin: 2rem auto;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

/* 页脚响应式调整 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 2rem;
    }
}

/* 平板设备优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}




/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    position: relative;
    text-align: center;
}

.close {
    position: absolute;
    right: 10px;
    top: 5px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.qrcode-container {
    margin: 20px 0;
}

.qrcode-container img {
    max-width: 200px;
    height: auto;
}

h2 {
    margin: 0;
    color: #333;
    font-size: 18px;
}
 