/* PixPin Website - Shared Stylesheet */

:root {
    --primary: #4A90D9;
    --primary-dark: #2E7BC6;
    --primary-light: #6BA5E8;
    --accent: #FF6B35;
    --accent-dark: #E5532E;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #1a1a2e;
    --text-medium: #4a4a68;
    --text-light: #6b6b80;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius: 8px;
    --max-width: 1200px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.6;
    font-size: 15px;
}

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

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

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

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header / Navigation */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.nav-brand span {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-medium);
    font-weight: 500;
    font-size: 15px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-cta {
    background: var(--primary);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s;
}

.nav-cta:hover {
    background: var(--primary-dark);
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 50%, #f0f7ff 100%);
    padding: 60px 0 50px;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-text h1 {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.hero-text h1 .highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text .subtitle {
    font-size: 17px;
    color: var(--text-medium);
    margin-bottom: 24px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background: #f5f9ff;
}

.btn-large {
    padding: 14px 36px;
    font-size: 16px;
}

.hero-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-light);
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* Section Styles */
.section {
    padding: 60px 0;
}

.section-gray {
    background: var(--bg-light);
}

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

.section-title h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.section-title p {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    transition: all 0.3s;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
}

.feature-card h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-medium);
    font-size: 14px;
    line-height: 1.7;
}

/* Screenshot Gallery */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.screenshot-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
    background: #fff;
}

.screenshot-item:hover {
    transform: translateY(-4px);
}

.screenshot-item img {
    width: 100%;
    display: block;
    transition: transform 0.3s;
}

.screenshot-item:hover img {
    transform: scale(1.03);
}

.screenshot-caption {
    padding: 16px;
    text-align: center;
    font-size: 14px;
    color: var(--text-medium);
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.testimonial-card .quote {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

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

.testimonial-card .author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.testimonial-card .author-info strong {
    display: block;
    font-size: 14px;
}

.testimonial-card .author-info span {
    font-size: 12px;
    color: var(--text-light);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 18px 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    color: var(--primary);
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
    background: #fff;
}

.faq-item.active .faq-answer {
    padding: 0 24px 18px;
    max-height: 300px;
}

.faq-answer p {
    color: var(--text-medium);
    font-size: 14px;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    text-align: center;
    padding: 60px 0;
}

.cta-section h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.cta-section p {
    margin-bottom: 24px;
    opacity: 0.9;
}

.cta-section .btn {
    background: #fff;
    color: var(--primary);
}

.cta-section .btn:hover {
    background: #f0f0f0;
}

/* Footer */
.site-footer {
    background: #1a1a2e;
    color: #a0a0b0;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 12px;
}

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

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

.footer-section ul li a {
    color: #a0a0b0;
    font-size: 13px;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-brand img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.footer-brand span {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.footer-section p {
    font-size: 13px;
    line-height: 1.6;
}

.footer-disclaimer {
    border-top: 1px solid #2a2a40;
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #707080;
}

.footer-disclaimer p {
    margin-bottom: 4px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
    padding: 50px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-medium);
    font-size: 16px;
}

/* Content Section */
.content-section {
    padding: 50px 0;
    max-width: 900px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 30px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}

.content-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 10px;
}

.content-section p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-medium);
}

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

.content-section li {
    margin-bottom: 8px;
    color: var(--text-medium);
}

/* Download Cards */
.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.download-card {
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.download-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.download-card .platform-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.download-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.download-card .version {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 16px;
}

.download-card .btn {
    margin-top: 8px;
}

.download-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.download-links .btn {
    margin-top: 0;
    width: 100%;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* ===== QR Code Breathing Border ===== */
@keyframes qr-breathing {
    0%, 100% {
        box-shadow: 0 0 6px 2px rgba(74, 144, 217, 0.25);
        border-color: rgba(74, 144, 217, 0.4);
    }
    50% {
        box-shadow: 0 0 16px 4px rgba(74, 144, 217, 0.55);
        border-color: rgba(74, 144, 217, 0.85);
    }
}

.qr-breathing {
    display: inline-block;
    padding: 8px;
    border: 3px solid rgba(74, 144, 217, 0.4);
    border-radius: 12px;
    animation: qr-breathing 2.8s ease-in-out infinite;
    background: #fff;
}

.qr-breathing img {
    display: block;
    border-radius: 4px;
}

/* ===== Download Modal ===== */
.dl-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.dl-modal-overlay.active {
    display: flex;
}

.dl-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 640px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modal-pop 0.3s ease-out;
}

@keyframes modal-pop {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.dl-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f5;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1;
}

.dl-modal-close:hover {
    background: #e0e0ea;
}

.dl-modal-body {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    padding: 0;
}

.dl-modal-left {
    flex: 1 1 60%;
    padding: 32px 24px 24px;
}

.dl-modal-left h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.dl-modal-left ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.dl-modal-left ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.5;
}

.dl-modal-left ul li::before {
    content: "\2714";
    color: #22c55e;
    font-weight: bold;
    margin-right: 8px;
    flex-shrink: 0;
    font-size: 15px;
}

.dl-modal-urgent {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #c2410c;
    line-height: 1.5;
}

.dl-modal-right {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef4fb 100%);
    border-radius: 0 0 12px 0;
    min-width: 200px;
}

.dl-modal-qr-label {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
    text-align: center;
}

.dl-modal-qr-hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
}

@media (max-width: 520px) {
    .dl-modal-left { flex: 1 1 100%; }
    .dl-modal-right {
        flex: 1 1 100%;
        border-radius: 0 0 16px 16px;
    }
}

/* Info Table */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.info-table th, .info-table td {
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    text-align: left;
}

.info-table th {
    background: #f5f7fa;
    font-weight: 600;
}

.info-table td {
    color: var(--text-medium);
}

/* Steps */
.steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
}

.steps li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 20px;
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-free {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-pro {
    background: #fff3e0;
    color: #e65100;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        gap: 15px;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .hero-content {
        flex-direction: column;
    }
}
