* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    background-image: url('../../img/Background.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    padding: 0.8rem 0;
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* 轮播图区域 */
.banner {
    padding: 4rem 0;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    width: 100%;
    min-height: 400px;
}



.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
    padding-top: 2rem;
}

.banner-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.5;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 移动端轮播图样式 */
@media (max-width: 768px) {
    .banner {
        padding: 3rem 0;
        min-height: 300px;
    }
    
    .banner-title {
        font-size: 2rem;
        padding-top: 1rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    header {
        margin-bottom: 0;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 32px;
}

.logo span {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
}

.admin-link a {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.admin-link a:hover {
    background-color: #0056b3;
}

main {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.search-section {
    margin-bottom: 2rem;
}

.search-box {
    background-color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.results-list {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: none;
}

.form-group button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 0.5rem;
}

.form-group button:hover {
    background-color: #0056b3;
}

.results-section h2 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.5rem;
    font-weight: 500;
}

.results-list {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 桌面端样式 - 表格形式 */
@media (min-width: 769px) {
    .result-item {
        display: flex;
        border-bottom: 1px solid #ddd;
        transition: background-color 0.3s ease;
    }
    
    .result-item:hover {
        background-color: #f5f5f5;
    }
    
    .result-item > div {
        flex: 1;
        min-width: 120px;
        padding: 1rem;
        border-right: 1px solid #ddd;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .result-item .model {
        flex: 1.5;
    }
    
    .result-item .notes {
        flex: 1.5;
    }
    
    .result-item .status-badge,
    .result-item .download-btn,
    .result-item .notes-btn {
        margin: 0 auto;
    }
    
    .result-item > div:last-child {
        border-right: none;
    }
    
    .result-item.header {
        background-color: #f9f9f9;
        font-weight: 500;
    }
    
    .result-item.header > div {
        font-weight: 500;
        color: #333;
    }
    
    /* 桌面端隐藏标签 */
    .result-item .label {
        display: none;
    }
    
    .status-badge {
        display: inline-block;
        padding: 0.2rem 0.6rem;
        border-radius: 0;
        font-size: 0.8rem;
        font-weight: 500;
    }
    
    .status-tested {
        background-color: #e6f7ff;
        color: #1890ff;
        border: 1px solid #91d5ff;
    }
    
    .status-untested {
        background-color: #fff7e6;
        color: #fa8c16;
        border: 1px solid #ffd591;
    }
    
    .download-btn {
        display: inline-block;
        background-color: #007bff;
        color: white;
        text-decoration: none;
        padding: 0.4rem 0.8rem;
        border-radius: 4px;
        font-size: 0.8rem;
        transition: background-color 0.3s ease;
    }
    
    .download-btn:hover {
        background-color: #0056b3;
    }
}

/* 手机端样式 - 卡片形式 */
@media (max-width: 768px) {
    .results-list {
        border: none;
        box-shadow: none;
    }
    
    .result-item {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
    
    .result-item > div {
        clear: both;
    }
    
    .result-item.header {
        display: none;
    }
    
    .result-item > div {
        display: block;
        padding: 0;
        border: none;
    }
    
    /* 手机端显示标签 */
    .result-item .label {
        display: inline-block;
        font-weight: 500;
        color: #666;
        width: 100px;
        text-align: left;
        margin-right: 20px;
        float: left;
    }
    
    /* 手机端卡片样式 */
    .result-item .model {
        padding: 1rem;
        border-bottom: 1px solid #eee;
        background-color: #f9f9f9;
        font-size: 1.1rem;
        font-weight: 500;
        color: #333;
    }
    
    .result-item .system {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid #eee;
    }
    
    .result-item .cpu {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid #eee;
    }
    
    .result-item .cpu-model {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid #eee;
    }
    
    .result-item .version {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid #eee;
    }
    
    .result-item .date {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid #eee;
    }
    
    .result-item .status {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid #eee;
    }
    
    .result-item .notes {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid #eee;
    }
    
    .result-item .action {
        padding: 1rem;
        text-align: right;
        background-color: #f9f9f9;
    }
    
    .status-badge {
        display: inline-block;
        padding: 0.2rem 0.6rem;
        border-radius: 0;
        font-size: 0.8rem;
        font-weight: 500;
    }
    
    .status-tested {
        background-color: #e6f7ff;
        color: #1890ff;
        border: 1px solid #91d5ff;
    }
    
    .status-untested {
        background-color: #fff7e6;
        color: #fa8c16;
        border: 1px solid #ffd591;
    }
    
    .download-btn {
        display: inline-block;
        background-color: #007bff;
        color: white;
        text-decoration: none;
        padding: 0.6rem 1.2rem;
        border-radius: 4px;
        font-size: 0.9rem;
        transition: background-color 0.3s ease;
    }
    
    .download-btn:hover {
        background-color: #0056b3;
    }
}

.no-results {
    text-align: center;
    color: #666;
    padding: 2rem;
    border: 1px solid #ddd;
}

footer {
    background-color: #f9f9f9;
    padding: 2rem 0;
    margin-top: 2rem;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
}

.footer-content {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo img {
    height: 40px;
}

.footer-logo span {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: #007bff;
}

.footer-contact {
    text-align: right;
}

.footer-contact p {
    margin: 0.3rem 0;
    color: #666;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0.5rem 0;
    color: #666;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #007bff;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .search-box {
        padding: 1.5rem;
    }
    
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-nav {
        justify-content: center;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    /* 搜索结果响应式设计 - 卡片形式 */
    .results-list {
        border: none;
        box-shadow: none;
    }
    
    .result-item {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
    
    .result-item:first-child {
        display: none;
    }
    
    .result-item > div {
        display: block;
        padding: 0;
        border: none;
    }
    
    /* 手机端卡片样式 */
    .result-item > div:nth-child(1) {
        padding: 1rem;
        border-bottom: 1px solid #eee;
        background-color: #f9f9f9;
        font-size: 1.1rem;
        font-weight: 500;
        color: #333;
    }
    
    .result-item > div:nth-child(2) {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid #eee;
    }
    
    .result-item > div:nth-child(3) {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid #eee;
    }
    
    .result-item > div:nth-child(4) {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid #eee;
    }
    
    .result-item > div:nth-child(5) {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid #eee;
    }
    
    .result-item > div:nth-child(6) {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid #eee;
    }
    
    .result-item > div:nth-child(7) {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid #eee;
    }
    
    .result-item > div:nth-child(8) {
        padding: 1rem;
        text-align: right;
        background-color: #f9f9f9;
    }
    
    /* 手机端信息排列 */
    @media (max-width: 768px) {
        .result-item > div:nth-child(2),
        .result-item > div:nth-child(3) {
            display: flex;
            flex-wrap: wrap;
        }
        
        .result-item > div:nth-child(2)::before,
        .result-item > div:nth-child(3)::before {
            content: '';
            flex-basis: 100%;
            height: 0;
            order: 2;
        }
    }
}