/* CSS变量定义 - 基于李简单软件配色 */
:root {
    --main-green: #5A9279;
    --light-green: #7FA893;
    --bg-green: #E8F0ED;
    --dark-green: #4A7A65;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --text-primary: #2C3E3A;
    --text-secondary: #5F6F6A;
    --border-color: #D0E0D8;
    --shadow: 0 2px 12px rgba(90, 146, 121, 0.15);
    --shadow-hover: 0 6px 20px rgba(90, 146, 121, 0.25);
    --card-shadow: 0 4px 16px rgba(90, 146, 121, 0.12);
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(to bottom, var(--bg-green), var(--white));
    min-height: 100vh;
}

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

/* 头部样式 */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.brand h1 {
    font-size: 32px;
    color: var(--main-green);
    font-weight: bold;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

.cta-button {
    background-color: var(--main-green);
    color: var(--white);
    border: none;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(90, 146, 121, 0.3);
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background-color: var(--dark-green);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* 侧边锚点导航 */
.anchor-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.anchor-link {
    padding: 10px 15px;
    background-color: var(--white);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.anchor-link:hover,
.anchor-link.active {
    background-color: var(--main-green);
    color: var(--white);
}

/* 通用区块样式 */
.section {
    padding: 60px 0;
}

.section:nth-child(even) {
    background-color: transparent;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--main-green);
    border-radius: 2px;
}

/* 产品简介区 */
.intro-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.intro-text {
    flex: 1;
}

.intro-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.intro-text strong {
    color: var(--main-green);
}

.intro-image {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    text-align: center;
}

.mockup-screen {
    width: 200px;
    height: 400px;
    background: linear-gradient(135deg, var(--light-green), var(--main-green));
    border-radius: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    box-shadow: var(--card-shadow);
    margin-bottom: 15px;
    border: 8px solid var(--white);
}

.mockup-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 核心用途区 */
.purpose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.purpose-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.purpose-card:hover {
    border-color: var(--main-green);
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.purpose-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.purpose-card h3 {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.purpose-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* 核心功能区 */
.feature-module {
    background-color: var(--white);
    border-radius: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.feature-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: var(--bg-green);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.feature-header:hover {
    background-color: var(--light-green);
}

.feature-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    font-size: 28px;
}

.feature-title h3 {
    font-size: 20px;
    font-weight: bold;
    color: var(--main-green);
}

.toggle-icon {
    font-size: 24px;
    font-weight: bold;
    color: var(--main-green);
    transition: transform 0.3s ease;
}

.feature-header.collapsed .toggle-icon {
    transform: rotate(180deg);
}

.feature-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.feature-content.active {
    max-height: 2000px;
    padding: 25px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.feature-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--main-green);
    font-size: 20px;
}

.feature-list strong {
    color: var(--text-primary);
    font-weight: bold;
}

.highlight {
    color: var(--main-green);
    font-weight: bold;
}

/* 套餐展示区 */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.pricing-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    position: relative;
}

.pricing-card:hover {
    border-color: var(--main-green);
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.pricing-card.recommended {
    border-color: var(--main-green);
    border-width: 3px;
}

.recommended-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background-color: var(--main-green);
    color: var(--white);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.pricing-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--bg-green);
}

.pricing-header h3 {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.currency {
    font-size: 20px;
    color: var(--main-green);
}

.amount {
    font-size: 42px;
    font-weight: bold;
    color: var(--main-green);
}

.period {
    font-size: 16px;
    color: var(--text-secondary);
}

.pricing-features {
    margin-bottom: 25px;
}

.member-count {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.pricing-features ul {
    list-style: none;
}

.pricing-features li {
    font-size: 14px;
    line-height: 2;
    color: var(--text-secondary);
}

.pricing-button {
    width: 100%;
    padding: 12px;
    background-color: var(--main-green);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pricing-button:hover {
    background-color: var(--dark-green);
    box-shadow: var(--shadow-hover);
}

/* 联系我们区 */
.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
}

.qr-code-container {
    text-align: center;
}

.qr-code {
    width: 200px;
    height: 200px;
    background-color: var(--white);
    border: 3px solid var(--main-green);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: var(--card-shadow);
}

.qr-placeholder {
    font-size: 80px;
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
}

.qr-text {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.qr-hint {
    font-size: 14px;
    color: var(--text-secondary);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item h4 {
    font-size: 18px;
    font-weight: bold;
    color: var(--main-green);
    margin-bottom: 10px;
}

.contact-item p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* 页脚样式 */
.footer {
    background-color: var(--bg-green);
    padding: 30px 0;
    text-align: center;
}

.footer-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

/* 响应式设计 - 平板 */
@media (max-width: 1024px) {
    .anchor-nav {
        display: none;
    }
    
    .intro-content {
        flex-direction: column;
    }
    
    .intro-image {
        flex: 0 0 auto;
    }
    
    .purpose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }
    
    .brand h1 {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .cta-button {
        width: 100%;
        padding: 12px 20px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 22px;
        margin-bottom: 30px;
    }
    
    .intro-text p {
        font-size: 15px;
    }
    
    .mockup-screen {
        width: 150px;
        height: 300px;
        font-size: 60px;
    }
    
    .purpose-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .purpose-card {
        padding: 20px;
    }
    
    .purpose-icon {
        font-size: 40px;
    }
    
    .purpose-card h3 {
        font-size: 16px;
    }
    
    .feature-header {
        padding: 15px 20px;
    }
    
    .feature-icon {
        font-size: 24px;
    }
    
    .feature-title h3 {
        font-size: 16px;
    }
    
    .feature-content.active {
        padding: 20px;
    }
    
    .feature-list li {
        font-size: 14px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pricing-card {
        padding: 25px;
    }
    
    .contact-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .qr-code {
        width: 180px;
        height: 180px;
    }
    
    .qr-placeholder {
        font-size: 70px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .brand h1 {
        font-size: 20px;
    }
    
    .subtitle {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .purpose-card h3 {
        font-size: 15px;
    }
    
    .feature-title h3 {
        font-size: 15px;
    }
    
    .pricing-header h3 {
        font-size: 20px;
    }
    
    .amount {
        font-size: 36px;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 打印样式优化 */
@media print {
    .header,
    .anchor-nav,
    .footer {
        display: none;
    }
    
    .section {
        page-break-inside: avoid;
    }
}
