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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(to bottom right, #0f172a, #581c87, #0f172a);
    min-height: 100vh;
    color: #fff;
}

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

.header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.back-home {
    position: absolute;
    left: 0;
    top: 0;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 1.25rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-home:hover {
    color: #3b82f6;
    transform: translateX(-5px);
}

.header h1 {
    font-size: 3.75rem;
    font-weight: bold;
    margin-bottom: 1rem;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.header p {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 48rem;
    margin: 0 auto;
}

.login-section {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(to right, #3b82f6, #06b6d4);
    border-radius: 1rem;
    animation: fadeIn 1.2s ease-in;
}

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

.phone-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
    transition: all 0.3s;
}

.phone-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.phone-input:focus {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.15);
}

.user-info-section {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(to right, #3b82f6, #06b6d4);
    border-radius: 1rem;
    animation: fadeIn 1.2s ease-in;
}

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

.user-greeting {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.user-stats {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.user-stats span {
    font-weight: bold;
    color: #fbbf24;
    font-size: 1.3rem;
}

.login-button {
    width: 100%;
    padding: 1rem;
    background: white;
    color: #3b82f6;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

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

.product-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-color: #8b5cf6;
}

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

.product-card.advanced::before {
    background: linear-gradient(to right, #a855f7, #ec4899);
}

.product-card.premium::before {
    background: linear-gradient(to right, #f59e0b, #f97316);
}

.product-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
}

.product-card.advanced .product-icon {
    background: linear-gradient(to bottom right, #a855f7, #ec4899);
}

.product-card.premium .product-icon {
    background: linear-gradient(to bottom right, #f59e0b, #f97316);
}

.product-card.premium::after {
    content: '推荐';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(to right, #f59e0b, #f97316);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

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

.product-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-desc {
    color: #cbd5e1;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

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

.price-amount {
    font-size: 2.25rem;
    font-weight: bold;
}

.price-unit {
    font-size: 0.875rem;
    font-weight: bold;
    color: #94a3b8;
}

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

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #cbd5e1;
}

.feature-icon {
    color: #22c55e;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.buy-button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.buy-button:hover {
    opacity: 0.9;
}

.product-card.advanced .buy-button {
    background: linear-gradient(to right, #a855f7, #ec4899);
}

.product-card.premium .buy-button {
    background: linear-gradient(to right, #f59e0b, #f97316);
}

.footer {
    text-align: center;
    margin-top: 4rem;
}

.footer p {
    color: #94a3b8;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.footer p:last-child {
    color: #64748b;
    font-size: 1rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #1e293b;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 28rem;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(148, 163, 184, 0.1);
}

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

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: #94a3b8;
    font-size: 0.875rem;
}

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

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

.product-info p {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.product-info .price {
    font-size: 2rem;
    font-weight: bold;
    color: #8b5cf6;
}

.qrcode-container {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    display: inline-block;
    margin: 0 auto 1.5rem;
}

.qrcode-image {
    width: 200px;
    height: 200px;
    display: block;
}

.qrcode-label {
    color: #1e293b;
    font-size: 0.875rem;
    margin-top: 1rem;
}

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

.modal-footer p {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.modal-footer p:last-child {
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }

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

    .products-grid {
        grid-template-columns: 1fr;
    }
}

.kefu {
    width: 6rem;
    margin: 0 auto;
}

.kefu button {
    width: 100%;
    padding: 0.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: opacity 0.3s;
    background: linear-gradient(to right, #3b82f6, #06b6d4);
}

.kefu button:hover {
    opacity: 0.9;
}

.seo-hidden {
    display: none;
}

.footer-nav {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.footer-nav a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    margin: 0 0.5rem;
}

.footer-nav a:hover {
    color: #fff;
}
