/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Header - Mobile First */
.header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h1 {
    font-size: 20px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 2px;
}

.logo .tagline {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
}

.header-cta-btn {
    background: #059669;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.header-cta-btn:hover {
    background: #047857;
}

/* Hero Section - Mobile Optimized */
.hero {
    padding: 24px 0 32px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.hero-content {
    text-align: center;
    margin-bottom: 24px;
}

.hero-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 16px;
    color: #4b5563;
    margin-bottom: 20px;
    line-height: 1.5;
}

.hero-benefits {
    margin-bottom: 24px;
}

.benefit {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: #374151;
}

.benefit-icon {
    margin-right: 8px;
    font-size: 16px;
}

.hero-cta {
    margin-bottom: 20px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    background: #059669;
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.15);
}

.cta-button.large {
    padding: 16px 32px;
    font-size: 18px;
}

.cta-arrow {
    margin-left: 8px;
    transition: transform 0.2s;
}

.cta-button:hover .cta-arrow {
    transform: translateX(2px);
}

.cta-note {
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
}

.hero-image {
    margin-top: 20px;
}

.hero-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}



/* Hot Deals Section - Mobile Optimized */
.hot-deals {
    padding: 32px 0;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 20px 0;
}

.deal-item {
    background: white;
    border-radius: 8px;
    padding: 8px 6px;
    text-align: center;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    position: relative;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.deal-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.deal-item:hover {
    transform: translateY(-1px);
}

.deal-discount {
    background: #dc2626;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 1;
}

.deal-name {
    font-size: 10px;
    font-weight: 600;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    flex-grow: 1;
}

.deal-brand {
    font-size: 8px;
    color: #6b7280;
    font-weight: 500;
    margin-top: auto;
    text-align: center;
}

.deals-cta {
    text-align: center;
    margin-top: 24px;
}

.deals-note {
    font-size: 11px;
    color: #92400e;
    margin-top: 8px;
    font-weight: 500;
}

/* How It Works */
.how-it-works {
    padding: 40px 0;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    color: #111827;
}

.section-subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 32px;
    font-size: 16px;
}

.steps {
    display: grid;
    gap: 24px;
}

.step {
    text-align: center;
    padding: 20px 16px;
    background: #f9fafb;
    border-radius: 12px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #059669;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin: 0 auto 12px;
}

.step h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111827;
}

.step p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

/* Products Section */
.products {
    padding: 40px 0;
    background: #f9fafb;
}

.product-grid {
    display: grid;
    gap: 20px;
    margin-top: 32px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
}

.product-image {
    position: relative;
    height: 160px;
    overflow: hidden;
}

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

.discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #dc2626;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.product-info {
    padding: 16px;
}

.product-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #111827;
}

.product-description {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1.4;
}

.price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: #059669;
}

.original-price {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
}

/* Testimonials Section */
.testimonials {
    padding: 40px 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    gap: 24px;
    margin-top: 32px;
}

.testimonial-card {
    background: #f9fafb;
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid #059669;
    transition: transform 0.2s;
}

.testimonial-card:hover {
    transform: translateY(-2px);
}

.testimonial-content {
    margin-bottom: 16px;
}

.testimonial-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    font-style: italic;
    margin-bottom: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.author-info strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.author-info span {
    font-size: 12px;
    color: #6b7280;
}

/* Stats Section */
.stats-section {
    padding: 40px 0;
    background: #f9fafb;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.stat-item {
    text-align: center;
    padding: 24px 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    text-align: center;
}

.cta-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 16px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.cta-section .cta-button {
    background: white;
    color: #059669;
    margin-bottom: 20px;
}

.cta-section .cta-button:hover {
    background: #f9fafb;
    color: #047857;
}

.guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0.9;
}

.guarantee-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* Footer */
.footer {
    background: #111827;
    color: white;
    padding: 32px 0 16px;
}

.footer-content {
    display: grid;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #059669;
}

.footer-section h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-section p {
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.5;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 4px;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: #059669;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 16px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.4;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: slideIn 0.3s;
}

.close {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 36px;
    height: 36px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
    background: rgba(220, 38, 38, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.close:hover {
    background: rgba(220, 38, 38, 1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.close:active {
    transform: scale(0.95);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* 移动设备上的关闭按钮优化 */
@media (max-width: 768px) {
    .close {
        right: 6px;
        top: 6px;
        width: 40px;
        height: 40px;
        font-size: 26px;
        border-width: 3px;
    }

    .close:hover {
        transform: scale(1.05); /* 移动设备上减少缩放效果 */
    }
}

/* 为关闭按钮添加脉冲动画提示 */
@keyframes pulse {
    0% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    70% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(220, 38, 38, 0);
    }
    100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

.close {
    animation: pulse 2s infinite;
}

.close:hover {
    animation: none; /* 悬停时停止脉冲动画 */
}

/* 移动端弹窗优化 */
@media (max-width: 768px) {
    .modal-header {
        padding: 14px 16px;
        gap: 6px;
    }

    .modal-logo {
        width: 100px;
    }

    .modal-header h3 {
        font-size: 16px;
    }

    .modal-body {
        padding: 16px 18px 18px;
    }

    .modal-body p {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .modal-benefits {
        margin: 10px 0 16px;
    }

    .modal-benefits li {
        font-size: 12px;
        margin-bottom: 5px;
    }
}

.modal-header {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 18px 20px;
    border-radius: 12px 12px 0 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.modal-logo {
    width: 120px;
    height: auto;
    filter: brightness(0) invert(1); /* 将logo变为白色 */
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.modal-body {
    padding: 18px 20px 20px;
    text-align: center;
}

.modal-body p {
    margin-bottom: 12px;
    color: #374151;
    font-size: 15px;
    line-height: 1.4;
}

.modal-body p:last-of-type {
    margin-bottom: 14px;
}

.modal-benefits {
    list-style: none;
    margin: 12px 0 18px;
    text-align: left;
    padding: 0;
}

.modal-benefits li {
    margin-bottom: 6px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.3;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Tablet Styles */
@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-image img {
        height: 300px;
    }

    .steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .deals-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .deal-item {
        padding: 12px 10px;
        min-height: 110px;
    }

    .deal-image {
        width: 45px;
        height: 45px;
    }

    .deal-name {
        font-size: 11px;
    }

    .deal-brand {
        font-size: 9px;
    }

    .deal-discount {
        font-size: 11px;
        padding: 3px 6px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
    }

    .footer-content {
        grid-template-columns: 2fr 1fr;
        gap: 48px;
    }
}

/* Legal Pages Styles */
.legal-page {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.legal-content h1 {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.last-updated {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 32px;
    font-style: italic;
}

.legal-content section {
    margin-bottom: 32px;
}

.legal-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: #059669;
    margin-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 8px;
}

.legal-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    margin-top: 20px;
}

.legal-content p {
    line-height: 1.7;
    margin-bottom: 16px;
    color: #4b5563;
}

.legal-content ul, .legal-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #4b5563;
}

.legal-content strong {
    color: #111827;
    font-weight: 600;
}

.legal-footer {
    background: #f9fafb;
    padding: 24px;
    border-radius: 8px;
    border-left: 4px solid #059669;
    margin-top: 40px;
}

.legal-footer p {
    margin-bottom: 0;
    font-weight: 500;
    color: #374151;
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .hero {
        padding: 48px 0 64px;
    }

    .hero .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 48px;
        align-items: center;
    }

    .hero-content {
        text-align: left;
        margin-bottom: 0;
    }

    .hero-title {
        font-size: 42px;
    }

    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .deals-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .deal-item {
        padding: 16px 12px;
        min-height: 120px;
    }

    .deal-image {
        width: 50px;
        height: 50px;
    }

    .deal-name {
        font-size: 12px;
    }

    .deal-brand {
        font-size: 10px;
    }

    .deal-discount {
        font-size: 12px;
        padding: 4px 8px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .modal-content {
        margin: 5% auto;
        max-width: 500px;
    }

    .legal-content {
        padding: 48px;
    }

    .legal-content h1 {
        font-size: 36px;
    }
}
