:root {
    --primary-color: #5e72e4;
    --primary-light: #8290e8;
    --dark-color: #2d3748;
    --light-color: #f7fafc;
    --gray-color: #e2e8f0;
    --success-color: #48bb78;
    --error-color: #f56565;
    --border-radius: 8px;
    --transition: all 0.2s ease;
    --secondary-color: #3a0ca3;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /*--transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);*/
}

@keyframes phasedFadeIn {
    0% {
        opacity: 0;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

body {
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #f8fafc;
    color: var(--dark-color);
    line-height: 1.5;
    min-height: 100vh;
    padding: 0.6rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body .layui-layer-class .layui-layer-content {overflow: visible;}
body .layui-layer-class .layui-layer-btn{padding-top:0px;}
body .layui-layer-class .layui-layer-btn .layui-layer-btn1{background:#16b777;border-color:#16b777;color:#fff;}

.container {
    max-width: 640px;
    margin: 0.1rem auto;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: center;
}

.header h1 {
    font-weight: 600;
    font-size: 1.5rem;
}

.content {
    padding: 1rem;
}

.notice {
    background-color: var(--light-color);
    border-left: 4px solid var(--primary-color);
    padding: 0.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.notice h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.notice ul {
    list-style: none;
}

.notice li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.25rem;
}

.notice li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.notice .download-link:hover{
    text-decoration: none;
}

.official-info {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: rgba(94, 114, 228, 0.1);
    border-radius: var(--border-radius);
}

.official-qq {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-weight: 500;
    margin: 0.5rem 0;
}

.official-note {
    font-size: 0.875rem;
    color: #4a5568;
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-color);
    margin-bottom: 1rem;
}

.tab {
    padding: 0.8rem;
    cursor: pointer;
    font-size: 0.9375rem;
    color: #4a5568;
    position: relative;
    transition: var(--transition);
    font-weight: 500;
}

.tab:hover {
    color: var(--primary-color);
}

.tab.active {
    color: var(--primary-color);
}

.tab.active:after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

.search-box {
    margin-bottom: 0.5rem;
    position: relative;
}

.search-box-fadeIn {
    animation: phasedFadeIn 0.5s ease-in-out forwards;
}

.search-label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    pointer-events: none;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
}

.search-input {
    display: flex;
}

.search-input input {
    flex: 1;
    padding: 0.75rem 1rem 0.75rem 1rem;
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 0.9375rem;
    transition: var(--transition);
    outline: none;
}

.search-input input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(94, 114, 228, 0.2);
}

.search-input input:focus + .search-label,
.search-input input:not(:placeholder-shown) + .search-label {
    top: 0;
    left: 0.75rem;
    transform: translateY(-50%) scale(0.9);
    background: white;
    padding: 0 0.25rem;
    color: var(--primary-color);
}

.search-input button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    font-size: 0.9375rem;
    transition: var(--transition);
    font-weight: 500;
}

.search-input button:hover {
    background-color: var(--primary-light);
}

.result-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    /*margin-top: 0.5rem;*/
    /*margin-bottom: 0.5rem;*/
}

.result-content {
    padding: 0.5rem;
    border-radius: var(--border-radius);
    /*box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);*/
    /*border: 1px solid var(--gray-color);*/
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
}

.result-container.show {
    max-height: 500px;
}

.result-container.show .result-content {
    opacity: 1;
    transform: translateY(0);
}

.result-success {
    background-color: rgba(72, 187, 120, 0.1);
    border-color: rgba(72, 187, 120, 0.3);
}

.result-error {
    background-color: rgba(245, 101, 101, 0.1);
    border-color: rgba(245, 101, 101, 0.3);
}

.result-title {
    display: flex;
    align-items: center;
    /*margin-bottom: 0rem;*/
    font-weight: 600;
}

.result-title i {
    margin-right: 0.5rem;
    font-weight: bold;
    font-style: normal;
}

.success-title {
    color: var(--success-color);
}

.error-title {
    color: var(--error-color);
}

.result-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-color);
}

.result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.result-label {
    font-weight: 500;
    color: #4a5568;
    margin-right: 0.5rem;
}

.result-value {
    color: var(--dark-color);
}

.download-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.download-link:hover {
    text-decoration: underline;
}

.auth-section {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.03) 0%, rgba(67, 97, 238, 0.01) 100%);
    padding: 10px;
    border-radius: var(--border-radius);
    /*margin-top: 0.5rem;*/
    border: 1px solid rgba(67, 97, 238, 0.1);
}

.auth-section-fadeIn {
    animation: phasedFadeIn 0.5s ease-in-out forwards;
}

.auth-section h3 {
    color: var(--secondary-color);
    margin-top: 0;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: bold;
}

.auth-section p {
    text-align: center;
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.qr-code {
    background-color: white;
    width: 160px;
    height: 160px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 15px;
    border: 1px solid #eee;
    transition: var(--transition);
}

.qr-code:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.qr-code span {
    color: #ddd;
    font-size: 14px;
}

.iQ-icon {width: 1.5em;height: 1.5em;vertical-align: -0.37em;fill: currentColor;overflow: hidden;}

@media (max-width: 640px) {
    .container {
        margin: 0.1rem auto;
    }
    
    .tabs {
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .tab {
        white-space: nowrap;
    }
    
    .search-input {
        flex-direction: column;
    }
    
    .search-input input {
        border-radius: var(--border-radius);
        margin-bottom: 0.5rem;
        padding-left: 1rem;
    }
    
    .search-input button {
        border-radius: var(--border-radius);
        padding: 0.75rem;
    }
    
    .search-label {
        position: absolute;
    left: 12px;
    top: 20px;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
    background: white;
    padding: 0 5px;
    }
    
    .search-input input:focus + .search-label,
    .search-input input:not(:placeholder-shown) + .search-label {
        left: 0.75rem;
    }
    
    .auth-section {
        padding: 20px 15px;
    }
}

#suggestions {border: 1px solid #ccc;overflow-y: auto;display: none;}
.suggestion-item {padding: 8px;cursor: pointer;}
.suggestion-item:hover {background-color: #f0f0f0;}