123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809 |
- // 全局变量
- $primary-color: #1976d2;
- $primary-light: #e3f2fd;
- $secondary-color: #6c757d;
- $success-color: #4caf50;
- $warning-color: #ff9800;
- $danger-color: #f44336;
- $text-primary: #333;
- $text-secondary: #666;
- $text-light: #999;
- $bg-light: #f5f7fa;
- $bg-white: #fff;
- $border-color: #e1e5e9;
- $box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
- $transition: all 0.3s ease;
- // 主容器
- .project-list-container {
- display: flex;
- flex-direction: column;
- height: 100vh;
- overflow: hidden;
- background-color: $bg-light;
- }
- // 顶部导航栏
- .top-navbar {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 0 24px;
- height: 64px;
- background-color: $bg-white;
- border-bottom: 1px solid $border-color;
- box-shadow: $box-shadow;
- .navbar-left {
- display: flex;
- align-items: center;
- gap: 16px;
- .menu-toggle {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 40px;
- height: 40px;
- border: none;
- background: none;
- color: $text-primary;
- cursor: pointer;
- transition: $transition;
- &:hover {
- color: $primary-color;
- background-color: $bg-light;
- border-radius: 4px;
- }
- }
- .app-title {
- font-size: 18px;
- font-weight: 600;
- color: $text-primary;
- margin: 0;
- }
- }
- .navbar-right {
- display: flex;
- align-items: center;
- gap: 16px;
- .notification-btn {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 40px;
- height: 40px;
- border: none;
- background: none;
- color: $text-primary;
- cursor: pointer;
- position: relative;
- transition: $transition;
- &:hover {
- color: $primary-color;
- background-color: $bg-light;
- border-radius: 4px;
- }
- .notification-badge {
- position: absolute;
- top: 8px;
- right: 8px;
- display: flex;
- align-items: center;
- justify-content: center;
- width: 16px;
- height: 16px;
- font-size: 10px;
- font-weight: 600;
- color: white;
- background-color: $danger-color;
- border-radius: 50%;
- }
- }
- .user-profile {
- display: flex;
- align-items: center;
- gap: 8px;
- padding: 8px 12px;
- border-radius: 6px;
- transition: $transition;
- &:hover {
- background-color: $bg-light;
- }
- .user-avatar {
- width: 32px;
- height: 32px;
- border-radius: 50%;
- object-fit: cover;
- }
- .user-name {
- font-size: 14px;
- font-weight: 500;
- color: $text-primary;
- }
- }
- }
- }
- // 主要内容区
- .dashboard-content {
- display: flex;
- flex: 1;
- overflow: hidden;
- }
- // 左侧侧边栏
- .sidebar {
- width: 240px;
- background-color: $bg-white;
- border-right: 1px solid $border-color;
- overflow-y: auto;
- flex-shrink: 0;
- .sidebar-nav {
- padding: 16px 0;
- .nav-item {
- display: flex;
- align-items: center;
- gap: 12px;
- padding: 12px 24px;
- color: $text-secondary;
- text-decoration: none;
- transition: $transition;
- &:hover {
- color: $primary-color;
- background-color: $bg-light;
- }
- &.active {
- color: $primary-color;
- background-color: #e3f2fd;
- border-left: 3px solid $primary-color;
- padding-left: 21px;
- }
- svg {
- flex-shrink: 0;
- }
- span {
- font-size: 14px;
- font-weight: 500;
- }
- }
- }
- }
- // 右侧主要内容
- .project-content {
- flex: 1;
- overflow-y: auto;
- padding: 24px;
- // 页面标题和操作
- .page-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 24px;
- h2 {
- font-size: 24px;
- font-weight: 600;
- color: $text-primary;
- margin: 0;
- }
- .header-actions {
- .search-container {
- .search-box {
- display: flex;
- align-items: center;
- width: 320px;
- border: 1px solid $border-color;
- border-radius: 6px;
- overflow: hidden;
- transition: $transition;
- &:focus-within {
- border-color: $primary-color;
- box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
- }
- svg:first-child {
- margin-left: 12px;
- color: $text-light;
- }
- input {
- flex: 1;
- padding: 8px 12px;
- border: none;
- outline: none;
- font-size: 14px;
- color: $text-primary;
- background-color: $bg-white;
- }
- .search-btn {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 40px;
- height: 100%;
- border: none;
- color: $primary-color;
- background-color: $primary-light;
- cursor: pointer;
- transition: $transition;
- &:hover {
- background-color: $primary-color;
- color: white;
- }
- }
- }
- }
- }
- }
- // 筛选和排序工具栏
- .filter-toolbar {
- display: flex;
- align-items: center;
- gap: 24px;
- padding: 16px 20px;
- margin-bottom: 24px;
- background-color: $bg-white;
- border-radius: 8px;
- box-shadow: $box-shadow;
- .filter-group {
- display: flex;
- align-items: center;
- gap: 8px;
- label {
- font-size: 14px;
- font-weight: 500;
- color: $text-secondary;
- white-space: nowrap;
- }
- select {
- padding: 6px 12px;
- border: 1px solid $border-color;
- border-radius: 4px;
- font-size: 14px;
- color: $text-primary;
- background-color: $bg-white;
- cursor: pointer;
- transition: $transition;
- &:focus {
- outline: none;
- border-color: $primary-color;
- box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
- }
- &:hover {
- border-color: $primary-color;
- }
- }
- }
- .filter-results {
- margin-left: auto;
- font-size: 14px;
- color: $text-secondary;
- }
- }
- // 项目网格布局
- .project-grid {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
- gap: 20px;
- margin-bottom: 24px;
- // 项目卡片
- .project-card {
- display: flex;
- flex-direction: column;
- padding: 20px;
- background-color: $bg-white;
- border-radius: 8px;
- box-shadow: $box-shadow;
- transition: $transition;
- border: 1px solid transparent;
- &:hover {
- transform: translateY(-2px);
- box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
- border-color: $primary-light;
- }
- // 卡片头部
- .card-header {
- margin-bottom: 16px;
- .card-title-section {
- display: flex;
- justify-content: space-between;
- align-items: flex-start;
- margin-bottom: 8px;
- .project-name {
- font-size: 16px;
- font-weight: 600;
- color: $text-primary;
- margin: 0;
- flex: 1;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .project-id {
- font-size: 12px;
- color: $text-light;
- margin-left: 8px;
- }
- }
- .card-tags {
- display: flex;
- gap: 8px;
- flex-wrap: wrap;
- .project-tag {
- padding: 4px 12px;
- font-size: 12px;
- font-weight: 500;
- color: $primary-color;
- background-color: $primary-light;
- border-radius: 16px;
- }
- .urgent-tag {
- padding: 4px 12px;
- font-size: 12px;
- font-weight: 500;
- color: $danger-color;
- background-color: #ffebee;
- border-radius: 16px;
- }
- }
- }
- // 卡片内容
- .card-content {
- flex: 1;
- // 信息项
- .info-item {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 12px;
- .info-label {
- font-size: 13px;
- color: $text-light;
- }
- .info-value {
- font-size: 14px;
- font-weight: 500;
- color: $text-primary;
- }
- .status-badge {
- padding: 4px 12px;
- border-radius: 16px;
- font-size: 12px;
- font-weight: 500;
- }
- .stage-badge {
- padding: 4px 12px;
- border-radius: 16px;
- font-size: 12px;
- font-weight: 500;
- }
- // 状态样式
- .status-active {
- color: $primary-color;
- background-color: $primary-light;
- }
- .status-completed {
- color: $success-color;
- background-color: #e8f5e9;
- }
- .status-paused {
- color: $secondary-color;
- background-color: #f5f5f5;
- }
- .status-overdue {
- color: $danger-color;
- background-color: #ffebee;
- }
- // 阶段样式
- .stage-communication {
- color: #9c27b0;
- background-color: #f3e5f5;
- }
- .stage-modeling {
- color: #2196f3;
- background-color: #e3f2fd;
- }
- .stage-decoration {
- color: #009688;
- background-color: #e0f2f1;
- }
- .stage-rendering {
- color: #ff5722;
- background-color: #fbe9e7;
- }
- .stage-postproduction {
- color: #ff9800;
- background-color: #fff3e0;
- }
- .stage-completed {
- color: $success-color;
- background-color: #e8f5e9;
- }
- }
- // 进度部分
- .progress-section {
- margin-bottom: 16px;
- .progress-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 8px;
- .progress-label {
- font-size: 13px;
- color: $text-light;
- }
- .progress-percentage {
- font-size: 14px;
- font-weight: 600;
- color: $primary-color;
- }
- }
- .progress-bar {
- height: 6px;
- background-color: $bg-light;
- border-radius: 3px;
- overflow: hidden;
- .progress-fill {
- height: 100%;
- border-radius: 3px;
- transition: width 0.6s ease;
- }
- }
- }
- // 时间信息
- .timeline-info {
- margin-bottom: 16px;
- .time-item {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 8px;
- .time-label {
- font-size: 13px;
- color: $text-light;
- }
- .time-value {
- font-size: 13px;
- color: $text-secondary;
- }
- .deadline {
- &.overdue {
- color: $danger-color;
- font-weight: 500;
- }
- &.urgent {
- color: $warning-color;
- font-weight: 500;
- }
- }
- }
- }
- // 高优先级需求
- .needs-section {
- padding-top: 12px;
- border-top: 1px solid $border-color;
- .needs-label {
- display: block;
- font-size: 13px;
- color: $text-light;
- margin-bottom: 8px;
- }
- .needs-list {
- margin: 0;
- padding: 0;
- list-style: none;
- li {
- display: flex;
- align-items: center;
- gap: 6px;
- font-size: 13px;
- color: $warning-color;
- margin-bottom: 4px;
- svg {
- flex-shrink: 0;
- color: $warning-color;
- }
- }
- }
- }
- }
- // 卡片底部
- .card-footer {
- display: flex;
- gap: 12px;
- margin-top: 16px;
- padding-top: 16px;
- border-top: 1px solid $border-color;
- .secondary-btn,
- .primary-btn {
- display: flex;
- align-items: center;
- gap: 6px;
- padding: 8px 16px;
- border: none;
- border-radius: 6px;
- font-size: 14px;
- font-weight: 500;
- cursor: pointer;
- transition: $transition;
- }
- .primary-btn {
- flex: 1;
- color: white;
- background-color: $primary-color;
- &:hover {
- background-color: #1565c0;
- }
-
- &:active {
- background-color: #0E42CB;
- }
- }
- .secondary-btn {
- flex: 1;
- color: $text-primary;
- background-color: $bg-light;
- &:hover {
- background-color: $border-color;
- }
-
- &:active {
- background-color: #D1D1D6;
- }
- }
- .card-action {
- justify-content: center;
- }
- }
- }
- }
- // 分页控件
- .pagination {
- display: flex;
- justify-content: center;
- align-items: center;
- gap: 8px;
- padding: 20px;
- background-color: $bg-white;
- border-radius: 8px;
- box-shadow: $box-shadow;
- .pagination-btn {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 36px;
- height: 36px;
- border: 1px solid $border-color;
- background-color: $bg-white;
- color: $text-secondary;
- border-radius: 4px;
- cursor: pointer;
- transition: $transition;
- font-size: 14px;
- font-weight: 500;
- &:hover:not(:disabled) {
- color: $primary-color;
- border-color: $primary-color;
- }
- &:active:not(:disabled):not(.active) {
- background-color: $primary-light;
- }
- &.active {
- color: white;
- background-color: $primary-color;
- border-color: $primary-color;
- }
- &.active:active {
- background-color: #0E42CB;
- }
- &:disabled {
- opacity: 0.5;
- cursor: not-allowed;
- }
- }
- .pagination-ellipsis {
- font-size: 14px;
- color: $text-light;
- padding: 0 8px;
- }
- }
- }
- // 响应式设计
- @media (max-width: 1200px) {
- .project-grid {
- grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
- }
- }
- @media (max-width: 1024px) {
- .sidebar {
- width: 200px;
- }
- .project-content {
- padding: 16px;
- }
- .filter-toolbar {
- flex-wrap: wrap;
- }
- .page-header {
- flex-direction: column;
- align-items: flex-start !important;
- gap: 16px;
- }
- .header-actions {
- width: 100%;
- }
- .search-box {
- width: 100% !important;
- }
- }
- @media (max-width: 768px) {
- .top-navbar {
- padding: 0 16px;
- .navbar-right {
- gap: 8px;
- }
- .user-name {
- display: none;
- }
- }
- .sidebar {
- display: none;
- }
- .filter-toolbar {
- gap: 16px;
- padding: 12px 16px;
- .filter-group {
- flex: 1 1 calc(50% - 8px);
- }
- .filter-results {
- width: 100%;
- margin-left: 0;
- text-align: center;
- }
- }
- .project-grid {
- grid-template-columns: 1fr !important;
- gap: 16px !important;
- }
- .pagination {
- padding: 16px;
- }
- .pagination-btn {
- width: 32px !important;
- height: 32px !important;
- font-size: 13px !important;
- }
- }
- // 动画效果
- @keyframes fadeIn {
- from {
- opacity: 0;
- transform: translateY(10px);
- }
- to {
- opacity: 1;
- transform: translateY(0);
- }
- }
- .project-card {
- animation: fadeIn 0.4s ease-out;
- }
- .project-card:nth-child(2n) {
- animation-delay: 0.1s;
- }
- .project-card:nth-child(3n) {
- animation-delay: 0.2s;
- }
- .project-card:nth-child(4n) {
- animation-delay: 0.3s;
- }
|