123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734 |
- @use 'sass:color';
- // iOS风格变量定义
- $ios-primary: #007AFF;
- $ios-primary-dark: #0062CC;
- $ios-secondary: #34C759;
- $ios-success: #34C759;
- $ios-warning: #FF9500;
- $ios-danger: #FF3B30;
- $ios-text-primary: #000000;
- $ios-text-secondary: #3C3C43;
- $ios-text-tertiary: #8E8E93;
- $ios-border: #D1D1D6;
- $ios-background: #FFFFFF;
- $ios-background-secondary: #F2F2F7;
- $ios-background-tertiary: #E5E5EA;
- $ios-shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
- $ios-shadow-md: 0 4px 10px rgba(0,0,0,0.1);
- $ios-shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
- $ios-radius: 10px;
- $ios-radius-lg: 16px;
- $ios-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
- $ios-font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
- $ios-spacing-xs: 4px;
- $ios-spacing-sm: 8px;
- $ios-spacing-md: 16px;
- $ios-spacing-lg: 24px;
- $ios-spacing-xl: 32px;
- // 咨询订单面板样式 - 适配固定区域
- .consultation-order-panel {
- background: $ios-background;
- border-radius: $ios-radius-lg;
- box-shadow: $ios-shadow-md;
- height: 100%;
- max-height: 600px;
- display: flex;
- flex-direction: column;
- font-family: $ios-font-family;
- border: 1px solid $ios-border;
- overflow: hidden;
- // 面板头部
- .panel-header {
- padding: $ios-spacing-md $ios-spacing-lg;
- background: linear-gradient(135deg, $ios-background 0%, $ios-background-secondary 100%);
- border-bottom: 1px solid $ios-border;
- flex-shrink: 0;
- .panel-title {
- font-size: 18px;
- font-weight: 600;
- color: $ios-text-primary;
- margin: 0;
- }
- .panel-subtitle {
- font-size: 14px;
- color: $ios-text-secondary;
- margin: 4px 0 0 0;
- }
- }
- // 可滚动内容区域
- .panel-content {
- flex: 1;
- overflow-y: auto;
- padding: $ios-spacing-md $ios-spacing-lg;
-
- // iOS风格滚动条
- &::-webkit-scrollbar {
- width: 6px;
- }
-
- &::-webkit-scrollbar-track {
- background: $ios-background-secondary;
- border-radius: 3px;
- }
-
- &::-webkit-scrollbar-thumb {
- background: $ios-text-tertiary;
- border-radius: 3px;
-
- &:hover {
- background: $ios-text-secondary;
- }
- }
- }
- // 客户信息栏
- .customer-info-section {
- margin-bottom: $ios-spacing-lg;
- padding: $ios-spacing-md;
- background: $ios-background-secondary;
- border-radius: $ios-radius;
- border: 1px solid $ios-border;
- .section-title {
- font-size: 16px;
- font-weight: 600;
- color: $ios-text-primary;
- margin-bottom: $ios-spacing-md;
- }
- .search-container {
- display: flex;
- align-items: center;
- gap: $ios-spacing-sm;
- margin-bottom: $ios-spacing-sm;
- .search-input {
- flex: 1;
- padding: 12px $ios-spacing-md;
- border: 2px solid $ios-border;
- border-radius: $ios-radius;
- font-size: 16px;
- background: $ios-background;
- transition: $ios-transition;
- &:focus {
- outline: none;
- border-color: $ios-primary;
- box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
- }
- &::placeholder {
- color: $ios-text-tertiary;
- }
- }
- .search-btn {
- padding: 12px $ios-spacing-md;
- background: $ios-primary;
- color: $ios-background;
- border: none;
- border-radius: $ios-radius;
- cursor: pointer;
- font-size: 16px;
- font-weight: 500;
- transition: $ios-transition;
- &:hover {
- background: $ios-primary-dark;
- transform: translateY(-1px);
- }
- &:active {
- transform: translateY(0);
- }
- }
- }
- .search-results {
- max-height: 200px;
- overflow-y: auto;
- border: 1px solid $ios-border;
- border-radius: $ios-radius;
- background: $ios-background;
- margin-top: $ios-spacing-sm;
- .result-item {
- padding: $ios-spacing-md;
- cursor: pointer;
- border-bottom: 1px solid $ios-border;
- transition: $ios-transition;
- &:hover {
- background: $ios-background-secondary;
- }
- &:last-child {
- border-bottom: none;
- }
- .customer-name {
- font-weight: 500;
- color: $ios-text-primary;
- }
- .customer-info {
- font-size: 14px;
- color: $ios-text-secondary;
- margin-top: 2px;
- }
- }
- }
- .selected-customer {
- padding: $ios-spacing-md;
- background: rgba($ios-primary, 0.1);
- border-radius: $ios-radius;
- border: 1px solid rgba($ios-primary, 0.2);
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-top: $ios-spacing-sm;
- .customer-details {
- .customer-name {
- font-weight: 600;
- color: $ios-text-primary;
- }
- .customer-phone {
- font-size: 14px;
- color: $ios-text-secondary;
- margin-top: 2px;
- }
- }
- .clear-btn {
- background: $ios-danger;
- color: $ios-background;
- border: none;
- border-radius: 6px;
- padding: 6px 12px;
- cursor: pointer;
- font-size: 14px;
- font-weight: 500;
- transition: $ios-transition;
- &:hover {
- background: color.adjust($ios-danger, $lightness: -10%);
- transform: translateY(-1px);
- }
- }
- }
- }
- // 新客户表单
- .new-customer-form {
- margin-bottom: $ios-spacing-lg;
- padding: $ios-spacing-md;
- background: $ios-background-secondary;
- border-radius: $ios-radius;
- border: 1px solid $ios-border;
- .form-title {
- font-size: 16px;
- font-weight: 600;
- margin-bottom: $ios-spacing-md;
- color: $ios-text-primary;
- }
- .form-row {
- display: flex;
- gap: $ios-spacing-md;
- margin-bottom: $ios-spacing-md;
- @media (max-width: 768px) {
- flex-direction: column;
- gap: $ios-spacing-sm;
- }
- .form-group {
- flex: 1;
- label {
- display: block;
- margin-bottom: $ios-spacing-xs;
- font-size: 14px;
- font-weight: 500;
- color: $ios-text-primary;
- }
- input, select, textarea {
- width: 100%;
- padding: 12px $ios-spacing-md;
- border: 2px solid $ios-border;
- border-radius: $ios-radius;
- font-size: 16px;
- background: $ios-background;
- transition: $ios-transition;
- box-sizing: border-box;
- &:focus {
- outline: none;
- border-color: $ios-primary;
- box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
- }
- &::placeholder {
- color: $ios-text-tertiary;
- }
- }
- textarea {
- resize: vertical;
- min-height: 80px;
- font-family: $ios-font-family;
- }
- select {
- cursor: pointer;
- }
- }
- }
- }
- // 项目需求卡片
- .requirements-card {
- background: $ios-background;
- border: 1px solid $ios-border;
- border-radius: $ios-radius;
- margin-bottom: $ios-spacing-md;
- overflow: hidden;
- .card-header {
- padding: $ios-spacing-md;
- background: linear-gradient(135deg, $ios-background-secondary 0%, $ios-background-tertiary 100%);
- border-bottom: 1px solid $ios-border;
- display: flex;
- justify-content: space-between;
- align-items: center;
- cursor: pointer;
- transition: $ios-transition;
- &:hover {
- background: linear-gradient(135deg, $ios-background-tertiary 0%, $ios-border 100%);
- }
- .card-title {
- font-size: 16px;
- font-weight: 600;
- color: $ios-text-primary;
- }
- .toggle-icon {
- color: $ios-text-secondary;
- transition: transform 0.3s ease;
- font-size: 18px;
- &.expanded {
- transform: rotate(180deg);
- }
- }
- }
- .card-content {
- padding: $ios-spacing-md;
- max-height: 500px;
- overflow-y: auto;
- // iOS风格滚动条
- &::-webkit-scrollbar {
- width: 6px;
- }
-
- &::-webkit-scrollbar-track {
- background: $ios-background-secondary;
- border-radius: 3px;
- }
-
- &::-webkit-scrollbar-thumb {
- background: $ios-text-tertiary;
- border-radius: 3px;
-
- &:hover {
- background: $ios-text-secondary;
- }
- }
- .form-row {
- display: flex;
- gap: $ios-spacing-md;
- margin-bottom: $ios-spacing-md;
- // 优化布局:移除字段后调整间距和对齐
- &:last-child {
- margin-bottom: 0;
- }
- @media (max-width: 768px) {
- flex-direction: column;
- gap: $ios-spacing-sm;
- }
- // 针对不同行数的表单组进行优化
- &.two-columns {
- .form-group {
- flex: 1;
- min-width: calc(50% - #{$ios-spacing-md / 2});
- }
- }
- &.three-columns {
- .form-group {
- flex: 1;
- min-width: calc(33.333% - #{$ios-spacing-md * 2 / 3});
- }
- }
- &.single-column {
- .form-group {
- flex: 1;
- width: 100%;
- }
- }
- .form-group {
- flex: 1;
- label {
- display: block;
- margin-bottom: $ios-spacing-xs;
- font-size: 14px;
- font-weight: 500;
- color: $ios-text-primary;
- }
- .required {
- color: #ff4444;
- font-weight: bold;
- }
- input, select, textarea {
- width: 100%;
- padding: 12px $ios-spacing-md;
- border: 2px solid $ios-border;
- border-radius: $ios-radius;
- font-size: 16px;
- background: $ios-background;
- transition: $ios-transition;
- box-sizing: border-box;
- &:focus {
- outline: none;
- border-color: $ios-primary;
- box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
- }
- &::placeholder {
- color: $ios-text-tertiary;
- }
- }
- select {
- cursor: pointer;
- }
- }
- }
- .tags-section {
- margin-top: $ios-spacing-md;
- .tags-title {
- font-size: 14px;
- font-weight: 600;
- margin-bottom: $ios-spacing-sm;
- color: $ios-text-primary;
- }
- .tags-container {
- display: flex;
- flex-wrap: wrap;
- gap: $ios-spacing-sm;
- margin-bottom: $ios-spacing-md;
- .tag {
- padding: 6px 12px;
- background: rgba($ios-primary, 0.1);
- border: 1px solid rgba($ios-primary, 0.2);
- border-radius: 20px;
- font-size: 14px;
- color: $ios-primary;
- display: flex;
- align-items: center;
- gap: $ios-spacing-xs;
- transition: $ios-transition;
- &:hover {
- background: rgba($ios-primary, 0.15);
- }
- .remove-tag {
- background: none;
- border: none;
- color: $ios-primary;
- cursor: pointer;
- font-size: 16px;
- padding: 0;
- width: 18px;
- height: 18px;
- display: flex;
- align-items: center;
- justify-content: center;
- border-radius: 50%;
- transition: $ios-transition;
- &:hover {
- background: rgba($ios-danger, 0.1);
- color: $ios-danger;
- }
- }
- }
- }
- .tag-input-container {
- display: flex;
- gap: $ios-spacing-sm;
- .tag-input {
- flex: 1;
- padding: 10px $ios-spacing-md;
- border: 2px solid $ios-border;
- border-radius: $ios-radius;
- font-size: 14px;
- background: $ios-background;
- transition: $ios-transition;
- &:focus {
- outline: none;
- border-color: $ios-primary;
- box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
- }
- &::placeholder {
- color: $ios-text-tertiary;
- }
- }
- .add-tag-btn {
- padding: 10px $ios-spacing-md;
- background: $ios-secondary;
- color: $ios-background;
- border: none;
- border-radius: $ios-radius;
- cursor: pointer;
- font-size: 14px;
- font-weight: 500;
- transition: $ios-transition;
- &:hover {
- background: color.adjust($ios-secondary, $lightness: -10%);
- transform: translateY(-1px);
- }
- &:active {
- transform: translateY(0);
- }
- }
- }
- }
- }
- }
- // 紧凑型流程进度指示器
- .compact-stage-indicators {
- margin: $ios-spacing-md 0;
-
- .stage-chain {
- display: flex;
- align-items: center;
- justify-content: center;
- gap: $ios-spacing-xs;
- }
-
- .stage-dot {
- width: 32px;
- height: 32px;
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 14px;
- font-weight: 600;
- transition: all 0.3s ease;
- position: relative;
-
- .stage-number {
- color: white;
- font-size: 12px;
- }
-
- &.stage-pending {
- background: #D1D1D6;
- border: 2px solid #8E8E93;
-
- .stage-number {
- color: $ios-text-secondary;
- }
- }
-
- &.stage-in-progress {
- background: $ios-primary;
- border: 2px solid $ios-primary-dark;
- box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.2);
-
- .stage-number {
- color: white;
- }
- }
-
- &.stage-completed {
- background: $ios-success;
- border: 2px solid color.adjust($ios-success, $lightness: -10%);
-
- .stage-number {
- color: white;
- }
- }
- }
-
- .stage-connector {
- width: 24px;
- height: 2px;
- transition: all 0.3s ease;
-
- &.pending {
- background: #D1D1D6;
- }
-
- &.completed {
- background: $ios-success;
- }
- }
- }
-
- // 进度指示器
- .progress-indicator {
- display: flex;
- align-items: center;
- gap: $ios-spacing-sm;
- margin-top: $ios-spacing-sm;
-
- .progress-bar {
- flex: 1;
- height: 6px;
- background: $ios-background-secondary;
- border-radius: 3px;
- overflow: hidden;
-
- .progress-fill {
- height: 100%;
- background: linear-gradient(90deg, $ios-primary, color.adjust($ios-primary, $lightness: 10%));
- border-radius: 3px;
- transition: width 0.3s ease;
- }
- }
-
- .progress-text {
- font-size: 14px;
- color: $ios-text-secondary;
- font-weight: 500;
- min-width: 60px;
- text-align: right;
- }
- }
- // 底部提交区域
- .panel-footer {
- padding: $ios-spacing-md $ios-spacing-lg;
- background: $ios-background-secondary;
- border-top: 1px solid $ios-border;
- flex-shrink: 0;
- .submit-btn {
- width: 100%;
- padding: 12px 24px;
- background: #007bff;
- color: white;
- border: none;
- border-radius: 6px;
- font-size: 16px;
- font-weight: 500;
- cursor: pointer;
- transition: all 0.3s ease;
- &:hover:not(:disabled) {
- transform: translateY(-2px);
- box-shadow: $ios-shadow-md;
- background: linear-gradient(135deg, #0056CC 0%, #004499 100%);
- }
- &:active:not(:disabled) {
- transform: translateY(0);
- }
- &:disabled {
- background: linear-gradient(135deg, $ios-text-tertiary 0%, #B0B0B0 100%);
- color: #FFFFFF;
- cursor: not-allowed;
- transform: none;
- box-shadow: none;
- opacity: 0.6;
- }
-
- // 表单有效时的强调样式
- &:not(:disabled) {
- background: linear-gradient(135deg, $ios-success 0%, #28A745 100%);
- box-shadow: 0 4px 15px rgba(52, 199, 89, 0.3);
-
- &:hover {
- background: linear-gradient(135deg, #28A745 0%, #1E7E34 100%);
- box-shadow: 0 6px 20px rgba(52, 199, 89, 0.4);
- }
- }
- }
- }
- // 表单验证提示
- .validation-hint {
- display: flex;
- align-items: center;
- gap: $ios-spacing-sm;
- margin-top: $ios-spacing-sm;
- padding: $ios-spacing-sm $ios-spacing-md;
- background: rgba($ios-warning, 0.1);
- border: 1px solid rgba($ios-warning, 0.3);
- border-radius: $ios-radius;
- color: $ios-warning;
- font-size: 14px;
- font-weight: 500;
-
- svg {
- flex-shrink: 0;
- }
- }
- // 响应式设计
- @media (max-width: 768px) {
- .panel-header {
- padding: $ios-spacing-md;
- }
- .panel-content {
- padding: $ios-spacing-md;
- }
- .panel-footer {
- padding: $ios-spacing-md;
- }
- }
- }
|