/* 全局样式 */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --dark-gray: #666;
}

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

html {
    scroll-behavior: smooth;
}

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

/* 导航栏 */
.header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    text-decoration: none !important;
    color: inherit;
    transition: opacity 0.3s;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.logo a:hover,
.logo a:active,
.logo a:focus,
.logo a:visited {
    opacity: 0.8;
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none !important;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    border-bottom: none !important;
    text-decoration: none !important;
}

.nav-links a {
    color: var(--secondary-color);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* 主要内容 */
main {
    margin-top: 70px;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(rgba(25, 25, 25, 0.5), rgba(25, 25, 25, 0.6)), url('/static/images/4.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    margin: 0.5rem;
}

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

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 功能特点 */
.features {
    padding: 4rem 2rem;
    background-color: var(--light-gray);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
    top: 0;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(74, 144, 226, 0.2);
    border-color: rgba(74, 144, 226, 0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: transform 0.4s ease;
}

.feature-card:hover i {
    transform: scale(1.3);
}

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

.feature-card p {
    color: #5F6464;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

/* 关于我们 */
.about {
    padding: 4rem 2rem;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

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

.about-text p {
    font-size: 1.1rem;
    /*color: var(--dark-gray);*/
}

.vision-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.1rem;
}

.vision-content {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

/* 联系方式 */
.contact {
    padding: 4rem 2rem;
    background-color: var(--light-gray);
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: fit-content;
    margin-right: 20px;
    margin-bottom: 10px;
}

.contact-text {
    display: flex;
    align-items: center;
}

.contact-text a.wechat-qr-link {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
}

.contact-text a.wechat-qr-link:hover {
    text-decoration: underline;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0;
}

.fa-weixin {
    color: #09BB07 !important;
}

.contact-item h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.contact-qr {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-qr img {
    max-width: 200px;
    height: auto;
    border-radius: 4px;
}

/* 页脚 */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* 小程序二维码弹窗 */
.qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.qr-modal.show {
    display: flex;
}

.qr-modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.qr-modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.qr-code {
    margin: 1.5rem 0;
    margin-bottom: 0;
}

.qr-code img {
    max-width: 200px;
    height: auto;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-gray);
}

.close-btn:hover {
    color: var(--accent-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        margin-top: 1rem;
    }

    .nav-links a {
        margin: 0 1rem;
    }

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

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

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

    .qr-modal-content {
        width: 85%;
        padding: 1.5rem;
    }

    .qr-code img {
        max-width: 180px;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-item {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .contact-text {
        text-align: center;
    }
}

.packages-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.packages-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.packages-section .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
}

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

.package-card {
    background: white;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.package-icon {
    font-size: 40px;
    color: #007bff;
    margin-bottom: 15px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.package-card h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.5rem;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.package-card p {
    color: #666;
    font-size: 1rem;
    height: 80px;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.6;
}

.package-original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin: 0 0 5px 0;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.package-price {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    margin: 0 0 20px 0;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-purchase {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1rem;
    margin-top: 20px;
    width: 100%;
}

.btn-purchase:hover {
    background-color: #0056b3;
}

/* 支付弹窗样式 */
.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 {
    position: relative;
    background-color: #fefefe;
    margin: 15vh auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .modal-content {
        margin: 20vh auto;
        width: 85%;
        padding: 15px;
    }
}

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

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#qrcode-container {
    margin: 20px auto;
    width: 200px;
    height: 200px;
}

#qrcode-container img {
    width: 100%;
    height: 100%;
} 