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

body {
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
    color: #1e293b;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 45%, #ffffff 100%);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem 1rem;
}

.header {
    position: relative;
    margin-bottom: 3rem;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border: 1px solid rgba(77, 144, 254, 0.15);
    border-radius: 1.5rem;
    box-shadow: 0 8px 24px rgba(77, 144, 254, 0.1), 0 2px 8px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #4d90fe 0%, #3367d6 55%, #2563eb 100%);
}

.back-home {
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #4d90fe;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.25s ease;
}

.back-home:hover {
    color: #3367d6;
    background: linear-gradient(135deg, rgba(77, 144, 254, 0.08) 0%, rgba(51, 103, 214, 0.08) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(77, 144, 254, 0.15);
}

.header h1 {
    margin-bottom: 1rem;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #4d90fe 0%, #3367d6 50%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    max-width: 760px;
    margin: 0 auto;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.8;
}

main {
    padding-bottom: 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
    margin-bottom: 3rem;
}

.product-card {
    position: relative;
    overflow: hidden;
    padding: 1.75rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(77, 144, 254, 0.14);
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    box-shadow: 0 8px 24px rgba(77, 144, 254, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(77, 144, 254, 0.28);
    box-shadow: 0 18px 36px rgba(77, 144, 254, 0.16), 0 8px 18px rgba(15, 23, 42, 0.06);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.product-card.basic::before {
    background: linear-gradient(90deg, #4d90fe 0%, #60a5fa 100%);
}

.product-card.advanced::before {
    background: linear-gradient(90deg, #4d90fe 0%, #06b6d4 100%);
}

.product-card.premium::before {
    background: linear-gradient(90deg, #f59e0b 0%, #f97316 100%);
}

.product-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1.25rem;
    border-radius: 1rem;
    color: #fff;
    box-shadow: 0 8px 20px rgba(77, 144, 254, 0.22);
}

.product-card.basic .product-icon {
    background: linear-gradient(135deg, #4d90fe 0%, #60a5fa 100%);
}

.product-card.advanced .product-icon {
    background: linear-gradient(135deg, #4d90fe 0%, #06b6d4 100%);
}

.product-card.premium .product-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.22);
}

.product-card.premium::after {
    content: '\63A8\8350';
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 14px rgba(249, 115, 22, 0.24);
}

.product-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.product-title {
    margin-bottom: 0.5rem;
    color: #1f2937;
    font-size: 1.55rem;
    font-weight: 700;
}

.product-desc {
    margin-bottom: 1.25rem;
    color: #64748b;
    font-size: 0.98rem;
    line-height: 1.65;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.price-amount {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #2563eb;
}

.product-card.premium .price-amount {
    color: #ea580c;
}



.features-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    color: #475569;
    line-height: 1.7;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-icon {
    flex-shrink: 0;
    margin-top: 0.18rem;
    color: #2563eb;
}

.buy-button {
    width: 100%;
    padding: 0.95rem 1.25rem;
    border: 0;
    border-radius: 0.9rem;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.24s ease, box-shadow 0.24s ease, opacity 0.24s ease;
}

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

.product-card.basic .buy-button,
.product-card.advanced .buy-button {
    background: linear-gradient(135deg, #4d90fe 0%, #3367d6 100%);
    box-shadow: 0 8px 18px rgba(77, 144, 254, 0.22);
}

.product-card.premium .buy-button {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.22);
}

.login-section,
.user-info-section {
    margin: 0 0 2rem;
    padding: 1.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border: 1px solid rgba(77, 144, 254, 0.15);
    border-radius: 1.5rem;
    box-shadow: 0 8px 24px rgba(77, 144, 254, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
}

.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 420px;
    margin: 0 auto;
}

.phone-input {
    width: 100%;
    padding: 1rem 1.1rem;
    border: 1px solid #bfdbfe;
    border-radius: 0.9rem;
    background: #fff;
    color: #1e293b;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.24s ease, box-shadow 0.24s ease;
}

.phone-input::placeholder {
    color: #94a3b8;
}

.phone-input:focus {
    border-color: #4d90fe;
    box-shadow: 0 0 0 4px rgba(77, 144, 254, 0.14);
}

.user-info-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-align: center;
}

.user-greeting {
    color: #1f2937;
    font-size: 1.4rem;
    font-weight: 700;
}

.user-stats {
    color: #475569;
    font-size: 1rem;
}

.user-stats span {
    color: #2563eb;
    font-weight: 800;
}

.login-button {
    width: 100%;
    padding: 0.95rem 1.25rem;
    border: 0;
    border-radius: 0.9rem;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4d90fe 0%, #3367d6 100%);
    box-shadow: 0 8px 18px rgba(77, 144, 254, 0.22);
    cursor: pointer;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(77, 144, 254, 0.28);
}

.footer {
    margin-top: 3rem;
}

.footer-nav {
    padding: 1.5rem 0 0;
    text-align: center;
    border-top: 1px solid rgba(77, 144, 254, 0.12);
    color: #cbd5e1;
}

.footer-nav a {
    display: inline-block;
    margin: 0 0.2rem;
    padding: 0.45rem 0.9rem;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    border-radius: 0.75rem;
    transition: all 0.25s ease;
}

.footer-nav a:hover {
    color: #4d90fe;
    background: linear-gradient(135deg, rgba(77, 144, 254, 0.08) 0%, rgba(51, 103, 214, 0.08) 100%);
    box-shadow: 0 4px 12px rgba(77, 144, 254, 0.1);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(6px);
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: min(100%, 30rem);
    padding: 2rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border: 1px solid rgba(77, 144, 254, 0.16);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18), 0 8px 20px rgba(77, 144, 254, 0.12);
    animation: modalRise 0.24s ease;
}

@keyframes modalRise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    color: #64748b;
    background: rgba(77, 144, 254, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: #3367d6;
    background: rgba(77, 144, 254, 0.16);
}

.modal-header {
    margin-bottom: 1.25rem;
    text-align: center;
}

.modal-title {
    margin-bottom: 0.5rem;
    font-size: 1.55rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4d90fe 0%, #3367d6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-body {
    text-align: center;
}

.product-info {
    margin-bottom: 1.25rem;
}

.product-info .price {
    color: #2563eb;
    font-size: 2rem;
    font-weight: 800;
}

.qrcode-container {
    display: inline-block;
    margin: 0 auto 1.25rem;
    padding: 1.2rem;
    background: #fff;
    border: 1px solid rgba(77, 144, 254, 0.14);
    border-radius: 1.25rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 24px rgba(77, 144, 254, 0.08);
}

.qrcode-image {
    display: block;
    width: 200px;
    height: 200px;
    border-radius: 0.8rem;
}

.qrcode-label {
    margin-top: 0.9rem;
    color: #475569;
    font-size: 0.92rem;
    font-weight: 500;
}

.modal-footer p {
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.7;
}

.kefu {
    width: 7rem;
    margin: 1rem auto 0;
}

.kefu button {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 0;
    border-radius: 0.9rem;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4d90fe 0%, #3367d6 100%);
    box-shadow: 0 8px 18px rgba(77, 144, 254, 0.22);
    cursor: pointer;
    transition: transform 0.24s ease;
}

.kefu button:hover {
    transform: translateY(-2px);
}

.seo-hidden {
    display: none;
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding-top: 1rem;
    }

    .header {
        padding: 4.75rem 1.25rem 1.5rem;
        text-align: left;
    }

    .back-home {
        left: 1rem;
        top: 1rem;
        padding-left: 0;
    }

    .header h1 {
        font-size: 2.35rem;
    }

    .header p {
        font-size: 0.98rem;
    }

    .product-card,
    .login-section,
    .user-info-section,
    .modal-content {
        border-radius: 1.25rem;
    }
}
