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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.container {
    width: 100%;
    max-width: 600px;
}

.main-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.header-section {
    text-align: center;
    margin-bottom: 32px;
}

.main-title {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 15px;
    color: #718096;
    font-weight: 400;
}

.notice-box {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-left: 4px solid #3b82f6;
    border-radius: 10px;
    margin-bottom: 20px;
}

.notice-icon {
    font-size: 24px;
    line-height: 1;
}

.notice-content {
    flex: 1;
}

.notice-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 6px;
}

.notice-text {
    font-size: 14px;
    color: #3b82f6;
    line-height: 1.6;
}

.tips-box {
    padding: 18px 20px;
    background: #fefce8;
    border-left: 4px solid #eab308;
    border-radius: 10px;
    margin-bottom: 28px;
}

.tips-title {
    font-size: 15px;
    font-weight: 700;
    color: #854d0e;
    margin-bottom: 12px;
}

.tips-list {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.tips-list li {
    font-size: 14px;
    color: #a16207;
    line-height: 1.8;
    position: relative;
    padding-left: 12px;
}

.tips-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #eab308;
    font-weight: bold;
}

.query-section {
    margin-bottom: 20px;
}

.search-wrapper {
    display: flex;
    gap: 15px;
}

.search-input {
    flex: 1;
    height: 56px;
    padding: 0 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
    background: #f8fafc;
    color: #2d3748;
}

.search-input:focus {
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.search-btn {
    height: 56px;
    padding: 0 36px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
}

.search-btn:hover {
    background: linear-gradient(135deg, #5568d3, #6a3f8f);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.search-btn:active {
    transform: translateY(0);
}

.loading-box {
    text-align: center;
    padding: 50px 0;
    color: #6b7280;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-box p {
    font-size: 15px;
    color: #718096;
}

.result-section {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
}

.result-content {
    background: #f7fafc;
    border-radius: 10px;
    padding: 24px;
    border: 1px solid #e2e8f0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.info-label {
    font-size: 15px;
    color: #718096;
    font-weight: 500;
}

.info-value {
    font-size: 15px;
    color: #2d3748;
    font-weight: 600;
}

.divider {
    height: 1px;
    background: #e2e8f0;
}

.status-active {
    padding: 8px 18px;
    background: #10b981;
    color: #ffffff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
}

.status-expired {
    padding: 8px 18px;
    background: #ef4444;
    color: #ffffff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
}

.status-frozen {
    padding: 8px 18px;
    background: #f59e0b;
    color: #ffffff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
}

.status-unused {
    padding: 8px 18px;
    background: #6b7280;
    color: #ffffff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
}

.error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 24px;
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 12px;
    color: #dc2626;
    font-size: 16px;
    font-weight: 500;
    animation: shake 0.4s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.copyright {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

@media (max-width: 768px) {
    body {
        padding: 15px 12px;
    }

    .container {
        max-width: 100%;
    }

    .main-card {
        padding: 24px 20px;
        border-radius: 12px;
    }
    
    .header-section {
        margin-bottom: 20px;
    }
    
    .main-title {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .subtitle {
        font-size: 13px;
    }

    .notice-box {
        padding: 12px 14px;
        gap: 8px;
        margin-bottom: 16px;
        border-radius: 8px;
    }

    .notice-icon {
        font-size: 18px;
    }

    .notice-title {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .notice-text {
        font-size: 12px;
        line-height: 1.5;
    }

    .tips-box {
        padding: 14px 16px;
        margin-bottom: 22px;
        border-radius: 8px;
    }

    .tips-title {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .tips-list {
        padding-left: 16px;
    }

    .tips-list li {
        font-size: 12px;
        line-height: 1.7;
        padding-left: 8px;
        margin-bottom: 4px;
    }

    .tips-list li:last-child {
        margin-bottom: 0;
    }

    .query-section {
        margin-bottom: 24px;
    }
    
    .search-wrapper {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-input {
        height: 50px;
        padding: 0 18px;
        font-size: 15px;
        border-radius: 10px;
        border-width: 1.5px;
    }

    .search-btn {
        height: 50px;
        width: 100%;
        padding: 0;
        font-size: 16px;
        font-weight: 600;
        border-radius: 10px;
    }

    .result-header {
        font-size: 16px;
        margin-bottom: 14px;
    }
    
    .result-content {
        padding: 16px;
        border-radius: 8px;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px 0;
    }

    .info-label {
        font-size: 13px;
    }

    .info-value {
        font-size: 14px;
    }

    .status-active,
    .status-expired,
    .status-frozen,
    .status-unused {
        padding: 5px 12px;
        font-size: 13px;
        border-radius: 6px;
    }

    .error-message {
        padding: 12px 16px;
        font-size: 13px;
        border-radius: 8px;
    }

    .error-message svg {
        width: 18px;
        height: 18px;
    }

    .loading-box {
        padding: 35px 0;
    }

    .spinner {
        width: 36px;
        height: 36px;
        border-width: 3px;
        margin-bottom: 16px;
    }

    .loading-box p {
        font-size: 13px;
    }

    .copyright {
        margin-top: 18px;
        font-size: 12px;
    }
}

