* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
        -webkit-tap-highlight-color: transparent;
}

body {
        background: linear-gradient(135deg, #121212 0%, #1a1a2e 100%);
        min-height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 15px;
        color: #fff;
}

.container {
        width: 100%;
        max-width: 480px;
        background: rgba(25, 25, 35, 0.8);
        border-radius: 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
        overflow: hidden;
        animation: fadeIn 0.8s ease-out;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

header {
        background: linear-gradient(to right, #ff0050, #ff0050);
        color: white;
        padding: 20px 25px;
        text-align: center;
        position: relative;
        overflow: hidden;
}

header::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, rgba(255, 0, 80, 0.2) 0%, rgba(0, 242, 255, 0.2) 50%, rgba(255, 0, 80, 0.2) 100%);
        animation: gradientRotate 8s linear infinite;
        z-index: 0;
}

@keyframes gradientRotate {
        0% {
                transform: rotate(0deg);
        }

        100% {
                transform: rotate(360deg);
        }
}

header h1 {
        font-size: 1.8rem;
        margin-bottom: 8px;
        letter-spacing: 0.5px;
        position: relative;
        z-index: 1;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
        font-size: 0.95rem;
        opacity: 0.9;
        position: relative;
        z-index: 1;
}

.content {
        padding: 20px;
}

.card {
        background: rgba(30, 30, 40, 0.7);
        border-radius: 15px;
        padding: 20px;
        margin-bottom: 20px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(255, 0, 80, 0.3);
}

.card-title {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
        color: #ff0050;
        font-size: 1.3rem;
}

.card-title i {
        margin-right: 10px;
        font-size: 1.4rem;
}

.scrollable-grid-container {
        max-height: 300px;
        overflow-y: auto;
        margin-bottom: 15px;
        scrollbar-width: thin;
        scrollbar-color: #ff0050 rgba(40, 40, 50, 0.5);
        border-radius: 10px;
        padding: 5px;
}

.scrollable-grid-container::-webkit-scrollbar {
        width: 6px;
}

.scrollable-grid-container::-webkit-scrollbar-track {
        background: rgba(40, 40, 50, 0.5);
        border-radius: 10px;
}

.scrollable-grid-container::-webkit-scrollbar-thumb {
        background: #ff0050;
        border-radius: 10px;
}

.product-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
}

.product-item {
        background: rgba(40, 40, 50, 0.7);
        border-radius: 10px;
        padding: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
        border: 2px solid transparent;
        position: relative;
        overflow: hidden;
        min-height: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
}

.product-item:hover {
        background: rgba(50, 50, 60, 0.7);
}

.product-item.selected {
        background: rgba(30, 30, 45, 0.8);
        border-color: #ff0050;
        box-shadow: 0 5px 15px rgba(255, 0, 80, 0.3);
}

.product-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(to right, #ff0050, #00f2ff);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease;
}

.product-item.selected::before {
        transform: scaleX(1);
}

.product-item h3 {
        font-size: 0.9rem;
        color: #fff;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.3;
}

.search-container {
    margin-bottom: 15px;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(40, 40, 50, 0.7);
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #ff0050;
    box-shadow: 0 0 0 2px rgba(255, 0, 80, 0.3);
}

.btn-group {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin: 20px 0;
}

.btn {
        padding: 16px;
        border: none;
        border-radius: 50px;
        font-size: 1.05rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        position: relative;
        overflow: hidden;
        z-index: 1;
}

.btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.1);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: -1;
}

.btn:active::before {
        opacity: 1;
}

.btn i {
        margin-right: 8px;
        font-size: 1.1rem;
}

.btn-primary {
        background: linear-gradient(to right, #ff0050, #ff0050);
        color: white;
}

.btn-primary:hover {
        background: linear-gradient(to right, #e00045, #e00045);
        transform: translateY(-3px);
        box-shadow: 0 8px 15px rgba(255, 0, 80, 0.4);
}

.btn-primary:disabled {
        background: #b33a6a;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
}

.btn-secondary {
        background: linear-gradient(to right, #00f2ff, #00c2ff);
        color: #121212;
}

.btn-secondary:hover {
        background: linear-gradient(to right, #00d9e6, #00a9d9);
        transform: translateY(-3px);
        box-shadow: 0 8px 15px rgba(0, 242, 255, 0.4);
}

.btn-secondary:disabled {
        background: #5aa5b0;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
}

.btn-warning {
        background: linear-gradient(to right, #ff0050, #00f2ff);
        color: white;
}

.btn-warning:hover {
        background: linear-gradient(to right, #e00045, #00d9e6);
        transform: translateY(-3px);
        box-shadow: 0 8px 15px rgba(255, 0, 80, 0.4);
}

.result-box {
        background: rgba(40, 40, 50, 0.7);
        border-radius: 12px;
        padding: 18px;
        margin-top: 15px;
        min-height: 140px;
        border: 1px dashed rgba(255, 255, 255, 0.2);
}

.result-content {
        font-size: 1rem;
        line-height: 1.6;
        color: #ddd;
}

.model-info {
        margin-top: 12px;
        padding-top: 10px;
        border-top: 1px solid rgba(255,255,255,0.1);
        font-size: 0.8rem;
        color: #999;
        text-align: right;
}

.model-info i {
        margin-right: 4px;
}

.placeholder {
        color: #777;
        font-style: italic;
        text-align: center;
        padding: 40px 0;
}

.loading {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 40px 0;
}

.spinner {
        width: 35px;
        height: 35px;
        border: 3px solid rgba(255, 0, 80, 0.2);
        border-top: 3px solid #ff0050;
        border-radius: 50%;
        animation: spin 1s linear infinite;
}

@keyframes spin {
        0% {
                transform: rotate(0deg);
        }

        100% {
                transform: rotate(360deg);
        }
}

.notification {
        position: fixed;
        top: 20px;
        right: 20px;
        left: 20px;
        background: rgba(40, 40, 50, 0.95);
        color: white;
        padding: 15px 20px;
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        animation: slideIn 0.5s, fadeOut 0.5s 2.5s forwards;
        z-index: 1000;
        border-left: 4px solid #ff0050;
        display: flex;
        align-items: center;
}

.notification.error {
        border-left: 4px solid #ff0050;
}

.notification i {
        margin-right: 10px;
        font-size: 1.2rem;
}

@keyframes slideIn {
        from {
                transform: translateY(-100%);
                opacity: 0;
        }

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

@keyframes fadeOut {
        from {
                opacity: 1;
        }

        to {
                opacity: 0;
        }
}

.qrcode-container {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        margin-top: 15px;
}

#qrcode {
        background: white;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#qrcode img {
        display: block;
}

.share-actions {
        margin-top: 20px;
        text-align: center;
}

.share-tip {
        margin-top: 15px;
        font-size: 0.9rem;
        color: #aaa;
        font-style: italic;
}

footer {
        text-align: center;
        padding: 15px;
        color: #777;
        font-size: 0.8rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.douyin-logo {
        display: inline-block;
        width: 24px;
        height: 24px;
        background: linear-gradient(45deg, #ff0050, #00f2ff);
        border-radius: 4px;
        margin: 0 5px;
        vertical-align: middle;
}

@media (max-width: 480px) {
        .container {
                border-radius: 15px;
        }

        header {
                padding: 18px 20px;
        }

        header h1 {
                font-size: 1.6rem;
        }

        .content {
                padding: 15px;
        }

        .card {
                padding: 18px;
                border-radius: 12px;
        }

        .card-title {
                font-size: 1.2rem;
        }

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

        .product-item {
                padding: 10px;
                min-height: 60px;
        }

        .product-item h3 {
                font-size: 0.85rem;
        }

        .btn {
                padding: 14px;
                font-size: 1rem;
        }

        .result-box {
                min-height: 120px;
                padding: 15px;
        }
}