/* Beautify CSS - Generated by Trae */

/* Top Navigation Bar */
.top-nav-bar { width: 100%; background: #f5f5f5; border-bottom: 1px solid #ddd; height: 35px; line-height: 35px; font-size: 13px; display: flex; justify-content: space-between; padding: 0 20px; box-sizing: border-box; }
.top-nav-list { list-style: none; margin: 0; padding: 0; display: flex; }
.top-nav-item { margin-right: 20px; }
.top-nav-item a { text-decoration: none; color: #666; transition: color 0.2s; }
.top-nav-item a:hover { color: #ff0000; }
.highlight-badge { color: #ff0000; font-weight: bold; }
.arrow-icon { color: #ff0000; margin-left: 5px; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }
.user-info-panel { display: flex; align-items: center; }
.user-info-panel a { margin-left: 15px; color: #666; text-decoration: none; font-size: 13px; }
.user-info-panel a:hover { color: #ff0000; }
.user-avatar { border-radius: 50%; margin-right: 5px; width: 24px; height: 24px; vertical-align: middle; }
.login-btn { color: #ff0000 !important; font-weight: bold; }

/* Header Margin */
.header-margin { margin-top: 20px; }

/* --- Search Box Beautification --- */
.search-container-box {
    width: 100%;
    margin: 0 auto 15px auto;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
}

.search-form-styled {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    max-width: 750px; /* Increased from 600px */
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.search-input-styled {
    flex-grow: 1;
    height: 46px;
    border: 2px solid #eee;
    border-right: none;
    border-radius: 30px 0 0 30px;
    padding: 0 20px;
    font-size: 15px;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
    background: #fcfcfc;
}

.search-input-styled:focus {
    border-color: #ff4d4d;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 77, 77, 0.1);
}

.search-btn-styled {
    height: 46px;
    padding: 0 30px;
    background: linear-gradient(135deg, #ff4d4d, #ff0000);
    color: white;
    border: none;
    border-radius: 0 30px 30px 0;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 77, 77, 0.3);
}

.search-btn-styled:hover {
    background: linear-gradient(135deg, #ff6666, #ff1a1a);
    box-shadow: 0 6px 15px rgba(255, 77, 77, 0.4);
    transform: translateY(-1px);
}

.contact-links-area {
    font-size: 14px;
    color: #666;
}

.contact-highlight {
    color: #ff0000;
    font-weight: bold;
}

.qq-group-icons {
    margin-top: 10px;
}

.qq-group-icons a {
    margin: 0 5px;
    display: inline-block;
    transition: transform 0.2s;
}

.qq-group-icons a:hover {
    transform: scale(1.1);
}

/* Search Type Switcher */
.search-type-switcher {
    display: flex;
    align-items: center;
    margin-right: 10px;
    background: #f9f9f9;
    padding: 4px;
    border-radius: 25px;
    border: 1px solid #eee;
    height: 46px; /* Match input height */
    box-sizing: border-box;
}

.type-option {
    padding: 0 15px;
    height: 36px;
    line-height: 36px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 20px;
    color: #666;
    transition: all 0.3s;
    white-space: nowrap;
}

.type-option:hover {
    color: #ff4d4d;
}

.type-option.active {
    background: #ff4d4d;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(255, 77, 77, 0.3);
}


/* CSS from reference site - Card Styles */
.list_1, .list_2, .list_3 { 
    float:left; 
    margin-right:5px; 
    margin-bottom:5px; 
    width: calc(16.666% - 5px); /* Adjusted width for 6 items per row */
    border:none; 
    background:transparent; 
    overflow:visible; 
    box-sizing: border-box; 
    padding: 3px; 
}

/* Clearfix for every 6th item to ensure proper wrapping */
.list_2:nth-child(6n+1) {
    clear: left;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .list_1, .list_2, .list_3 { width: calc(20% - 5px); }
    .list_2:nth-child(6n+1) { clear: none; }
    .list_2:nth-child(5n+1) { clear: left; }
}
@media (max-width: 992px) {
    .list_1, .list_2, .list_3 { width: calc(25% - 5px); }
    .list_2:nth-child(5n+1) { clear: none; }
    .list_2:nth-child(4n+1) { clear: left; }
}
@media (max-width: 768px) {
    .list_1, .list_2, .list_3 { width: calc(33.333% - 5px); }
    .list_2:nth-child(4n+1) { clear: none; }
    .list_2:nth-child(3n+1) { clear: left; }
}

/* Unified Card Link Style */
.card-item-link {
    display: flex !important; /* Use Flexbox for centering */
    align-items: center; /* Vertically center */
    justify-content: center; /* Horizontally center */
    color: #ff0000 !important;
    background: linear-gradient(to bottom, #ffffff 0%, #f0f0f0 100%);
    border: 1px solid #ddd;
    border-radius: 5px;
    height: 32px; /* Fixed height */
    padding: 0 5px; /* Horizontal padding */
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    overflow: hidden;
    white-space: nowrap; 
    box-sizing: border-box;
    width: 100%;
}

.card-item-link:hover {
    background: linear-gradient(to bottom, #fff 0%, #e6e6e6 100%);
    border-color: #bbb;
    color: #cc0000 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Category Content Container Style (Matches Homepage) */
.category-content {
    overflow:hidden; 
    margin-bottom:5px; 
    border: 1px solid #ddd; 
    padding: 10px; 
    background-color: #f9f9f9; 
    border-radius: 4px; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Category Header Style (Matches Homepage) */
.recommend-header { 
    background: linear-gradient(to bottom, #ff3333 0%, #ff0000 100%);
    height: 40px; 
    line-height: 40px; 
    text-align:center; 
    font-size:13px; 
    margin-bottom:5px; 
    color: #FFFF00; 
    font-weight: bold;
    border: 1px solid #cc0000;
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 1px 2px rgba(0,0,0,0.2);
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}
