| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306 |
- // 项目详情核心组件样式
- // 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;
- flex-shrink: 0;
- min-width: 60px;
- .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;
- border: 2px solid var(--light-shade);
- background-color: var(--white);
- color: var(--medium-color);
- .icon {
- width: 20px;
- height: 20px;
- }
- }
- .stage-label {
- font-size: 11px;
- color: var(--medium-color);
- text-align: center;
- white-space: nowrap;
- }
- // 已完成状态
- &.completed {
- .stage-circle {
- background-color: var(--success-color);
- border-color: var(--success-color);
- color: var(--white);
- }
- .stage-label {
- color: var(--success-color);
- }
- }
- // 进行中状态
- &.active {
- .stage-circle {
- background-color: var(--primary-color);
- border-color: var(--primary-color);
- color: var(--white);
- box-shadow: 0 0 0 4px rgba(56, 128, 255, 0.2);
- transform: scale(1.1);
- }
- .stage-label {
- color: var(--primary-color);
- font-weight: 600;
- }
- }
- // 待开始状态
- &.pending {
- .stage-circle {
- background-color: var(--white);
- border-color: var(--light-shade);
- color: var(--medium-color);
- }
- }
- }
- .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);
- }
- // 加载和错误容器
- .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;
- }
- }
- }
- }
- }
- }
|