/* Main Content Styles */

/* Header Styles */
.site-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

.site-logo img {
    height: 36px;
    width: auto;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1;
    margin-left: 60px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu li a {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after,
.nav-menu .current-menu-item > a::after,
.nav-menu .current_page_item > a::after {
    width: 100%;
}

.nav-menu li a:hover,
.nav-menu li a.active,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
    color: var(--primary-color);
}

/* 主导航 NEW 徽章（右上角悬挂） */
.nav-menu .nav-badge {
    position: absolute;
    top: -8px;
    right: -22px;
    padding: 2px 6px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.4px;
    color: #fff;
    background: linear-gradient(135deg, #FF6A00 0%, #FF6FA5 100%);
    border-radius: 8px 8px 8px 2px;
    box-shadow: 0 2px 6px rgba(255, 106, 0, 0.4);
    pointer-events: none;
    transform-origin: bottom left;
    animation: nav-badge-pulse 2s ease-in-out infinite;
}

.nav-menu .nav-badge::before {
    content: '';
    position: absolute;
    top: -3px;
    right: 6px;
    width: 4px;
    height: 4px;
    background: #FF6FA5;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 111, 165, 0.8);
}

@keyframes nav-badge-pulse {
    0%, 100% {
        transform: scale(1) rotate(-4deg);
    }
    50% {
        transform: scale(1.08) rotate(-4deg);
    }
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn {
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-publish {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

.btn-publish:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 106, 0, 0.4);
}

.btn-login {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-login:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-logout {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-logout:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-register {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        height: 60px;
        padding: 0 16px;
    }
    
    .main-nav {
        display: none;
    }
}

/* Footer */
.site-footer {
    background: linear-gradient(180deg, #1a1d24 0%, #0f1115 100%);
    color: #cbd5e1;
    padding: 56px 24px 0;
    margin-top: 60px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* 顶部主区：品牌 + 多栏导航 */
.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
}

/* 品牌信息块 */
.footer-brand {
    max-width: 360px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    margin-bottom: 14px;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    display: block;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, #FF6A00 0%, #FF7E5C 60%, #FF6FA5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.footer-tagline {
    color: #94a3b8;
    font-size: 13.5px;
    line-height: 1.7;
    margin: 0 0 18px;
}

.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    margin-bottom: 8px;
    font-size: 13px;
}

.footer-contact svg {
    flex-shrink: 0;
    color: #FF7E5C;
}

.footer-contact a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: #FF7E5C;
}

/* 导航栏 */
.footer-col {
    min-width: 0;
}

.footer-col-title {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin: 4px 0 16px;
    letter-spacing: 0.4px;
}

.footer-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-link-list li {
    margin-bottom: 10px;
}

.footer-link-list a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13.5px;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
}

.footer-link-list a:hover {
    color: #FF7E5C;
    padding-left: 3px;
}

/* 底部条 */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    color: #64748b;
    font-size: 13px;
    margin: 0;
}

.footer-bottom-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 22px;
}

.footer-bottom-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: #FF7E5C;
}

/* 响应式 */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 36px 32px;
    }
    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
    }
}

@media (max-width: 640px) {
    .site-footer {
        padding: 40px 20px 0;
    }
    .footer-main {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 28px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .footer-bottom-links {
        gap: 16px;
        flex-wrap: wrap;
    }
}

/* Partner Spotlight Widget - 合作伙伴聚焦板块 */
.partner-spotlight-widget {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-top: 24px;
    position: sticky;
    top: 82px;
}

.partner-spotlight-widget .widget-header {
    margin-bottom: 20px;
}

.partner-spotlight-widget .widget-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.partner-spotlight-widget .title-icon {
    color: #FF6A00;
}

/* 合作伙伴列表 */
.partner-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

/* 合作伙伴卡片 */
.partner-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
}

.partner-card:hover {
    border-color: #D1D5DB;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 产品图片占位符 */
.partner-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    border: 2px dashed #D1D5DB;
    background: #F9FAFB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #9CA3AF;
    font-weight: 500;
    position: relative;
}

.partner-image::before {
    content: '100×100';
}

.partner-image img {
    display: none;
}

/* 产品信息 */
.partner-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.partner-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.sample-tag {
    font-size: 14px;
    font-weight: 400;
    color: #9CA3AF;
}

.partner-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #6B7280;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.partner-link {
    font-size: 14px;
    font-weight: 500;
    color: #FF6A00;
    text-decoration: none;
    margin-top: auto;
    display: inline-block;
    transition: color 0.3s ease;
}

.partner-link:hover {
    color: #FF8533;
}

/* 成为合作伙伴按钮 */
.partner-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #FF6A00, #FF8533);
    color: white;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

.partner-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 106, 0, 0.4);
}

.partner-cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 106, 0, 0.3);
}

.partner-cta-btn svg {
    width: 20px;
    height: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .partner-spotlight-widget {
        padding: 16px;
    }
    
    .partner-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .partner-image {
        width: 80px;
        height: 80px;
    }
    
    .partner-desc {
        -webkit-line-clamp: 2;
    }
}

/* 移动端底部导航栏 - Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none; /* 默认隐藏，只在手机端显示 */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    height: 60px;
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: #666666;
    transition: all 0.3s ease;
    font-size: 13px;
    line-height: 1;
    min-width: 0;
    cursor: pointer;
    /* Button 样式重置 */
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-bottom-nav .nav-item.active {
    color: #FF6A00;
}

.mobile-bottom-nav .nav-item.active .nav-icon {
    color: #FF6A00;
}

.mobile-bottom-nav .nav-item:active {
    transform: scale(0.95);
}

.mobile-bottom-nav .nav-icon {
    width: 26px;
    height: 26px;
}

.mobile-bottom-nav .nav-label {
    font-size: 12px;
    font-weight: 500;
}

/* 中间发布按钮 - 参考优秀设计 */
.mobile-bottom-nav .nav-publish {
    flex: none;
    position: relative;
    top: -10px;
    width: 52px;
    height: 52px;
    /* Button 样式重置 */
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-bottom-nav .publish-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 6px solid #FFFFFF;
    background: linear-gradient(135deg, #FF6A00, #FF8533);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 106, 0, 0.25);
    transition: all 0.3s ease;
}

.mobile-bottom-nav .nav-publish:active .publish-btn {
    transform: scale(0.92);
    box-shadow: 0 1px 4px rgba(255, 106, 0, 0.3);
}

/* 手机端显示 */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* 给页面底部留出空间，避免内容被导航栏遮挡 */
    body {
        padding-bottom: 70px;
    }
}

/* 适配 iPhone 刘海屏 */
@supports (padding: max(0px)) {
    .mobile-bottom-nav {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }
}

/* 登录/注册按钮样式 */
.btn-auth {
    background: linear-gradient(135deg, #FF6A00, #FF8533);
    color: white;
    padding: 10px 32px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 106, 0, 0.4);
}

/* 登录模态框遮罩 */
.auth-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    backdrop-filter: blur(4px);
}

.auth-modal-overlay.active {
    display: block;
}

/* 登录模态框 */
.auth-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-modal.active {
    display: block;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* 模态框头部 */
.auth-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #E5E7EB;
}

.auth-modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    color: #1F2937;
    margin: 0;
}

.auth-modal-title svg {
    color: #FF6A00;
}

.auth-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #F3F4F6;
    color: #6B7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.auth-modal-close:hover {
    background: #E5E7EB;
    color: #1F2937;
}

/* 标签切换 */
.auth-tabs {
    display: flex;
    padding: 0 24px;
    gap: 32px;
    border-bottom: 1px solid #E5E7EB;
}

.auth-tab {
    padding: 16px 0;
    border: none;
    background: none;
    font-size: 15px;
    font-weight: 500;
    color: #9CA3AF;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.auth-tab.active {
    color: #FF6A00;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #FF6A00;
}

/* 表单 */
.auth-form {
    padding: 24px;
}

.auth-form-group {
    margin-bottom: 16px;
}

.auth-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #F9FAFB;
}

.auth-input:focus {
    outline: none;
    border-color: #FF6A00;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}

/* 验证码输入框 */
.auth-code-wrapper {
    display: flex;
    gap: 8px;
}

.auth-code-wrapper .auth-input {
    flex: 1;
}

.auth-code-btn {
    padding: 14px 20px;
    border: 1px solid #FF6A00;
    background: white;
    color: #FF6A00;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.auth-code-btn:hover {
    background: #FF6A00;
    color: white;
}

.auth-code-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 复选框 */
.auth-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
}

.auth-checkbox {
    margin-top: 2px;
    cursor: pointer;
}

.auth-checkbox-label {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.5;
}

.auth-checkbox-label a {
    color: #FF6A00;
    text-decoration: none;
}

.auth-checkbox-label a:hover {
    text-decoration: underline;
}

/* 提交按钮 */
.auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FF6A00, #FF8533);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.4);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 底部链接 */
.auth-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-link {
    font-size: 14px;
    color: #6B7280;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #1F2937;
}

.auth-link.primary {
    color: #FF6A00;
    font-weight: 500;
}

.auth-link.primary:hover {
    color: #FF8533;
}

/* 错误和成功消息 */
.auth-error,
.auth-success {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
}

.auth-error {
    background: #FEE2E2;
    color: #DC2626;
    border: 1px solid #FCA5A5;
}

.auth-success {
    background: #D1FAE5;
    color: #059669;
    border: 1px solid #6EE7B7;
}

.auth-error:not(:empty),
.auth-success:not(:empty) {
    display: block;
}

/* 响应式 */
@media (max-width: 768px) {
    .auth-modal {
        width: 95%;
        max-width: none;
    }
    
    .auth-modal-header {
        padding: 20px 16px 12px;
    }
    
    .auth-form {
        padding: 20px 16px;
    }
}

/* 搜索按钮 */
.btn-search {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F3F4F6;
    border: none;
    color: #6B7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.btn-search svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.btn-search:hover {
    background: #E5E7EB;
    color: #1F2937;
}

/* 搜索模态框遮罩 */
.search-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    backdrop-filter: blur(8px);
}

.search-modal-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 搜索模态框 */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
}

.search-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-modal-container {
    max-width: 680px;
    width: 100%;
    position: relative;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 关闭按钮 */
.search-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.search-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* 手机端关闭按钮位置调整 */
@media (max-width: 768px) {
    .search-modal-close {
        top: -40px;
        right: 0;
    }
}

/* 搜索内容区 */
.search-modal-content {
    background: white;
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.search-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6A00, #FF8533);
    color: white;
    margin-bottom: 24px;
}

.search-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 8px 0;
}

.search-modal-subtitle {
    font-size: 15px;
    color: #6B7280;
    margin: 0 0 32px 0;
}

/* 搜索表单 */
.search-modal-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    pointer-events: none;
}

.search-modal-input {
    width: 100%;
    padding: 16px 48px 16px 48px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #F9FAFB;
}

.search-modal-input:focus {
    outline: none;
    border-color: #FF6A00;
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.1);
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #E5E7EB;
    border: none;
    color: #6B7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-clear-btn:hover {
    background: #D1D5DB;
    color: #1F2937;
}

.search-modal-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, #FF6A00, #FF8533);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.4);
}

/* 热门搜索标签 */
.search-hot-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.search-hot-label {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

.search-hot-tag {
    padding: 8px 16px;
    background: #F3F4F6;
    color: #4B5563;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.search-hot-tag:hover {
    background: #FF6A00;
    color: white;
    transform: translateY(-2px);
}

/* 响应式 */
@media (max-width: 768px) {
    .search-modal {
        padding: 16px;
    }
    
    .search-modal-content {
        padding: 32px 24px;
    }
    
    .search-modal-icon {
        width: 64px;
        height: 64px;
    }
    
    .search-modal-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .search-modal-title {
        font-size: 24px;
    }
    
    .search-modal-form {
        flex-direction: column;
    }
    
    .search-modal-btn {
        width: 100%;
    }
    
    .search-hot-tags {
        justify-content: flex-start;
    }
}

/* ========================================
   手机端优化 - Mobile Optimization
   ======================================== */

@media (max-width: 768px) {
    /* 头部容器 */
    .header-container {
        height: 56px;
        padding: 0 16px;
    }
    
    /* Logo 缩小 */
    .site-logo img {
        height: 28px;
    }
    
    /* 隐藏导航菜单 */
    .main-nav {
        display: none;
    }
    
    /* 头部按钮区域 */
    .header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    /* 搜索按钮 - 保持显示 */
    .btn-search {
        width: 36px;
        height: 36px;
    }
    
    .btn-search svg {
        width: 16px;
        height: 16px;
    }
    
    /* 发布按钮 - 隐藏（移到底部导航栏） */
    .btn-publish {
        display: none;
    }
    
    /* 登录按钮 - 缩小 */
    .btn-auth {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 20px;
    }
    
    /* Hero Banner 优化 */
    .hero-banner {
        padding: 40px 16px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-btn {
        width: 100%;
    }
    
    /* 登录模态框手机端优化 */
    .auth-modal {
        width: calc(100% - 32px);
        max-width: 420px;
    }
    
    .auth-modal-header {
        padding: 20px 16px 12px;
    }
    
    .auth-modal-title {
        font-size: 18px;
    }
    
    .auth-tabs {
        padding: 0 16px;
        gap: 24px;
    }
    
    .auth-tab {
        font-size: 14px;
    }
    
    .auth-form {
        padding: 20px 16px;
    }
    
    .auth-input {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .auth-submit-btn {
        padding: 12px;
        font-size: 15px;
    }
    
    /* 搜索模态框手机端优化 */
    .search-modal {
        padding: 16px;
    }
    
    .search-modal-close {
        top: -40px;
    }
    
    .search-modal-content {
        padding: 32px 20px;
    }
    
    .search-modal-icon {
        width: 64px;
        height: 64px;
    }
    
    .search-modal-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .search-modal-title {
        font-size: 22px;
    }
    
    .search-modal-subtitle {
        font-size: 14px;
    }
    
    .search-modal-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-modal-input {
        padding: 14px 40px 14px 40px;
        font-size: 15px;
    }
    
    .search-modal-btn {
        width: 100%;
        padding: 14px;
    }
    
    .search-hot-tags {
        justify-content: flex-start;
        gap: 8px;
    }
    
    .search-hot-tag {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* Partner Spotlight 手机端优化 */
    .partner-spotlight-widget {
        padding: 16px;
        margin-top: 16px;
    }
    
    .partner-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 12px;
    }
    
    .partner-image {
        width: 80px;
        height: 80px;
    }
    
    .partner-title {
        font-size: 15px;
    }
    
    .partner-desc {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    
    .partner-cta-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* 超小屏幕优化 (iPhone SE 等) */
@media (max-width: 375px) {
    .header-container {
        padding: 0 12px;
    }
    
    .site-logo img {
        height: 24px;
    }
    
    .btn-search {
        width: 32px;
        height: 32px;
    }
    
    .btn-auth {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .search-modal-content {
        padding: 24px 16px;
    }
    
    .search-modal-title {
        font-size: 20px;
    }
    
    .auth-modal {
        width: calc(100% - 24px);
    }
}

/* 消息通知按钮和下拉菜单 */
.notification-wrapper {
    position: relative;
}

/* 当鼠标悬停在整个wrapper区域时显示下拉菜单 */
.notification-wrapper:hover .notification-dropdown {
    display: block;
}

.notification-wrapper:hover .btn-notification {
    background: #FF6A00;
    color: white;
}

/* 确保下拉菜单本身也能保持显示 */
.notification-dropdown:hover {
    display: block;
}

.btn-notification {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F3F4F6;
    border: none;
    color: #6B7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
}

.btn-notification svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.btn-notification:hover {
    background: #E5E7EB;
    color: #1F2937;
}

.btn-notification.active {
    background: #FF6A00;
    color: white;
}

/* 通知徽章 */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #EF4444;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 通知下拉菜单 */
.notification-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px); /* 减小间距，从12px改为8px */
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 260px;
    z-index: 1000;
    animation: dropdownSlideIn 0.3s ease;
}

/* 创建一个不可见的桥接区域，连接按钮和下拉菜单 */
.notification-dropdown::after {
    content: '';
    position: absolute;
    top: -8px; /* 向上延伸到按钮区域 */
    left: 0;
    right: 0;
    height: 8px; /* 桥接区域的高度 */
    background: transparent; /* 完全透明 */
}

/* 下拉菜单顶部小箭头 */
.notification-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.notification-dropdown.active {
    display: block;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 通知头部 */
.notification-header {
    padding: 16px 20px;
    border-bottom: 1px solid #E5E7EB;
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 12px 12px 0 0;
}

.notification-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    margin: 0;
}

/* 通知列表 */
.notification-list {
    padding: 8px 0;
}

.notification-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    text-decoration: none;
    color: #4B5563;
    transition: all 0.3s ease;
}

.notification-item:hover {
    background: #F9FAFB;
}

.notification-text {
    font-size: 14px;
    font-weight: 500;
}

.notification-count {
    background: #EF4444;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
}

/* 手机端通知按钮优化 */
@media (max-width: 768px) {
    /* 手机端禁用 hover 效果，改用点击 */
    .notification-wrapper:hover .notification-dropdown {
        display: none;
    }
    
    .notification-wrapper:hover .btn-notification {
        background: #F3F4F6;
        color: #6B7280;
    }
    
    /* 手机端只通过 active 类控制显示 */
    .notification-dropdown.active {
        display: block !important;
    }
    
    .btn-notification {
        width: 36px;
        height: 36px;
    }
    
    .btn-notification svg {
        width: 16px;
        height: 16px;
    }
    
    .notification-badge {
        top: -2px;
        right: -2px;
        font-size: 9px;
        padding: 1px 4px;
        min-width: 16px;
        height: 16px;
        border: 1.5px solid white;
    }
    
    .notification-dropdown {
        right: -8px;
        min-width: 240px;
    }
}

/* 用户头像按钮和下拉菜单 */
.user-menu-wrapper {
    position: relative;
}

/* 当鼠标悬停在整个wrapper区域时显示下拉菜单 */
.user-menu-wrapper:hover .user-menu-dropdown {
    display: block;
}

.user-menu-wrapper:hover .user-avatar-btn {
    border-color: #FF6A00;
}

/* 确保下拉菜单本身也能保持显示 */
.user-menu-dropdown:hover {
    display: block;
}

.user-avatar-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.user-avatar-btn img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-btn:hover {
    border-color: #FF6A00;
    transform: scale(1.05);
}

.user-avatar-btn.active {
    border-color: #FF6A00;
}

/* 用户下拉菜单 */
.user-menu-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px); /* 减小间距，从12px改为8px */
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 260px;
    z-index: 1000;
    animation: dropdownSlideIn 0.3s ease;
}

/* 创建一个不可见的桥接区域，连接按钮和下拉菜单 */
.user-menu-dropdown::after {
    content: '';
    position: absolute;
    top: -8px; /* 向上延伸到按钮区域 */
    left: 0;
    right: 0;
    height: 8px; /* 桥接区域的高度 */
    background: transparent; /* 完全透明 */
}

/* 下拉菜单顶部小箭头 */
.user-menu-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.user-menu-dropdown.active {
    display: block;
}

/* 用户菜单头部 */
.user-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid #E5E7EB;
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 12px 12px 0 0;
}

.user-menu-avatar {
    flex-shrink: 0;
}

.user-menu-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.user-menu-info {
    flex: 1;
    min-width: 0;
}

.user-menu-name {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-email {
    font-size: 12px;
    color: #9CA3AF;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 用户菜单列表 */
.user-menu-list {
    padding: 8px 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: #4B5563;
    transition: all 0.3s ease;
}

.user-menu-item:hover {
    background: #F9FAFB;
    color: #FF6A00;
}

.user-menu-item svg {
    flex-shrink: 0;
    color: currentColor;
}

.user-menu-item span {
    font-size: 14px;
    font-weight: 500;
}

.user-menu-item.logout {
    color: #EF4444;
}

.user-menu-item.logout:hover {
    background: #FEF2F2;
    color: #DC2626;
}

.user-menu-divider {
    height: 1px;
    background: #E5E7EB;
    margin: 8px 0;
}

/* 手机端用户菜单优化 */
@media (max-width: 768px) {
    /* 手机端禁用 hover 效果，改用点击 */
    .user-menu-wrapper:hover .user-menu-dropdown {
        display: none;
    }
    
    .user-menu-wrapper:hover .user-avatar-btn {
        border-color: transparent;
    }
    
    /* 手机端只通过 active 类控制显示 */
    .user-menu-dropdown.active {
        display: block !important;
    }
    
    .user-avatar-btn {
        width: 36px;
        height: 36px;
    }
    
    .user-menu-dropdown {
        right: -8px;
        min-width: 240px;
    }
    
    .user-menu-header {
        padding: 16px;
    }
    
    .user-menu-avatar img {
        width: 40px;
        height: 40px;
    }
    
    .user-menu-name {
        font-size: 14px;
    }
    
    .user-menu-item {
        padding: 10px 16px;
    }
}

/* 手机端下拉菜单遮罩层 */
.dropdown-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    animation: fadeIn 0.3s ease;
}

.dropdown-overlay.active {
    display: block;
}

/* 手机端下拉菜单层级提升 */
@media (max-width: 768px) {
    .notification-dropdown,
    .user-menu-dropdown {
        z-index: 1000;
    }
}


/* ========================================
   返回顶部按钮
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 65px;
    right: 10px;
    width: 50px;
    height: 50px;
    background: #FF6A00;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
    display: none;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    display: block;
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #E65F00;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(255, 106, 0, 0.4);
}

.back-to-top:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 65px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}


/* ========================================
   品牌资讯板块样式
   Brand News Section Styles
   ======================================== */

.brand-news-section {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    /* margin-top: 24px; */
}

.brand-news-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #F3F4F6;
}

.brand-news-section .section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.brand-news-section .section-title svg {
    color: #FF6A00;
    flex-shrink: 0;
}

.view-more-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #FF6A00;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
    background: #FFF5F0;
}

.view-more-link:hover {
    background: #FFE5D9;
    transform: translateX(4px);
}

.view-more-link svg {
    transition: transform 0.3s ease;
}

.view-more-link:hover svg {
    transform: translateX(4px);
}

/* 资讯卡片网格 */
.brand-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* 资讯卡片 - 横向布局 */
.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    height: 120px;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #FF6A00;
}

.news-card-link {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

/* 卡片图片 - 左侧固定宽度 */
.news-card-image {
    position: relative;
    width: 140px;
    min-width: 140px;
    height: 120px;
    overflow: hidden;
    background: #F3F4F6;
}

.news-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-thumbnail {
    transform: scale(1.1);
}

/* 卡片内容 - 右侧自适应 */
.news-card-content {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.news-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 auto 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.news-card:hover .news-card-title {
    color: #FF6A00;
}

/* 卡片元信息 */
.news-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #6B7280;
    margin-top: 8px;
}

.news-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.news-meta-item svg {
    flex-shrink: 0;
}

/* 响应式设计 - 平板 */
@media (max-width: 1024px) {
    .brand-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .brand-news-section {
        padding: 24px;
    }
    
    .news-card {
        height: 110px;
    }
    
    .news-card-image {
        width: 120px;
        min-width: 120px;
        height: 110px;
    }
    
    .news-card-content {
        padding: 14px;
    }
    
    .news-card-title {
        font-size: 14px;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 768px) {
    .brand-news-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .brand-news-section {
        padding: 20px 16px;
        margin-top: 16px;
    }
    
    .brand-news-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .brand-news-section .section-title {
        font-size: 18px;
    }
    
    .view-more-link {
        align-self: flex-end;
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .news-card {
        height: 100px;
    }
    
    .news-card-image {
        width: 100px;
        min-width: 100px;
        height: 100px;
    }
    
    .news-card-content {
        padding: 12px;
    }
    
    .news-card-title {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }
    
    .news-card-meta {
        font-size: 11px;
        gap: 8px;
    }
    
    .news-meta-item svg {
        width: 12px;
        height: 12px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 375px) {
    .brand-news-section {
        padding: 16px 12px;
    }
    
    .brand-news-section .section-title {
        font-size: 16px;
        gap: 8px;
    }
    
    .brand-news-section .section-title svg {
        width: 20px;
        height: 20px;
    }
    
    .news-card {
        height: 90px;
    }
    
    .news-card-image {
        width: 90px;
        min-width: 90px;
        height: 90px;
    }
    
    .news-card-content {
        padding: 10px;
    }
    
    .news-card-title {
        font-size: 13px;
    }
    
    .news-card-meta {
        font-size: 10px;
        gap: 6px;
    }
}

/* 空状态样式 */
.brand-news-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9CA3AF;
}

.brand-news-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.brand-news-empty p {
    font-size: 15px;
    margin: 0;
}
