/* 项目推广任务功能样式 */

/* 项目列表样式 */
.project-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-decoration: none;
}

.project-item-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

/* 项目主要内容区域 - 包含缩略图和文本内容 */
.project-main {
    display: flex;
    flex-direction: row;
}

/* 项目缩略图 */
.project-thumb {
    flex: 0 0 60px;
    height: 60px;
    overflow: hidden;
    margin: 5px 15px 5px 5px;
    align-self: flex-start;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 项目文本内容区域 */
.project-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Allow ellipsis in flex container */
}

.project-content {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

/* 最高价样式 */
.project-highest-price {
    color: red;
    font-size: 16px;
    margin-top: 5px;
    font-weight: bold;
}

/* 分割线样式 */
.project-divider {
    height: 1px;
    background: transparent;
    margin: 5px auto;
    border-top: 1px dashed #ccc;
    width: 80%;
    display: block;
    flex: 0 0 auto;
    padding: 0 5px;
}

/* 提示内容样式 */
.project-tip {
    margin-top: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.project-tip-title {
    font-weight: bold;
    color: #495057;
    margin-bottom: 4px;
    font-size: 14px;
}

.project-tip-content {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.4;
}

/* 推广信息样式 */
.project-promotion-info {
    margin: 5px 0 5px 0;
    padding: 0 5px;
}

.project-promotion-count {
    color: #495057; /* 深灰色 */
    font-size: 12px;
    margin-bottom: 8px;
    padding: 0 15px;
}

/* 行内提示内容样式 */
.project-tip-inline {
    display: flex;
    align-items: center;
    justify-content: center; /* 整体居中 */
    font-size: 12px;
    background: #f8f9fa; /* 灰色背景 */
    padding: 6px 8px;
    border-radius: 4px;
    margin-top: 5px;
    width: 100%; /* 确保宽度以便居中 */
}

/* 立即推广按钮样式 */
.project-promote-button-container {
    margin-bottom: 6px;
    text-align: center;
}

.project-promote-btn {
    background-color: #d60000; /* 按钮颜色 */
    color: white; /* 字体颜色 */
    font-size: 15px;
    border: none;
    padding: 4px 15px;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.project-tip-title-inline {
    color: #495057; /* 深灰色 */
    font-weight: bold;
    margin-right: 5px;
}

.project-tip-content-inline {
    color: red; /* 红色 */
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .project-thumb {
        flex: 0 0 60px;
        width: 100%;
        height: 60px;
        margin-right: 0;
    }
    
    .project-text-content {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .mg-t {
        margin-top: 0px !important;
    }
}

.project-header {
    margin: 10px 5px;
    min-width: 0;
}

.project-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    min-width: 0;
}

.project-normal-list .project-title,
.project-list .project-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-normal-list .project-title a,
.project-list .project-title a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-title a {
    color: #333;
    text-decoration: none;
}

.project-title a:hover {
    color: #007cba;
}



/* 项目详情页样式 */
.project-detail {
    background: #fff;
    border-radius: 8px;
    padding: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 12px;
}

/* 相关圈子样式 */
.project-related-circles-section {
    margin-bottom: 10px;
}

.project-related-circles-section .search-section-title {
    font-size: 18px;
    padding: 0 0 0 5px;
    color: #333;
}

.project-related-circles-section .circle-search-container {
    overflow-x: auto;
    padding: 10px 0;
}

.project-related-circles-section .scrollable-content {
    display: flex;
    gap: 15px;
}

.project-related-circles-section .circle-search-item {

    flex: 0 0 auto;
}

.project-related-circles-section .circle-search-item .box {
    position: relative;
    padding: 15px;
}

.project-related-circles-section .circle-search-content {
    display: flex;
    gap: 12px;
}

.project-related-circles-section .circle-search-icon {
    flex: 0 0 auto;
}

.project-related-circles-section .circle-icon-container img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.project-related-circles-section .circle-desc {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    max-width: 60px; /* 与图片宽度一致 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    line-height: 1.3;
}

.project-related-circles-section .circle-search-info {
    flex: 1;
    min-width: 0;
}

.project-related-circles-section .circle-search-name-box h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-related-circles-section .circle-search-admin {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
    margin: 8px 0;
}

.project-related-circles-section .circle-search-admin img {
    width: 20px;
    height: 20px;
}

.project-related-circles-section .circle-search-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #999;
}

.project-related-circles-section .circle-search-meta i {
    display: inline-block;
    width: 1px;
    height: 10px;
    background: #ddd;
    vertical-align: middle;
    margin: 0 5px;
}

.project-related-circles-section .link-block {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.project-detail .project-title {
    font-size: 24px;
    margin-bottom: 16px;
}

/* 项目顶部信息区域 */
.project-top-box {
    margin-bottom: 10px;
}

.project-top-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
}

.project-top-left {
    flex-shrink: 0;
}

.project-top-thumb {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

@media screen and (max-width: 768px) {
    .project-top-thumb {
        width: 100px;
        height: 100px;
    }
}

.project-top-right {
    flex-grow: 1;
}

.project-top-right h1 {
    margin: 0 0 30px 5px;
    font-size: 1.5em;
}

@media screen and (max-width: 768px) {
    .project-top-right h1 {
        margin: 0 0 13px 5px;
    }
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-type-tag,
.project-tag {
    background-color: #f0f0f0;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    color: #666;
    text-decoration: none;
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 8px;
}

.project-type-tag:hover,
.project-tag:hover {
    background-color: #e0e0e0;
    color: #555;
    text-decoration: none;
}

.project-type-scroll {
    padding: 10px 12px;
}

.project-type-scroll-inner {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
}

.project-type-scroll-item {
    flex: 0 0 auto;
    padding: 0 12px;
    border-radius: 8px;
    background-color: #e7e7e7;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
}

.project-type-scroll-item:hover {
    background-color: #e0e0e0;
    color: #555;
}

.project-type-scroll-item.is-active {
    background-color: #c90000;
    color: #fff;
}

.project-type-scroll-inner::-webkit-scrollbar {
    height: 6px;
}

.project-type-scroll-inner::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 999px;
}



.project-thumbnail {
    margin-bottom: 20px;
}

.project-thumbnail img {
    width: 100%;
    border-radius: 8px;
}

.project-meta-details {
    padding: 16px;
    background: #fafafa;
    border-radius: 8px;
}

.project-meta-details h3 {
    margin-top: 0;
    margin-bottom: 0px;
    color: #333;
}

.project-meta-title {
    font-size: 18px;
    font-weight: bold;
    color: #222;
    margin-bottom: 20px;
    padding-bottom: 3px;
    border-bottom: 2px solid #007cba;
    display: inline-block;
}

.project-meta-table .meta-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.project-meta-table .meta-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.project-type {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: normal;
}

.type-normal {
    background-color: #e3f2fd;
    color: #1976d2;
}

.type-investment {
    background-color: #e8f5e9;
    color: #388e3c;
}

.type-collaboration {
    background-color: #f1f8e9;
    color: #689f38;
}

.project-attr-values {
    margin-top: 8px;
}

.attr-item {
    display: flex;
    margin-bottom: 4px;
}

.attr-name {
    font-weight: bold;
    margin-right: 8px;
    min-width: 80px;
}

.project-share-actions {
    text-align: center;
    padding: 10px 0;
}

/* 项目图片画廊 */
.project-gallery {
    padding: 16px;
    background: #fafafa;
    border-radius: 8px;
}

.project-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.project-image-item img {
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

/* 任务价格表格样式 */
.project-task-prices-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    table-layout: fixed; /* 固定表格布局算法 */
}

.project-task-prices-table th,
.project-task-prices-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

/* 第一列数据内容左对齐，表头仍然居中 */
.project-task-prices-table td:first-child {
    text-align: left;
}

/* 设置各列宽度 */
.project-task-prices-table th:nth-child(2),
.project-task-prices-table td:nth-child(2) {
    width: 20%; /* 第二列（价格）占20%宽度 */
}

.project-task-prices-table th:nth-child(3),
.project-task-prices-table td:nth-child(3) {
    width: 22%; /* 第三列（数据周期）占22%宽度 */
}

.project-task-prices-table th:nth-child(4),
.project-task-prices-table td:nth-child(4) {
    width: 22%; /* 第四列（结算周期）占22%宽度 */
}

/* 第一列使用剩余空间 */
.project-task-prices-table th:first-child,
.project-task-prices-table td:first-child {
    width: 36%; /* 第一列（任务）占剩余36%宽度 */
    word-wrap: break-word;
}

/* 价格单元格字体设为红色 */
.project-price-cell {
    color: red;
    font-weight: bold;
}

.project-task-prices-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.entry-content {
    padding: 0 15px; /* 左右15px内边距，上下不需要 */
}

.project-task-prices-table tr:hover {
    background-color: #f8f9fa;
}

@media screen and (max-width: 768px) {
    .project-task-prices-table th,
    .project-task-prices-table td {
        padding: 8px;
        font-size: 14px;
    }
}

/* 项目简介框 */
.project-description-box {
    padding: 0;
    background: #fff;
    border-radius: 8px;
    margin-top: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.project-description-box h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.project-description-header {
    padding: 10px 20px;
    border-bottom: 1px solid #f5f5f5;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-description-header:hover {
    background-color: #f9f9f9;
}

.project-description-content {
    padding: 16px;
    line-height: 1.6;
    color: #666;
}

.project-description-content p {
    margin-bottom: 1em;
}

/* 项目分类信息样式（仿商品属性样式） */
.project-single-attr {
    margin-top: 16px;
}

.project-single-attr-title {
    padding: 10px 20px;
    border-bottom: 1px solid #f5f5f5;
    font-weight: 600;
}

.project-single-attr-data {
    padding: 0 10px 10px;
}

.project-single-attr-data li {
    font-size: 15px;
    margin-top: 10px;
    display: flex;
    padding: 6px 0;
}

.project-single-attr-data li span {
    display: block;
}

.project-single-attr-k {
    color: #AAAEB3;
}

.project-single-attr-data ul {
    display: flex;
    flex-flow: column;
    padding: 0 14px;
}

.project-single-attr-v {
    flex: 1;
}

/* 项目分类页面样式 */
.project-category-top {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 5px;
}

.project-category-top h1 {
    margin: 10px 0 0 0;
    font-size: 24px;
}

/* 项目列表网格布局 */
.project-normal-list .b2_gap.grid {
    display: flex;
    flex-wrap: wrap;
}

.project-normal-list .b2_gap.grid > li {
    width: 25%; /* 电脑端一行4个 */
    padding: 8px;
    box-sizing: border-box;
    list-style: none; /* 移除列表符号 */
}

/* 确保项目项填满容器 */
.project-normal-list .b2_gap.grid .project-item {
    height: 100%;
    width: 100%;
}

/* 平板和手机端样式 */
@media screen and (max-width: 768px) {
    .project-normal-list .b2_gap.grid > li {
        width: 50%; /* 手机端一行2个 */
    }
}

/* 手机端样式 */
@media screen and (max-width: 480px) {
    .project-normal-list .b2_gap.grid > li {
        width: 100%; /* 更小屏幕一行1个 */
    }
}

/* 项目搜索结果样式 */
.project-search-section {
    margin-bottom: 30px;
}

.project-search-section .project-item {
    margin-bottom: 12px;
}

/* 可折叠部分通用样式 */
.collapsible-section {
    margin-bottom: 16px;
}

.collapsible-header {
    padding: 10px 20px;
    border-bottom: 1px solid #f5f5f5;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.collapsible-header:hover {
    background-color: #f9f9f9;
}

.collapsible-content {
    padding: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.collapsible-toggle {
    display: inline-block;
    height: 20px;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    color: #333;
    background: none;
    border: none;
    font-family: serif;
}

.collapsible-header.active .collapsible-toggle {
    color: #333;
}

.collapsible-content:not(.active) {
    display: none;
}

/* 圈子类型标签样式 */
.circle-type-label {
    font-size: 12px !important;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 4px;
    font-weight: 600;
    display: inline-block;
}

.circle-search-section .circle-search-name-box span {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 4px;
    font-weight: 600;
    display: inline-block;
}

.circle-search-section .circle-free {
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

/* 为圈子类型标签添加绿色透明背景 */
.circle-free.circle-type-label {
    background-color: rgba(76, 175, 80, 0.2) !important;
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.circle-money.circle-type-label {
    background-color: rgba(255, 152, 0, 0.2);
    color: #e65100;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.circle-lv.circle-type-label {
    background-color: rgba(103, 58, 183, 0.2);
    color: #311b92;
    border: 1px solid rgba(103, 58, 183, 0.3);
}

/* 三列布局样式 */
.project-top-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

@media screen and (max-width: 768px) {
    .project-top-content {
        gap: 5px;
    }
}

.project-top-left {
    flex: 0 0 auto;
}

.project-top-right {
    flex: 1 1 auto;
}

.project-settlement-area {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 15px 0 15px;
    border-radius: 8px;
}

@media screen and (max-width: 768px) {
    .project-settlement-area {
        gap: 0;
    }
}

.settlement-info {
    margin-bottom: 5px;
}

.settlement-selector {
    margin-bottom: 10px;
}

.dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.dropdown-btn {
    background-color: white;
    color: black;
    padding: 10px;
    font-size: 14px;
    border: 1px solid black;
    cursor: pointer;
    width: 100%;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.show {
    display: block;
}

.settlement-go-btn {
    display: inline-block;
    background-color: #d60000;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    width: 100%;
}

.settlement-go-btn:hover {
    background-color: #a70000;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .project-top-content {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .project-top-left {
        flex: 0 0 auto;
    }
    
    .project-top-right {
        flex: 1 1 calc(100% - 160px);
    }
    
    .project-settlement-area {
        flex: 0 0 100%;

    }
}
