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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background-color: #f8fafc;
}

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

/* 头部区域样式 */
.hero-section {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    background-image: url('../images/hero_background.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.8);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.main-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.description {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* 主内容区域 */
.main-content {
    padding: 60px 0;
}

/* 主内容区自适应 */
.main-responsive {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.2rem;
    color: #64748b;
}

/* 新增的树状布局 */
.tree-layout {
    display: flex;
    flex-direction: column;
    gap: 80px;
    align-items: center;
}

/* 树状图自适应 */
.tree-responsive {
    flex-direction: row;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}
@media (max-width: 900px) {
    .tree-responsive {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }
}

.tree-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.node-parent {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    margin-bottom: 40px; /* Space for lines */
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.node-parent:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.node-parent::after {
    content: '';
    position: absolute;
    bottom: -30px; /* Position at the bottom center */
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background-color: #64748b;
}

.platform-large-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.node-parent h3 {
    font-size: 1.5rem;
    color: #2563eb;
}

.node-children {
    display: flex;
    justify-content: center;
    gap: 60px; /* Space between child nodes */
    position: relative;
    padding-top: 20px; /* Space for lines */
}

.node-children::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #64748b;
}

.child-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.line-vertical {
    width: 2px;
    height: 20px; /* Length of vertical line from horizontal bar */
    background-color: #64748b;
    margin-bottom: 10px;
}

.line-diagonal {
    position: absolute;
    width: 2px;
    height: 40px; /* Length of diagonal line */
    background-color: #64748b;
    top: -20px; /* Position relative to node-children top */
    transform-origin: bottom;
}

.line-diagonal.left {
    left: 50%;
    transform: translateX(-50%) rotate(-45deg);
}

.line-diagonal.right {
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
}

/* 销售模块美化与自适应 */
.sale-section {
    margin: 80px auto 0;
    max-width: 1200px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    padding: 50px 30px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
}

.sale-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 50%, #7c3aed 100%);
}

.sale-title {
    text-align: center;
    font-size: 2.6rem;
    background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 50px;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
}

.sale-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
    border-radius: 2px;
}

.sale-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.sale-intro p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.7;
    font-weight: 500;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 20px 25px;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.sale-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 0 20px;
    margin-bottom: 40px;
}

.sale-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sale-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #10b981 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.sale-card:hover::before {
    transform: scaleX(1);
}

.sale-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.2);
}

/* 折扣标签 */
.sale-card::after {
    content: '8折';
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 0 20px 0 20px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    z-index: 2;
}

.sale-card h3 {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.sale-features {
    margin: 20px 0;
    text-align: left;
    flex: 1;
    padding: 0 10px;
}

.feature-item {
    color: #374151;
    font-size: 0.95rem;
    margin: 12px 0;
    padding: 8px 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding-left: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
    transform: translateX(5px);
}

.feature-item::before {
    content: '•';
    color: #2563eb;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 8px;
}

/* 价格区域 */
.sale-price-section {
    margin: 25px 0;
    padding: 28px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.sale-price-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #10b981 100%);
}

.sale-old {
    font-size: 1.5rem;
    color: #475569;
    text-decoration: line-through;
    margin-bottom: 15px;
    position: relative;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sale-old::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #94a3b8;
    border-radius: 2px;
}

.sale-old-label {
    font-size: 1.8rem;
    color: #64748b;
    font-weight: 700;
    margin-right: 10px;
}

.sale-discount {
    color: #dc2626;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 18px;
    text-align: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: 12px;
    border: 1px solid #fecaca;
    display: inline-block;
    box-shadow: 0 3px 12px rgba(220, 38, 38, 0.15);
}

.sale-price {
    color: #059669;
    font-size: 2.4rem;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(5, 150, 105, 0.1);
    text-align: center;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sale-price-label {
    font-size: 2rem;
    color: #059669;
    font-weight: 700;
    margin-right: 10px;
}

.sale-card-combo {
    background: linear-gradient(145deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    position: relative;
}

.sale-card-combo::after {
    content: '推荐';
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 0 20px 0 20px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    z-index: 2;
}

.sale-card-combo h3 {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sale-note {
    margin-top: 30px;
    color: #dc2626;
    text-align: center;
    font-size: 1rem;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: 12px;
    padding: 16px 20px;
    font-weight: 500;
    border: 1px solid #fecaca;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.sale-note::before {
    content: '⚠️';
    margin-right: 8px;
}

@media (max-width: 768px) {
    .sale-section {
        margin: 60px 15px 0;
        padding: 30px 20px;
        border-radius: 20px;
    }

    .sale-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    
    .sale-intro {
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .sale-intro p {
        font-size: 1rem;
        padding: 18px 20px;
        border-radius: 14px;
    }

    .sale-cards {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 10px;
    }
    
    .sale-card {
        padding: 30px 20px;
        min-height: 450px;
    }
    
    .sale-card::after {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .sale-card-combo::after {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .sale-price-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .sale-price {
        font-size: 1.8rem;
    }
    
    .sale-old-label {
        font-size: 1.4rem;
    }
    
    .sale-price-label {
        font-size: 1.6rem;
    }
    
    .feature-item {
        font-size: 0.9rem;
        margin: 10px 0;
        padding: 6px 10px;
    }
    
    .buy-btn {
        padding: 14px 32px;
        font-size: 1.1rem;
    }
    
    .qr-list {
        gap: 25px;
        flex-direction: column;
    }
    
    .qr-img {
        width: 120px;
        height: 120px;
    }
}

/* 教程按钮样式 */
.tutorial-button {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    text-align: left;
    min-width: 280px; /* Ensure buttons have a minimum width */
}

.tutorial-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-right: 15px;
}

.platform-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.action-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.button-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
}

.button-content p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
}

.direct-links {
    margin-top: 80px;
    text-align: center;
}

.direct-links h3 {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 30px;
}

.button-grid-small {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.button-grid-small .tutorial-button {
    min-width: 250px;
}

/* 页脚样式 */
.footer {
    background: #1e293b;
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
}

.footer p {
    margin-bottom: 10px;
}

.footer a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #93c5fd;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .node-children {
        flex-direction: column;
        gap: 20px;
    }

    .node-children::before {
        display: none;
    }

    .child-link {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
    }

    .line-vertical {
        width: 20px;
        height: 2px;
        margin-right: 10px;
        margin-bottom: 0;
    }

    .line-diagonal {
        display: none; /* Hide diagonal lines on smaller screens */
    }

    .node-parent::after {
        height: 40px;
        bottom: -40px;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }

    .source-box {
        min-width: 150px;
    }

    .platform-large-icon {
        width: 60px;
        height: 60px;
    }

    .source-box h3 {
        font-size: 1.3rem;
    }

    .tutorial-button {
        min-width: unset;
        width: 100%;
    }

    .button-grid-small .tutorial-button {
        min-width: unset;
        width: 100%;
    }

    .tutorial-content {
        flex-direction: column;
    }
    
    .tutorial-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .tutorial-main {
        padding: 20px;
    }
    
    .step-content {
        min-width: unset; /* Remove fixed width on smaller screens */
    }

    .step-content h2 {
        font-size: 1.5rem;
    }
    
    .step-content p,
    .step-content li {
        font-size: 1rem;
    }
}

/* 手机端优化 */
@media (max-width: 600px) {
    .main-responsive {
        padding: 0 6px 30px;
    }
    .sale-section {
        padding: 18px 4px 16px;
        margin-top: 30px;
    }
    .sale-title {
        font-size: 1.3rem;
        margin-bottom: 16px;
    }
    .sale-cards {
        gap: 12px;
    }
    .sale-card {
        min-width: 140px;
        max-width: 100%;
        padding: 14px 6px;
        font-size: 0.95rem;
    }
    .sale-card h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    .sale-card::after {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    .sale-price-section {
        padding: 12px;
        margin: 15px 0;
    }
    .sale-price {
        font-size: 1.5rem;
    }
    .sale-old {
        font-size: 0.9rem;
    }
    .sale-discount {
        font-size: 1rem;
    }
    .buy-btn {
        padding: 8px 18px;
        font-size: 0.98rem;
    }
    .buy-modal-content {
        padding: 18px 6px 10px;
        min-width: 180px;
    }
    .qr-list {
        gap: 12px;
    }
    .qr-img {
        width: 80px;
        height: 80px;
    }
    .sale-note {
        font-size: 0.9rem;
        padding: 7px 0;
    }
    .tree-layout {
        gap: 30px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .platform-large-icon {
        width: 50px;
        height: 50px;
    }
    
    .source-box h3 {
        font-size: 1.2rem;
    }
    
    .tutorial-button {
        padding: 15px;
    }
    
    .button-content h3 {
        font-size: 1.1rem;
    }
    
    .button-content p {
        font-size: 0.8rem;
    }
}

/* 教程页面样式 */
.tutorial-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.tutorial-header {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.tutorial-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.tutorial-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.tutorial-content {
    flex: 1;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tutorial-sidebar {
    width: 300px;
    background: white;
    border-right: 1px solid #e2e8f0;
    padding: 30px 0;
}

.progress-bar {
    margin: 0 30px 30px;
}

.progress-bar h3 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 15px;
}

.progress-track {
    background: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    width: 270px;
}

.progress-fill {
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
    height: 100%;
    transition: width 0.3s ease;
}

.step-list {
    list-style: none;
    padding: 0 30px;
}

.step-item {
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-item:hover {
    background: #f8fafc;
}

.step-item.active {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    padding-left: 26px;
}

.step-item.completed {
    color: #10b981;
}

.step-number {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #e2e8f0;
    color: #64748b;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 10px;
}

.step-item.active .step-number {
    background: #2563eb;
    color: white;
}

.step-item.completed .step-number {
    background: #10b981;
    color: white;
}

.tutorial-main {
    flex: 1;
    padding: 30px;
    background: white;
}

.step-content {
    min-width: 860px; /* Fixed width for desktop */
}

.step-content h2 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 20px;
}

.step-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 20px;
}

.step-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.step-content li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.step-content .highlight {
    background: #fef3c7;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.step-content .warning {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.step-content .warning h4 {
    color: #dc2626;
    margin-bottom: 10px;
}

.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.nav-button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-button:hover {
    background: #1e40af;
    transform: translateY(-2px);
}

.nav-button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.nav-button.secondary {
    background: #64748b;
}

.nav-button.secondary:hover {
    background: #475569;
}

/* 销售专区专业美化 */
.sale-cards-pro {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
    align-items: stretch;
    margin-bottom: 15px;
}

.sale-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    padding: 35px 22px 30px;
    min-width: 190px;
    max-width: 280px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    flex: 1 1 190px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sale-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.3);
}

.sale-card-combo {
    max-width: 330px;
    min-width: 230px;
    background: linear-gradient(135deg, #e0e7ff 0%, #f8fafc 100%);
    border: 2px solid #2563eb;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
    z-index: 2;
}

.sale-card h3 {
    color: #2563eb;
    font-size: 1.4rem;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sale-features {
    margin: 22px 0;
    text-align: left;
    flex: 1;
    padding: 0 12px;
}

.feature-item {
    color: #374151;
    font-size: 0.98rem;
    margin: 14px 0;
    padding: 10px 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-left: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.7);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.feature-item::before {
    content: '•';
    color: #2563eb;
    font-weight: bold;
    font-size: 1.3rem;
    margin-right: 10px;
}

.buy-btn-label {
    margin: 25px auto 0;
    display: inline-block;
    cursor: pointer;
    outline: none;
    transition: transform 0.2s ease;
}

.buy-btn-label:hover {
    transform: translateY(-2px);
}

.buy-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
    border-radius: 10px;
    padding: 10px 22px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.4px;
    min-width: 96px;
    cursor: pointer;
}

.buy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.buy-btn:hover::before {
    left: 100%;
}

.buy-btn-label:focus .buy-btn,
.buy-btn-label:hover .buy-btn {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
}
.buy-modal-toggle:checked + .buy-modal {
    display: flex;
}
.buy-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    align-items: center;
    justify-content: center;
}

/* 取消关键帧声明（保留占位避免报错） */
@keyframes modalFadeIn {}
@keyframes contentSlideIn {}

.buy-modal-content {
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px 20px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
    text-align: center;
    min-width: 320px;
    max-width: 90vw;
    border: 1px solid #e5e7eb;
    position: relative;
}

/* 统一卡片风格，去掉动态 hover 提升稳重感 */
.sale-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    padding: 28px 22px 22px;
    text-align: center;
    border: 1px solid #e5e7eb;
}
.sale-card:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border-color: #e5e7eb;
}

/* 价格区静态化 */
.sale-price-section {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 16px 14px;
}

.sale-note {
    margin-top: 20px;
    color: #dc2626;
    text-align: center;
    font-size: 1rem;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 500;
    border: 1px solid #fecaca;
    box-shadow: 0 3px 12px rgba(220, 38, 38, 0.1);
}

.sale-note::before {
    content: '⚠️';
    margin-right: 10px;
    font-size: 1.1rem;
}

/* 销售专区标题和介绍优化 */
.sale-title {
    text-align: center;
    font-size: 2.8rem;
    background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 55px;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
}

.sale-title::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
    border-radius: 2px;
}

.sale-intro {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 45px;
    padding: 0 25px;
}

.sale-intro p {
    font-size: 1.15rem;
    color: #64748b;
    line-height: 1.8;
    font-weight: 500;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 25px 30px;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
}

/* 折扣标签优化 */
.sale-card::after {
    content: '8折';
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 0 20px 0 20px;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.35);
    z-index: 2;
}

.sale-card-combo::after {
    content: '推荐';
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 0 20px 0 20px;
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.35);
    z-index: 2;
}

.sale-old-badge {
    display: inline-block;
    background: #e2e8f0;
    color: #475569;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 2px 8px;
    border-radius: 999px;
    margin-right: 8px;
}

.sale-price-label {
    font-size: 1.1rem;
    color: #0f766e;
    font-weight: 700;
    background: #ecfdf5;
    border: 1px solid #99f6e4;
    border-radius: 999px;
    padding: 4px 10px;
    margin-right: 10px;
}

.price-amount {
    font-size: 2.4rem;
    color: #059669;
    font-weight: 900;
    letter-spacing: 1px;
    margin: 0 6px;
}

.price-unit {
    font-size: 1.2rem;
    color: #059669;
    font-weight: 700;
}

/* 缩小授权按钮 */
.buy-btn {
    padding: 10px 22px;
    font-size: 1rem;
    border-radius: 10px;
    min-width: 96px;
    box-shadow: 0 8px 18px rgba(37,99,235,0.25);
}

.buy-btn-label:hover .buy-btn {
    transform: translateY(-1px);
}

/* 优化卡片内边距与层次 */
.sale-card {
    padding: 28px 22px 24px;
}

.sale-price-section {
    padding: 20px 18px 18px;
}

.sale-discount {
    margin-bottom: 12px;
}

/* 角标：限时优惠 丝带 */
.sale-card::after {
    content: '限时优惠';
    position: absolute;
    top: 12px;
    right: -44px;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 6px 54px;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.28);
    z-index: 3;
}

/* 组合版 推荐徽章 */
.sale-card-combo::before {
    content: '推荐';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: #fff;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
    z-index: 4;
}

/* 价格：¥ + 数字 大号排版 */
.price-currency {
    font-size: 1.6rem;
    color: #059669;
    font-weight: 800;
    margin-right: 4px;
}
.price-amount {
    font-size: 2.8rem;
    color: #059669;
    font-weight: 900;
    letter-spacing: 1px;
}

/* 立省徽章 */
.save-badge {
    display: inline-block;
    background: #ffe4e6;
    border: 1px solid #fecdd3;
    color: #dc2626;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(220,38,38,.12);
}

/* 特性项改为勾选图标 */
.feature-item {
    color: #334155;
    font-size: 0.98rem;
    margin: 12px 0;
    padding: 6px 0 6px 26px;
    position: relative;
}
.feature-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    color: #16a34a;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 50%;
    font-weight: 800;
    font-size: 12px;
}

/* 调整价格区与按钮比例，更接近参考样式 */
.sale-price-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 16px 16px;
}
.sale-old {
    margin-bottom: 6px;
}

.buy-btn {
    padding: 10px 22px;
    font-size: 0.98rem;
    border-radius: 10px;
    min-width: 100px;
}

/* 布局与卡片尺寸对齐示例 */
.sale-cards-pro {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    flex-wrap: wrap;
}

.sale-card {
    width: 360px;
    max-width: 360px;
    min-width: 360px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    padding: 24px 24px 22px;
    text-align: center;
}

/* 标题字号 */
.sale-card h3 {
    font-size: 22px;
    line-height: 1.3;
    color: #111827;
    font-weight: 700;
    margin-bottom: 12px;
}

/* 原价（仅¥数字加删除线） */
.sale-old {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    background: transparent;
}
.sale-old-badge { display: none; }
.sale-old del {
    color: #9ca3af;
    font-size: 20px;
    font-weight: 700;
}

/* 立省徽章 */
.save-badge {
    display: inline-block;
    background: #ffe4e6;
    border: 1px solid #fecdd3;
    color: #ef4444;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    margin: 6px 0 14px;
    box-shadow: none;
}

/* 价格（¥ + 大数字） */
.price-currency {
    font-size: 22px;
    color: #16a34a;
    font-weight: 800;
    margin-right: 4px;
}
.price-amount {
    font-size: 56px;
    line-height: 1.05;
    color: #16a34a;
    font-weight: 900;
    letter-spacing: 0.5px;
}

/* 特性列表（勾选） */
.sale-features {
    margin: 18px 0 20px;
    text-align: left;
    padding: 0 6px;
}
.feature-item {
    color: #374151;
    font-size: 16px;
    line-height: 1.65;
    margin: 8px 0;
    padding: 0 0 0 28px;
    position: relative;
}
.feature-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    color: #16a34a;
}

/* 按钮尺寸与样式 */
.buy-btn-label { margin-top: 14px; }
.buy-btn {
    background: #2563eb;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 700;
    min-width: 140px;
    box-shadow: none;
}
.buy-btn-label:hover .buy-btn,
.buy-btn-label:focus .buy-btn { background: #1d4ed8; transform: none; }

/* 价格容器静态化 */
.sale-price-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 14px 14px;
}

/* 推荐卡片（中间）边框更醒目 */
.sale-card-combo {
    border: 2px solid #2563eb;
    box-shadow: 0 10px 30px rgba(37,99,235,0.12);
}

/* 角丝带参数对齐 */
.sale-card::after {
    content: '限时优惠';
    position: absolute;
    top: 10px;
    right: -40px;
    transform: rotate(45deg);
    background: #ef4444;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 6px 48px;
    box-shadow: none;
}
.sale-card-combo::before {
    content: '推荐';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: #fff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}

/* 移动端保持三列改为一列时的宽度缩放 */
@media (max-width: 1200px) {
    .sale-card { width: 340px; max-width: 340px; min-width: 340px; }
}
@media (max-width: 992px) {
    .sale-card { width: 320px; max-width: 320px; min-width: 320px; }
}
@media (max-width: 720px) {
    .sale-card { width: 100%; max-width: 480px; min-width: 0; }
}

/* 销售产品区域样式 */
.pricing-section {
    padding: 60px 20px;
    background-color: #f5f5f5;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.pricing-card {
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    width: 320px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.pricing-card.recommended {
    border: 2px solid #007bff;
    transform: scale(1.05);
}

.pricing-card.recommended .card-ribbon {
    top: 25px;
}

.card-ribbon {
    position: absolute;
    top: 15px;
    right: -10px;
    background: #dc3545;
    color: white;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: bold;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
}

.recommended-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #007bff;
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    font-weight: bold;
    border-radius: 12px 12px 0 0;
}

.card-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 20px 0 25px 0;
    text-align: center;
}

.pricing-info {
    text-align: center;
    margin-bottom: 30px;
}

.original-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 10px;
}

.current-price {
    font-size: 36px;
    font-weight: bold;
    color: #dc3545;
    margin-bottom: 15px;
}

.savings-badge {
    background: #ffe6e6;
    color: #dc3545;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
}

.features-list {
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
    text-align: left;
}

.checkmark {
    color: #007bff;
    font-weight: bold;
    margin-right: 12px;
    font-size: 16px;
}

.buy-button {
    width: 100%;
    background: #007bff;
    color: white;
    border: none;
    padding: 15px 0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.buy-button:hover {
    background: #0056b3;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pricing-cards {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .pricing-card {
        width: 100%;
        max-width: 350px;
    }
    
    .pricing-card.recommended {
        transform: none;
    }
}

@media (max-width: 480px) {
    .pricing-section {
        padding: 40px 15px;
    }
    
    .pricing-card {
        padding: 25px 20px;
    }
    
    .card-title {
        font-size: 20px;
    }
    
    .current-price {
        font-size: 30px;
    }
}

/* 模块说明样式 */
.module-description {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: 40px 0;
}

.module-description h2 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: bold;
}

.module-description p {
    font-size: 18px;
    opacity: 0.9;
}

/* 授权方法样式 */
.auth-methods {
    padding: 60px 20px;
    background: #f8f9fa;
}

.auth-methods h2 {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-bottom: 40px;
    font-weight: bold;
}

.method-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.method-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.method-card h3 {
    color: #007bff;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: bold;
}

.method-card p {
    color: #555;
    line-height: 1.6;
    font-size: 16px;
}

/* 重要提醒样式 */
.important-notice {
    padding: 40px 20px;
    background: #fff3cd;
    border-top: 3px solid #ffc107;
}

.notice-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.notice-content h3 {
    color: #856404;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: bold;
}

.notice-content p {
    color: #856404;
    font-size: 18px;
    line-height: 1.5;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .module-description h2 {
        font-size: 24px;
    }
    
    .module-description p {
        font-size: 16px;
    }
    
    .auth-methods h2 {
        font-size: 24px;
    }
    
    .method-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .method-card {
        width: 100%;
        max-width: 400px;
    }
    
    .notice-content h3 {
        font-size: 20px;
    }
    
    .notice-content p {
        font-size: 16px;
    }
}

/* 支付弹窗样式 */
.payment-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.payment-modal-content {
    background-color: white;
    margin: auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 20px 25px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}

.close-btn {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.close-btn:hover {
    opacity: 0.7;
}

.qr-container {
    padding: 30px 25px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
}

.qr-item {
    text-align: center;
    flex: 1;
}

.qr-image {
    width: 120px;
    height: 120px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.qr-image:hover {
    transform: scale(1.05);
}

.qr-item p {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: bold;
}

.modal-footer {
    padding: 20px 25px 25px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.payment-tip {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* 响应式调整 */
@media (max-width: 600px) {
    .payment-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .qr-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .qr-image {
        width: 150px;
        height: 150px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
}

