/* ===== RemixIcon Font Face ===== */
@font-face {
    font-family: 'remixicon';
    src: url('https://paileya.com/font/remixicon.woff2') format('woff2'),
         url('https://paileya.com/font/remixicon.woff') format('woff'),
         url('https://paileya.com/font/remixicon.ttf') format('truetype');
    font-display: swap;
}

/* RemixIcon Glyphs - rendered via HTML entities &#xXXXX; */
[class^="ri-"], [class*=" ri-"] {
    font-family: 'remixicon' !important;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: inherit;
    line-height: 1;
    display: inline-block;
}

/* ===== CSS Variables ===== */
:root {
    --primary: #EC407A;
    --primary-dark: #DB2777;
    --primary-light: #FCE7F3;
    --primary-lighter: #FDF2F8;
    --text-dark: #33302E;
    --text-gray: #7A7570;
    --text-secondary: #5A5550;
    --text-muted: #9A9590;
    --border-color: #FCE7F3;
    --footer-bg: #33302E;
    --green-check: #22C55E;
    --star-color: #FACC15;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 9999px;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ===== Custom Buttons ===== */
.btn-primary-custom {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(236,64,122,0.3);
}

.btn-outline-custom {
    background-color: var(--white);
    color: var(--text-dark);
    border: 1px solid #D1D5DB;
    border-radius: var(--radius-md);
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ===== Navbar ===== */
.navbar {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-left: 12px;
}

.navbar-nav .nav-link {
    color: var(--text-gray);
    font-size: 16px;
    font-weight: 400;
    padding: 8px 16px !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: var(--primary);
    font-weight: 500;
}

/* ===== Section Common ===== */
.section-header {
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 8px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 620px;
    margin: 0 auto;
}

/* ===== Hero Section ===== */
.hero-section {
    padding: 160px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #FDF2F8;
}

.hero-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    padding: 4px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 24px;
}

.hero-title {
    margin-bottom: 24px;
}

.hero-title .title-dark {
    display: block;
    font-size: 56px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.hero-title .title-primary {
    display: block;
    font-size: 56px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-actions .btn-lg {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
}

.hero-visual {
    text-align: center;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(236,64,122,0.15);
}

/* Accordion Gallery */
.accordion-gallery {
    display: flex;
    gap: 8px;
    height: 500px;
    padding: 10px;
}

.accordion-gallery .accordion-item {
    flex: 1;
    min-width: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.accordion-gallery .accordion-item.active {
    flex: 4;
    box-shadow: 0 12px 40px rgba(236,64,122,0.2);
}

.accordion-gallery .accordion-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-md);
    transition: transform 0.5s ease;
}

.accordion-gallery .accordion-item.active img {
    transform: scale(1.02);
}

.accordion-gallery .accordion-item:not(.active)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.3));
    border-radius: var(--radius-md);
    pointer-events: none;
}

/* ===== Features Section ===== */
.features-section {
    padding: 80px 0;
    background: var(--white);
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon span {
    font-size: 32px;
    color: var(--primary);
}

.feature-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.feature-desc {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.feature-list li:last-child {
    margin-bottom: 0;
}

.feature-list li span {
    font-size: 18px;
    color: var(--green-check);
}

/* ===== Advantages Section ===== */
.advantages-section {
    padding: 80px 0;
    background: var(--primary-lighter);
}

.advantage-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(180deg, #F472B6 0%, #DB2777 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.advantage-icon span {
    font-size: 36px;
    color: var(--white);
}

.advantage-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.advantage-desc {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===== Process Section ===== */
.process-section {
    padding: 80px 0;
    background: var(--white);
}

.step-card {
    text-align: center;
    height: 100%;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.step-icon {
    width: 96px;
    height: 96px;
    background: var(--primary-lighter);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.step-icon span {
    font-size: 48px;
    color: var(--primary);
}

.step-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.step-desc {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===== Download Section ===== */
.download-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #FCE7F3 0%, #FDF2F8 100%);
}

.download-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.download-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-download-solid {
    background: var(--white);
    color: var(--primary);
}

.btn-download-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    color: var(--primary);
}

.btn-download-outline {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-download-outline:hover {
    background: rgba(255,255,255,0.3);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-download span[class^="ri-"] {
    font-size: 24px;
}

.qr-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qr-code {
    background: var(--white);
    border-radius: 12px;
    padding: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.qr-code:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.qr-code img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.qr-code:hover img {
    transform: scale(1.05);
}

.qr-text p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.download-visual {
    text-align: center;
}

.phone-mockup {
    max-width: 800px;
    width: 100%;
    border-radius: var(--radius-lg);
}

/* ===== Reviews Section ===== */
.reviews-section {
    padding: 80px 0;
    background: var(--white);
}

.review-card {
    background: var(--primary-lighter);
    border-radius: var(--radius-md);
    padding: 32px;
    height: 100%;
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.review-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.review-stars span {
    font-size: 14px;
    color: var(--star-color);
}

.review-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 16px;
}

.review-tag {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== Footer Section ===== */
.footer-section {
    background: var(--footer-bg);
    padding: 48px 0;
}

.footer-top {
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.logo-container {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-container img {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.footer-brand-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
}

.footer-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(55,65,81,1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.social-icon span {
    font-size: 20px;
    color: var(--white);
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 64px;
}

.link-group h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.link-group a {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
}

.link-group a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
}

.footer-bottom span {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero entrance animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-content .hero-tag {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

.hero-content .hero-title {
    opacity: 0;
    animation: fadeInUp 0.7s ease forwards;
    animation-delay: 0.4s;
}

.hero-content .hero-subtitle {
    opacity: 0;
    animation: fadeInUp 0.7s ease forwards;
    animation-delay: 0.6s;
}

.hero-content .hero-actions {
    opacity: 0;
    animation: fadeInUp 0.7s ease forwards;
    animation-delay: 0.8s;
}

.hero-content .hero-stats {
    opacity: 0;
    animation: fadeInUp 0.7s ease forwards;
    animation-delay: 1s;
}

.hero-visual {
    opacity: 0;
    animation: fadeInRight 0.9s ease forwards;
    animation-delay: 0.5s;
}

.navbar {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.1s;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .hero-title .title-dark,
    .hero-title .title-primary {
        font-size: 40px;
    }

    .hero-section {
        padding: 120px 0 60px;
    }

    .hero-visual {
        margin-top: 40px;
    }

    .accordion-gallery {
        height: 400px;
    }

    .section-title {
        font-size: 28px;
    }

    .download-title {
        font-size: 36px;
    }

    .footer-links {
        justify-content: flex-start;
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .hero-title .title-dark,
    .hero-title .title-primary {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 24px;
    }

    .accordion-gallery {
        height: 320px;
    }

    .download-buttons {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .footer-links {
        gap: 32px;
        flex-wrap: wrap;
    }

    .navbar-nav {
        padding: 16px 0;
    }

    .btn-primary-custom.d-none {
        display: none !important;
    }
}
