/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #1a73e8;
    transition: color 0.3s;
}
a:link{
    color: #1a73e8;
}
a:visited{
    color: #1a73e8;
}
a:hover {
    color: #0d47a1;
}

.container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    padding: 0.9375rem 0;
    box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.logo {
    width: 9.375rem;
    background-color: #fff;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #1a73e8;
    font-size: 1.5rem;
    padding: 0.625rem;
}

.logo img{
  width:90%;
  height:90%;
  object-fit: contain;
}
.logo-text {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.search-form {
    width: 100%;
    max-width: 37.5rem;
}

.search-group {
    display: flex;
    gap: 0.625rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem 0.9375rem;
    border: none;
    border-radius: 1.875rem;
    font-size: 1rem;
    box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.1);
}

.search-btn {
    padding: 0.75rem 1.5625rem;
    background: #fbbc05;
    color: #333;
    border: none;
    border-radius: 1.875rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #ffa000;
}

/* 导航菜单 */
nav {
    background-color: #fff;
    box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.05);
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0.9375rem 0;
    gap: 1.875rem;
}

.nav-menu li a {
    color: #5f6368;
    font-weight: 500;
    padding: 0.3125rem 0.625rem;
    border-radius: 0.25rem;
}

.nav-menu li a:hover, 
.nav-menu li a.active {
    color: #1a73e8;
    background-color: #e8f0fe;
}

/* 主要内容 */
main {
    padding: 2.5rem 0;
}

.section {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
    padding: 1.875rem;
    margin-bottom: 1.875rem;
}

.section:nth-child(1){
  margin-top: 1.875rem;
}

.section-title {
    font-size: 1.5rem;
    color: #1a73e8;
    margin-bottom: 1.25rem;
    padding-bottom: 0.9375rem;
    border-bottom: 0.125rem solid #e8f0fe;
}

.section-content {
    line-height: 1.8;
}

.highlight {
    background-color: #e8f0fe;
    padding: 0.1875rem 0.375rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

/* 链接代码部分 */
.link-codes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
    gap: 1.5625rem;
    margin-top: 1.25rem;
}

.code-card {
    border: 0.0625rem solid #e0e0e0;
    border-radius: 0.625rem;
    padding: 1.25rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.code-card:hover {
    transform: translateY(-0.3125rem);
    box-shadow: 0 0.375rem 0.9375rem rgba(0, 0, 0, 0.1);
}

.code-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.9375rem;
    color: #202124;
    font-weight: 500;
}

.code-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: #e8f0fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a73e8;
    font-size: 1.125rem;
}

.code-input {
    width: 100%;
    padding: 0.75rem 0.9375rem;
    background: #f8f9fa;
    border: 0.0625rem solid #dadce0;
    border-radius: 0.5rem;
    margin: 0.625rem 0;
    font-family: monospace;
    font-size: 0.875rem;
}

.code-preview {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: 0.625rem;
    color: #5f6368;
}

/* 表单部分 */
.submit-form {
    max-width: 43.75rem;
    margin: 1.875rem auto 0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.url-input {
    width: 100%;
    padding: 0.875rem;
    border: 0.0625rem solid #dadce0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border 0.3s;
}

.url-input:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 0.125rem #e8f0fe;
}

.form-note {
    font-size: 0.875rem;
    color: #5f6368;
    margin-top: 0.3125rem;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 0.875rem;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #0d47a1;
}

/* 搜索代码部分 */
.search-code {
    background: #f8f9fa;
    border: 0.0625rem solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-top: 1.25rem;
    font-family: monospace;
    font-size: 1rem;
    line-height: 1.6;
}

/* 页脚 */
footer {
    background: #202124;
    color: #9aa0a6;
    padding: 1.875rem 0;
    margin-top: 2.5rem;
}

.footer-content {
    text-align: center;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin: 0.9375rem 0;
}

.footer-links a {
    color: #9aa0a6;
}

.footer-links a:hover {
    color: #e8eaed;
}

/* 响应式设计 */
@media (max-width: 48rem) {
    .nav-menu {
        flex-wrap: wrap;
        gap: 0.9375rem;
    }
    
    .header-content {
        gap: 0.9375rem;
    }
    
    .search-group {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .section {
        padding: 1.25rem;
    }
    
    .link-codes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 30rem) {
    .logo-text {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        gap: 0.625rem;
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.625rem;
    }
}

.main_l {
    flex: 1;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.05);
    padding: 1.25rem;
}

.main_r {
    width: 17.5rem;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.05);
    padding: 1.25rem;
}

.result-count {
    color: #666;
    font-size: 0.875rem;
    padding-bottom: 0.9375rem;
    border-bottom: 0.0625rem solid #eee;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
}

/* 结果卡片样式 */
.result-card {
    padding: 1.25rem;
    border-bottom: 0.0625rem solid #f0f0f0;
    transition: all 0.3s;
}

.result-card:hover {
    background: #f9fbfd;
    transform: translateY(-0.1875rem);
}

.result-title {
    display: flex;
    align-items: center;
    margin-bottom: 0.625rem;
}

.result-title h3 {
    font-size: 1.125rem;
    font-weight: bold;
    color: #1a0dab;
    margin-right: 0.625rem;
}

.result-list .rating {
    margin-left: auto;
}

.result-list .description {
    color: #4d5156;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
     display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.result-list .info {
    color: #666;
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9375rem;
}

.result-list .info span {
    display: flex;
    align-items: center;
}
.result-list .info i {
    margin-right: 0.3125rem;
    color: #888;
}

.result-list .url {
    color: #008000;
    font-size: 0.8125rem;
    font-style: italic;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 1.875rem;
}

.main_r .ad-title {
    font-size: 1.125rem;
    color: #333;
    padding-bottom: 0.625rem;
    border-bottom: 0.0625rem solid #eee;
    margin-bottom: 0.9375rem;
    display: flex;
    align-items: center;
}

.main_r .ad-title i {
    margin-right: 0.625rem;
    color: #ff6b00;
}

.main_r .ad-item {
    padding: 0.75rem 0;
    border-bottom: 0.0625rem dashed #eee;
}

.main_r .ad-item:last-child {
    border-bottom: none;
}

.main_r .ad-item a {
    display: flex;
    align-items: center;
}

.main_r .ad-item i {
    margin-right: 0.625rem;
    color: #888;
    font-size: 0.875rem;
}