/* 合并后的 CSS 文件 - 包含 ok.css 和 ziji.css 的功能 */
/* 主容器样式 */
.box {
    max-width: 44.5rem;
    margin: 2rem auto 1rem;
    text-align: center;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(20, 70, 50, 0.05) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 12px;
    border: 1px solid rgba(20, 70, 50, 0.15);
    box-shadow: 0 4px 15px rgba(20, 70, 50, 0.08);
}

.logoBox {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 10px;
}

.logoBox .logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logoBox .logo img {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(20, 70, 50, 0.2));
}

.logoBox .title {
    font-family: 'Montserrat', -apple-system, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(20, 70, 50, 0.9) 0%, rgba(45, 140, 90, 0.9) 50%, rgba(20, 70, 50, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(20, 70, 50, 0.15);
    padding: 0.5rem 0;
    margin: 0;
}

.subTitle {
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(20, 70, 50, 0.8);
    line-height: 1.5;
    max-width: 90%;
    margin: 0 auto 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 5px 10px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(20, 70, 50, 0.1);
}

.subTitle-custom {
    font-family: Arial, sans-serif;
    font-weight: bold;
    background: linear-gradient(89deg, rgb(114, 6, 226), rgb(246, 4, 129), rgb(6, 40, 231), rgb(243, 0, 0)) text;
    color: transparent;
    text-transform: uppercase;
    text-shadow: rgba(0, 0, 0, 0.1) 0px 2px 4px;
}

/* 搜索区域样式 */
.indexso {
    width: 100%;
    margin: 8px 0;
    overflow: hidden;
}

.search-container {
    margin: 0 auto;
    padding: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    border-radius: 16px;
    border: 1px solid rgba(20, 70, 50, 0.15);
    box-shadow: 0 8px 30px rgba(20, 70, 50, 0.12);
    backdrop-filter: blur(10px);
}

.search-header {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
}

.search-title {
    font-family: 'Montserrat', -apple-system, sans-serif;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(20, 70, 50, 0.9) 0%, rgba(45, 140, 90, 0.9) 50%, rgba(20, 70, 50, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1.3;
}

.search-subtitle {
    font-size: 16px;
    color: rgba(20, 70, 50, 0.8);
    margin: 0;
}

.highlight {
    color: #FC7D02;
    font-weight: 700;
}

.search-box {
    margin: 24px 0;
}

.search-form {
    width: 100%;
}

.search-input-wrapper {
    display: flex;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(20, 70, 50, 0.15);
    border: 1px solid rgba(20, 70, 50, 0.2);
    min-height: 60px;
}

.search-input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    outline: none;
    font-size: 16px;
    background: white;
    color: rgba(20, 70, 50, 0.9);
    min-width: 0;
}

.search-input::placeholder {
    color: rgba(20, 70, 50, 0.5);
    font-size: 15px;
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 19px;
    background: linear-gradient(135deg, #8859ff 0%, #6a3dff 100%);
    border: none;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-btn:hover {
    background: linear-gradient(135deg, #6a3dff 0%, #5a2de8 100%);
    box-shadow: 0 4px 12px rgba(106, 61, 255, 0.3);
}

.search-icon {
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* 标签样式 */
.tagcss {
    width: 100%;
    margin: 20px 0;
    text-align: center;
}

.tagcss a {
    display: inline-block;
    padding: 4px 8px;
    margin: 3px 5px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    border: 1px solid rgba(20, 70, 50, 0.15);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    color: rgb(3 51 32 / 90%);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(20, 70, 50, 0.08);
    position: relative;
    overflow: hidden;
}

.tagcss a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.tagcss a:hover {
    background: linear-gradient(135deg, rgba(136, 89, 255, 0.1) 0%, rgba(106, 61, 255, 0.15) 100%);
    border-color: rgba(136, 89, 255, 0.3);
    color: #8859ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(136, 89, 255, 0.2);
}

.tagcss a:hover::before {
    left: 100%;
}

/* 热门话题列表样式 */
.top-topic-list {
    width: 100%;
    margin: 10px 0;
}

.top-topic-list ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 0;
    margin: 0;
}

.top-topic-list li {
    list-style: none;
    margin: 0;
    min-width: 0;
}

.top-topic-list a {
    display: block;
    padding: 12px 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    border: 1px solid rgba(20, 70, 50, 0.15);
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: rgba(20, 70, 50, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(20, 70, 50, 0.08);
    word-break: break-word;
    white-space: normal;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    line-height: 1.4;
    box-sizing: border-box;
    width: 100%;
}

.top-topic-list a:hover {
    background: linear-gradient(135deg, rgba(136, 89, 255, 0.1) 0%, rgba(106, 61, 255, 0.15) 100%);
    border-color: rgba(136, 89, 255, 0.3);
    color: #8859ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(136, 89, 255, 0.2);
}

/* 顶部列表样式 */
.toplist {
    overflow: hidden;
    width: auto;
    margin-bottom: 5px;
}

.admore {
    text-align: center;
    display: block;
}

.toplist img {
    width: 310px;
    border: none;
    box-shadow: none;
    border-radius: 10px;
}

/* 按钮样式 */
@media screen and (max-width: 768px) {
    .searchBox .search .btn {
        width: 15vw;
        height: 12.5vw;
    }
}

.searchBox .search .btn {
    width: 131px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #FC7D02;
    background: #8859ff;
    border-radius: 0 8px 8px 0;
    overflow: hidden;
}

/* 响应式设计 - 平板 */
@media screen and (max-width: 1024px) {
    .box {
        max-width: 90%;
        padding: 1.5rem 1rem;
    }
    
    .logoBox .title {
        font-size: 1.8rem;
    }
    
    .subTitle {
        font-size: 0.95rem;
        max-width: 95%;
    }
    
    .search-container {
        padding: 24px;
    }
    
    .search-title {
        font-size: 24px;
    }
    
    .search-subtitle {
        font-size: 14px;
    }
    
    .search-input-wrapper {
        min-height: 56px;
    }
    
    .search-input {
        padding: 14px 19px;
        font-size: 15px;
    }
    
    .search-btn {
        padding: 0 16px;
        font-size: 15px;
    }
    
    .tagcss {
        margin: 16px 0;
    }
    
    .tagcss a {
        padding: 7px 14px;
        margin: 4px 6px;
        font-size: 13px;
    }
    
    .top-topic-list ul {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .top-topic-list a {
        padding: 10px 6px;
        font-size: 14px;
        min-height: 55px;
    }
}

/* 响应式设计 - 手机端 */
@media screen and (max-width: 768px) {
    .box {
        margin: 8px auto 8px;
        padding: 12px 8px;
        border-radius: 10px;
    }
    
    .logoBox {
        gap: 0.8rem;
        margin-bottom: 10px;
    }
    
    .logoBox .logo img {
        height: 50px;
        max-width: 150px;
    }
    
    .logoBox .title {
        font-size: 1.4rem;
        letter-spacing: 1px;
        line-height: 1.3;
    }
    
    .subTitle {
        font-size: 0.85rem;
        margin-bottom: 12px;
        line-height: 1.4;
        padding: 10px 16px;
    }
    
    .search-container {
        padding: 24px;
    }
    
    .search-title {
        font-size: 21px;
    }
    
    .search-subtitle {
        font-size: 14px;
    }
    
    .search-input-wrapper {
        min-height: 52px;
        border-radius: 10px;
    }
    
    .search-input {
        padding: 13px 16px;
        font-size: 14px;
    }
    
    .search-input::placeholder {
        font-size: 14px;
    }
    
    .search-btn {
        padding: 0 13px;
        font-size: 14px;
        gap: 5px;
    }
    
    .search-icon {
        width: 16px;
        height: 16px;
    }
    
    .tagcss {
        margin: 12px 0;
    }
    
    .tagcss a {
        padding: 6px 12px;
        margin: 3px 5px;
        font-size: 12px;
        border-radius: 16px;
    }
    
    .top-topic-list ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .top-topic-list a {
        padding: 8px 4px;
        font-size: 12px;
        min-height: 50px;
        line-height: 1.3;
    }
}

/* 超小屏幕手机优化 */
@media screen and (max-width: 480px) {
    .logoBox .title {
        font-size: 1.2rem;
        letter-spacing: 0.8px;
    }
    
    .subTitle {
        font-size: 18px;
        line-height: 1.4;
        padding: 8px 8px; 
    }
    
    .search-container {
        padding: 16px;
    }
    
    .search-title {
        font-size: 19px;
    }
    
    .search-input-wrapper {
        min-height: 48px;
        border-radius: 8px;
    }
    
    .search-input {
        padding: 11px 13px;
        font-size: 14px;
    }
    
    .search-input::placeholder {
        font-size: 14px;
    }
    
    .search-btn {
        padding: 0 11px;
        font-size: 14px;
        gap: 3px;
    }
    
    .search-icon {
        width: 15px;
        height: 15px;
    }
    
    .tagcss {
        margin: 10px 0;
    }
    
    .tagcss a {
        padding: 3px 5px;
        margin: 2px 4px;
        font-size: 14px;
        border-radius: 6px;
    }
    
    .top-topic-list a {
        padding: 6px 3px;
        font-size: 14px;
        min-height: 45px;
        line-height: 1.2;
    }
}

/* 极端情况：非常窄的屏幕 */
@media screen and (max-width: 360px) {
    .search-container {
        padding: 13px;
    }
    
    .search-title {
        font-size: 18px;
    }
    
    .search-input {
        padding: 10px 11px;
    }
    
    .search-btn {
        padding: 0 10px;
    }
    
    .search-text {
        display: none;
    }
    
    .search-icon {
        width: 18px;
        height: 18px;
    }
    
    .top-topic-list a {
        font-size: 12px;
        padding: 5px 2px;
        min-height: 40px;
    }
}

/* 确保与现有样式兼容 */
@media screen and (min-width: 768px) {
    .box {
        margin: 10px auto 16px;
    }
}