| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421 |
- // 项目详情核心组件样式
- // CSS Variables
- :host {
- --primary-color: #3880ff;
- --primary-rgb: 56, 128, 255;
- --secondary-color: #0cd1e8;
- --tertiary-color: #7044ff;
- --success-color: #2dd36f;
- --warning-color: #ffc409;
- --danger-color: #eb445a;
- --dark-color: #222428;
- --medium-color: #92949c;
- --light-color: #f4f5f8;
- --light-shade: #d7d8da;
- --white: #ffffff;
- }
- // Header Container
- .header {
- position: sticky;
- top: 0;
- z-index: 10;
- background: var(--white);
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
- }
- // Toolbar
- .toolbar {
- display: flex;
- align-items: center;
- justify-content: space-between;
- min-height: 56px;
- padding: 0 16px;
- background: var(--white);
- border-bottom: 1px solid var(--light-shade);
- .buttons-start,
- .buttons-end {
- display: flex;
- align-items: center;
- gap: 8px;
- flex-shrink: 0;
- }
- .title {
- flex: 1;
- font-size: 20px;
- font-weight: 600;
- color: var(--dark-color);
- text-align: center;
- padding: 0 16px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .back-button,
- .icon-button {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 40px;
- height: 40px;
- border: none;
- background: transparent;
- border-radius: 50%;
- cursor: pointer;
- transition: background-color 0.2s;
- padding: 0;
- &:hover {
- background-color: rgba(var(--primary-color), 0.1);
- }
- &:active {
- background-color: rgba(var(--primary-color), 0.2);
- }
- .icon {
- width: 24px;
- height: 24px;
- color: var(--primary-color);
- }
- }
- }
- // 阶段导航工具栏
- .stage-toolbar {
- background: var(--white);
- border-bottom: 1px solid var(--light-shade);
- padding: 12px 0;
- .stage-navigation {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 0 16px;
- max-width: 100%;
- overflow-x: auto;
- -webkit-overflow-scrolling: touch;
- &::-webkit-scrollbar {
- display: none;
- }
- .stage-item {
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 4px;
- cursor: pointer;
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
- flex-shrink: 0;
- min-width: 60px;
- position: relative;
- // 悬停效果
- &.clickable:hover {
- transform: translateY(-2px);
-
- .stage-circle {
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
- }
- }
- &.clickable:active {
- transform: translateY(0);
- }
- .stage-circle {
- width: 36px;
- height: 36px;
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- font-weight: 600;
- font-size: 14px;
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
- border: 2px solid var(--light-shade);
- background-color: var(--white);
- color: var(--medium-color);
- position: relative;
- z-index: 2;
- .stage-number {
- font-weight: 600;
- font-size: 14px;
- }
- .icon {
- width: 20px;
- height: 20px;
-
- &.checkmark {
- animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
- }
- }
- }
- .stage-label {
- font-size: 11px;
- color: var(--medium-color);
- text-align: center;
- white-space: nowrap;
- transition: all 0.3s;
- font-weight: 500;
- }
- // 已完成状态(绿色)- 参考设计师端
- &.completed {
- .stage-circle {
- background: linear-gradient(135deg, #2dd36f 0%, #28ba62 100%);
- border-color: var(--success-color);
- color: var(--white);
- box-shadow: 0 2px 8px rgba(45, 211, 111, 0.3);
- }
- .stage-label {
- color: var(--success-color);
- font-weight: 600;
- }
- }
- // 当前阶段(红色)- 参考设计师端
- &.active {
- .stage-circle {
- background: linear-gradient(135deg, #eb445a 0%, #d33850 100%);
- border-color: var(--danger-color);
- color: var(--white);
- box-shadow: 0 0 0 4px rgba(235, 68, 90, 0.2),
- 0 4px 12px rgba(235, 68, 90, 0.4);
- transform: scale(1.15);
- animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
- }
- .stage-label {
- color: var(--danger-color);
- font-weight: 700;
- }
- }
- // 待开始状态(灰色,可点击查看)
- &.pending {
- opacity: 0.7; // 半透明提示这是预览模式
-
- .stage-circle {
- background-color: var(--white);
- border-color: var(--light-shade);
- color: var(--medium-color);
- }
-
- .stage-label {
- color: var(--medium-color);
- }
-
- // 悬停效果稍弱,提示可以查看但未开始
- &.clickable:hover {
- opacity: 1;
- transform: translateY(-1px); // 比已完成的悬停效果弱一些
-
- .stage-circle {
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); // 比已完成的阴影弱
- }
- }
- }
- }
- // 脉冲动画(当前阶段)
- @keyframes pulse {
- 0%, 100% {
- box-shadow: 0 0 0 4px rgba(235, 68, 90, 0.2),
- 0 4px 12px rgba(235, 68, 90, 0.4);
- }
- 50% {
- box-shadow: 0 0 0 8px rgba(235, 68, 90, 0.1),
- 0 4px 16px rgba(235, 68, 90, 0.5);
- }
- }
- // 完成图标缩放动画
- @keyframes scaleIn {
- 0% {
- transform: scale(0);
- opacity: 0;
- }
- 50% {
- transform: scale(1.2);
- }
- 100% {
- transform: scale(1);
- opacity: 1;
- }
- }
- .stage-connector {
- flex: 1;
- height: 2px;
- background-color: var(--light-shade);
- margin: 0 8px;
- margin-bottom: 20px;
- transition: background-color 0.3s;
- min-width: 20px;
- &.completed {
- background-color: var(--success-color);
- }
- }
- }
- }
- // Content Container
- .content {
- position: relative;
- width: 100%;
- height: calc(100vh - 80px); // 减去阶段导航工具栏的高度,为底部卡片留空间
- overflow-y: auto;
- overflow-x: hidden;
- -webkit-overflow-scrolling: touch;
- background-color: var(--light-color);
- }
- /* 可折叠的项目基本信息卡片 */
- .project-info-card {
- background: #fff;
- border-radius: 12px;
- box-shadow: 0 2px 8px rgba(0,0,0,0.06);
- margin-bottom: 12px;
- .project-info-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 12px 16px;
- cursor: pointer;
- .title {
- display: flex;
- align-items: center;
- gap: 8px;
- font-weight: 600;
- color: #222;
- }
- .actions {
- display: flex;
- align-items: center;
- gap: 6px;
- color: #666;
- .arrow { transition: transform .2s ease; }
- .arrow.up { transform: rotate(180deg); }
- }
- .icon { width: 18px; height: 18px; }
- }
- .project-info-content {
- padding: 12px 16px 16px;
- .info-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
- .info-item { background:#f7f7f8; border-radius:8px; padding:10px 12px; display:flex; flex-direction:column; gap:4px; }
- .label { font-size:12px; color:#888; }
- .value { font-size:14px; color:#222; font-weight:600; }
- }
- }
- // 加载和错误容器
- .loading-container,
- .error-container {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- min-height: 60vh;
- padding: 20px;
- text-align: center;
- p {
- color: var(--medium-color);
- margin: 0;
- font-size: 14px;
- }
- }
- // Spinner
- .spinner {
- width: 48px;
- height: 48px;
- margin-bottom: 16px;
- position: relative;
- .spinner-circle {
- width: 100%;
- height: 100%;
- border: 4px solid var(--light-shade);
- border-top-color: var(--primary-color);
- border-radius: 50%;
- animation: spin 0.8s linear infinite;
- }
- }
- @keyframes spin {
- 0% {
- transform: rotate(0deg);
- }
- 100% {
- transform: rotate(360deg);
- }
- }
- // Error Container
- .error-container {
- .error-icon {
- width: 64px;
- height: 64px;
- color: var(--danger-color);
- margin-bottom: 16px;
- }
- .button {
- margin-top: 16px;
- padding: 10px 24px;
- border: none;
- border-radius: 8px;
- font-size: 14px;
- font-weight: 600;
- cursor: pointer;
- transition: all 0.2s;
- background-color: var(--primary-color);
- color: var(--white);
- &.outline {
- background-color: transparent;
- border: 2px solid var(--primary-color);
- color: var(--primary-color);
- &:hover {
- background-color: var(--primary-color);
- color: var(--white);
- }
- }
- &:active {
- transform: scale(0.95);
- }
- }
- }
- // 客户快速查看
- .contact-quick-view {
- padding: 12px 12px 0;
- .card {
- margin: 0;
- background: var(--white);
- border-radius: 12px;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
- overflow: hidden;
- .card-content {
- padding: 12px;
- .contact-info {
- display: flex;
- align-items: center;
- gap: 12px;
- .avatar {
- width: 48px;
- height: 48px;
- flex-shrink: 0;
- border-radius: 50%;
- overflow: hidden;
- background-color: var(--light-color);
- display: flex;
- align-items: center;
- justify-content: center;
- img {
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
- .avatar-icon {
- width: 48px;
- height: 48px;
- color: var(--medium-color);
- }
- }
- .info-text {
- flex: 1;
- min-width: 0;
- h3 {
- margin: 0 0 4px;
- font-size: 16px;
- font-weight: 600;
- color: var(--dark-color);
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- p {
- margin: 0 0 6px;
- font-size: 13px;
- color: var(--medium-color);
- }
- .tags {
- display: flex;
- flex-wrap: wrap;
- gap: 6px;
- .badge {
- display: inline-block;
- font-size: 11px;
- padding: 4px 8px;
- border-radius: 6px;
- font-weight: 600;
- white-space: nowrap;
- &.badge-primary {
- background-color: rgba(56, 128, 255, 0.15);
- color: var(--primary-color);
- }
- &.badge-success {
- background-color: rgba(45, 211, 111, 0.15);
- color: var(--success-color);
- }
- &.badge-warning {
- background-color: rgba(255, 196, 9, 0.15);
- color: var(--warning-color);
- }
- }
- }
- }
- }
- }
- }
- }
- // 阶段内容区域
- .stage-content {
- padding: 12px;
- padding-bottom: 120px; // 为新的固定底部卡片留空间
- }
- // 通用卡片样式
- .card {
- background: white;
- border-radius: 12px;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
- margin-bottom: 16px;
- overflow: hidden;
- .card-header {
- padding: 16px;
- border-bottom: 1px solid var(--light-shade);
- .card-title {
- display: flex;
- align-items: center;
- gap: 8px;
- margin: 0;
- font-size: 16px;
- font-weight: 600;
- color: var(--dark-color);
- .icon {
- width: 20px;
- height: 20px;
- color: var(--primary-color);
- }
- }
- .card-subtitle {
- margin: 4px 0 0;
- font-size: 12px;
- color: var(--medium-color);
- }
- }
- .card-content {
- padding: 16px;
- }
- }
- // Badge 组件增强
- .badge {
- display: inline-block;
- padding: 4px 10px;
- border-radius: 12px;
- font-size: 11px;
- font-weight: 600;
- &.badge-secondary {
- background: var(--secondary-color);
- color: white;
- }
- &.badge-tertiary {
- background: var(--tertiary-color);
- color: white;
- }
- &.badge-danger {
- background: var(--danger-color);
- color: white;
- }
- &.badge-medium {
- background: var(--medium-color);
- color: white;
- }
- &.badge-light {
- background: var(--light-color);
- color: var(--dark-color);
- }
- }
- // 图标样式
- .icon {
- width: 20px;
- height: 20px;
- flex-shrink: 0;
- &.icon-sm {
- width: 14px;
- height: 14px;
- }
- &.icon-md {
- width: 24px;
- height: 24px;
- }
- &.icon-lg {
- width: 32px;
- height: 32px;
- }
- }
- // 按钮样式
- .btn {
- padding: 12px 24px;
- border-radius: 8px;
- font-size: 14px;
- font-weight: 600;
- cursor: pointer;
- transition: all 0.3s;
- border: none;
- outline: none;
- display: inline-flex;
- align-items: center;
- gap: 8px;
- &.btn-primary {
- background: var(--primary-color);
- color: white;
- &:hover {
- background: #2f6ce5;
- transform: translateY(-2px);
- box-shadow: 0 4px 12px rgba(56, 128, 255, 0.3);
- }
- &:active {
- transform: translateY(0);
- }
- }
- &.btn-secondary {
- background: var(--secondary-color);
- color: white;
- &:hover {
- background: #0bb8d4;
- transform: translateY(-2px);
- box-shadow: 0 4px 12px rgba(12, 209, 232, 0.3);
- }
- &:active {
- transform: translateY(0);
- }
- }
- &.btn-success {
- background: var(--success-color);
- color: white;
- &:hover {
- background: #28ba62;
- transform: translateY(-2px);
- box-shadow: 0 4px 12px rgba(45, 211, 111, 0.3);
- }
- &:active {
- transform: translateY(0);
- }
- }
- &.btn-outline {
- background: white;
- color: var(--primary-color);
- border: 2px solid var(--primary-color);
- &:hover {
- background: var(--primary-color);
- color: white;
- }
- &:active {
- transform: scale(0.98);
- }
- }
- &.btn-light {
- background: var(--light-color);
- color: var(--dark-color);
- &:hover {
- background: var(--light-shade);
- }
- &:active {
- transform: scale(0.98);
- }
- }
- &:disabled {
- opacity: 0.5;
- cursor: not-allowed;
- pointer-events: none;
- }
- .icon {
- width: 20px;
- height: 20px;
- }
- }
- // 底部操作栏
- .footer-toolbar {
- background: white;
- border-top: 1px solid var(--light-shade);
- padding: 12px 16px;
- position: fixed;
- bottom: 0;
- left: 0;
- right: 0;
- z-index: 90;
- box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
- .action-buttons {
- display: flex;
- gap: 12px;
- max-width: 800px;
- margin: 0 auto;
- .btn {
- flex: 1;
- }
- }
- }
- // 表单样式
- .form-group {
- margin-bottom: 20px;
- .form-label {
- display: block;
- margin-bottom: 8px;
- font-size: 14px;
- font-weight: 600;
- color: var(--dark-color);
- .required {
- color: var(--danger-color);
- margin-left: 4px;
- }
- }
- .form-input,
- .form-textarea,
- .form-select {
- width: 100%;
- padding: 12px 16px;
- border: 1px solid var(--light-shade);
- border-radius: 8px;
- font-size: 14px;
- color: var(--dark-color);
- background: white;
- transition: all 0.3s;
- &:focus {
- outline: none;
- border-color: var(--primary-color);
- box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
- }
- &::placeholder {
- color: var(--medium-color);
- }
- &:disabled {
- background: var(--light-color);
- cursor: not-allowed;
- }
- }
- .form-textarea {
- min-height: 100px;
- resize: vertical;
- font-family: inherit;
- }
- .form-help {
- margin-top: 6px;
- font-size: 12px;
- color: var(--medium-color);
- }
- .form-error {
- margin-top: 6px;
- font-size: 12px;
- color: var(--danger-color);
- }
- }
- // 列表样式
- .list {
- background: white;
- border-radius: 12px;
- overflow: hidden;
- .list-item {
- display: flex;
- align-items: center;
- gap: 12px;
- padding: 16px;
- border-bottom: 1px solid var(--light-shade);
- cursor: pointer;
- transition: background-color 0.3s;
- &:last-child {
- border-bottom: none;
- }
- &:hover {
- background-color: var(--light-color);
- }
- &:active {
- background-color: var(--light-shade);
- }
- .item-icon {
- width: 40px;
- height: 40px;
- display: flex;
- align-items: center;
- justify-content: center;
- border-radius: 50%;
- background-color: var(--light-color);
- flex-shrink: 0;
- .icon {
- width: 24px;
- height: 24px;
- color: var(--primary-color);
- }
- }
- .item-content {
- flex: 1;
- min-width: 0;
- .item-title {
- margin: 0 0 4px;
- font-size: 15px;
- font-weight: 600;
- color: var(--dark-color);
- }
- .item-subtitle {
- margin: 0;
- font-size: 13px;
- color: var(--medium-color);
- }
- }
- .item-arrow {
- width: 20px;
- height: 20px;
- color: var(--medium-color);
- flex-shrink: 0;
- }
- }
- }
- // 空状态
- .empty-state {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- padding: 40px 20px;
- text-align: center;
- .icon-large {
- width: 80px;
- height: 80px;
- color: var(--medium-color);
- margin-bottom: 16px;
- opacity: 0.5;
- }
- .empty-title {
- margin: 0 0 8px;
- font-size: 16px;
- font-weight: 600;
- color: var(--dark-color);
- }
- .empty-message {
- margin: 0 0 20px;
- font-size: 14px;
- color: var(--medium-color);
- }
- }
- // Chip 组件
- .chip {
- display: inline-flex;
- align-items: center;
- padding: 6px 12px;
- border-radius: 16px;
- font-size: 12px;
- font-weight: 500;
- background: rgba(255, 255, 255, 0.2);
- color: white;
- &.chip-primary {
- background: rgba(56, 128, 255, 0.15);
- color: var(--primary-color);
- }
- &.chip-success {
- background: rgba(45, 211, 111, 0.15);
- color: var(--success-color);
- }
- &.chip-warning {
- background: rgba(255, 196, 9, 0.15);
- color: var(--warning-color);
- }
- }
- // 项目状态样式
- .status-pending {
- background: var(--warning-color) !important;
- color: var(--dark-color) !important;
- }
- .status-active {
- background: var(--primary-color) !important;
- color: white !important;
- }
- .status-completed {
- background: var(--success-color) !important;
- color: white !important;
- }
- .status-paused {
- background: var(--medium-color) !important;
- color: white !important;
- }
- .status-cancelled {
- background: var(--danger-color) !important;
- color: white !important;
- }
- .status-default {
- background: var(--light-color) !important;
- color: var(--dark-color) !important;
- }
- // 响应式适配
- @media (min-width: 768px) {
- .stage-navigation {
- max-width: 600px;
- margin: 0 auto;
- }
- .contact-quick-view,
- .stage-content {
- max-width: 800px;
- margin: 0 auto;
- }
- .footer-toolbar {
- .action-buttons {
- max-width: 800px;
- }
- }
- }
- // 平板和桌面端
- @media (min-width: 1024px) {
- .stage-navigation {
- max-width: 800px;
- }
- .contact-quick-view,
- .stage-content {
- max-width: 1000px;
- }
- .footer-toolbar {
- .action-buttons {
- max-width: 1000px;
- }
- }
- }
- // 移动端优化
- @media (max-width: 480px) {
- // 移动端内容高度调整
- .content {
- height: calc(100vh - 60px); // 移动端调整高度
- }
- .stage-toolbar {
- padding: 8px 0;
- .stage-navigation {
- .stage-item {
- min-width: 50px;
- .stage-circle {
- width: 32px;
- height: 32px;
- font-size: 12px;
- .icon {
- width: 16px;
- height: 16px;
- }
- }
- .stage-label {
- font-size: 10px;
- }
- }
- .stage-connector {
- min-width: 15px;
- margin: 0 4px;
- margin-bottom: 16px;
- }
- }
- }
- .contact-quick-view {
- padding: 8px 8px 0;
- .card {
- .card-content {
- padding: 10px;
- .contact-info {
- gap: 10px;
- .avatar {
- width: 40px;
- height: 40px;
- .avatar-icon {
- width: 40px;
- height: 40px;
- }
- }
- .info-text {
- h3 {
- font-size: 14px;
- }
- p {
- font-size: 12px;
- }
- .tags {
- gap: 4px;
- .badge {
- font-size: 10px;
- padding: 3px 6px;
- }
- }
- }
- }
- }
- }
- }
- .stage-content {
- padding: 8px;
- padding-bottom: 100px; // 移动端为底部卡片留空间
- }
- .footer-toolbar {
- padding: 8px 12px;
- .action-buttons {
- gap: 8px;
- .btn {
- padding: 10px 16px;
- font-size: 13px;
- }
- }
- }
- .card {
- .card-header {
- padding: 12px;
- .card-title {
- font-size: 15px;
- }
- }
- .card-content {
- padding: 12px;
- }
- }
- .form-group {
- .form-input,
- .form-textarea,
- .form-select {
- padding: 10px 12px;
- font-size: 13px;
- }
- }
- .btn {
- padding: 10px 20px;
- font-size: 13px;
- }
- }
- // 问卷卡片样式
- .survey-card {
- background: white;
- border-radius: 12px;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
- margin: 16px;
- overflow: hidden;
- transition: all 0.3s ease;
- &:hover {
- box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
- }
- // 头部
- .survey-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 16px;
- border-bottom: 1px solid var(--light-shade);
- background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
- .survey-title {
- display: flex;
- align-items: center;
- gap: 10px;
- .icon {
- width: 24px;
- height: 24px;
- color: var(--primary-color);
- }
- span {
- font-size: 16px;
- font-weight: 600;
- color: var(--dark-color);
- }
- }
- .survey-badge {
- padding: 4px 12px;
- border-radius: 12px;
- font-size: 12px;
- font-weight: 600;
- background: rgba(255, 196, 9, 0.15);
- color: var(--warning-color);
- transition: all 0.3s ease;
- &.filled {
- background: rgba(45, 211, 111, 0.15);
- color: var(--success-color);
- }
- }
- }
- // 内容区
- .survey-content {
- padding: 20px 16px;
- .survey-info {
- display: flex;
- align-items: flex-start;
- gap: 12px;
- margin-bottom: 16px;
- .icon {
- width: 40px;
- height: 40px;
- flex-shrink: 0;
- margin-top: 2px;
- &.success-icon {
- color: var(--success-color);
- }
- &.pending-icon {
- color: var(--warning-color);
- }
- }
- .survey-text {
- flex: 1;
- .survey-desc {
- margin: 0 0 6px;
- font-size: 15px;
- font-weight: 500;
- color: var(--dark-color);
- line-height: 1.5;
- }
- .survey-meta {
- margin: 0;
- font-size: 13px;
- color: var(--medium-color);
- line-height: 1.4;
- }
- }
- }
- .button {
- width: 100%;
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 8px;
- padding: 12px 20px;
- border-radius: 8px;
- font-size: 14px;
- font-weight: 600;
- border: none;
- cursor: pointer;
- transition: all 0.3s ease;
- .icon {
- width: 18px;
- height: 18px;
- }
- &.primary {
- background: var(--primary-color);
- color: white;
- box-shadow: 0 2px 8px rgba(56, 128, 255, 0.2);
- &:hover {
- background: #2f6ce5;
- transform: translateY(-2px);
- box-shadow: 0 4px 12px rgba(56, 128, 255, 0.3);
- }
- &:active {
- transform: translateY(0);
- }
- }
- &.secondary {
- background: white;
- color: var(--primary-color);
- border: 2px solid var(--primary-color);
- &:hover {
- background: rgba(56, 128, 255, 0.05);
- }
- &:active {
- transform: scale(0.98);
- }
- }
- }
- .survey-tips {
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 8px;
- padding: 12px 16px;
- background: rgba(255, 196, 9, 0.1);
- border-radius: 8px;
- color: var(--warning-color);
- font-size: 13px;
- font-weight: 500;
- .icon {
- width: 20px;
- height: 20px;
- flex-shrink: 0;
- }
- }
- }
- // 底部说明
- .survey-footer {
- padding: 12px 16px;
- background: #f9fafb;
- border-top: 1px solid var(--light-shade);
- .survey-highlights {
- display: flex;
- justify-content: space-around;
- gap: 8px;
- .highlight-item {
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 6px;
- flex: 1;
- min-width: 0;
- .icon {
- width: 24px;
- height: 24px;
- color: var(--primary-color);
- opacity: 0.7;
- }
- span {
- font-size: 12px;
- font-weight: 500;
- color: var(--medium-color);
- text-align: center;
- white-space: nowrap;
- }
- }
- }
- }
- }
- // 移动端适配
- @media (max-width: 480px) {
- .survey-card {
- margin: 12px 8px;
- border-radius: 10px;
- .survey-header {
- padding: 12px;
- .survey-title {
- gap: 8px;
- .icon {
- width: 20px;
- height: 20px;
- }
- span {
- font-size: 15px;
- }
- }
- .survey-badge {
- font-size: 11px;
- padding: 3px 10px;
- }
- }
- .survey-content {
- padding: 16px 12px;
- .survey-info {
- gap: 10px;
- .icon {
- width: 36px;
- height: 36px;
- }
- .survey-text {
- .survey-desc {
- font-size: 14px;
- }
- .survey-meta {
- font-size: 12px;
- }
- }
- }
- .button {
- padding: 10px 16px;
- font-size: 13px;
- .icon {
- width: 16px;
- height: 16px;
- }
- }
- .survey-tips {
- padding: 10px 12px;
- font-size: 12px;
- .icon {
- width: 18px;
- height: 18px;
- }
- }
- }
- .survey-footer {
- padding: 10px 12px;
- .survey-highlights {
- gap: 6px;
- .highlight-item {
- gap: 4px;
- .icon {
- width: 20px;
- height: 20px;
- }
- span {
- font-size: 11px;
- }
- }
- }
- }
- }
- }
|