/* 
 * YesApi Pro 旗舰版落地页样式 - 版本2
 * 移动端优先设计，现代风格
 */

/* 基础样式重置和变量 */
:root {
    --primary-color: #0052D9;
    --primary-light: #e6f7ff;
    --primary-dark: #0045b5;
    --secondary-color: #FF4D4F;
    --secondary-light: #fff2f0;
    --text-color: #1f2937;
    --text-light: #4b5563;
    --text-lighter: #9ca3af;
    --background-color: #ffffff;
    --light-bg: #f9fafb;
    --border-color: #e5e7eb;
    --success-color: #52c41a;
    --warning-color: #faad14;
    --font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-family-numbers: 'DIN Condensed', 'Noto Sans SC', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 82, 217, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

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

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

.btn-block {
    display: block;
    width: 100%;
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

/* 通用样式 */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    position: relative;
}

section {
    padding: 80px 0;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar.scrolled .logo h1,
.navbar.scrolled .nav-links a {
    color: var(--text-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: white;
}

.nav-links {
    display: none;
}

.nav-links a {
    color: white;
    margin-left: 30px;
    font-weight: 500;
}

.menu-toggle {
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero区块样式 */
.hero {
    background: linear-gradient(135deg, #0052D9 0%, #1890ff 100%);
    color: white;
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

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

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-description .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    font-family: var(--font-family-numbers);
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: var(--border-radius);
}

.feature-item i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    display: none;
}

.hero-shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: white;
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

/* 价格锚点区块样式 */
.pricing {
    background-color: var(--light-bg);
}

.price-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 30px;
    text-align: center;
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.price {
    margin-bottom: 10px;
}

.currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-family-numbers);
}

.original-price {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: line-through;
}

.card-body {
    padding: 30px;
}

.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.features-list i {
    color: var(--success-color);
    margin-right: 10px;
    margin-top: 3px;
}

.card-footer {
    padding: 0 30px 30px;
}

.countdown {
    background-color: var(--secondary-light);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    text-align: center;
}

.countdown p {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.countdown-item {
    background-color: var(--secondary-color);
    color: white;
    border-radius: 4px;
    padding: 10px;
    min-width: 70px;
    text-align: center;
}

.countdown-item span:first-child {
    font-size: 1.8rem;
    font-family: var(--font-family-numbers);
    font-weight: 700;
    display: block;
}

/* 功能特性区块样式 */
.features {
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* 场景速配区块样式 */
.scenarios {
    background-color: var(--light-bg);
}

.tabs {
    max-width: 900px;
    margin: 0 auto;
}

.tab-nav {
    display: flex;
    overflow-x: auto;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 15px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    white-space: nowrap;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.tab-pane {
    display: none;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.tab-pane.active {
    display: block;
}

.tab-inner {
    display: flex;
    flex-direction: column;
}

.tab-image {
    flex: 1;
}

.tab-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tab-info {
    flex: 1;
    padding: 30px;
}

.tab-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.tab-features {
    margin: 20px 0;
}

.tab-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.tab-features i {
    color: var(--success-color);
    margin-right: 10px;
}

/* 3步交付区块样式 */
.delivery-steps {
    background-color: white;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.step-card {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.step-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(0, 82, 217, 0.1);
    font-family: var(--font-family-numbers);
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* 风险逆转区块样式 */
.risk-reversal {
    background-color: var(--light-bg);
    position: relative;
}

.guarantees {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.guarantee-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.guarantee-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.guarantee-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

.guarantee-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* 联系表单区块样式 */
.contact {
    background-color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    background-color: var(--primary-color);
    color: white;
    padding: 30px;
    border-radius: var(--border-radius);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.5rem;
    margin-right: 15px;
}

.info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-item p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.qrcode {
    max-width: 200px;
    margin: 20px auto;
    background-color: white;
    padding: 10px;
    border-radius: var(--border-radius);
}

.software-cover-container {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: var(--border-radius);
}

.software-cover {
    text-align: center;
}

.cover-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cover-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.cover-caption {
    margin-top: 25px;
}

.cover-caption h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.cover-caption p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 16px;
}

/* 页脚样式 */
.footer {
    background-color: #1f2937;
    color: white;
    padding: 60px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.footer-link-group h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: white;
}

.footer-link-group ul li {
    margin-bottom: 10px;
}

.footer-link-group ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-link-group ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* CTA固定条样式 */
.cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    z-index: 100;
    display: none;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.cta-text .original-price {
    color: var(--text-lighter);
    text-decoration: line-through;
    margin-right: 10px;
}

.cta-text .current-price {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-family-numbers);
}

.cta-buttons {
    display: flex;
    gap: 10px;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: var(--box-shadow);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-lighter);
}

.payment-options {
    margin-top: 20px;
}

.payment-option {
    text-align: center;
}

.payment-option h4 {
    margin-bottom: 15px;
}

.bank-info {
    background-color: var(--light-bg);
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: left;
    margin-bottom: 15px;
}

/* 响应式样式 */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
        align-items: center;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero-content {
        max-width: 50%;
    }
    
    .hero-image {
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 45%;
        z-index: 1;
    }
    
    .tab-inner {
        flex-direction: row;
    }
    
    .contact-container {
        grid-template-columns: 1fr 1.5fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr 2fr;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fadeIn {
    animation: fadeIn 1s ease forwards;
}

.slideUp {
    animation: slideUp 0.8s ease forwards;
}