Wardrobe/prototype/style.css
jif2.zhang 38b5e3190a init: Wardrobe 衣物管理系统 - 项目首页、OTA 升级、Android CI/CD
- 响应式项目首页 (Landing, 含 R2 APK 下载) + 路由 /home 调整
- OTA 升级: tauri-plugin-hotswap (lib.rs/main.rs 拆分, 客户端热替换)
- OTA 服务端 (check/bundle/manifest-web) + build-ota/genkey/upload 脚本
- 密钥/凭据统一存配置中心 (signing + ota + cloudflare 分组)
- Android CI (android-* 分支) + OTA CI (手动触发), 产物上传 R2
- 修复 tsc/构建阻塞问题
2026-09-11 15:46:42 +08:00

1495 lines
23 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--bg: #FCF9F4;
--bg-card: #FFFFFF;
--bg-warm: #F5EDE6;
--text-primary: #1A1A1A;
--text-secondary: #666666;
--text-tertiary: #999999;
--accent: #E8C4A0;
--accent-light: #FFF6ED;
--accent-peach: #FFE8E0;
--border: #F0E8DF;
--danger: #E74C3C;
--success: #27AE60;
--radius: 16px;
--radius-sm: 10px;
--radius-xs: 6px;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
background: #1a1a1a;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
color: var(--text-primary);
}
.phone-frame {
width: 390px;
height: 844px;
background: var(--bg);
border-radius: 40px;
overflow: hidden;
position: relative;
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.status-bar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 14px 28px 6px;
font-size: 15px;
font-weight: 600;
background: var(--bg);
position: relative;
z-index: 10;
}
.status-icons {
display: flex;
gap: 6px;
align-items: center;
}
.page {
display: none;
position: absolute;
top: 44px;
left: 0;
right: 0;
bottom: 80px;
overflow: hidden;
}
.page.active {
display: flex;
flex-direction: column;
}
.page-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 20px 12px;
background: var(--bg);
position: relative;
z-index: 5;
}
.page-title {
font-size: 28px;
font-weight: 700;
letter-spacing: -0.5px;
}
.center-title {
position: absolute;
left: 50%;
transform: translateX(-50%);
}
.greeting {
font-size: 14px;
color: var(--text-secondary);
margin-bottom: 2px;
}
.scroll-content {
flex: 1;
overflow-y: auto;
padding: 0 20px;
-webkit-overflow-scrolling: touch;
}
.scroll-content::-webkit-scrollbar {
display: none;
}
.bottom-spacer {
height: 20px;
}
.icon-btn {
width: 40px;
height: 40px;
border-radius: 50%;
border: none;
background: var(--bg-card);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
color: var(--text-primary);
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
transition: transform 0.15s;
}
.icon-btn:active {
transform: scale(0.92);
}
.icon-btn.danger {
color: var(--danger);
}
.icon-btn.small {
width: 32px;
height: 32px;
font-size: 20px;
font-weight: 300;
}
.text-btn {
background: none;
border: none;
color: var(--accent);
font-size: 14px;
font-weight: 500;
cursor: pointer;
padding: 8px 0;
}
.save-text {
color: var(--text-primary);
font-weight: 600;
}
.header-actions {
display: flex;
gap: 8px;
}
/* Weather Card */
.weather-card {
background: var(--bg-card);
border-radius: var(--radius);
padding: 16px;
margin-bottom: 20px;
box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.weather-info {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 10px;
}
.weather-icon {
font-size: 32px;
}
.weather-temp {
font-size: 22px;
font-weight: 700;
}
.weather-desc {
font-size: 13px;
color: var(--text-secondary);
}
.weather-tags {
display: flex;
gap: 6px;
}
.tag {
padding: 4px 12px;
border-radius: 20px;
background: var(--accent-peach);
font-size: 12px;
color: #B8734A;
font-weight: 500;
}
/* Section Headers */
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
}
.section-header h2 {
font-size: 18px;
font-weight: 600;
}
/* Outfit Card */
.outfit-card {
background: var(--bg-card);
border-radius: var(--radius);
overflow: hidden;
margin-bottom: 24px;
box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.outfit-preview {
padding: 16px;
}
.outfit-item-grid {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
gap: 8px;
}
.outfit-thumb {
aspect-ratio: 1;
border-radius: var(--radius-sm);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 4px;
}
.outfit-thumb span {
font-size: 28px;
}
.outfit-thumb small {
font-size: 10px;
color: var(--text-secondary);
}
.outfit-info {
padding: 0 16px 16px;
}
.outfit-tags {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 6px;
}
.occasion-tag {
padding: 3px 10px;
border-radius: 12px;
background: var(--accent-peach);
font-size: 12px;
color: #B8734A;
font-weight: 500;
}
.rating {
font-size: 13px;
color: var(--text-secondary);
}
.outfit-label {
font-size: 16px;
font-weight: 600;
margin-bottom: 12px;
}
.outfit-actions {
display: flex;
gap: 8px;
}
.action-btn {
flex: 1;
padding: 10px;
border-radius: var(--radius-sm);
border: none;
background: var(--text-primary);
color: white;
font-size: 13px;
font-weight: 500;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
transition: opacity 0.15s;
}
.action-btn:active {
opacity: 0.8;
}
.action-btn.secondary {
background: var(--bg-warm);
color: var(--text-primary);
}
.action-btn.save-btn {
background: var(--text-primary);
}
.action-btn.refresh-btn {
background: var(--bg-warm);
color: var(--text-primary);
}
/* Stats Row */
.stats-row {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 10px;
margin-bottom: 20px;
}
.stat-card {
background: var(--bg-card);
border-radius: var(--radius-sm);
padding: 16px 12px;
text-align: center;
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.stat-num {
display: block;
font-size: 24px;
font-weight: 700;
color: var(--text-primary);
}
.stat-label {
display: block;
font-size: 12px;
color: var(--text-secondary);
margin-top: 2px;
}
/* Category Grid */
.category-grid {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 10px;
margin-bottom: 24px;
}
.category-item {
background: var(--bg-card);
border-radius: var(--radius-sm);
padding: 16px 12px;
text-align: center;
cursor: pointer;
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
transition: transform 0.15s;
}
.category-item:active {
transform: scale(0.96);
}
.category-icon {
width: 48px;
height: 48px;
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
margin: 0 auto 8px;
}
.category-item span {
display: block;
font-size: 13px;
font-weight: 500;
}
.category-item small {
font-size: 11px;
color: var(--text-tertiary);
}
/* Alert List */
.alert-list {
margin-bottom: 20px;
}
.alert-item {
display: flex;
align-items: center;
gap: 12px;
padding: 14px 16px;
background: var(--bg-card);
border-radius: var(--radius-sm);
margin-bottom: 8px;
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
cursor: pointer;
}
.alert-icon {
font-size: 20px;
}
.alert-text {
flex: 1;
}
.alert-text p {
font-size: 14px;
font-weight: 500;
}
.alert-text small {
font-size: 12px;
color: var(--text-tertiary);
}
/* Search Bar */
.search-bar {
display: flex;
align-items: center;
gap: 10px;
background: var(--bg-card);
border-radius: var(--radius-sm);
padding: 10px 14px;
margin-bottom: 12px;
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.search-input {
flex: 1;
border: none;
background: none;
font-size: 15px;
outline: none;
color: var(--text-primary);
}
.search-input::placeholder {
color: var(--text-tertiary);
}
/* Filter Bar */
.filter-bar {
display: flex;
gap: 6px;
overflow-x: auto;
padding-bottom: 4px;
margin-bottom: 4px;
}
.filter-bar::-webkit-scrollbar {
display: none;
}
.filter-btn {
padding: 7px 16px;
border-radius: 20px;
border: none;
background: var(--bg-card);
color: var(--text-secondary);
font-size: 13px;
font-weight: 500;
cursor: pointer;
white-space: nowrap;
transition: all 0.2s;
box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.filter-btn.active {
background: var(--text-primary);
color: white;
}
.filter-btn.small {
padding: 5px 12px;
font-size: 12px;
}
.filter-sep {
color: var(--border);
display: flex;
align-items: center;
font-size: 16px;
}
/* View Toggle */
.view-toggle {
display: flex;
gap: 4px;
justify-content: flex-end;
margin-bottom: 12px;
}
.view-btn {
width: 36px;
height: 36px;
border-radius: 8px;
border: none;
background: var(--bg-card);
color: var(--text-tertiary);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
}
.view-btn.active {
background: var(--text-primary);
color: white;
}
/* Closet Grid */
.closet-grid {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 10px;
}
.clothing-card {
background: var(--bg-card);
border-radius: var(--radius-sm);
overflow: hidden;
cursor: pointer;
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
transition: transform 0.15s;
}
.clothing-card:active {
transform: scale(0.96);
}
.clothing-img {
aspect-ratio: 1;
display: flex;
align-items: center;
justify-content: center;
font-size: 40px;
}
.clothing-meta {
padding: 8px 10px;
}
.clothing-name {
font-size: 12px;
font-weight: 500;
margin-bottom: 2px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.clothing-meta small {
font-size: 10px;
color: var(--text-tertiary);
}
/* Closet List */
.closet-list.hidden {
display: none;
}
.list-item {
display: flex;
align-items: center;
gap: 12px;
padding: 12px;
background: var(--bg-card);
border-radius: var(--radius-sm);
margin-bottom: 8px;
cursor: pointer;
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.list-thumb {
width: 52px;
height: 52px;
border-radius: var(--radius-xs);
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
flex-shrink: 0;
}
.list-info {
flex: 1;
min-width: 0;
}
.list-info p {
font-size: 14px;
font-weight: 500;
}
.list-info small {
font-size: 11px;
color: var(--text-tertiary);
}
.list-freq {
font-size: 12px;
color: var(--text-secondary);
white-space: nowrap;
}
/* Add Page */
.photo-upload-area {
width: 100%;
aspect-ratio: 1;
border-radius: var(--radius);
overflow: hidden;
margin-bottom: 12px;
cursor: pointer;
background: var(--bg-card);
border: 2px dashed var(--border);
display: flex;
align-items: center;
justify-content: center;
transition: border-color 0.2s;
}
.photo-upload-area:hover {
border-color: var(--accent);
}
.upload-placeholder {
text-align: center;
}
.upload-icon {
margin-bottom: 12px;
}
.upload-placeholder p {
font-size: 15px;
color: var(--text-secondary);
margin-bottom: 4px;
}
.upload-placeholder small {
font-size: 12px;
color: var(--text-tertiary);
}
.upload-preview {
text-align: center;
padding: 40px;
}
.upload-preview.hidden {
display: none;
}
.preview-placeholder {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
}
.retake-btn {
margin-top: 16px;
padding: 8px 20px;
border-radius: 20px;
border: 1px solid var(--border);
background: none;
font-size: 13px;
cursor: pointer;
}
.ai-badge {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 14px;
background: var(--accent-light);
border-radius: var(--radius-sm);
font-size: 13px;
color: #B8734A;
margin-bottom: 20px;
}
/* Forms */
.form-section {
margin-bottom: 24px;
}
.form-section h3 {
font-size: 16px;
font-weight: 600;
margin-bottom: 12px;
}
.form-group {
margin-bottom: 14px;
}
.form-group label {
display: block;
font-size: 13px;
font-weight: 500;
color: var(--text-secondary);
margin-bottom: 6px;
}
.form-input, .form-select {
width: 100%;
padding: 12px 14px;
border-radius: var(--radius-sm);
border: 1px solid var(--border);
background: var(--bg-card);
font-size: 15px;
outline: none;
color: var(--text-primary);
appearance: none;
-webkit-appearance: none;
}
.form-select {
background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 14px center;
padding-right: 40px;
}
.form-input:focus, .form-select:focus {
border-color: var(--accent);
}
.form-row {
display: flex;
gap: 12px;
}
.form-group.half {
flex: 1;
}
.color-picker {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.color-dot {
width: 32px;
height: 32px;
border-radius: 50%;
cursor: pointer;
transition: transform 0.15s;
position: relative;
}
.color-dot:active {
transform: scale(0.9);
}
.color-dot.active::after {
content: '✓';
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 14px;
font-weight: 700;
text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.color-dot[style*="f5f5f5"].active::after {
color: var(--text-primary);
text-shadow: none;
}
.tag-select {
display: flex;
gap: 8px;
flex-wrap: wrap;
margin-bottom: 14px;
}
.selectable-tag {
padding: 7px 16px;
border-radius: 20px;
border: 1px solid var(--border);
background: var(--bg-card);
font-size: 13px;
cursor: pointer;
transition: all 0.2s;
}
.selectable-tag.active {
background: var(--text-primary);
color: white;
border-color: var(--text-primary);
}
.form-range {
width: 100%;
height: 4px;
-webkit-appearance: none;
background: var(--border);
border-radius: 2px;
outline: none;
}
.form-range::-webkit-slider-thumb {
-webkit-appearance: none;
width: 20px;
height: 20px;
border-radius: 50%;
background: var(--text-primary);
cursor: pointer;
}
.range-labels {
display: flex;
justify-content: space-between;
font-size: 11px;
color: var(--text-tertiary);
margin-top: 4px;
}
.primary-btn {
width: 100%;
padding: 14px;
border-radius: var(--radius-sm);
border: none;
background: var(--text-primary);
color: white;
font-size: 16px;
font-weight: 600;
cursor: pointer;
margin-top: 8px;
transition: opacity 0.15s;
}
.primary-btn:active {
opacity: 0.85;
}
/* Detail Page */
.detail-hero {
margin: 0 -20px;
}
.detail-img {
width: 100%;
aspect-ratio: 1;
display: flex;
align-items: center;
justify-content: center;
}
.detail-info-card {
padding: 20px 0 16px;
}
.detail-info-card h2 {
font-size: 22px;
font-weight: 700;
margin-bottom: 10px;
}
.detail-tags {
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.detail-tag {
padding: 4px 12px;
border-radius: 14px;
background: var(--bg-warm);
font-size: 12px;
color: var(--text-secondary);
}
.detail-stats {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 1px;
background: var(--border);
border-radius: var(--radius-sm);
overflow: hidden;
margin-bottom: 20px;
}
.detail-stat {
background: var(--bg-card);
padding: 16px;
text-align: center;
}
.detail-stat-num {
display: block;
font-size: 22px;
font-weight: 700;
}
.detail-stat-label {
display: block;
font-size: 11px;
color: var(--text-secondary);
margin-top: 2px;
}
.detail-section {
margin-bottom: 20px;
}
.detail-section h3 {
font-size: 15px;
font-weight: 600;
margin-bottom: 10px;
}
.info-row {
display: flex;
justify-content: space-between;
padding: 10px 0;
border-bottom: 1px solid var(--border);
font-size: 14px;
}
.info-row span:first-child {
color: var(--text-secondary);
}
.outfit-mini-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.outfit-mini {
display: flex;
align-items: center;
gap: 12px;
padding: 12px;
background: var(--bg-card);
border-radius: var(--radius-sm);
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.mini-items {
display: flex;
gap: 4px;
font-size: 20px;
}
.outfit-mini p {
font-size: 13px;
color: var(--text-secondary);
}
/* Outfit Page */
.outfit-filters {
margin-bottom: 16px;
}
.filter-group {
margin-bottom: 10px;
}
.filter-group label {
font-size: 13px;
font-weight: 500;
color: var(--text-secondary);
margin-bottom: 6px;
display: block;
}
.filter-btns {
display: flex;
gap: 6px;
}
.outfit-result-list {
display: flex;
flex-direction: column;
gap: 16px;
}
.outfit-result-card {
background: var(--bg-card);
border-radius: var(--radius);
padding: 16px;
box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.outfit-result-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
}
.outfit-result-tag {
padding: 4px 12px;
border-radius: 12px;
background: var(--accent-peach);
font-size: 13px;
color: #B8734A;
font-weight: 600;
}
.outfit-result-score {
font-size: 13px;
color: var(--success);
font-weight: 500;
}
.outfit-result-items {
display: flex;
gap: 8px;
margin-bottom: 12px;
}
.result-item {
flex: 1;
aspect-ratio: 1;
border-radius: var(--radius-sm);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 2px;
}
.result-item span {
font-size: 24px;
}
.result-item small {
font-size: 10px;
color: var(--text-secondary);
}
.outfit-result-ai {
background: var(--accent-light);
border-radius: var(--radius-sm);
padding: 12px;
margin-bottom: 12px;
}
.ai-label {
font-size: 12px;
font-weight: 600;
color: #B8734A;
margin-bottom: 4px;
}
.ai-text {
font-size: 13px;
color: var(--text-secondary);
line-height: 1.5;
}
.outfit-result-actions {
display: flex;
gap: 8px;
}
/* Calendar */
.calendar-month {
background: var(--bg-card);
border-radius: var(--radius);
padding: 16px;
margin-bottom: 20px;
box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.calendar-nav {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
}
.calendar-nav h3 {
font-size: 16px;
font-weight: 600;
}
.calendar-weekdays {
display: grid;
grid-template-columns: repeat(7, 1fr);
text-align: center;
margin-bottom: 8px;
}
.calendar-weekdays span {
font-size: 12px;
color: var(--text-tertiary);
font-weight: 500;
}
.calendar-days {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 4px;
text-align: center;
}
.day {
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 12px;
font-size: 14px;
margin: 0 auto;
cursor: pointer;
}
.day.empty {
cursor: default;
}
.day.active {
background: var(--text-primary);
color: white;
font-weight: 600;
}
.day.has-outfit::after {
content: '';
position: absolute;
bottom: 4px;
width: 4px;
height: 4px;
border-radius: 50%;
background: var(--accent);
}
.calendar-detail {
margin-bottom: 20px;
}
.calendar-detail h3 {
font-size: 16px;
font-weight: 600;
margin-bottom: 10px;
}
.calendar-outfit-card {
display: flex;
align-items: center;
gap: 14px;
padding: 14px;
background: var(--bg-card);
border-radius: var(--radius-sm);
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.outfit-mini-items {
display: flex;
gap: 2px;
font-size: 20px;
}
.calendar-outfit-info p {
font-size: 14px;
font-weight: 500;
}
.calendar-outfit-info small {
font-size: 12px;
color: var(--text-tertiary);
}
.calendar-history h3 {
font-size: 16px;
font-weight: 600;
margin-bottom: 10px;
}
.history-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.history-item {
display: flex;
align-items: center;
gap: 12px;
padding: 12px;
background: var(--bg-card);
border-radius: var(--radius-sm);
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.history-date {
text-align: center;
min-width: 36px;
}
.history-day {
font-size: 18px;
font-weight: 700;
display: block;
}
.history-date small {
font-size: 10px;
color: var(--text-tertiary);
}
.history-items {
display: flex;
gap: 4px;
font-size: 18px;
flex: 1;
}
.history-label {
font-size: 12px;
padding: 3px 10px;
border-radius: 10px;
background: var(--bg-warm);
color: var(--text-secondary);
}
/* Profile */
.profile-header {
text-align: center;
padding: 20px 0 24px;
}
.avatar {
width: 72px;
height: 72px;
border-radius: 50%;
background: var(--bg-warm);
display: flex;
align-items: center;
justify-content: center;
font-size: 32px;
margin: 0 auto 10px;
}
.profile-header h2 {
font-size: 20px;
font-weight: 700;
}
.profile-header p {
font-size: 13px;
color: var(--text-secondary);
margin-top: 2px;
}
.profile-stats {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
gap: 1px;
background: var(--border);
border-radius: var(--radius-sm);
overflow: hidden;
margin-bottom: 24px;
}
.profile-stat {
background: var(--bg-card);
padding: 14px 8px;
text-align: center;
}
.ps-num {
display: block;
font-size: 20px;
font-weight: 700;
}
.ps-label {
display: block;
font-size: 11px;
color: var(--text-secondary);
margin-top: 2px;
}
.menu-section {
background: var(--bg-card);
border-radius: var(--radius);
overflow: hidden;
margin-bottom: 16px;
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.menu-item {
display: flex;
align-items: center;
gap: 12px;
padding: 14px 16px;
cursor: pointer;
border-bottom: 1px solid var(--border);
transition: background 0.15s;
}
.menu-item:last-child {
border-bottom: none;
}
.menu-item:active {
background: var(--bg);
}
.menu-icon {
font-size: 20px;
width: 28px;
text-align: center;
}
.menu-item span {
flex: 1;
font-size: 15px;
font-weight: 500;
}
/* Bottom Navigation */
.bottom-nav {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 80px;
background: var(--bg-card);
display: flex;
justify-content: space-around;
align-items: flex-start;
padding-top: 8px;
border-top: 1px solid var(--border);
z-index: 20;
}
.nav-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
background: none;
border: none;
color: var(--text-tertiary);
cursor: pointer;
padding: 4px 8px;
transition: color 0.2s;
}
.nav-item.active {
color: var(--text-primary);
}
.nav-item span {
font-size: 10px;
font-weight: 500;
}
.center-btn {
margin-top: -20px;
}
.center-btn-circle {
width: 52px;
height: 52px;
border-radius: 50%;
background: var(--text-primary);
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
transition: transform 0.15s;
}
.center-btn:active .center-btn-circle {
transform: scale(0.92);
}
/* Toast */
.toast {
position: absolute;
top: 80px;
left: 50%;
transform: translateX(-50%);
padding: 10px 24px;
border-radius: 20px;
background: rgba(0,0,0,0.8);
color: white;
font-size: 14px;
font-weight: 500;
z-index: 100;
transition: opacity 0.3s, transform 0.3s;
}
.toast.hidden {
opacity: 0;
transform: translateX(-50%) translateY(-10px);
pointer-events: none;
}
/* Modal */
.modal-overlay {
position: absolute;
inset: 0;
background: rgba(0,0,0,0.4);
display: flex;
align-items: center;
justify-content: center;
z-index: 50;
padding: 40px;
}
.modal-overlay.hidden {
display: none;
}
.modal {
background: var(--bg-card);
border-radius: var(--radius);
padding: 24px;
width: 100%;
}
.modal h3 {
font-size: 18px;
font-weight: 600;
margin-bottom: 8px;
}
.modal p {
font-size: 14px;
color: var(--text-secondary);
line-height: 1.5;
margin-bottom: 20px;
}
.modal-actions {
display: flex;
gap: 10px;
}
.modal-btn {
flex: 1;
padding: 12px;
border-radius: var(--radius-sm);
border: none;
font-size: 15px;
font-weight: 500;
cursor: pointer;
}
.modal-btn.cancel {
background: var(--bg-warm);
color: var(--text-primary);
}
.modal-btn.confirm {
background: var(--danger);
color: white;
}