/* 
 Theme Name:   yl资源网
 Theme URI:    http://www.ylcycle.cn
 Description:  yl资源网demo
 Author:       zzuyl89
 Author URI:   http://www.ylcycle.cn
 Template:     woostify
 Version:      1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html

 /* == Add your own styles below this line ==
--------------------------------------------*/

/* Contact Form Section */
.yl-contact-section-wrapper {
    background-color: #f9f9f9;
    padding: 60px 0;
    margin-top: 40px;
}

.yl-contact-section {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.yl-contact-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
}

.yl-contact-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}

.yl-contact-form {
    text-align: left;
}

.yl-form-group-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.yl-form-group {
    flex: 1;
    margin-bottom: 20px;
}

.yl-contact-form input,
.yl-contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.yl-contact-form input:focus,
.yl-contact-form textarea:focus {
    border-color: #333;
    outline: none;
}

.yl-form-submit {
    text-align: center;
}

.yl-contact-form button[type="submit"] {
    padding: 12px 40px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.yl-contact-form button[type="submit"]:hover {
    background-color: #555;
}

.yl-contact-success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .yl-form-group-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Remove entire header section on homepage */
.home .site-header {
    display: none !important;
}

/* Remove header navigation buttons and modules on homepage */
.home .top-bar,
.home .site-header .main-navigation,
.home .site-header .site-tools,
.home .site-header .header-tools,
.home .site-header .tools-icon,
.home .site-header .toggle-sidebar-menu-btn,
.home .shipping-bar,
.home .free-shipping-banner,
.home .shipping-notice,
.home .promo-bar {
    display: none !important;
}

/* Clear footer content on homepage */
.home .site-footer {
    display: none !important;
}

/* Custom Header Container */
.yl-custom-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: relative;
    z-index: 1000;
}

.yl-header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.yl-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    align-items: center;
}

.yl-nav-menu li {
    margin: 0;
}

.yl-nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
    padding: 8px 12px;
    white-space: nowrap;
}

.yl-nav-menu a:hover {
    color: #0073aa;
}

.yl-auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.yl-auth-btn {
    padding: 8px 16px;
    border: 1px solid #0073aa;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.yl-register-btn {
    background-color: #0073aa;
    color: #fff;
}

.yl-register-btn:hover {
    background-color: #005a87;
    border-color: #005a87;
}

.yl-login-btn {
    color: #0073aa;
    background-color: transparent;
}

.yl-login-btn:hover {
    background-color: #0073aa;
    color: #fff;
}

@media (max-width: 1024px) {
    .yl-nav-menu {
        gap: 15px;
    }
    
    .yl-nav-menu a {
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .yl-auth-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .yl-header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .yl-nav-menu {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .yl-nav-menu a {
        font-size: 13px;
        padding: 5px 8px;
    }
    
    .yl-auth-buttons {
        gap: 8px;
    }
    
    .yl-auth-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* Full page background image */
body {
    background-image: url('https://example.com/path/to/your/background-image.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Ensure header and footer have solid backgrounds */
.yl-custom-header {
    background-color: #fff;
    position: relative;
    z-index: 1000;
}

/* Container for reordering sections */
.site-content {
    display: flex;
    flex-direction: column;
}

.site-footer {
    background-color: #fff;
    position: relative;
    z-index: 1000;
}

/* Main content area with semi-transparent background for readability */
.site-main {
    background-color: rgba(255, 255, 255, 0.95);
    margin: 20px auto;
    padding: 30px;
    border-radius: 8px;
    max-width: 1200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    order: 1; /* Move main content above search bar */
}

/* Contact form section with transparent background */
.yl-contact-section-wrapper {
    background-color: rgba(249, 249, 249, 0.98);
    border-radius: 8px;
    order: 3; /* Keep contact form at the bottom */
}

/* Search Bar Section */
.yl-search-section-wrapper {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 60px 0;
    margin: 40px 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    order: 2; /* Move search bar below main content */
}

.yl-search-section {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.yl-search-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.yl-search-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}

.yl-search-form {
    text-align: center;
}

.yl-search-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.yl-search-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.yl-search-option:hover {
    border-color: #0073aa;
}

.yl-search-option input[type="radio"] {
    margin-right: 8px;
    accent-color: #0073aa;
}

.yl-search-option input[type="radio"]:checked + span {
    color: #0073aa;
    font-weight: 500;
}

.yl-search-option:has(input[type="radio"]:checked) {
    border-color: #0073aa;
    background-color: #f0f8ff;
}

.yl-search-input-group {
    display: flex;
    max-width: 600px;
    margin: 0 auto 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.yl-search-input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    font-size: 16px;
    outline: none;
    background-color: #fff;
}

.yl-search-input::placeholder {
    color: #999;
}

.yl-search-button {
    padding: 16px 30px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.yl-search-button:hover {
    background-color: #005a87;
}

.yl-search-examples {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.yl-examples-title {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.yl-example-text {
    font-size: 15px;
    color: #333;
    margin: 0;
    font-style: italic;
    background-color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

/* Responsive Design for Search Bar */
@media (max-width: 768px) {
    .yl-search-section-wrapper {
        padding: 40px 0;
        margin: 30px 0;
    }
    
    .yl-search-title {
        font-size: 24px;
    }
    
    .yl-search-options {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .yl-search-input-group {
        flex-direction: column;
        border-radius: 8px;
    }
    
    .yl-search-input {
        padding: 12px 15px;
        border-radius: 8px 8px 0 0;
    }
    
    .yl-search-button {
        padding: 12px 20px;
        border-radius: 0 0 8px 8px;
    }
    
    .yl-search-examples {
        margin: 15px;
    }
}

@media (max-width: 480px) {
    .yl-search-section-wrapper {
        padding: 30px 0;
        margin: 20px 0;
    }
    
    .yl-search-title {
        font-size: 20px;
    }
    
    .yl-search-subtitle {
        font-size: 14px;
    }
    
    .yl-search-option {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* AI Chat Box Section - Floating Chatbot Style */
.yl-ai-chat-wrapper {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 10000;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0073aa, #005a87);
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid #fff;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.yl-ai-chat-wrapper.yl-chat-expanded {
    width: 350px;
    height: auto;
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 16px;
    background-color: #fff;
}

.yl-ai-chat-wrapper:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
}

.yl-ai-chat-section {
    text-align: center;
}

.yl-ai-chat-header {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.yl-ai-chat-title {
    font-size: 16px;
    margin: 0;
    font-weight: 600;
    display: none;
}

.yl-ai-chat-wrapper.yl-chat-expanded .yl-ai-chat-title {
    display: block;
}

.yl-ai-chat-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    margin: 4px 0 0 0;
    display: none;
}

.yl-ai-chat-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yl-ai-chat-box {
    display: none;
    background-color: #fff;
}

.yl-ai-chat-wrapper.yl-chat-expanded .yl-ai-chat-box {
    display: block;
}

.yl-ai-chat-messages {
    height: 250px;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

/* Chatbot Icon */
.yl-chatbot-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    padding: 2px;
    text-align: center;
    word-break: break-all;
}

.yl-ai-chat-wrapper.yl-chat-expanded .yl-chatbot-icon {
    display: none;
}

.yl-ai-message {
    margin-bottom: 15px;
    display: flex;
}

.yl-ai-message-bot {
    justify-content: flex-start;
}

.yl-ai-message-user {
    justify-content: flex-end;
}

.yl-ai-message-content {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.yl-ai-message-bot .yl-ai-message-content {
    background-color: #0073aa;
    color: #fff;
    border-bottom-left-radius: 4px;
}

.yl-ai-message-user .yl-ai-message-content {
    background-color: #e3f2fd;
    color: #333;
    border-bottom-right-radius: 4px;
}

.yl-ai-chat-input-group {
    display: flex;
    padding: 20px;
    gap: 10px;
    align-items: flex-end;
}

.yl-ai-chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 44px;
    max-height: 120px;
    outline: none;
    transition: border-color 0.3s;
}

.yl-ai-chat-input:focus {
    border-color: #0073aa;
}

.yl-ai-chat-send-btn {
    padding: 12px 24px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.yl-ai-chat-send-btn:hover {
    background-color: #005a87;
}

.yl-ai-chat-send-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.yl-ai-chat-tips {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.yl-ai-chat-tips p {
    margin: 0;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* Drag and Drop Styles */
.yl-ai-chat-wrapper.yl-dragging {
    opacity: 0.8;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: none;
}

.yl-ai-chat-wrapper.yl-dragging .yl-chatbot-icon,
.yl-ai-chat-wrapper.yl-dragging .yl-ai-chat-header {
    cursor: grabbing;
}

/* Loading animation */
.yl-ai-loading {
    display: flex;
    gap: 4px;
    align-items: center;
}

.yl-ai-loading span {
    width: 8px;
    height: 8px;
    background-color: #0073aa;
    border-radius: 50%;
    animation: yl-bounce 1.4s infinite ease-in-out both;
}

.yl-ai-loading span:nth-child(1) {
    animation-delay: -0.32s;
}

.yl-ai-loading span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes yl-bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Loading animation */
.yl-ai-loading {
    display: inline-flex;
    gap: 4px;
}

.yl-ai-loading span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #0073aa;
    animation: yl-ai-bounce 1.4s infinite ease-in-out both;
}

.yl-ai-loading span:nth-child(1) { animation-delay: -0.32s; }
.yl-ai-loading span:nth-child(2) { animation-delay: -0.16s; }

@keyframes yl-ai-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Responsive Design for AI Chat Box */
@media (max-width: 768px) {
    .yl-ai-chat-wrapper {
        padding: 40px 0;
        margin: 30px 0;
    }
    
    .yl-ai-chat-title {
        font-size: 24px;
    }
    
    .yl-ai-chat-messages {
        height: 250px;
        padding: 15px;
    }
    
    .yl-ai-message-content {
        max-width: 85%;
    }
    
    .yl-ai-chat-input-group {
        padding: 15px;
        flex-direction: column;
    }
    
    .yl-ai-chat-send-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .yl-ai-chat-wrapper {
        padding: 30px 0;
        margin: 20px 0;
    }
    
    .yl-ai-chat-title {
        font-size: 20px;
    }
    
    .yl-ai-chat-subtitle {
        font-size: 14px;
    }
    
    .yl-ai-chat-messages {
        height: 200px;
    }
}


