* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
}

.hero-section {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 20px 80px;
    margin-top: 64px;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    color: #fff;
}

.hero-title h1 {
    font-size: 72px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-description {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-search-section {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    padding: 8px 8px 8px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    background: transparent;
    padding: 12px 0;
}

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

.search-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.search-btn img {
    filter: invert(1);
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.search-btn svg {
    width: 20px;
    height: 20px;
}

.search-hint {
    margin-top: 12px;
    font-size: 14px;
    opacity: 0.8;
    color: #fff;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    margin-top: -20px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.dropdown-list {
    display: flex;
    flex-direction: column;
}

.dropdown-item {
    padding: 14px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

.dropdown-item .product-name {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.dropdown-load-more {
    padding: 14px 20px;
    text-align: center;
    cursor: pointer;
    background-color: #fafafa;
    border-top: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.dropdown-load-more:hover {
    background-color: #f0f0f0;
}

.dropdown-load-more span {
    font-size: 14px;
    color: #1890ff;
}

.dropdown-no-more {
    padding: 14px 20px;
    text-align: center;
    background-color: #fafafa;
    border-top: 1px solid #f0f0f0;
    cursor: default;
}

.dropdown-no-more span {
    font-size: 14px;
    color: #1890ff;
}

.dropdown-loading {
    padding: 20px;
    text-align: center;
}

.dropdown-loading span {
    font-size: 14px;
    color: #999;
}

.hero-publish-section {
    flex-shrink: 0;
}

.publish-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.publish-btn img {
    filter: invert(1);
}

.publish-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-suggestion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-top: 60px;
    padding: 30px 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: fit-content;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.suggestion-text {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    opacity: 0.95;
    white-space: nowrap;
}

.suggestion-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.suggestion-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.suggestion-btn svg {
    width: 18px;
    height: 18px;
}

/* 仿照profile页面的action-btn样式 */
.action-btn {
    padding: 10px 20px;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.action-btn:active {
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

.edit-icon {
    width: 16px;
    height: 16px;
    filter: invert(1);
}

/* 发送建议模态框样式 */
.suggestion-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.suggestion-modal-content {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    width: 100%;
    max-width: 550px;
    overflow: hidden;
}

.suggestion-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #fafafa;
}

.suggestion-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.suggestion-modal-body {
    padding: 28px;
}

.suggestion-modal-body .form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suggestion-modal-body .form-group label {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.suggestion-modal-body textarea {
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    resize: vertical;
    font-family: inherit;
    transition: all 0.3s ease;
    min-height: 120px;
    line-height: 1.6;
}

.suggestion-modal-body textarea:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.suggestion-modal-body textarea::placeholder {
    color: #bfbfbf;
}

.suggestion-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    padding: 20px 28px 28px;
    border-top: 1px solid #f0f0f0;
    background-color: #fafafa;
}

.modal-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 80px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    line-height: 1;
    margin: 0;
}

.modal-btn.cancel-btn {
    background-color: #fff;
    color: #666;
    border: 1px solid #d9d9d9;
    height: 38px;
    line-height: 1;
    box-sizing: border-box;
    margin-top: 10px;
}

.modal-btn.cancel-btn:hover {
    color: #1890ff;
    border-color: #1890ff;
}

.modal-btn.submit-btn {
    background-color: #1890ff;
    color: #fff;
    border: none;
    height: 40px;
    line-height: 1;
}

.modal-btn.submit-btn:hover:not(:disabled) {
    background-color: #40a9ff;
}

.modal-btn:disabled {
    background-color: #d9d9d9;
    cursor: not-allowed;
}

/* 产品选择模态框样式 */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.product-modal-content {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    width: 100%;
    max-width: 550px;
    overflow: visible;
    color: #333;
}

.product-modal-content {
    color: #1890ff;
}

.product-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #fafafa;
}

.product-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.product-modal-body {
    padding: 28px;
    overflow: visible;
}

.product-selection-container {
    margin: 0;
}

.product-input-wrapper {
    position: relative;
}

.product-input-wrapper input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    color: #333;
    background-color: #fff;
}

.product-input-wrapper input:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.product-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #d9d9d9;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1001;
    margin-top: 4px;
}

.product-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #333;
}

.product-dropdown-item:hover {
    background-color: #f5f5f5;
}

.product-dropdown-item.load-more {
    background-color: #fafafa;
    color: #1890ff;
    text-align: center;
    font-weight: 500;
}

.product-dropdown-item.no-more {
    background-color: #fafafa;
    color: #1890ff;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
}

.product-dropdown-item.no-more:hover {
    background-color: #e6f7ff;
    color: #40a9ff;
}

.product-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    padding: 20px 28px 28px;
    border-top: 1px solid #f0f0f0;
    background-color: #fafafa;
}

/* 创建产品弹窗样式 */
.create-product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2100;
}

.create-product-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
}

.create-product-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.create-product-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.create-product-modal-header .close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.create-product-modal-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.create-product-modal-body {
    padding: 28px 24px;
}

.create-product-modal-body .form-group {
    margin-bottom: 20px;
}

.create-product-modal-body .form-group:last-child {
    margin-bottom: 0;
}

.create-product-modal-body label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: left;
}

.create-product-modal-body input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s;
    background-color: #fafafa;
}

.create-product-modal-body select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s;
    background-color: #fafafa;
    cursor: pointer;
}

.create-product-modal-body select:focus {
    outline: none;
    border-color: #667eea;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.create-product-modal-body select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.create-product-modal-body input:focus {
    outline: none;
    border-color: #667eea;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.create-product-modal-body input::placeholder {
    color: #bbb;
}

.create-product-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    background-color: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.create-product-modal-footer .modal-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.create-product-modal-footer .cancel-btn {
    background-color: #fff;
    color: #666;
    border: 1px solid #d9d9d9;
}

.create-product-modal-footer .cancel-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.create-product-modal-footer .submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.create-product-modal-footer .submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.create-product-modal-footer .submit-btn:disabled {
    background: #d9d9d9;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .hero-title h1 {
        font-size: 48px;
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: 22px;
    }
    
    .hero-description {
        font-size: 16px;
        padding: 0 20px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .hero-search-section {
        width: 100%;
        max-width: 500px;
    }
    
    .search-box {
        padding: 6px 6px 6px 20px;
    }
    
    .search-box input {
        font-size: 15px;
        padding: 10px 0;
    }
    
    .search-btn {
        width: 44px;
        height: 44px;
    }
    
    .search-hint {
        font-size: 13px;
    }
    
    .publish-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .hero-suggestion {
        flex-direction: column;
        gap: 20px;
        padding: 25px 30px;
        margin-top: 40px;
        width: auto;
        max-width: 90%;
    }
    
    .suggestion-text {
        font-size: 16px;
        text-align: center;
        white-space: normal;
    }
    
    .suggestion-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Toast 提示样式 */
.toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.toast-message {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.toast-message.success {
    background-color: #95de64;
}

.toast-message.error {
    background-color: #ff7875;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .hero-title h1 {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-description {
        font-size: 14px;
    }
}

.navbar {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-image {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1890ff;
    margin: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links .nav-link {
    transition: all 0.3s ease;
}

.nav-link {
    color: #666;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 16px;
    outline: none;
}

.nav-link:hover {
    color: #1890ff;
    background-color: #f0f7ff;
}

.nav-link.active {
    color: #1890ff;
    font-weight: 500;
    background-color: #e6f7ff;
}

.nav-link:active {
    transform: none;
    box-shadow: none;
}

.login-btn {
    background-color: #1890ff;
    color: white !important;
    transition: background-color 0.3s ease;
    outline: none;
}

.login-btn:hover {
    background-color: #badaf5;
    color: white !important;
}

.login-btn:active {
    transform: none;
    box-shadow: none;
}

.user-name {
    font-weight: 500;
}

.lang-switch-btn {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.lang-switch-btn:hover {
    background: #e6e6e6;
    color: #333;
    border-color: #d0d0d0;
    transform: translateY(-1px);
}

.lang-switch-btn:active {
    transform: translateY(0);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.auth-modal {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 420px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2001;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e8e8e8;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background-color: #f5f5f5;
    color: #333;
}

.modal-body {
    padding: 24px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    padding: 12px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.password-toggle:hover {
    background-color: #f5f5f5;
}

.password-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.form-group input:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.form-group input::placeholder {
    color: #bfbfbf;
}

.submit-btn {
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.submit-btn:hover:not(:disabled) {
    background-color: #40a9ff;
}

.submit-btn:disabled {
    background-color: #d9d9d9;
    cursor: not-allowed;
}

.modal-footer {
    padding: 16px 24px 24px;
    text-align: center;
    border-top: 1px solid #e8e8e8;
}

.modal-footer p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.toggle-mode {
    color: #1890ff;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.3s ease;
}

.toggle-mode:hover {
    color: #40a9ff;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .navbar-container {
        flex-direction: row;
        height: auto;
        padding: 10px;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo {
        display: none;
    }
    
    .nav-links {
        flex-wrap: nowrap;
        justify-content: space-between;
        width: 100%;
    }
    
    .nav-links a,
    .nav-link {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .product-card {
        border-radius: 8px;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-info {
        padding: 16px;
    }
    
    .product-name {
        font-size: 16px;
    }
    
    .auth-modal {
        width: 90%;
        max-width: 400px;
        margin: 20px 0;
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
        right: auto;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px 20px;
    }
    
    .form-group input {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .product-image {
        height: 140px;
    }
    
    .product-name {
        font-size: 15px;
    }
    
    .load-more-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
}

/* 类别选择下拉列表样式 */
.category-select-wrapper {
    position: relative;
    width: 100%;
}

.category-select-wrapper input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
}

.category-select-wrapper input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.category-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    margin-top: -1px;
}

.category-dropdown-item {
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
    color: #000;
}

.category-dropdown-item:hover {
    background-color: #f5f5f5;
}

.category-dropdown-item.load-more {
    text-align: center;
    color: #1890ff;
    font-weight: 500;
}

.category-dropdown-item.load-more:hover {
    background-color: #f0f0ff;
}

.category-dropdown-item.no-result {
    text-align: center;
    color: #999;
    cursor: default;
}

.category-dropdown-item.no-result:hover {
    background-color: transparent;
}

.category-dropdown-item.loading {
    text-align: center;
    color: #666;
    cursor: default;
}

.category-dropdown-item.loading:hover {
    background-color: transparent;
}