|
@@ -1,385 +1,539 @@
|
|
|
-/* 全局样式 */
|
|
|
-* {
|
|
|
- margin: 0;
|
|
|
- padding: 0;
|
|
|
- box-sizing: border-box;
|
|
|
-}
|
|
|
-
|
|
|
-body {
|
|
|
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
|
- background-color: #f5f5f5;
|
|
|
- color: #333;
|
|
|
- line-height: 1.6;
|
|
|
-}
|
|
|
+.home-page {
|
|
|
+ min-height: 100vh;
|
|
|
+ background: var(--bg-primary);
|
|
|
+ padding-bottom: 80px;
|
|
|
|
|
|
-/* 顶部导航 */
|
|
|
-.top-nav {
|
|
|
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
|
- color: white;
|
|
|
- padding: 15px 20px;
|
|
|
+ // ===== 顶部导航栏 =====
|
|
|
+ .top-header {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
|
+ padding: var(--spacing-lg);
|
|
|
+ background: var(--bg-secondary);
|
|
|
+ border-bottom: 1px solid var(--border-color);
|
|
|
position: sticky;
|
|
|
top: 0;
|
|
|
- z-index: 100;
|
|
|
- box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
|
|
-}
|
|
|
-
|
|
|
-.logo {
|
|
|
- font-size: 20px;
|
|
|
- font-weight: bold;
|
|
|
-}
|
|
|
-
|
|
|
-.nav-icons {
|
|
|
+ z-index: var(--z-sticky);
|
|
|
+
|
|
|
+ .header-left {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: var(--spacing-md);
|
|
|
+
|
|
|
+ .avatar {
|
|
|
+ width: 44px;
|
|
|
+ height: 44px;
|
|
|
+ border-radius: var(--radius-full);
|
|
|
+ object-fit: cover;
|
|
|
+ cursor: pointer;
|
|
|
+ border: 2px solid var(--primary-color);
|
|
|
+ }
|
|
|
+
|
|
|
+ .user-info {
|
|
|
display: flex;
|
|
|
- gap: 15px;
|
|
|
-}
|
|
|
-
|
|
|
-.nav-icon {
|
|
|
- position: relative;
|
|
|
- cursor: pointer;
|
|
|
- padding: 8px;
|
|
|
- border-radius: 50%;
|
|
|
- transition: background-color 0.3s;
|
|
|
-}
|
|
|
-
|
|
|
-.nav-icon:hover {
|
|
|
- background-color: rgba(255,255,255,0.2);
|
|
|
-}
|
|
|
-
|
|
|
-.nav-icon i {
|
|
|
- font-size: 18px;
|
|
|
-}
|
|
|
+ flex-direction: column;
|
|
|
+
|
|
|
+ .greeting {
|
|
|
+ font-size: var(--font-lg);
|
|
|
+ font-weight: var(--font-semibold);
|
|
|
+ color: var(--text-primary);
|
|
|
+ }
|
|
|
+
|
|
|
+ .date {
|
|
|
+ font-size: var(--font-sm);
|
|
|
+ color: var(--text-secondary);
|
|
|
+ margin-top: 2px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
-.notification-badge {
|
|
|
- position: absolute;
|
|
|
- top: 0;
|
|
|
- right: 0;
|
|
|
- background: #ff4757;
|
|
|
- color: white;
|
|
|
- border-radius: 50%;
|
|
|
- width: 18px;
|
|
|
- height: 18px;
|
|
|
- font-size: 10px;
|
|
|
+ .header-right {
|
|
|
+ .icon-btn {
|
|
|
+ position: relative;
|
|
|
+ width: 40px;
|
|
|
+ height: 40px;
|
|
|
+ border-radius: var(--radius-full);
|
|
|
+ background: var(--bg-tertiary);
|
|
|
+ border: none;
|
|
|
+ cursor: pointer;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
- font-weight: bold;
|
|
|
-}
|
|
|
-
|
|
|
-/* 搜索栏 */
|
|
|
-.search-bar {
|
|
|
- padding: 15px 20px;
|
|
|
- background: white;
|
|
|
-}
|
|
|
+ transition: all var(--transition-fast);
|
|
|
+
|
|
|
+ i {
|
|
|
+ font-size: 18px;
|
|
|
+ color: var(--text-primary);
|
|
|
+ }
|
|
|
+
|
|
|
+ &:active {
|
|
|
+ transform: scale(0.95);
|
|
|
+ }
|
|
|
+
|
|
|
+ .badge {
|
|
|
+ position: absolute;
|
|
|
+ top: -4px;
|
|
|
+ right: -4px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
-.search-container {
|
|
|
- position: relative;
|
|
|
-}
|
|
|
+ // ===== 搜索栏 =====
|
|
|
+ .search-section {
|
|
|
+ padding: var(--spacing-lg);
|
|
|
+ background: var(--bg-secondary);
|
|
|
|
|
|
-.search-input {
|
|
|
+ .search-bar {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- background: #f8f9fa;
|
|
|
- border-radius: 25px;
|
|
|
- padding: 12px 20px;
|
|
|
- border: 1px solid #e9ecef;
|
|
|
-}
|
|
|
+ background: var(--bg-tertiary);
|
|
|
+ border-radius: var(--radius-xl);
|
|
|
+ padding: var(--spacing-sm) var(--spacing-lg);
|
|
|
+ gap: var(--spacing-md);
|
|
|
|
|
|
-.search-input i.fa-search {
|
|
|
- color: #6c757d;
|
|
|
- margin-right: 10px;
|
|
|
-}
|
|
|
+ .search-icon {
|
|
|
+ font-size: 16px;
|
|
|
+ color: var(--text-secondary);
|
|
|
+ }
|
|
|
|
|
|
-.search-input input {
|
|
|
+ .search-input {
|
|
|
flex: 1;
|
|
|
border: none;
|
|
|
- background: none;
|
|
|
+ background: transparent;
|
|
|
outline: none;
|
|
|
- font-size: 16px;
|
|
|
- color: #333;
|
|
|
-}
|
|
|
+ font-size: var(--font-md);
|
|
|
+ color: var(--text-primary);
|
|
|
|
|
|
-.search-input input::placeholder {
|
|
|
- color: #6c757d;
|
|
|
+ &::placeholder {
|
|
|
+ color: var(--text-tertiary);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.voice-btn {
|
|
|
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
|
- color: white;
|
|
|
- border-radius: 50%;
|
|
|
- width: 35px;
|
|
|
- height: 35px;
|
|
|
+ width: 32px;
|
|
|
+ height: 32px;
|
|
|
+ border-radius: var(--radius-full);
|
|
|
+ background: transparent;
|
|
|
+ border: none;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
cursor: pointer;
|
|
|
- margin-left: 10px;
|
|
|
- transition: transform 0.2s;
|
|
|
-}
|
|
|
-
|
|
|
-.voice-btn:hover {
|
|
|
- transform: scale(1.1);
|
|
|
-}
|
|
|
+ transition: all var(--transition-fast);
|
|
|
+
|
|
|
+ i {
|
|
|
+ font-size: 16px;
|
|
|
+ color: var(--primary-color);
|
|
|
+ }
|
|
|
+
|
|
|
+ &.active {
|
|
|
+ background: var(--primary-color);
|
|
|
+ animation: pulse 1s infinite;
|
|
|
+
|
|
|
+ i {
|
|
|
+ color: var(--text-white);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ &:active {
|
|
|
+ transform: scale(0.95);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
-/* 消息通知栏 */
|
|
|
-.notification-bar {
|
|
|
- background: linear-gradient(90deg, #ffecd2 0%, #fcb69f 100%);
|
|
|
- padding: 12px 20px;
|
|
|
+ // ===== 智能状态区 =====
|
|
|
+ .smart-status-section {
|
|
|
+ padding: 0 var(--spacing-lg);
|
|
|
+ margin-top: var(--spacing-lg);
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ gap: var(--spacing-md);
|
|
|
+
|
|
|
+ .status-card {
|
|
|
+ background: var(--bg-secondary);
|
|
|
+ border-radius: var(--radius-lg);
|
|
|
+ padding: var(--spacing-lg);
|
|
|
+ box-shadow: var(--shadow-sm);
|
|
|
+
|
|
|
+ .card-header {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ margin-bottom: var(--spacing-md);
|
|
|
+
|
|
|
+ h3 {
|
|
|
+ font-size: var(--font-lg);
|
|
|
+ font-weight: var(--font-semibold);
|
|
|
+ color: var(--text-primary);
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- cursor: pointer;
|
|
|
- border-left: 4px solid #ff6b6b;
|
|
|
-}
|
|
|
-
|
|
|
-.notification-icon {
|
|
|
- margin-right: 10px;
|
|
|
- color: #ff6b6b;
|
|
|
-}
|
|
|
-
|
|
|
-.notification-text {
|
|
|
- flex: 1;
|
|
|
- font-size: 14px;
|
|
|
- color: #333;
|
|
|
-}
|
|
|
-
|
|
|
-/* 智能状态区 */
|
|
|
-.status-card {
|
|
|
- background: white;
|
|
|
- margin: 15px 20px;
|
|
|
- padding: 20px;
|
|
|
- border-radius: 15px;
|
|
|
- box-shadow: 0 4px 15px rgba(0,0,0,0.1);
|
|
|
-}
|
|
|
-
|
|
|
-.greeting h3 {
|
|
|
- font-size: 18px;
|
|
|
- color: #333;
|
|
|
- margin-bottom: 5px;
|
|
|
-}
|
|
|
-
|
|
|
-.greeting p {
|
|
|
- color: #666;
|
|
|
- font-size: 14px;
|
|
|
- margin-bottom: 15px;
|
|
|
-}
|
|
|
-
|
|
|
-.case-progress {
|
|
|
- margin: 15px 0;
|
|
|
-}
|
|
|
+ gap: var(--spacing-sm);
|
|
|
+
|
|
|
+ i {
|
|
|
+ color: var(--primary-color);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .more-btn {
|
|
|
+ background: none;
|
|
|
+ border: none;
|
|
|
+ color: var(--primary-color);
|
|
|
+ font-size: var(--font-sm);
|
|
|
+ cursor: pointer;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 4px;
|
|
|
+
|
|
|
+ &:active {
|
|
|
+ opacity: 0.7;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .todo-count {
|
|
|
+ background: var(--primary-color);
|
|
|
+ color: var(--text-white);
|
|
|
+ padding: 2px 8px;
|
|
|
+ border-radius: 10px;
|
|
|
+ font-size: var(--font-xs);
|
|
|
+ font-weight: var(--font-semibold);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 案件进度
|
|
|
+ .progress-list {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ gap: var(--spacing-md);
|
|
|
|
|
|
.progress-item {
|
|
|
- margin-bottom: 15px;
|
|
|
-}
|
|
|
+ cursor: pointer;
|
|
|
+ transition: all var(--transition-fast);
|
|
|
|
|
|
-.case-title {
|
|
|
+ &:active {
|
|
|
+ opacity: 0.7;
|
|
|
+ }
|
|
|
+
|
|
|
+ .progress-header {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
- margin-bottom: 8px;
|
|
|
- font-size: 14px;
|
|
|
- color: #333;
|
|
|
-}
|
|
|
-
|
|
|
-.progress-bar {
|
|
|
- background: #e9ecef;
|
|
|
+ align-items: center;
|
|
|
+ margin-bottom: var(--spacing-sm);
|
|
|
+
|
|
|
+ .case-title {
|
|
|
+ font-size: var(--font-md);
|
|
|
+ font-weight: var(--font-medium);
|
|
|
+ color: var(--text-primary);
|
|
|
+ }
|
|
|
+
|
|
|
+ .case-status {
|
|
|
+ font-size: var(--font-sm);
|
|
|
+ font-weight: var(--font-medium);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .progress-bar-container {
|
|
|
height: 6px;
|
|
|
+ background: var(--bg-tertiary);
|
|
|
border-radius: 3px;
|
|
|
overflow: hidden;
|
|
|
-}
|
|
|
+ margin-bottom: 4px;
|
|
|
|
|
|
-.progress-fill {
|
|
|
- background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
|
|
|
+ .progress-bar {
|
|
|
height: 100%;
|
|
|
border-radius: 3px;
|
|
|
- transition: width 0.3s ease;
|
|
|
-}
|
|
|
-
|
|
|
-.todo-reminder {
|
|
|
- background: #f8f9fa;
|
|
|
- padding: 12px;
|
|
|
- border-radius: 10px;
|
|
|
+ transition: width var(--transition-base);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .progress-text {
|
|
|
+ font-size: var(--font-xs);
|
|
|
+ color: var(--text-secondary);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 待办事项
|
|
|
+ .todo-list {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ gap: var(--spacing-sm);
|
|
|
+
|
|
|
+ .todo-item {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: var(--spacing-md);
|
|
|
+ padding: var(--spacing-sm);
|
|
|
+ border-radius: var(--radius-sm);
|
|
|
+ transition: background var(--transition-fast);
|
|
|
+
|
|
|
+ &:active {
|
|
|
+ background: var(--bg-tertiary);
|
|
|
+ }
|
|
|
+
|
|
|
+ .todo-checkbox {
|
|
|
+ width: 20px;
|
|
|
+ height: 20px;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
+ justify-content: center;
|
|
|
cursor: pointer;
|
|
|
- border-left: 4px solid #28a745;
|
|
|
-}
|
|
|
|
|
|
-.todo-icon {
|
|
|
- margin-right: 10px;
|
|
|
- color: #28a745;
|
|
|
-}
|
|
|
+ i {
|
|
|
+ font-size: 20px;
|
|
|
+ color: var(--text-secondary);
|
|
|
+ transition: all var(--transition-fast);
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ color: var(--primary-color);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .todo-content {
|
|
|
+ flex: 1;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ gap: 4px;
|
|
|
+
|
|
|
+ .todo-text {
|
|
|
+ font-size: var(--font-md);
|
|
|
+ color: var(--text-primary);
|
|
|
+ }
|
|
|
+
|
|
|
+ .todo-deadline {
|
|
|
+ font-size: var(--font-xs);
|
|
|
+ color: var(--text-secondary);
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 4px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .todo-priority {
|
|
|
+ width: 4px;
|
|
|
+ height: 24px;
|
|
|
+ border-radius: 2px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
-.todo-text {
|
|
|
- flex: 1;
|
|
|
- font-size: 14px;
|
|
|
- color: #333;
|
|
|
-}
|
|
|
+ // ===== 核心功能入口 =====
|
|
|
+ .quick-actions-section {
|
|
|
+ padding: var(--spacing-lg);
|
|
|
+ margin-top: var(--spacing-md);
|
|
|
|
|
|
-/* 区块标题 */
|
|
|
-.section-title {
|
|
|
- padding: 20px 20px 10px;
|
|
|
-}
|
|
|
+ .section-header {
|
|
|
+ margin-bottom: var(--spacing-md);
|
|
|
|
|
|
-.section-title h2 {
|
|
|
- font-size: 18px;
|
|
|
- color: #333;
|
|
|
- font-weight: 600;
|
|
|
-}
|
|
|
+ h2 {
|
|
|
+ font-size: var(--font-xl);
|
|
|
+ font-weight: var(--font-semibold);
|
|
|
+ color: var(--text-primary);
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
-/* 功能网格 */
|
|
|
-.function-grid {
|
|
|
+ .actions-grid {
|
|
|
display: grid;
|
|
|
grid-template-columns: repeat(3, 1fr);
|
|
|
- gap: 15px;
|
|
|
- padding: 0 20px 20px;
|
|
|
-}
|
|
|
+ gap: var(--spacing-lg);
|
|
|
|
|
|
-.function-item {
|
|
|
- background: white;
|
|
|
- padding: 20px 10px;
|
|
|
- border-radius: 15px;
|
|
|
- text-align: center;
|
|
|
+ .action-item {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: center;
|
|
|
+ gap: var(--spacing-sm);
|
|
|
cursor: pointer;
|
|
|
- transition: all 0.3s ease;
|
|
|
- box-shadow: 0 2px 10px rgba(0,0,0,0.05);
|
|
|
-}
|
|
|
+ transition: all var(--transition-fast);
|
|
|
|
|
|
-.function-item:hover {
|
|
|
- transform: translateY(-5px);
|
|
|
- box-shadow: 0 8px 25px rgba(0,0,0,0.15);
|
|
|
-}
|
|
|
+ &:active {
|
|
|
+ transform: scale(0.95);
|
|
|
+ }
|
|
|
|
|
|
-.function-icon {
|
|
|
- width: 48px;
|
|
|
- height: 48px;
|
|
|
- margin-bottom: 8px;
|
|
|
+ .action-icon {
|
|
|
+ width: 60px;
|
|
|
+ height: 60px;
|
|
|
+ border-radius: var(--radius-lg);
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
-
|
|
|
- img {
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- object-fit: contain;
|
|
|
- }
|
|
|
-
|
|
|
- i {
|
|
|
- font-size: 24px;
|
|
|
- color: #4A90E2;
|
|
|
+ box-shadow: var(--shadow-md);
|
|
|
+
|
|
|
+ i {
|
|
|
+ font-size: 28px;
|
|
|
+ color: var(--text-white);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .action-title {
|
|
|
+ font-size: var(--font-sm);
|
|
|
+ color: var(--text-primary);
|
|
|
+ text-align: center;
|
|
|
+ font-weight: var(--font-medium);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
-}
|
|
|
-
|
|
|
-.function-name {
|
|
|
- font-size: 12px;
|
|
|
- color: #333;
|
|
|
- font-weight: 500;
|
|
|
-}
|
|
|
-
|
|
|
-/* 动态内容区 */
|
|
|
-.dynamic-content {
|
|
|
- padding: 0 20px;
|
|
|
-}
|
|
|
|
|
|
-.content-section {
|
|
|
- background: white;
|
|
|
- margin-bottom: 20px;
|
|
|
- border-radius: 15px;
|
|
|
- overflow: hidden;
|
|
|
- box-shadow: 0 2px 10px rgba(0,0,0,0.05);
|
|
|
-}
|
|
|
+ // ===== 动态内容区 =====
|
|
|
+ .dynamic-content-section {
|
|
|
+ padding: 0 var(--spacing-lg);
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ gap: var(--spacing-2xl);
|
|
|
+ margin-top: var(--spacing-lg);
|
|
|
|
|
|
+ .content-block {
|
|
|
.section-header {
|
|
|
- padding: 15px 20px;
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
|
- border-bottom: 1px solid #f0f0f0;
|
|
|
-}
|
|
|
-
|
|
|
-.section-header h3 {
|
|
|
- font-size: 16px;
|
|
|
- color: #333;
|
|
|
- font-weight: 600;
|
|
|
-}
|
|
|
-
|
|
|
-.more-link {
|
|
|
- color: #667eea;
|
|
|
- font-size: 14px;
|
|
|
+ margin-bottom: var(--spacing-md);
|
|
|
+
|
|
|
+ h2 {
|
|
|
+ font-size: var(--font-lg);
|
|
|
+ font-weight: var(--font-semibold);
|
|
|
+ color: var(--text-primary);
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: var(--spacing-sm);
|
|
|
+
|
|
|
+ i {
|
|
|
+ color: var(--primary-color);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .more-btn {
|
|
|
+ background: none;
|
|
|
+ border: none;
|
|
|
+ color: var(--primary-color);
|
|
|
+ font-size: var(--font-sm);
|
|
|
cursor: pointer;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- gap: 5px;
|
|
|
-}
|
|
|
-
|
|
|
-.more-link:hover {
|
|
|
- color: #764ba2;
|
|
|
-}
|
|
|
-
|
|
|
-/* 热点问题 */
|
|
|
-.hot-questions {
|
|
|
- padding: 0 20px 20px;
|
|
|
-}
|
|
|
-
|
|
|
-.question-item {
|
|
|
- padding: 15px 0;
|
|
|
- border-bottom: 1px solid #f0f0f0;
|
|
|
+ gap: 4px;
|
|
|
+
|
|
|
+ &:active {
|
|
|
+ opacity: 0.7;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 热点问题列表
|
|
|
+ .hot-issues-list {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ gap: var(--spacing-sm);
|
|
|
+
|
|
|
+ .hot-issue-item {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: var(--spacing-md);
|
|
|
+ padding: var(--spacing-md);
|
|
|
+ background: var(--bg-secondary);
|
|
|
+ border-radius: var(--radius-md);
|
|
|
cursor: pointer;
|
|
|
-}
|
|
|
-
|
|
|
-.question-item:last-child {
|
|
|
- border-bottom: none;
|
|
|
-}
|
|
|
-
|
|
|
-.question-item .tag {
|
|
|
- background: #e3f2fd;
|
|
|
- color: #1976d2;
|
|
|
- padding: 4px 8px;
|
|
|
- border-radius: 12px;
|
|
|
- font-size: 12px;
|
|
|
- display: inline-block;
|
|
|
- margin-bottom: 8px;
|
|
|
-}
|
|
|
-
|
|
|
-.question-item p {
|
|
|
- font-size: 14px;
|
|
|
- color: #333;
|
|
|
- margin-bottom: 8px;
|
|
|
- line-height: 1.5;
|
|
|
-}
|
|
|
-
|
|
|
-.question-item .views {
|
|
|
- font-size: 12px;
|
|
|
- color: #666;
|
|
|
+ transition: all var(--transition-fast);
|
|
|
+
|
|
|
+ &:active {
|
|
|
+ transform: scale(0.98);
|
|
|
+ background: var(--bg-tertiary);
|
|
|
+ }
|
|
|
+
|
|
|
+ .issue-icon {
|
|
|
+ width: 40px;
|
|
|
+ height: 40px;
|
|
|
+ border-radius: var(--radius-md);
|
|
|
+ background: var(--primary-color);
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ flex-shrink: 0;
|
|
|
+
|
|
|
+ i {
|
|
|
+ font-size: 18px;
|
|
|
+ color: var(--text-white);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .issue-content {
|
|
|
+ flex: 1;
|
|
|
+ min-width: 0;
|
|
|
+
|
|
|
+ .issue-title {
|
|
|
+ font-size: var(--font-md);
|
|
|
+ font-weight: var(--font-medium);
|
|
|
+ color: var(--text-primary);
|
|
|
+ margin-bottom: 4px;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ white-space: nowrap;
|
|
|
+ }
|
|
|
+
|
|
|
+ .issue-meta {
|
|
|
+ display: flex;
|
|
|
+ gap: var(--spacing-md);
|
|
|
+ font-size: var(--font-xs);
|
|
|
+ color: var(--text-secondary);
|
|
|
+
|
|
|
+ .issue-category {
|
|
|
+ padding: 2px 8px;
|
|
|
+ background: var(--bg-tertiary);
|
|
|
+ border-radius: 4px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .issue-views {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- gap: 5px;
|
|
|
-}
|
|
|
-
|
|
|
-/* 视频网格 */
|
|
|
-.video-grid {
|
|
|
- display: grid;
|
|
|
- grid-template-columns: repeat(2, 1fr);
|
|
|
- gap: 15px;
|
|
|
- padding: 15px 20px 20px;
|
|
|
-}
|
|
|
-
|
|
|
-.video-item {
|
|
|
- cursor: pointer;
|
|
|
- transition: transform 0.2s;
|
|
|
-}
|
|
|
-
|
|
|
-.video-item:hover {
|
|
|
- transform: scale(1.05);
|
|
|
+ gap: 4px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ > i {
|
|
|
+ color: var(--text-tertiary);
|
|
|
+ font-size: 14px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 视频滚动列表
|
|
|
+ .video-scroll {
|
|
|
+ display: flex;
|
|
|
+ gap: var(--spacing-md);
|
|
|
+ overflow-x: auto;
|
|
|
+ padding-bottom: var(--spacing-sm);
|
|
|
+ -webkit-overflow-scrolling: touch;
|
|
|
+
|
|
|
+ &::-webkit-scrollbar {
|
|
|
+ height: 4px;
|
|
|
+ }
|
|
|
+
|
|
|
+ &::-webkit-scrollbar-thumb {
|
|
|
+ background: var(--border-color);
|
|
|
+ border-radius: 2px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .video-card {
|
|
|
+ flex-shrink: 0;
|
|
|
+ width: 200px;
|
|
|
+ cursor: pointer;
|
|
|
+ transition: all var(--transition-fast);
|
|
|
+
|
|
|
+ &:active {
|
|
|
+ transform: scale(0.95);
|
|
|
}
|
|
|
|
|
|
.video-thumbnail {
|
|
|
position: relative;
|
|
|
width: 100%;
|
|
|
- height: 90px;
|
|
|
- border-radius: 8px;
|
|
|
+ height: 112px;
|
|
|
+ border-radius: var(--radius-md);
|
|
|
overflow: hidden;
|
|
|
- margin-bottom: 8px;
|
|
|
+ background: var(--bg-tertiary);
|
|
|
|
|
|
img {
|
|
|
width: 100%;
|
|
@@ -387,158 +541,192 @@ body {
|
|
|
object-fit: cover;
|
|
|
}
|
|
|
|
|
|
- .play-overlay {
|
|
|
+ .video-duration {
|
|
|
+ position: absolute;
|
|
|
+ bottom: 8px;
|
|
|
+ right: 8px;
|
|
|
+ background: rgba(0, 0, 0, 0.7);
|
|
|
+ color: var(--text-white);
|
|
|
+ padding: 2px 6px;
|
|
|
+ border-radius: 4px;
|
|
|
+ font-size: var(--font-xs);
|
|
|
+ }
|
|
|
+
|
|
|
+ .play-btn {
|
|
|
position: absolute;
|
|
|
- top: 0;
|
|
|
- left: 0;
|
|
|
- right: 0;
|
|
|
- bottom: 0;
|
|
|
+ top: 50%;
|
|
|
+ left: 50%;
|
|
|
+ transform: translate(-50%, -50%);
|
|
|
+ width: 40px;
|
|
|
+ height: 40px;
|
|
|
+ border-radius: var(--radius-full);
|
|
|
+ background: rgba(255, 255, 255, 0.9);
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
- background: rgba(0, 0, 0, 0.3);
|
|
|
-
|
|
|
- i {
|
|
|
- font-size: 32px;
|
|
|
- color: white;
|
|
|
- opacity: 0.9;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- &:hover .play-overlay {
|
|
|
- background: rgba(0, 0, 0, 0.5);
|
|
|
-
|
|
|
- i {
|
|
|
+ opacity: 0;
|
|
|
+ transition: opacity var(--transition-fast);
|
|
|
+
|
|
|
+ i {
|
|
|
+ font-size: 16px;
|
|
|
+ color: var(--primary-color);
|
|
|
+ margin-left: 2px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ &:hover .play-btn {
|
|
|
opacity: 1;
|
|
|
- transform: scale(1.1);
|
|
|
- transition: all 0.3s ease;
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-.video-title {
|
|
|
- font-size: 12px;
|
|
|
- color: #333;
|
|
|
- text-align: center;
|
|
|
- line-height: 1.4;
|
|
|
-}
|
|
|
+ .video-info {
|
|
|
+ margin-top: var(--spacing-sm);
|
|
|
|
|
|
-/* 服务列表 */
|
|
|
-.service-list {
|
|
|
- padding: 15px 20px 20px;
|
|
|
-}
|
|
|
+.video-title {
|
|
|
+ font-size: var(--font-sm);
|
|
|
+ font-weight: var(--font-medium);
|
|
|
+ color: var(--text-primary);
|
|
|
+ margin-bottom: 4px;
|
|
|
+ display: -webkit-box;
|
|
|
+ -webkit-line-clamp: 2;
|
|
|
+ -webkit-box-orient: vertical;
|
|
|
+ overflow: hidden;
|
|
|
+ }
|
|
|
+
|
|
|
+ .video-views {
|
|
|
+ font-size: var(--font-xs);
|
|
|
+ color: var(--text-secondary);
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 4px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 服务列表
|
|
|
+ .service-list {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ gap: var(--spacing-sm);
|
|
|
|
|
|
.service-item {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- padding: 15px 0;
|
|
|
- border-bottom: 1px solid #f0f0f0;
|
|
|
+ gap: var(--spacing-md);
|
|
|
+ padding: var(--spacing-md);
|
|
|
+ background: var(--bg-secondary);
|
|
|
+ border-radius: var(--radius-md);
|
|
|
cursor: pointer;
|
|
|
-}
|
|
|
+ transition: all var(--transition-fast);
|
|
|
|
|
|
-.service-item:last-child {
|
|
|
- border-bottom: none;
|
|
|
+ &:active {
|
|
|
+ transform: scale(0.98);
|
|
|
+ background: var(--bg-tertiary);
|
|
|
}
|
|
|
|
|
|
.service-icon {
|
|
|
- width: 40px;
|
|
|
- height: 40px;
|
|
|
- background: #f8f9fa;
|
|
|
- border-radius: 50%;
|
|
|
+ width: 44px;
|
|
|
+ height: 44px;
|
|
|
+ border-radius: var(--radius-md);
|
|
|
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
- margin-right: 15px;
|
|
|
- color: #667eea;
|
|
|
- font-size: 18px;
|
|
|
-}
|
|
|
+ flex-shrink: 0;
|
|
|
+
|
|
|
+ i {
|
|
|
+ font-size: 20px;
|
|
|
+ color: var(--text-white);
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
-.service-info {
|
|
|
+ .service-content {
|
|
|
flex: 1;
|
|
|
-}
|
|
|
+ min-width: 0;
|
|
|
|
|
|
.service-name {
|
|
|
- font-size: 14px;
|
|
|
- color: #333;
|
|
|
- font-weight: 500;
|
|
|
+ font-size: var(--font-md);
|
|
|
+ font-weight: var(--font-medium);
|
|
|
+ color: var(--text-primary);
|
|
|
margin-bottom: 4px;
|
|
|
-}
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ white-space: nowrap;
|
|
|
+ }
|
|
|
|
|
|
-.service-distance {
|
|
|
- font-size: 12px;
|
|
|
- color: #666;
|
|
|
+ .service-meta {
|
|
|
+ display: flex;
|
|
|
+ gap: var(--spacing-md);
|
|
|
+ font-size: var(--font-xs);
|
|
|
+ color: var(--text-secondary);
|
|
|
+
|
|
|
+ .service-type {
|
|
|
+ padding: 2px 8px;
|
|
|
+ background: var(--bg-tertiary);
|
|
|
+ border-radius: 4px;
|
|
|
}
|
|
|
|
|
|
-/* 悬浮按钮 */
|
|
|
-.floating-btn {
|
|
|
- position: fixed;
|
|
|
- bottom: 80px;
|
|
|
- right: 20px;
|
|
|
- width: 60px;
|
|
|
- height: 60px;
|
|
|
- background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
|
|
|
- border-radius: 50%;
|
|
|
+.service-distance {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- justify-content: center;
|
|
|
- color: white;
|
|
|
- font-size: 24px;
|
|
|
- cursor: pointer;
|
|
|
- box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
|
|
|
- z-index: 1000;
|
|
|
- transition: all 0.3s ease;
|
|
|
-}
|
|
|
+ gap: 4px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .service-rating {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 4px;
|
|
|
+ font-size: var(--font-sm);
|
|
|
+ font-weight: var(--font-semibold);
|
|
|
+ color: var(--warning-color);
|
|
|
+
|
|
|
+ i {
|
|
|
+ font-size: 14px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
-.floating-btn:hover {
|
|
|
- transform: scale(1.1);
|
|
|
- box-shadow: 0 6px 25px rgba(255, 107, 107, 0.6);
|
|
|
-}
|
|
|
+ // ===== 全局语音悬浮按钮 =====
|
|
|
+ .floating-voice-btn {
|
|
|
+ position: fixed;
|
|
|
+ bottom: 90px;
|
|
|
+ right: 20px;
|
|
|
+ width: 56px;
|
|
|
+ height: 56px;
|
|
|
+ border-radius: var(--radius-full);
|
|
|
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
|
+ border: none;
|
|
|
+ box-shadow: var(--shadow-xl);
|
|
|
+ cursor: pointer;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ z-index: var(--z-fixed);
|
|
|
+ transition: all var(--transition-fast);
|
|
|
|
|
|
-/* 响应式设计 */
|
|
|
-@media (max-width: 480px) {
|
|
|
- .function-grid {
|
|
|
- grid-template-columns: repeat(2, 1fr);
|
|
|
- }
|
|
|
-
|
|
|
- .video-grid {
|
|
|
- grid-template-columns: 1fr;
|
|
|
- }
|
|
|
-
|
|
|
- .function-item {
|
|
|
- padding: 15px 8px;
|
|
|
- }
|
|
|
-
|
|
|
- .function-icon {
|
|
|
- width: 40px;
|
|
|
- height: 40px;
|
|
|
- font-size: 18px;
|
|
|
- }
|
|
|
-
|
|
|
- .function-name {
|
|
|
- font-size: 11px;
|
|
|
+ i {
|
|
|
+ font-size: 24px;
|
|
|
+ color: var(--text-white);
|
|
|
+ }
|
|
|
+
|
|
|
+ &:active {
|
|
|
+ transform: scale(0.9);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-@media (max-width: 360px) {
|
|
|
- .top-nav {
|
|
|
- padding: 12px 15px;
|
|
|
+// 脉冲动画
|
|
|
+@keyframes pulse {
|
|
|
+ 0%, 100% {
|
|
|
+ opacity: 1;
|
|
|
}
|
|
|
-
|
|
|
- .search-bar {
|
|
|
- padding: 12px 15px;
|
|
|
+ 50% {
|
|
|
+ opacity: 0.5;
|
|
|
}
|
|
|
-
|
|
|
- .status-card {
|
|
|
- margin: 12px 15px;
|
|
|
- padding: 15px;
|
|
|
- }
|
|
|
-
|
|
|
- .function-grid {
|
|
|
- padding: 0 15px 15px;
|
|
|
- gap: 12px;
|
|
|
- }
|
|
|
-
|
|
|
- .dynamic-content {
|
|
|
- padding: 0 15px;
|
|
|
- }
|
|
|
-}
|
|
|
+}
|