/* 移动端优先设计 */
:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --bg: #f5f6fa;
    --text: #2d3436;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 14px;
    padding: 15px;
}

.container {
    max-width: 100%;
}

.header {
    text-align: center;
    margin-bottom: 20px;
    h1 {
        color: var(--primary);
        font-size: 1.8rem;
        margin-bottom: 5px;
        i {
            margin-right: 10px;
        }
    }
    p {
        color: #666;
        font-size: 1rem;
    }
}

.search-box {
    margin-bottom: 20px;
    form {
        display: flex;
        gap: 10px;
    }
    #search-input {
        flex: 1;
        padding: 12px 15px;
        border: 1px solid #ddd;
        border-radius: 25px;
        font-size: 16px;
        &:focus {
            outline: none;
            border-color: var(--secondary);
            box-shadow: 0 0 8px rgba(52, 152, 219, 0.2);
        }
    }
    #search-btn {
        width: 50px;
        height: 50px;
        border: none;
        background: var(--secondary);
        color: white;
        border-radius: 50%;
        cursor: pointer;
        transition: background 0.3s;
        &:hover {
            background: darken(var(--secondary), 10%);
        }
    }
}

.result-area {
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.result-counter {
    color: var(--secondary);
    font-weight: 500;
    padding: 10px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    span {
        font-weight: bold;
    }
}

.data-list {
    .data-item {
        padding: 15px;
        background: #f8f9fa;
        border-radius: 10px;
        margin-bottom: 10px;
        .item-row {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
            font-size: 14px;
            .label {
                color: #666;
                min-width: 50px;
                font-weight: 500;
            }
            &:last-child {
                margin-bottom: 0;
            }
        }
    }
}

.no-results {
    text-align: center;
    padding: 30px 15px;
    color: #666;
    i {
        font-size: 2rem;
        color: #bdc3c7;
        margin-bottom: 15px;
    }
}

/* 桌面端适配 */
@media (min-width: 768px) {
    body {
        font-size: 16px;
        padding: 20px;
    }
    .container {
        max-width: 600px;
        margin: 0 auto;
    }
    .data-list .data-item {
        padding: 20px;
    }
}