Spaces:
Sleeping
Sleeping
| /* 卡片 */ | |
| .card { | |
| background: var(--bg-card); | |
| border-radius: var(--radius-xl); | |
| padding: 32px; | |
| box-shadow: var(--shadow-sm); | |
| margin-bottom: 24px; | |
| border: 1px solid rgba(0,0,0,0.02); | |
| transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); | |
| min-width: 0; /* Critical: prevents grid blowout */ | |
| } | |
| .card:hover { | |
| box-shadow: var(--shadow-md); | |
| transform: translateY(-2px); | |
| } | |
| /* 按钮 */ | |
| .btn { | |
| display: inline-flex; | |
| align-items: center; | |
| justify-content: center; | |
| padding: 12px 24px; | |
| border-radius: 50px; /* Pill shape */ | |
| font-weight: 600; | |
| font-size: 16px; | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| border: none; | |
| outline: none; | |
| gap: 8px; | |
| user-select: none; | |
| } | |
| .btn-primary { | |
| background: linear-gradient(135deg, var(--primary) 0%, #FF5C72 100%); | |
| color: white; | |
| box-shadow: 0 4px 12px rgba(255, 36, 66, 0.3); | |
| } | |
| .btn-primary:hover { | |
| background: linear-gradient(135deg, #FF3B55 0%, #FF7A8C 100%); | |
| transform: translateY(-2px); | |
| box-shadow: 0 8px 20px rgba(255, 36, 66, 0.4); | |
| } | |
| .btn-primary:active { | |
| transform: translateY(0); | |
| box-shadow: 0 2px 8px rgba(255, 36, 66, 0.3); | |
| } | |
| .btn-primary:disabled { | |
| opacity: 0.6; | |
| cursor: not-allowed; | |
| transform: none; | |
| box-shadow: none; | |
| filter: grayscale(20%); | |
| } | |
| .btn-secondary { | |
| background: white; | |
| color: var(--text-main); | |
| border: 1px solid #d1d5db; | |
| box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); | |
| } | |
| .btn-secondary:hover:not(:disabled) { | |
| background: #f9fafb; | |
| border-color: #9ca3af; | |
| transform: translateY(-2px); | |
| box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); | |
| } | |
| .btn-secondary:active { | |
| transform: translateY(0); | |
| box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); | |
| } | |
| .btn-secondary:disabled { | |
| opacity: 0.5; | |
| cursor: not-allowed; | |
| transform: none; | |
| box-shadow: none; | |
| } | |
| /* 通用输入框 (旧版保留,以防万一) */ | |
| .input { | |
| width: 100%; | |
| padding: 20px 32px; | |
| background: white; | |
| border: 2px solid transparent; | |
| border-radius: 100px; | |
| font-size: 17px; | |
| color: var(--text-main); | |
| transition: all 0.3s ease; | |
| box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04); | |
| } | |
| .input:focus { | |
| border-color: var(--primary); | |
| background: white; | |
| box-shadow: 0 8px 24px rgba(255, 36, 66, 0.12); | |
| outline: none; | |
| } | |
| .input::placeholder { | |
| color: var(--text-placeholder); | |
| font-weight: 400; | |
| } | |
| /* 标签 */ | |
| .tag-cloud { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 12px; | |
| justify-content: center; | |
| } | |
| .tag { | |
| padding: 10px 20px; | |
| background: #F7F8FA; | |
| border: 1px solid transparent; | |
| border-radius: 100px; | |
| font-size: 14px; | |
| color: var(--text-sub); | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| font-weight: 500; | |
| } | |
| .tag:hover { | |
| background: white; | |
| border-color: var(--primary); | |
| color: var(--primary); | |
| box-shadow: 0 4px 12px rgba(255, 36, 66, 0.1); | |
| transform: translateY(-2px); | |
| } | |
| /* Tabs */ | |
| .tabs-container { | |
| display: flex; | |
| gap: 24px; | |
| border-bottom: 1px solid var(--border-color); | |
| margin-bottom: 24px; | |
| } | |
| .tab-item { | |
| padding: 12px 4px; | |
| font-size: 15px; | |
| font-weight: 500; | |
| color: var(--text-sub); | |
| cursor: pointer; | |
| position: relative; | |
| transition: all 0.3s; | |
| } | |
| .tab-item:hover { | |
| color: var(--text-main); | |
| } | |
| .tab-item.active { | |
| color: var(--primary); | |
| font-weight: 600; | |
| } | |
| .tab-item.active::after { | |
| content: ''; | |
| position: absolute; | |
| bottom: -1px; | |
| left: 0; | |
| width: 100%; | |
| height: 2px; | |
| background: var(--primary); | |
| border-radius: 2px 2px 0 0; | |
| } | |
| /* 图标工具类 */ | |
| .icon-xs { | |
| width: 14px; | |
| height: 14px; | |
| vertical-align: text-bottom; | |
| margin-right: 2px; | |
| display: inline-block; | |
| } | |
| /* 加载动画 */ | |
| .spinner { | |
| width: 24px; | |
| height: 24px; | |
| border: 3px solid rgba(255,255,255,0.3); | |
| border-radius: 50%; | |
| border-top-color: white; | |
| animation: spin 1s ease-in-out infinite; | |
| } | |
| .spinner-sm { | |
| width: 18px; | |
| height: 18px; | |
| border: 2px solid rgba(255,255,255,0.3); | |
| border-radius: 50%; | |
| border-top-color: white; | |
| animation: spin 1s ease-in-out infinite; | |
| } | |
| @keyframes spin { | |
| to { transform: rotate(360deg); } | |
| } | |
| /* 进度条 */ | |
| .progress-container { | |
| width: 100%; | |
| background: #F0F0F0; | |
| border-radius: 100px; | |
| height: 8px; | |
| overflow: hidden; | |
| } | |
| .progress-bar { | |
| height: 100%; | |
| background: var(--primary); | |
| border-radius: 100px; | |
| transition: width 0.4s ease; | |
| } | |
| /* 错误提示 */ | |
| .error-msg { | |
| background: #FFF2F0; | |
| border: 1px solid #FFCCC7; | |
| color: #FF4D4F; | |
| padding: 12px 16px; | |
| border-radius: var(--radius-sm); | |
| font-size: 14px; | |
| margin-top: 16px; | |
| } | |
| /* 网格布局 */ | |
| .grid-cols-2 { | |
| display: grid; | |
| grid-template-columns: repeat(2, 1fr); | |
| gap: 20px; | |
| } | |
| .grid-cols-4 { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); | |
| gap: 24px; | |
| } | |
| /* 图片卡片统一样式 - 用于生成页面和结果页面 */ | |
| .image-card { | |
| background: white; | |
| border-radius: 12px; | |
| overflow: hidden; | |
| border: 1px solid #f0f0f0; | |
| transition: all 0.2s ease; | |
| display: flex; | |
| flex-direction: column; | |
| /* 确保卡片有最小高度,防止未加载时塌陷 */ | |
| min-height: 320px; | |
| } | |
| .image-card:hover { | |
| box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); | |
| transform: translateY(-2px); | |
| } | |
| /* 全屏模态框 */ | |
| .modal-fullscreen { | |
| position: fixed; | |
| inset: 0; | |
| background: rgba(0,0,0,0.9); | |
| z-index: 999; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| padding: 40px; | |
| } | |
| .modal-body { | |
| background: white; | |
| width: 100%; | |
| max-width: 1000px; | |
| height: 90vh; | |
| border-radius: 16px; | |
| display: flex; | |
| flex-direction: column; | |
| overflow: hidden; | |
| } | |
| .modal-header { | |
| padding: 20px; | |
| border-bottom: 1px solid #eee; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .close-icon { | |
| background: none; | |
| border: none; | |
| font-size: 24px; | |
| cursor: pointer; | |
| } | |