/* ================== Search Issue 专用样式 ================== */
/* 为所有选择器添加 #search-issue-page 前缀 */

#search-issue-page .search-issue-table-container {
    background-color: #FFFFFF;
    border-radius: 0;
    box-shadow: none;
    padding: 32px;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
}

#search-issue-page .search-issue-title {
    font-size: 28px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 24px;
    padding-left: 0;
}

/* 搜索和筛选容器 */
#search-issue-page .search-filter-container {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: center;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

/* 搜索框样式 */
#search-issue-page .search-container {
    flex: 1;
    min-width: 300px;
    position: relative;
    background-color: #F8F9FA;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
}

#search-issue-page .search-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background-color: transparent;
    color: #374151;
}

#search-issue-page .search-input::placeholder {
    color: #9CA3AF;
}

#search-issue-page .search-button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    transition: all 0.2s ease;
}

#search-issue-page .search-container:hover {
    border-color: #A6192E;
    box-shadow: 0 4px 8px rgba(166, 25, 46, 0.1);
    transform: translateY(-2px);
    background-color: #F8F9FA;
}

#search-issue-page .search-container:hover .search-button {
    color: #A6192E;
    transform: translateY(-50%) scale(1.1);
}

#search-issue-page .search-container:hover .search-input::placeholder {
    color: #9CA3AF;
}

#search-issue-page .search-container:hover .search-input {
    color: #374151;
    background-color: transparent;
}

/* 新增：匹配 my-issue 页面的搜索容器悬停效果 */
#search-issue-page .search-container:hover {
    transform: translateY(-1px);
    background-color: #2D3748; /* 变暗背景 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: #2D3748; /* 统一边框色 */
}

#search-issue-page .search-container:hover .search-input {
    color: #FFFFFF; /* 输入文字变白 */
    background-color: transparent;
}

#search-issue-page .search-container:hover .search-input::placeholder {
    color: rgba(255, 255, 255, 0.8); /* 占位符变浅白色 */
}

#search-issue-page .search-container:hover .search-button {
    color: #FFFFFF; /* 搜索图标变白 */
    transform: translateY(-50%) scale(1); /* 移除缩放效果，保持一致 */
}

/* 筛选器样式 */
#search-issue-page .search-filter-group {
    display: flex;
    gap: 16px;
}

#search-issue-page .search-type-filter,
#search-issue-page .search-status-filter {
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background-color: #FFFFFF;
    font-size: 16px;
    min-width: 150px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    color: #374151;
    transition: all 0.3s ease;
    cursor: pointer;
}

#search-issue-page .search-type-filter:hover,
#search-issue-page .search-status-filter:hover {
    border-color: #A6192E;
    box-shadow: 0 4px 8px rgba(166, 25, 46, 0.1);
    transform: translateY(-2px);
    background-color: #FFF8F8;
}

#search-issue-page .search-type-filter:focus,
#search-issue-page .search-status-filter:focus {
    outline: none;
    border-color: #A6192E;
    box-shadow: 0 0 0 3px rgba(166, 25, 46, 0.1);
}

/* 表格样式 - 统一风格 */
#search-issue-page .issues-table {
    width: 100%;
    border-collapse: separate; /* 改为 separate 以应用 border-spacing */
    border-spacing: 0 10px; /* 添加行间距，类似 my-issue */
    margin-top: 12px; /* 调整与筛选器的间距 */
    border-radius: 0; /* 移除表格本身的圆角 */
}

/* 移除包裹容器的边框和圆角 */
#search-issue-page .issues-table-wrapper {
    border: none;
    border-radius: 0;
    overflow: visible; /* 允许行阴影显示 */
}

#search-issue-page .issues-table thead {
    background-color: #F8F9FA;
    /* 桌面端表头通过 project3styles.css 显示 */
}

#search-issue-page .issues-table thead th {
    padding: 16px 20px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    text-align: left;
    border-bottom: 2px solid #E5E7EB; /* 加强表头底边框 */
    border-right: none; /* 移除内部右边框 */
}

#search-issue-page .issues-table thead th:last-child {
    border-right: none;
}

/* 表格行样式 - 统一风格 */
#search-issue-page .issues-table tbody tr {
    border: none; /* 移除行边框 */
    border-radius: 12px; /* 添加圆角 */
    background-color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); /* 添加阴影 */
    transition: background-color 0.25s ease,
                transform 0.25s ease,
                box-shadow 0.25s ease,
                border-color 0.25s ease;
    cursor: pointer;
}

#search-issue-page .issues-table tbody tr:last-child {
    border-bottom: none;
}

#search-issue-page .issues-table tbody tr:hover {
    background-color: #F5F7FA; /* 统一 hover 背景色 */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* 统一 hover 阴影 */
    transform: translateY(-2px);
}

#search-issue-page .issues-table tbody tr.active {
    /* 可以保留边框或使用其他方式高亮，这里暂时移除，避免冲突 */
    box-shadow: 0 4px 12px rgba(166, 25, 46, 0.2); /* 加强选中阴影 */
    transform: translateY(-1px);
}

/* 单元格样式 */
#search-issue-page .issues-table td {
    padding: 16px 20px;
    vertical-align: middle;
    border: none; /* 移除内部边框 */
}

/* 特定列样式 */
#search-issue-page .issues-table th:nth-child(1),
#search-issue-page .issues-table td[data-label="ID"] { width: 8%; font-weight: 500; color: #111827; }

#search-issue-page .issues-table th:nth-child(2),
#search-issue-page .issues-table td[data-label="Title"] { width: 25%; white-space: normal; word-wrap: break-word; }

#search-issue-page .issues-table th:nth-child(3),
#search-issue-page .issues-table td[data-label="Type"] { width: 15%; color: #1F2937; font-weight: 500; white-space: normal; word-wrap: break-word; }

#search-issue-page .issues-table th:nth-child(4),
#search-issue-page .issues-table td[data-label="Status"] { width: 12%; text-align: center; }

#search-issue-page .issues-table th:nth-child(5),
#search-issue-page .issues-table td[data-label="Date"] { width: 15%; white-space: nowrap; }

#search-issue-page .issues-table th:nth-child(6),
#search-issue-page .issues-table td[data-label="Assigned To"] { width: 25%; }

/* 分配用户样式 */
#search-issue-page .search-assigned-user {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    overflow: hidden;
}

/* 用户头像样式 - 统一尺寸 */
#search-issue-page .user-avatar-small {
    width: 32px; /* 统一尺寸 */
    height: 32px; /* 统一尺寸 */
    border-radius: 50%;
    overflow: hidden;
    border: none;
    flex-shrink: 0;
    background-color: #F3F4F6; /* 添加背景色防图片加载失败 */
}

#search-issue-page .user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#search-issue-page .assigned-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    flex: 1; /* 允许名字占据剩余空间 */
}

/* 移动端优化 - 保持不变 */
@media (max-width: 768px) {
    #search-issue-page .search-filter-container {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 24px;
    }

    #search-issue-page .search-filter-group {
        flex-direction: column;
    }

    /* 桌面端表头在移动端隐藏 */
    #search-issue-page .issues-table thead {
        display: none;
    }

    /* 移动端使用卡片式布局 */
    #search-issue-page .issues-table tbody tr {
        display: flex;
        flex-direction: column;
        border: 1px solid #E5E7EB; /* 修改: 添加边框 */
        margin-bottom: 16px;
        border-radius: 12px;
        position: relative;
        overflow: hidden; /* 卡片内容不溢出 */
        background-color: #FFFFFF;
        box-shadow: 0 3px 8px rgba(0,0,0,0.08); /* 调整阴影 */
        padding-bottom: 0;
    }

    #search-issue-page .issues-table tbody tr:hover {
        background-color: #FFFFFF; /* 移动端卡片不改变背景 */
        box-shadow: 0 3px 8px rgba(0,0,0,0.08);
        transform: none;
    }
    #search-issue-page .issues-table tbody tr.active {
         box-shadow: 0 0 0 2px rgba(166, 25, 46, 0.2); /* 选中时添加外发光 */
    }

    /* 隐藏桌面端单元格 */
    #search-issue-page .issues-table td {
        display: none !important;
    }

    /* 卡片头部 */
    #search-issue-page .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 16px;
        background-color: #FFFFFF;
        border-bottom: 1px solid #F3F4F6;
    }
    #search-issue-page .card-header div { /* ID */
        font-weight: 600;
        color: #111827;
    }
    #search-issue-page .card-header .status-badge {
        font-size: 13px;
        padding: 4px 10px;
        min-width: 70px;
    }

    /* 卡片主体 */
    #search-issue-page .card-body {
        padding: 16px;
    }

    #search-issue-page .card-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 10px;
        color: #111827;
        line-height: 1.4;
    }

    /* 元信息行 */
    #search-issue-page .card-meta-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        margin-bottom: 0;
    }

    /* 类型标签 */
    #search-issue-page .card-tag {
        display: inline-flex;
        align-items: center;
        padding: 5px 10px;
        border-radius: 9999px;
        font-size: 13px;
        font-weight: 500;
        gap: 6px;
    }
    #search-issue-page .card-tag i {
        font-size: 12px;
    }
    #search-issue-page .tag-technical {
        background-color: #E0F2FE;
        color: #0288D1;
    }
    #search-issue-page .tag-academic {
        background-color: #F3E5F5;
        color: #7B1FA2;
    }
    #search-issue-page .tag-administrative { 
        background-color: #FFF8E1;
        color: #FFA000;
    }
    #search-issue-page .tag-other {
        background-color: #EFF6FF;
        color: #3B82F6;
    }

    /* 日期 */
    #search-issue-page .card-date {
        font-size: 13px;
        color: #6B7280;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    #search-issue-page .card-date i {
        font-size: 12px;
    }

    /* 卡片底部 */
    #search-issue-page .card-footer {
        display: flex;
        align-items: center;
        padding: 14px 16px;
        border-top: 1px solid #F3F4F6;
        background-color: #FFFFFF;
    }

    #search-issue-page .card-assigned {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
    }
    #search-issue-page .card-assigned .user-avatar-small {
        width: 32px;
        height: 32px;
    }
    #search-issue-page .card-assigned-name {
        font-size: 14px;
        font-weight: 500;
        color: #374151;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* 隐藏不需要的移动端元素 */
    #search-issue-page .issues-table td[data-label],
    #search-issue-page .expand-button,
    #search-issue-page .action-button,
    #search-issue-page .mobile-details-container,
    #search-issue-page .button-container,
    #search-issue-page .details-container,
    #search-issue-page .card-image {
        display: none !important;
    }

    /* 调整页脚 */
    #search-issue-page .footer {
        padding: 40px 24px 20px;
    }
    #search-issue-page .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        margin-bottom: 32px;
        text-align: left;
    }
    #search-issue-page .footer-info {
        grid-column: span 2;
        text-align: left;
        margin-bottom: 24px;
    }

    /* 调整标题和返回按钮 */
    #search-issue-page .issue-header {
        align-items: center;
        margin-bottom: 20px;
    }
    #search-issue-page .issue-title {
        font-size: 24px;
        margin: 0;
        line-height: 1.3;
        max-width: none;
        flex: 1;
    }
    #search-issue-page .issue-title br.mobile-only {
        display: block;
    }
    #search-issue-page .back-button {
        margin-top: 0;
        padding: 8px 16px;
    }

    /* 搜索错误消息样式 */
    #search-issue-page .search-message {
        position: fixed;
        top: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
        padding: 12px 16px;
        font-size: 15px;
        border-radius: 8px;
        background-color: rgba(248, 249, 250, 0.95);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        text-align: center;
    }
    #search-issue-page .search-message[style*="display: block"] {
        animation: slideUpMessage 0.3s ease-out;
    }
    @keyframes slideUpMessage { /* 确保动画定义存在 */
        from { 
            opacity: 0;
            transform: translate(-50%, 20px);
        }
        to { 
            opacity: 1;
            transform: translate(-50%, 0);
        }
    }
}

@media (min-width: 769px) {
    #search-issue-page .mobile-only {
        display: none;
    }
    /* 确保桌面端隐藏卡片元素 */
    #search-issue-page .card-header,
    #search-issue-page .card-body,
    #search-issue-page .card-footer {
        display: none !important;
    }
    /* 确保桌面端显示表格单元格 */
    #search-issue-page .issues-table td {
        display: table-cell !important;
    }
    /* 强制在桌面端显示 Assigned To 列 */
    #search-issue-page .issues-table th:nth-child(6),
    #search-issue-page .issues-table td:nth-child(6) {
        display: table-cell !important; /* 覆盖 project3styles.css 中的 display: none */
    }
}

/* 返回按钮基础样式 */
#search-issue-page .back-button {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #1F2937;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0;
}

/* ================== Issue Details Page 专用样式 ================== */
#issue-details-page .main-content {
    background-color: #FFFFFF; /* 改为白色背景 */
    padding: 40px 0 80px;
}

#issue-details-page .issue-details-container {
    max-width: 900px; /* 限制内容最大宽度 */
    margin: 0 auto;
    padding: 0 24px;
}

#issue-details-page .issue-details-content {
    background-color: #FFFFFF;
    border-radius: 16px; /* 增加圆角 */
    padding: 64px 56px; /* 增加内边距 (原 48px) */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); /* 调整阴影, 参考 report-issue */
    position: relative; /* 为返回按钮定位 */
}

#issue-details-page .issue-details-title {
    font-size: 36px; /* 增大标题 (原 32px) */
    font-weight: 700; /* 加粗 */
    margin-bottom: 40px; /* 保持间距 */
    color: #111827;
    padding-right: 150px; /* 为按钮留出空间 */
}

#issue-details-page .back-button {
    position: absolute;
    top: 64px; /* 调整位置与容器顶部内边距一致 */
    right: 56px; /* 调整位置与容器右侧内边距一致 */
    /* 继承 project3styles.css 中的样式 */
    /* 添加悬停效果 - 参考 report-issue */
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
#issue-details-page .back-button:hover {
    background-color: #A6192E !important; /* SFU Red hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(166, 25, 46, 0.2);
}


/* 统一 Section 样式 */
#issue-details-page section {
    margin-bottom: 56px; /* 增加间距 (原 48px) */
    padding-bottom: 56px; /* 增加间距 (原 48px) */
    border-bottom: 1px solid #E5E7EB;
}

#issue-details-page section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

#issue-details-page h2 {
    font-size: 22px; /* 增大标题 */
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 40px; /* 增加间距 (原 32px) */
}

/* 问题描述区域 */
#issue-details-page .description-details .detail-item {
    margin-bottom: 32px; /* 增加间距 */
}

#issue-details-page .description-details label {
    display: block;
    font-size: 18px; /* 增大标签字号 */
    font-weight: 500;
    color: #374151;
    margin-bottom: 20px; /* 增加间距 (原 16px) */
}

#issue-details-page .issue-type-tags {
    display: flex;
    gap: 16px; /* 增加标签间距 */
    flex-wrap: wrap;
}

#issue-details-page .issue-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px; /* 增加图标与文字间距 */
    padding: 12px 24px; /* 统一内边距 */
    border: 1px solid #E0E0E0; /* 默认边框 */
    border-radius: 8px;
    font-size: 16px; /* 统一字体大小 */
    font-weight: 500;
    color: #333333; /* 默认文字颜色 */
    background-color: #FFFFFF; /* 默认背景 */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08); /* 添加阴影 */
    flex: 1; /* 让按钮平分空间 */
    justify-content: center; /* 居中内容 */
    min-width: 150px; /* 保证最小宽度 */
}

#issue-details-page .issue-tag img {
    width: 18px; /* 调整图标大小 */
    height: 18px;
    opacity: 0.9; /* 增加图标可见度 */
    filter: none; /* 移除之前的滤镜 */
}

#issue-details-page .issue-tag:hover {
    /* 未选中悬停效果 */
    border-color: #A6192E; /* SFU Red */
    background-color: #FFF8F8;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(166, 25, 46, 0.15);
    color: #A6192E; /* 悬停时文字变红 */
}

#issue-details-page .issue-tag.selected {
    border-color: #1F2937; /* 深灰色边框 */
    background-color: #1F2937; /* 深灰色背景 */
    color: #FFFFFF; /* 白色文字 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transform: translateY(0); /* 选中状态无位移 */
}
#issue-details-page .issue-tag.selected img {
   filter: brightness(0) invert(1); /* 图标变白 */
   opacity: 1;
}
/* 选中状态悬停效果 */
#issue-details-page .issue-tag.selected:hover {
    background-color: #2D3748; /* 悬停时背景变浅 */
    border-color: #2D3748;
    transform: translateY(-2px); /* 轻微上移 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


#issue-details-page #issue-description-text {
    width: 100%;
    min-height: 150px; /* 增加最小高度 */
    padding: 16px 24px; /* 增加内边距 */
    border: 1px solid #E0E0E0; /* 调整边框 */
    border-radius: 12px; /* 增加圆角 */
    font-size: 16px;
    line-height: 1.6;
    background-color: #FAFAFA; /* 只读状态背景色 */
    color: #4B5563;
    resize: none;
    font-family: inherit;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08); /* 添加阴影 */
    transition: transform 0.2s ease; /* 添加过渡 */
}
/* 添加readonly状态下的悬停效果 */
#issue-details-page #issue-description-text[readonly]:hover {
    border-color: #D1D5DB;
    background-color: #F3F4F6;
}


#issue-details-page .attachment-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px; /* 增加内边距 */
    border: 2px dashed #E0E0E0; /* 调整边框 */
    border-radius: 12px; /* 增加圆角 */
    text-align: center;
    background-color: #FAFAFA;
    color: #757575; /* 调整颜色 */
    min-height: 150px; /* 参考 report-issue */
    box-shadow: 0 2px 6px rgba(0,0,0,0.08); /* 添加阴影 */
    transition: all 0.3s ease; /* 添加过渡 */
}
/* 添加悬停效果 */
#issue-details-page .upload-area:hover {
    border-color: #A6192E;
    background-color: #FFF8F8;
    box-shadow: 0 4px 12px rgba(166, 25, 46, 0.15);
    transform: translateY(-3px);
}
#issue-details-page .upload-area:hover .upload-icon i {
    color: #A6192E;
    transform: scale(1.1);
    opacity: 1;
}
#issue-details-page .upload-area:hover .upload-text {
    color: #A6192E;
}


#issue-details-page .attachment-area img {
    width: 36px; /* 增大图标 */
    height: 36px;
    margin-bottom: 16px; /* 增加间距 */
    opacity: 0.5; /* 调整透明度 */
    transition: all 0.3s ease;
}

#issue-details-page .attachment-area span {
    font-size: 16px; /* 调整字体大小 */
    transition: color 0.3s ease;
}

/* 回复区域 */
#issue-details-page .response-card {
    background-color: #F8F9FA; /* 调整背景色 */
    border-radius: 12px; /* 增加圆角 */
    padding: 32px; /* 增加内边距 */
    border: 1px solid #E5E7EB;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); /* 添加轻微阴影 */
}

#issue-details-page .responder-info {
    display: flex;
    align-items: center;
    gap: 16px; /* 增加间距 */
    margin-bottom: 20px; /* 增加间距 */
}

#issue-details-page .responder-avatar {
    width: 48px; /* 增大头像 */
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #FFFFFF; /* 添加白边 */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* 添加阴影 */
}

#issue-details-page .responder-details {
    display: flex;
    flex-direction: column;
    gap: 2px; /* 调整间距 */
}

#issue-details-page .responder-details h3 {
    margin: 0;
    font-size: 18px; /* 增大名字字号 */
    font-weight: 600;
    color: #111827;
}

#issue-details-page .response-date {
    font-size: 14px;
    color: #6B7280;
}

#issue-details-page .response-content p {
    font-size: 16px;
    line-height: 1.7; /* 增加行高 */
    color: #374151;
    margin: 0;
    padding-left: calc(48px + 16px); /* 与头像对齐 */
}

/* 反馈区域 */
#issue-details-page .feedback-content {
    display: flex;
    flex-direction: column;
    gap: 40px; /* 增加间距 (原 32px) */
    background-color: #F9FAFB; /* 添加背景色 */
    padding: 32px; /* 添加内边距 */
    border-radius: 12px; /* 添加圆角 */
    border: 1px solid #E5E7EB;
}

#issue-details-page .rating-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

#issue-details-page .rating-area label {
    font-size: 18px; /* 增大标签字号 */
    font-weight: 500;
    color: #374151;
    margin-bottom: 0;
}

#issue-details-page .star-rating {
    display: flex;
    gap: 6px; /* 增加星星间距 */
}

#issue-details-page .star-rating button {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    line-height: 0; /* 防止按钮高度不一致 */
    transition: transform 0.2s ease; /* 添加过渡 */
}
#issue-details-page .star-rating button:hover {
    transform: scale(1.15); /* 悬停放大 */
}


#issue-details-page .star-rating button i {
    font-size: 28px; /* 增大星星图标 */
    color: #D1D5DB; /* 未选中星星颜色 (浅灰) */
    transition: color 0.2s ease;
}

#issue-details-page .star-rating button:hover i,
#issue-details-page .star-rating button.hover i {
    color: #FACC15; /* 悬停星星颜色 (黄色) */
}

#issue-details-page .star-rating button.rated i {
    color: #FACC15; /* 选中星星颜色 (黄色) */
    font-weight: 900; /* 使用实心星星 Font Awesome 900 */
    /* 移除之前的 filter */
}
/* 使用 ::before 伪元素来创建实心星星 */
#issue-details-page .star-rating button.rated i::before {
    content: '\f005'; /* Font Awesome 实心星星 Unicode */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #FACC15; /* 确保伪元素也是黄色 */
}

#issue-details-page #feedback-comments {
    width: 100%;
    min-height: 120px; /* 调整高度 */
    padding: 16px 24px; /* 增加内边距 */
    border: 1px solid #E0E0E0; /* 调整边框 */
    border-radius: 12px; /* 增加圆角 */
    font-size: 16px;
    line-height: 1.6;
    background-color: #FFFFFF;
    color: #374151;
    resize: vertical;
    font-family: inherit;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08); /* 添加阴影 */
    transition: all 0.3s ease; /* 添加过渡 */
}

#issue-details-page #feedback-comments::placeholder {
    color: #9CA3AF;
}
/* 添加聚焦样式 */
#issue-details-page #feedback-comments:focus {
    outline: none !important;
    border-color: #A6192E !important; /* 参考 report-issue */
    box-shadow: 0 0 0 2px rgba(166, 25, 46, 0.1) !important; /* 参考 report-issue */
}
/* 添加悬停效果 */
#issue-details-page #feedback-comments:hover {
    border-color: #A6192E; /* 参考 report-issue */
    background-color: #FFF8F8; /* 参考 report-issue */
    box-shadow: 0 4px 12px rgba(166, 25, 46, 0.15); /* 参考 report-issue */
    transform: translateY(-3px); /* 参考 report-issue */
}


#issue-details-page .feedback-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end; /* 按钮靠右 */
    flex-wrap: wrap; /* 移动端换行 */
}

#issue-details-page .feedback-actions button {
    padding: 12px 28px; /* 调整内边距 */
    border-radius: 8px;
    font-size: 16px; /* 增大字体 */
    font-weight: 600; /* 加粗 */
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 160px; /* 设置最小宽度 */
    text-align: center;
}

#issue-details-page .submit-feedback-button {
    background-color: #1F2937; /* 参考 report-issue */
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); /* 参考 report-issue */
}
#issue-details-page .submit-feedback-button:hover {
    background-color: #A6192E; /* 参考 report-issue hover */
    transform: scale(1.02); /* 参考 report-issue hover */
    box-shadow: 0 6px 12px rgba(166, 25, 46, 0.3); /* 参考 report-issue hover */
}

#issue-details-page .escalate-issue-button {
    background-color: #FFFFFF;
    color: #1F2937;
    border: 1px solid #D1D5DB;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
#issue-details-page .escalate-issue-button:hover {
    background-color: #F9FAFB;
    border-color: #9CA3AF;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 反馈弹窗样式 - 继承 report-issue */
#issue-details-page .success-feedback {
    /* 样式已在 report-issue.html 中通过内联 style 定义，或可在 project3styles.css 中统一定义 */
}

/* 移动端适配 */
@media (max-width: 768px) {
    #issue-details-page .issue-details-content {
        padding: 32px 24px; /* 调整内边距 */
    }

    #issue-details-page .issue-details-title {
        font-size: 26px; /* 调整标题大小 */
        margin-bottom: 56px; /* 调整间距 */
    }

    #issue-details-page .back-button {
        top: 32px; /* 调整位置 */
        right: 24px;
        padding: 8px 16px; /* 调整按钮大小 */
    }

    #issue-details-page h2 {
        font-size: 20px; /* 调整副标题大小 */
        margin-bottom: 24px;
    }
    #issue-details-page section {
        margin-bottom: 32px;
        padding-bottom: 32px;
    }

    #issue-details-page .description-details label {
        font-size: 16px;
        margin-bottom: 12px;
    }

    #issue-details-page .issue-type-tags {
        flex-direction: column; /* 移动端垂直排列 */
        gap: 12px;
    }
    #issue-details-page .issue-tag {
        width: 100%; /* 按钮占满宽度 */
        padding: 12px 16px;
        font-size: 15px;
    }

    #issue-details-page .attachment-area {
        padding: 32px;
    }

    #issue-details-page .response-card {
        padding: 24px;
    }
    #issue-details-page .response-content p {
        padding-left: 0; /* 移动端取消缩进 */
    }

    #issue-details-page .feedback-content {
        padding: 24px;
        gap: 24px;
    }

    #issue-details-page .feedback-actions {
        justify-content: center; /* 移动端按钮居中 */
        gap: 12px;
    }
    #issue-details-page .feedback-actions button {
        width: 100%; /* 按钮占满一行 */
        max-width: 300px;
        padding: 12px 24px;
        font-size: 15px;
    }
    #issue-details-page .submit-feedback-button {
        order: 1; /* 提交按钮在下 */
    }
    #issue-details-page .escalate-issue-button {
        order: 2;
    }

    #issue-details-page .rating-area {
       flex-direction: column;
       align-items: flex-start;
       gap: 12px;
    }
     #issue-details-page .rating-area label {
        font-size: 16px;
    }
    #issue-details-page .star-rating button i {
        width: 26px;
        height: 26px;
    }
}


/* ---------- 以下是 Search Issue 页面原有样式 ---------- */

#search-issue-page .search-issue-table-container {
    background-color: #FFFFFF;
    border-radius: 0;
    box-shadow: none;
    padding: 32px;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
}

#search-issue-page .search-issue-title {
    font-size: 28px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 24px;
    padding-left: 0;
}

/* 搜索和筛选容器 */
#search-issue-page .search-filter-container {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: center;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

/* 搜索框样式 */
#search-issue-page .search-container {
    flex: 1;
    min-width: 300px;
    position: relative;
    background-color: #F8F9FA;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
}

#search-issue-page .search-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background-color: transparent;
    color: #374151;
}

#search-issue-page .search-input::placeholder {
    color: #9CA3AF;
}

#search-issue-page .search-button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    transition: all 0.2s ease;
}

#search-issue-page .search-container:hover {
    border-color: #A6192E;
    box-shadow: 0 4px 8px rgba(166, 25, 46, 0.1);
    transform: translateY(-2px);
    background-color: #F8F9FA;
}

#search-issue-page .search-container:hover .search-button {
    color: #A6192E;
    transform: translateY(-50%) scale(1.1);
}

#search-issue-page .search-container:hover .search-input::placeholder {
    color: #9CA3AF;
}

#search-issue-page .search-container:hover .search-input {
    color: #374151;
    background-color: transparent;
}

/* 新增：匹配 my-issue 页面的搜索容器悬停效果 */
#search-issue-page .search-container:hover {
    transform: translateY(-1px);
    background-color: #2D3748; /* 变暗背景 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: #2D3748; /* 统一边框色 */
}

#search-issue-page .search-container:hover .search-input {
    color: #FFFFFF; /* 输入文字变白 */
    background-color: transparent;
}

#search-issue-page .search-container:hover .search-input::placeholder {
    color: rgba(255, 255, 255, 0.8); /* 占位符变浅白色 */
}

#search-issue-page .search-container:hover .search-button {
    color: #FFFFFF; /* 搜索图标变白 */
    transform: translateY(-50%) scale(1); /* 移除缩放效果，保持一致 */
}

/* 筛选器样式 */
#search-issue-page .search-filter-group {
    display: flex;
    gap: 16px;
}

#search-issue-page .search-type-filter,
#search-issue-page .search-status-filter {
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background-color: #FFFFFF;
    font-size: 16px;
    min-width: 150px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    color: #374151;
    transition: all 0.3s ease;
    cursor: pointer;
}

#search-issue-page .search-type-filter:hover,
#search-issue-page .search-status-filter:hover {
    border-color: #A6192E;
    box-shadow: 0 4px 8px rgba(166, 25, 46, 0.1);
    transform: translateY(-2px);
    background-color: #FFF8F8;
}

#search-issue-page .search-type-filter:focus,
#search-issue-page .search-status-filter:focus {
    outline: none;
    border-color: #A6192E;
    box-shadow: 0 0 0 3px rgba(166, 25, 46, 0.1);
}

/* 表格样式 - 统一风格 */
#search-issue-page .issues-table {
    width: 100%;
    border-collapse: separate; /* 改为 separate 以应用 border-spacing */
    border-spacing: 0 10px; /* 添加行间距，类似 my-issue */
    margin-top: 12px; /* 调整与筛选器的间距 */
    border-radius: 0; /* 移除表格本身的圆角 */
}

/* 移除包裹容器的边框和圆角 */
#search-issue-page .issues-table-wrapper {
    border: none;
    border-radius: 0;
    overflow: visible; /* 允许行阴影显示 */
}

#search-issue-page .issues-table thead {
    background-color: #F8F9FA;
    /* 桌面端表头通过 project3styles.css 显示 */
}

#search-issue-page .issues-table thead th {
    padding: 16px 20px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    text-align: left;
    border-bottom: 2px solid #E5E7EB; /* 加强表头底边框 */
    border-right: none; /* 移除内部右边框 */
}

#search-issue-page .issues-table thead th:last-child {
    border-right: none;
}

/* 表格行样式 - 统一风格 */
#search-issue-page .issues-table tbody tr {
    border: none; /* 移除行边框 */
    border-radius: 12px; /* 添加圆角 */
    background-color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); /* 添加阴影 */
    transition: background-color 0.25s ease,
                transform 0.25s ease,
                box-shadow 0.25s ease,
                border-color 0.25s ease;
    cursor: pointer;
}

#search-issue-page .issues-table tbody tr:last-child {
    border-bottom: none;
}

#search-issue-page .issues-table tbody tr:hover {
    background-color: #F5F7FA; /* 统一 hover 背景色 */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* 统一 hover 阴影 */
    transform: translateY(-2px);
}

#search-issue-page .issues-table tbody tr.active {
    /* 可以保留边框或使用其他方式高亮，这里暂时移除，避免冲突 */
    box-shadow: 0 4px 12px rgba(166, 25, 46, 0.2); /* 加强选中阴影 */
    transform: translateY(-1px);
}

/* 单元格样式 */
#search-issue-page .issues-table td {
    padding: 16px 20px;
    vertical-align: middle;
    border: none; /* 移除内部边框 */
}

/* 特定列样式 */
#search-issue-page .issues-table th:nth-child(1),
#search-issue-page .issues-table td[data-label="ID"] { width: 8%; font-weight: 500; color: #111827; }

#search-issue-page .issues-table th:nth-child(2),
#search-issue-page .issues-table td[data-label="Title"] { width: 25%; white-space: normal; word-wrap: break-word; }

#search-issue-page .issues-table th:nth-child(3),
#search-issue-page .issues-table td[data-label="Type"] { width: 15%; color: #1F2937; font-weight: 500; white-space: normal; word-wrap: break-word; }

#search-issue-page .issues-table th:nth-child(4),
#search-issue-page .issues-table td[data-label="Status"] { width: 12%; text-align: center; }

#search-issue-page .issues-table th:nth-child(5),
#search-issue-page .issues-table td[data-label="Date"] { width: 15%; white-space: nowrap; }

#search-issue-page .issues-table th:nth-child(6),
#search-issue-page .issues-table td[data-label="Assigned To"] { width: 25%; }

/* 分配用户样式 */
#search-issue-page .search-assigned-user {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    overflow: hidden;
}

/* 用户头像样式 - 统一尺寸 */
#search-issue-page .user-avatar-small {
    width: 32px; /* 统一尺寸 */
    height: 32px; /* 统一尺寸 */
    border-radius: 50%;
    overflow: hidden;
    border: none;
    flex-shrink: 0;
    background-color: #F3F4F6; /* 添加背景色防图片加载失败 */
}

#search-issue-page .user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#search-issue-page .assigned-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    flex: 1; /* 允许名字占据剩余空间 */
}

/* 移动端优化 - 保持不变 */
@media (max-width: 768px) {
    #search-issue-page .search-filter-container {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 24px;
    }

    #search-issue-page .search-filter-group {
        flex-direction: column;
    }

    /* 桌面端表头在移动端隐藏 */
    #search-issue-page .issues-table thead {
        display: none;
    }

    /* 移动端使用卡片式布局 */
    #search-issue-page .issues-table tbody tr {
        display: flex;
        flex-direction: column;
        border: 1px solid #E5E7EB; /* 修改: 添加边框 */
        margin-bottom: 16px;
        border-radius: 12px;
        position: relative;
        overflow: hidden; /* 卡片内容不溢出 */
        background-color: #FFFFFF;
        box-shadow: 0 3px 8px rgba(0,0,0,0.08); /* 调整阴影 */
        padding-bottom: 0;
    }

    #search-issue-page .issues-table tbody tr:hover {
        background-color: #FFFFFF; /* 移动端卡片不改变背景 */
        box-shadow: 0 3px 8px rgba(0,0,0,0.08);
        transform: none;
    }
    #search-issue-page .issues-table tbody tr.active {
         box-shadow: 0 0 0 2px rgba(166, 25, 46, 0.2); /* 选中时添加外发光 */
    }

    /* 隐藏桌面端单元格 */
    #search-issue-page .issues-table td {
        display: none !important;
    }

    /* 卡片头部 */
    #search-issue-page .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 16px;
        background-color: #FFFFFF;
        border-bottom: 1px solid #F3F4F6;
    }
    #search-issue-page .card-header div { /* ID */
        font-weight: 600;
        color: #111827;
    }
    #search-issue-page .card-header .status-badge {
        font-size: 13px;
        padding: 4px 10px;
        min-width: 70px;
    }

    /* 卡片主体 */
    #search-issue-page .card-body {
        padding: 16px;
    }

    #search-issue-page .card-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 10px;
        color: #111827;
        line-height: 1.4;
    }

    /* 元信息行 */
    #search-issue-page .card-meta-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        margin-bottom: 0;
    }

    /* 类型标签 */
    #search-issue-page .card-tag {
        display: inline-flex;
        align-items: center;
        padding: 5px 10px;
        border-radius: 9999px;
        font-size: 13px;
        font-weight: 500;
        gap: 6px;
    }
    #search-issue-page .card-tag i {
        font-size: 12px;
    }
    #search-issue-page .tag-technical {
        background-color: #E0F2FE;
        color: #0288D1;
    }
    #search-issue-page .tag-academic {
        background-color: #F3E5F5;
        color: #7B1FA2;
    }
    #search-issue-page .tag-administrative { 
        background-color: #FFF8E1;
        color: #FFA000;
    }
    #search-issue-page .tag-other {
        background-color: #EFF6FF;
        color: #3B82F6;
    }

    /* 日期 */
    #search-issue-page .card-date {
        font-size: 13px;
        color: #6B7280;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    #search-issue-page .card-date i {
        font-size: 12px;
    }

    /* 卡片底部 */
    #search-issue-page .card-footer {
        display: flex;
        align-items: center;
        padding: 14px 16px;
        border-top: 1px solid #F3F4F6;
        background-color: #FFFFFF;
    }

    #search-issue-page .card-assigned {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
    }
    #search-issue-page .card-assigned .user-avatar-small {
        width: 32px;
        height: 32px;
    }
    #search-issue-page .card-assigned-name {
        font-size: 14px;
        font-weight: 500;
        color: #374151;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* 隐藏不需要的移动端元素 */
    #search-issue-page .issues-table td[data-label],
    #search-issue-page .expand-button,
    #search-issue-page .action-button,
    #search-issue-page .mobile-details-container,
    #search-issue-page .button-container,
    #search-issue-page .details-container,
    #search-issue-page .card-image {
        display: none !important;
    }

    /* 调整页脚 */
    #search-issue-page .footer {
        padding: 40px 24px 20px;
    }
    #search-issue-page .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        margin-bottom: 32px;
        text-align: left;
    }
    #search-issue-page .footer-info {
        grid-column: span 2;
        text-align: left;
        margin-bottom: 24px;
    }

    /* 调整标题和返回按钮 */
    #search-issue-page .issue-header {
        align-items: center;
        margin-bottom: 20px;
    }
    #search-issue-page .issue-title {
        font-size: 24px;
        margin: 0;
        line-height: 1.3;
        max-width: none;
        flex: 1;
    }
    #search-issue-page .issue-title br.mobile-only {
        display: block;
    }
    #search-issue-page .back-button {
        margin-top: 0;
        padding: 8px 16px;
    }

    /* 搜索错误消息样式 */
    #search-issue-page .search-message {
        position: fixed;
        top: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
        padding: 12px 16px;
        font-size: 15px;
        border-radius: 8px;
        background-color: rgba(248, 249, 250, 0.95);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        text-align: center;
    }
    #search-issue-page .search-message[style*="display: block"] {
        animation: slideUpMessage 0.3s ease-out;
    }
    @keyframes slideUpMessage { /* 确保动画定义存在 */
        from { 
            opacity: 0;
            transform: translate(-50%, 20px);
        }
        to { 
            opacity: 1;
            transform: translate(-50%, 0);
        }
    }
}

@media (min-width: 769px) {
    #search-issue-page .mobile-only {
        display: none;
    }
    /* 确保桌面端隐藏卡片元素 */
    #search-issue-page .card-header,
    #search-issue-page .card-body,
    #search-issue-page .card-footer {
        display: none !important;
    }
    /* 确保桌面端显示表格单元格 */
    #search-issue-page .issues-table td {
        display: table-cell !important;
    }
    /* 强制在桌面端显示 Assigned To 列 */
    #search-issue-page .issues-table th:nth-child(6),
    #search-issue-page .issues-table td:nth-child(6) {
        display: table-cell !important; /* 覆盖 project3styles.css 中的 display: none */
    }
}

/* 返回按钮基础样式 */
#search-issue-page .back-button {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #1F2937;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0;
}

/* 新增：上传区域基础样式 */
#issue-details-page .upload-area {
    border: 1px dashed #E0E0E0;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* 确保内容居中 */
    margin-top: 0;
    width: 100%;
    background-color: #FAFAFA;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
#issue-details-page .upload-icon i {
    font-size: 32px;
    color: #757575;
    margin-bottom: 16px;
    transition: all 0.3s ease; /* 确保图标也有过渡效果 */
}
#issue-details-page .upload-text {
    font-size: 16px;
    color: #757575;
    transition: color 0.3s ease; /* 添加颜色过渡 */
}

/* 添加悬停效果 - 参考 report-issue */
#issue-details-page .upload-area:hover {
    border-color: #A6192E;
    background-color: #FFF8F8;
    box-shadow: 0 4px 12px rgba(166, 25, 46, 0.15);
    transform: translateY(-3px);
}
#issue-details-page .upload-area:hover .upload-icon i {
    color: #A6192E;
    transform: scale(1.1);
    opacity: 1;
}
#issue-details-page .upload-area:hover .upload-text {
    color: #A6192E;
}

/* 新增：升级确认弹窗按钮样式 */
#escalationConfirmModal .confirm-button.primary {
    background-color: #A6192E; /* SFU Red for Yes */
    color: #FFFFFF;
}
#escalationConfirmModal .confirm-button.primary:hover {
    background-color: #8C1526; /* Darker Red */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#escalationConfirmModal .confirm-button.secondary {
    background-color: #F3F4F6; /* Light Gray for No */
    color: #374151;
    border: 1px solid #D1D5DB;
}
#escalationConfirmModal .confirm-button.secondary:hover {
    background-color: #E5E7EB; /* Slightly Darker Gray */
    border-color: #9CA3AF;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
} 