/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 主题变量 */
:root[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --accent-color: #007bff;
    --accent-hover: #0056b3;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
    --tag-bg: #e9ecef;
    --tag-text: #495057;
    --btn-secondary-bg: #6c757d;
    --btn-secondary-hover: #545b62;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

:root[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #888888;
    --accent-color: #4dabf7;
    --accent-hover: #3b99e6;
    --border-color: #404040;
    --card-bg: #2d2d2d;
    --tag-bg: #404040;
    --tag-text: #e0e0e0;
    --btn-secondary-bg: #5a6268;
    --btn-secondary-hover: #4e555b;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 1; /* 允许logo容器收缩 */
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.5rem;
    flex-shrink: 1; /* 允许logo链接容器收缩 */
}

.logo-image {
    height: 40px;
    width: auto;
    border-radius: 6px;
}

.logo h1 {
    color: var(--accent-color);
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--accent-color);
    color: white;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 移动端汉堡菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle:hover span {
    background-color: var(--accent-color);
}

/* 移动端菜单激活状态 */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 移动端菜单 */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-secondary);
    z-index: 1000;
    display: none;
    padding: 80px 20px 20px;
    box-sizing: border-box;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

/* 移动端菜单关闭按钮 */
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1002;
}

.mobile-menu-close span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--text-primary);
    position: absolute;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-close span:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-menu-close span:nth-child(2) {
    transform: rotate(-45deg);
}

.mobile-menu-close:hover span {
    background-color: var(--accent-color);
}

.mobile-menu.show {
    transform: translateX(0);
}

.mobile-menu .nav-link {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    background-color: var(--card-bg);
    transition: all 0.3s ease;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 500;
}

.mobile-menu .nav-link:last-child {
    margin-bottom: 0;
}

.mobile-menu .nav-link:hover,
.mobile-menu .nav-link.active {
    background-color: var(--accent-color);
    color: white;
    transform: translateX(8px);
}

/* 移动端操作区域样式 */
.mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    /*border-top: 1px solid var(--border-color);*/
}

.mobile-header-actions .theme-toggle {
    width: 48px;
    height: 24px;
    border-radius: 12px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-header-actions .theme-toggle:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.mobile-header-actions .user-info-container {
    flex: 1;
}

.mobile-menu .user-info-container {
    padding: 1rem 0;
    /*border-top: 1px solid var(--border-color);*/
    margin-top: 1rem;
}

.mobile-menu .btn-login {
    width: 100%;
    text-align: center;
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mobile-menu .btn-login:hover {
    background-color: #0056b3;
}

/* 响应式设计 - 平板和手机 */
@media (max-width: 1024px) {
    .nav {
        display: none;
    }
    
    .header-actions {
        display: none;
    }
    
    .header .container {
        justify-content: space-between; /* 恢复space-between布局 */
    }
    
    .mobile-menu-toggle {
        display: flex;
        margin-left: auto; /* 推到最右边 */
        margin-right: 5px; /* 距离右侧边框5px */
    }
    
    .mobile-menu .mobile-header-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 2rem;
        /*border-top: 1px solid var(--border-color);*/
    }
    
    .mobile-menu .mobile-header-actions .theme-toggle {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.5rem;
        max-width: 160px; /* 进一步限制标题宽度 */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 0; /* 防止标题被压缩 */
    }
    
    .header .container {
        padding: 0 0.8rem;
        min-width: 0; /* 允许flex容器收缩 */
        gap: 0.5rem; /* 减少元素间距 */
    }
    
    .mobile-menu {
        top: 70px;
    }
    
    .mobile-menu-toggle {
        margin-left: auto;
        margin-right: 0;
        flex-shrink: 0; /* 防止汉堡图标被压缩 */
        position: absolute;
        right:1rem;
    }
    
    /* 确保logo能够充分收缩 */
    .logo {
        flex-shrink: 1;
        min-width: 0; /* 允许logo容器收缩 */
    }
    
    .logo-link {
        flex-shrink: 1;
        min-width: 0; /* 允许logo链接容器收缩 */
    }
}

/* 375px超小屏幕适配 */
@media (max-width: 375px) {
    .logo h1 {
        font-size: 1.2rem;
        max-width: 180px; /* 进一步限制标题宽度 */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 0; /* 防止标题被压缩 */
    }
    
    .header .container {
        padding: 0 0.5rem; /* 减少内边距 */
        min-width: 0; /* 允许flex容器收缩 */
    }
    
    .mobile-menu-toggle {
        width: 32px;
        height: 32px;
        margin-left: auto;
        margin-right: 3px; /* 更小的右边距 */
        flex-shrink: 0; /* 防止汉堡图标被压缩 */
    }
    
    .mobile-menu-toggle span {
        width: 18px;
        height: 2px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
        margin-left: auto; /* 保持推到右侧 */
        margin-right: 5px; /* 保持距离右侧5px */
    }
    
    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
    }
}

.theme-toggle {
    position: relative;
    width: 48px;
    height: 24px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    /* background-color: var(--text-primary); */
    background-color: #ccc;
    border-radius: 50%;
    transition: all 0.3s ease;
    left: 3px;
    z-index: 2;
}

.theme-toggle::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0;
}

/* 白天模式 - 太阳图标 */
.theme-toggle::after {
    background: white;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
    right: 5px;
    opacity: 1;
}

/* 黑夜模式 - 月亮图标 */
[data-theme="dark"] .theme-toggle::after {
    /* background: var(--bg-primary);
    box-shadow: inset -3px -2px 0 0 var(--text-primary);
    left: 5px;
    right: auto; */
    opacity: 1;
}

[data-theme="dark"] .theme-toggle::before {
    transform: translateX(24px);
    background-color: var(--accent-color);
}

.theme-toggle:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

/* 搜索区域 */
.hero {
    background: linear-gradient(135deg, var(--accent-color), #0056b3);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.search-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.search-container p {
    padding-bottom: 20px; /* 资讯页面描述文字增加下边距 */
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px 0 0 50px;
    font-size: 1.1rem;
    outline: none;
}

.search-btn {
    padding: 1rem 2rem;
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #ff5252;
}

.hot-tags {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hot-tags span {
    font-weight: 500;
}

.tag {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.tag:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* 内容区域 */
.main {
    /* padding: 3rem 0; */
    flex: 1;
}

.section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 300;
    padding-top: 20px; /* 服务列表和需求列表标题增加上边距 */
}

/* 服务网格 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.service-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.service-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: contain;
}

.service-header h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
}

.service-header h4 a {
    text-decoration: none;
    color: var(--text-primary);
}

.service-header h4 a:hover {
    color: var(--accent-color);
}

.service-desc {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.service-desc a {
    text-decoration: none;
    color: var(--text-secondary);
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-tags .tag {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
}

/* 需求网格 */
.demands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.demand-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.demand-card:hover {
    transform: translateY(-2px);
}

.demand-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.demand-card h4 a {
    text-decoration: none;
    color: var(--text-primary);
}

.demand-card h4 a:hover {
    color: var(--accent-color);
}

.demand-user {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: contain;
}

.user-name {
    font-weight: 500;
    color: var(--text-primary);
}

.demand-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 需求标题下方的标签样式 */
.demand-tags-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.demand-tags-header .tag {
    background-color: var(--accent-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.demand-tags-header .tag:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.demand-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.demand-tags .tag {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.demand-tags .tag:hover {
    background-color: var(--accent-color);
    color: white;
}

/* 按钮 */
.btn-view-all {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-view-all:hover {
    background-color: #0056b3;
    color: white;
}

/* 底部 */
.footer {
    background-color: var(--bg-secondary);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p,
.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--accent-color);
}

#language-select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-secondary);
}

.footer-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--text-secondary);
}

/* 用户信息样式 */
.user-info-container {
    display: flex;
    align-items: center;
}

.user-logged-in {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
}

.user-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: contain;
    /*border: 2px solid var(--accent-color);*/
}

.user-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.user-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.2rem;
    font-size: 0.8rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    min-width: 160px;
    z-index: 1000;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-show {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--bg-secondary);
}

.badge {
    background-color: #dc3545;
    color: white;
    border-radius: 10px;
    padding: 0.1rem 0.4rem;
    font-size: 0.7rem;
    font-weight: bold;
}

.user-not-logged-in .btn-login {
    padding: 0.5rem 1rem;
    /*background-color: var(--accent-color);*/
    border:1px solid var(--accent-color);
    /*color: white;*/
    color: var(--accent-color);;
    /*border: none;*/
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

.user-not-logged-in .btn-login:hover {
    background-color: #0056b3;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-input,
    .search-btn {
        border-radius: 6px;
        margin-bottom: 0.5rem;
    }
    
    .services-grid,
    .demands-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* 详情页样式 */
.service-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.detail-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.detail-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.detail-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 需求详情模块特定样式 */
.demand-description .detail-card {
    text-align: left;
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.demand-description .detail-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.demand-description .detail-card p {
    font-size: 1rem;
    line-height: 1.8;
    text-align: left;
    margin-bottom: 0;
}

.rating-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.rating-stars {
    font-size: 1.5rem;
    color: #ffd700;
}

.rating-value {
    font-weight: 600;
    color: var(--text-primary);
}

.reviews-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.company-info {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.established {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.service-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.btn-primary,
.btn-secondary,
.btn-outline {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    /* transform: translateY(-2px); */
}

.btn-secondary {
    background-color: #dc3545;
    color: white;
}

.btn-secondary:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* 需求详情页特定样式 */
.demand-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.demand-header {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 2rem 0;
    position: relative;
}

.demand-header h1 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.demand-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: contain;
    /*border: 3px solid var(--accent-color);*/
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.demand-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.company-contact-btn {
    position: absolute;
    right: 50px;
    top: 20%;
    transform: translateY(-50%);
}
.demand-contact-btn {
    position: absolute;
    right: 50px;
    top: 20%;
    transform: translateY(-50%);
}

.btn-contact {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    background-color: var(--accent-color);
    color: white;
}

.btn-contact:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.budget-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0.5rem 0;
}

.publish-time {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0.5rem 0;
}

.demand-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* 相关需求样式 */
.related-demands {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.related-demands h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.demands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.demand-card {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.demand-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.demand-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.demand-card .demand-user {
    margin-bottom: 1rem;
}

.demand-card .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
}

.demand-desc {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.btn-view-detail {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.btn-view-detail:hover {
    background-color: #0056b3;
    color: white;
}

/* 登录页面样式 */
.login-hero {
    text-align: center;
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, #4a90e2 100%);
    color: white;
    border-radius: 12px;
    margin-top: 20px;
    margin-bottom: 2rem;
}

.login-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.login-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.login-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.login-form-container {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.login-method {
    margin-bottom: 2rem;
}

.btn-login-method {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.btn-login-method:hover {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.btn-wechat {
    border-color: #07c160;
    color: #07c160;
}

.btn-wechat:hover {
    background: #07c160;
    border-color: #07c160;
}

.login-box {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

.qrcode-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.wechat-qrcode p {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.wechat-qrcode small {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.login-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
    color: var(--text-secondary);
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.login-divider span {
    background: var(--card-bg);
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}


.phone-login-form {
    width: 100%;
    text-align: left;
}

.phone-input-group,
.sms-code-group {
    position: relative;
    display: flex;
    align-items: center;
}

.phone-input-group .input-icon,
.sms-code-group .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    z-index: 2;
}

.phone-input-group .form-input,
.sms-code-group .form-input {
    padding-left: 3rem;
    width: 100%;
}

.sms-input {
    padding-right: 120px;
}

.btn-sms {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.6rem 1rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
}

.btn-sms:hover:not(:disabled) {
    background-color: #0056b3;
    transform: translateY(-50%) scale(1.05);
}

.btn-sms:disabled {
    background-color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-login-primary {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-color), #0056b3);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-login-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-color);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1;
}

.input-icon i {
    font-size: inherit;
    color: inherit;
    vertical-align: middle;
    line-height: 1;
}

.phone-input-group,
.sms-code-group {
    position: relative;
    display: flex;
    gap: 0.5rem;
}

.sms-input {
    flex: 1;
    padding-right: 120px;
}

.btn-sms {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-sms:hover:not(:disabled) {
    background: #0056b3;
    transform: translateY(-50%) scale(1.05);
}

.btn-sms:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
}

.btn-login-primary {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-icon {
    font-size: 1.2rem;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.register-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.register-link:hover {
    text-decoration: underline;
}

.login-links {
    margin-top: 1rem;
}

.login-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.login-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.login-features {
    position: sticky;
    top: 2rem;
}

.features-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.features-card h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.feature-content h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.feature-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .login-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .login-hero h1 {
        font-size: 2rem;
    }
    
    .login-hero p {
        font-size: 1.1rem;
    }
    
    .login-features {
        position: static;
    }
}

@media (max-width: 640px) {
    .login-form-container {
        padding: 1.5rem;
        margin: 0 -1rem;
        border-radius: 0;
    }
    
    .login-hero {
        margin: 0 -1rem 2rem;
        border-radius: 0;
    }
    
    .features-card {
        padding: 1.5rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

/* 筛选器样式 */
.filters {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.filter-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.filter-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 0.5rem;
}

.filter-tags .tag {
    padding: 0.5rem 1rem;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.filter-tags .tag:hover,
.filter-tags .tag.active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.filter-tags .tag.parent-active {
    border: 2px solid var(--accent-color);
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--accent-color);
    font-weight: 600;
}

/* 二级分类样式 */
.category-dropdown {
    position: relative;
    display: inline-block;
}

.category-dropdown .main-cate {
    position: relative;
    padding-right: 2rem;
}

.category-dropdown .arrow {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
}

.category-dropdown .sub-cates {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    min-width: 120px;
    display: none;
    flex-direction: column;
    gap: 0.3rem;
}

.category-dropdown:hover .sub-cates {
    display: flex;
}

.category-dropdown .sub-cate {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    white-space: nowrap;
    text-align: left;
}

.category-dropdown .sub-cate:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Sitemap样式 */
.sitemap-container {
    max-width: 1000px;
    margin: 0 auto;
}

.sitemap-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.btn-xml {
    padding: 0.8rem 1.5rem;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-xml:hover {
    background-color: #218838;
    color: white;
}

.btn-copy {
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-copy:hover {
    background-color: #0056b3;
}

.sitemap-section {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.sitemap-section h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.sitemap-list {
    list-style: none;
}

.sitemap-list li {
    margin-bottom: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.sitemap-list li:last-child {
    border-bottom: none;
}

.sitemap-list a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sitemap-list a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.sitemap-stats {
    background: linear-gradient(135deg, var(--accent-color), #0056b3);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.sitemap-stats h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 工具类 */
.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

/* 资讯模块样式 */
.news-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin: 3rem 0;
    border-radius: 12px;
}

/* 资讯页搜索区域样式 */
.news-hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.news-hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.news-hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    padding-bottom: 20px; /* 资讯页面描述文字增加下边距 */
}

.news-search {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
}

.news-search .search-input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    outline: none;
}

.news-search .btn-primary {
    border-radius: 0;
    padding: 1rem 1.5rem;
    white-space: nowrap;
}

.news-list-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-bottom: 2rem; */
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 20px; /* 资讯页面最新资讯（包括分类筛选）增加上边距 */
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
    font-weight: 300;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.5rem 1rem;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.filter-tab:hover,
.filter-tab.active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-image {
    position: relative;
    height: 100px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-tags {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.news-tag {
    background-color: var(--tag-bg, rgba(255, 255, 255, 0.9));
    color: var(--tag-text, var(--text-primary));
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-content {
    padding: 1.5rem;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.news-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--accent-color);
}

.news-summary {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.news-meta i {
    font-size: 0.8rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-link {
    padding: 0.5rem 1rem;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.page-link:hover:not(.disabled):not(.active) {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.page-link.active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 资讯详情页样式 */
.breadcrumb {
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #0056b3;
}

.news-detail {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.news-detail-header {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.news-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-detail-title {
    font-size: 2.2rem;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.news-meta-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.news-detail-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.news-detail-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.news-detail-content {
    margin-bottom: 2rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.news-detail-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.news-detail-content h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.8rem;
    color: var(--text-primary);
}

.news-detail-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.news-detail-content li {
    margin-bottom: 0.5rem;
}

.news-detail-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.action-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.social-share {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.social-share span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.social-link:nth-child(1):hover {
    background-color: #07C160;
    color: white;
}

.social-link:nth-child(2):hover {
    background-color: #E6162D;
    color: white;
}

.social-link:nth-child(3):hover {
    background-color: #12B7F5;
    color: white;
}

.related-news {
    margin: 3rem auto;
}

.related-news h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-2px);
}

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-content {
    padding: 1rem;
}

.related-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.related-content h4 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-content h4 a:hover {
    color: var(--accent-color);
}

.related-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.related-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-detail-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-detail-title {
        font-size: 1.8rem;
    }
    
    .news-detail-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .social-share {
        justify-content: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-tabs {
        justify-content: center;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .news-hero-content h1 {
        font-size: 2rem;
    }
    
    .news-search {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .news-search .search-input {
        border-radius: 12px 12px 0 0;
    }
    
    .news-search .btn-primary {
        border-radius: 0 0 12px 12px;
    }
    
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .news-meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* 站内信样式 */
.messages-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.messages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-new-message {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-new-message:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.messages-filter select {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.messages-list {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.message-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
}

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

.message-item:hover {
    background-color: var(--bg-secondary);
}

.message-item.unread {
    background-color: rgba(0, 123, 255, 0.05);
}

.message-item.unread:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.message-avatar {
    margin-right: 1rem;
    flex-shrink: 0;
}

.message-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sender-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.message-time {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.message-preview {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.unread-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

.no-messages {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.no-messages p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.btn-start-chat {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-start-chat:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

/* 消息详情页样式 */
.message-detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.back-btn {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
}

.message-thread {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.message-content {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.message-sender {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.sender-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.sender-info {
    display: flex;
    flex-direction: column;
}

.sender-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.message-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.message-body {
    margin-left: 70px;
}

.message-body p {
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

.reply-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.reply-section h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.reply-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s ease;
}

.reply-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-send-reply {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-send-reply:hover:not(:disabled) {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.btn-send-reply:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-cancel {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background-color: var(--border-color);
}

.message-history {
    margin-top: 2rem;
}

.message-history h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.2rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.history-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.history-item:last-child {
    margin-bottom: 0;
}

.reply-sender {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    gap: 0.8rem;
}

.reply-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.reply-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.reply-time {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.reply-body p {
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

/* 站内信响应式设计 */
@media (max-width: 768px) {
    .messages-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .message-item {
        padding: 1rem;
    }
    
    .message-avatar img {
        width: 40px;
        height: 40px;
    }
    
    .unread-badge {
        top: 1rem;
        right: 1rem;
    }
    
    .message-detail-container {
        padding: 1rem 0;
    }
    
    .message-thread {
        padding: 1.5rem;
    }
    
    .message-sender {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .sender-avatar {
        width: 50px;
        height: 50px;
    }
    
    .message-body {
        margin-left: 0;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-send-reply,
    .btn-cancel {
        width: 100%;
    }
    
    .history-item {
        padding: 1rem;
    }
    
    .reply-sender {
        flex-wrap: wrap;
    }
}

/* 搜索结果页面样式 */
.search-results {
    margin: 2rem 0;
}

/* 搜索结果页搜索容器 */
.search-results-search {
    background: linear-gradient(135deg, var(--accent-color), #0056b3);
    color: white;
    padding: 4rem 0;
    text-align: center;
    border-radius: 0;
}

.search-results-search .search-form {
    max-width: 600px;
    margin: 0 auto;
}

.search-results-search .search-input {
    background-color: white !important;
    color: var(--text-primary) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-right: none !important;
}

.search-results-search .search-input:focus {
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
}

.search-results-search .search-btn {
    background-color: #ff6b6b !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-left: none !important;
}

.search-results-search .search-btn:hover {
    background-color: #ff5252 !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.search-results .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--text-primary);
}

.result-count {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: normal;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.result-item {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.result-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.result-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.result-info {
    flex: 1;
}

.result-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.result-info h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.result-info h3 a:hover {
    color: var(--accent-color);
}

.result-company {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0 0 0.8rem 0;
    font-weight: 500;
}

.result-user {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.result-time {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.result-desc {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
}

.result-meta {
    margin-bottom: 1rem;
}

.budget {
    background-color: var(--accent-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.result-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.result-tags .tag {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.result-tags .tag:hover {
    background-color: var(--accent-color);
    color: white;
}

.result-tags .tag a{
    text-decoration: none;
    color: var(--text-primary);
}

.result-tags .tag a:hover{
    text-decoration: none;
    color: white;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.no-results p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.no-results a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.no-results a:hover {
    text-decoration: underline;
}

/* 搜索结果响应式设计 */
@media (max-width: 768px) {
    .search-results .section-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .result-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .result-logo {
        width: 80px;
        height: 80px;
    }
    
    .result-info {
        text-align: center;
    }
    
    .result-user {
        justify-content: center;
    }
    
    .result-tags {
        justify-content: center;
    }
    
    .result-item {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .search-results .section-title {
        font-size: 1.3rem;
    }
    
    .result-logo {
        width: 60px;
        height: 60px;
    }
    
    .result-info h3 {
        font-size: 1.1rem;
    }
    
    .result-desc {
        font-size: 0.9rem;
    }
}

/* 发布需求表单样式 */
.demand-form {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.demand-form .el-form-item {
    margin-bottom: 1.5rem;
}

.demand-form .el-form-item__label {
    font-weight: 600;
    color: var(--text-primary);
    padding-right: 20px;
}

.demand-form .el-input__inner,
.demand-form .el-textarea__inner {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.demand-form .el-input__inner:focus,
.demand-form .el-textarea__inner:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.demand-form .el-select {
    width: 100%;
}

.demand-form .el-tag {
    background-color: var(--accent-color);
    color: white;
    border: none;
}

.demand-form .el-tag .el-icon-close {
    color: white;
}

.demand-form .el-tag .el-icon-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.demand-form .tag-tip {
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 12px;
}

.demand-form .el-button {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.demand-form .el-button--primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.demand-form .el-button--primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
}

.demand-form .el-button:not(.el-button--primary) {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.demand-form .el-button:not(.el-button--primary):hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .demand-form {
        padding: 1.5rem;
        margin: 0 -1rem;
        border-radius: 0;
    }
    
    .demand-form .el-form-item__label {
        padding-bottom: 8px;
        text-align: left;
    }
    
    .demand-form .el-form-item {
        margin-bottom: 1.2rem;
    }
    
    .demand-form .el-button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* 原生HTML表单样式 */
.demand-form .form-group {
    margin-bottom: 1.5rem;
}

.demand-form .form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 14px;
}

.demand-form input[type="text"],
.demand-form textarea,
.demand-form select {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.demand-form input[type="text"]:focus,
.demand-form textarea:focus,
.demand-form select:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.demand-form textarea {
    resize: vertical;
    min-height: 100px;
}

.demand-form select[multiple] {
    height: 120px;
}

.demand-form .char-count {
    text-align: right;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.demand-form .select-tip {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-style: italic;
}

.demand-form .tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.demand-form .tag {
    background-color: var(--accent-color);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.demand-form .tag-remove {
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.demand-form .tag-remove:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.demand-form .tag-tip {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 8px;
}

.demand-form .tag-tip i {
    margin-right: 4px;
}

.demand-form .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 2rem;
}

.demand-form .form-actions button {
    padding: 12px 24px;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid;
    font-weight: 600;
}

.demand-form .form-actions button[type="submit"] {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.demand-form .form-actions button[type="submit"]:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
}

.demand-form .form-actions button[type="button"] {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.demand-form .form-actions button[type="button"]:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .demand-form .form-group label {
        text-align: left;
    }
    
    .demand-form .form-actions {
        flex-direction: column;
    }
    
    .demand-form .form-actions button {
        width: 100%;
        margin-bottom: 12px;
    }
}