* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* 默认换行显示 */
.search-gpt {
    display: none;
}
body {
    
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.header {
    padding: 1.5rem 0;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.logo span {
    color: #00ab6c;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.1em;
}

.search-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.search-input {
    
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid #00ab6c;
    border-radius: 30px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 171, 108, 0.2);
}

.search-button {
    padding: 1rem 2rem;
    background-color: #00ab6c;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    
}

.search-button:hover {
    background-color: #00965c;
}

.more-button {
    margin-left: 2em;
    padding: 0.5em 2em;
    /* padding-left: 2rem; */
    /* padding-right: 2rem; */
    background-color: #00ab6c;
    align-items: right;
    color: white;
    border: none;
    border-radius: 30px;
    /* font-size: 1.1rem; */
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    
}

.main-content {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.grid-title {
    font-size: 1rem;
    color: #444;
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
    border-left: 4px solid #00ab6c;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.grid-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.item-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #f0f0f0;
}

.item-content {
    padding: 1.5rem;
}

.item-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.item-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
    height: 180px;
    background-color: #f8f9fa;
}

.example-urls {
    margin-top: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.example-title {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.8rem;
}

.url-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.url-item {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #444;
    cursor: pointer;
    transition: all 0.2s ease;
}

.url-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.instructions {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.instructions h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.step {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: #00ab6c;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    margin-bottom: 1rem;
}

.step h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step p {
    color: #666;
    font-size: 0.95rem;
}

.footer {
    /* text-align: center; */

    /* max-width: 800px; */
    /* width: auto; */
    padding: 2rem;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #eaeaea;
    margin-top: 3rem;

    margin-left: 2%;
    margin-right: 2%;
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .search-form {
        flex-direction: column;
    }

    .search-input {
        font-size: 0.85em;
        /* font-size: 0.5em; */
    }
    .search-button {
        width: 100%;
    }

    .logo {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .item-image {
        height: 150px;
    }

    .item-content {
        padding: 1rem;
    }

    .item-title {
        font-size: 1.1rem;
    }
}


.pagination {
    margin: 20px auto;
    text-align: center; /* 确保内容居中 */
}

.pagination nav {
    display: flex;
    justify-content: center;        /* 水平居中 */
    align-items: center;             /* 垂直居中 */
    flex-wrap: nowrap;               /* 强制不换行 */
    gap: 4px;                        /* 按钮之间小间距 */
    font-size: 14px;
    white-space: nowrap;             /* 防止内部换行 */
    /* padding: 8px 12px; */
    /* background-color: #f9f9f9; */
    /* border-radius: 6px; */
    /* border: 1px solid #ddd; */
}

/* 统一按钮样式 */
.pagination a.page-link,
.pagination span.current-page,
.pagination span.disabled,
.pagination span.ellipsis {
    padding: 6px 10px;
    text-decoration: none;
    border: 1px solid #007cba;
    color: #007cba;
    background-color: #fff;
    border-radius: 4px;
    min-width: 36px;
    text-align: center;
}

/* 当前页高亮 */
.pagination span.current-page {
    background-color: #007cba;
    color: white;
    border: 1px solid #007cba;
    font-weight: bold;
}

/* 禁用状态样式 */
.pagination span.disabled {
    color: #ccc;
    border: 1px solid #eee;
    cursor: not-allowed;
}

/* 省略号样式 */
.pagination span.ellipsis {
    color: #888;
    pointer-events: none;
    border: none;
    background: transparent;
    font-weight: bold;
}

/* 可点击链接悬停效果 */
.pagination a.page-link:hover:not(.disabled) {
    background-color: #007cba;
    color: white;
    border-color: #007cba;
}


/* --------------------------- */

.quick-search-links {
    margin: 30px 0;
    text-align: center;
}

.quick-search-links a {
    display: inline-block;
    margin: 0 10px 10px;
    padding: 8px 16px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.quick-search-links a:hover {
    background-color: #00ab6c;
    color: white;
    border-color: #00ab6c;
}

.quick-search-links h3 {
    margin-bottom: 15px;
    color: #666;
}