|
@@ -1,123 +1,358 @@
|
|
|
+@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');
|
|
|
+
|
|
|
+:root {
|
|
|
+ --primary-color: #667eea;
|
|
|
+ --primary-dark: #764ba2;
|
|
|
+ --accent-color: #ff6b6b;
|
|
|
+ --text-color: #333;
|
|
|
+ --light-text: #777;
|
|
|
+ --bg-color: #f8f9fa;
|
|
|
+ --card-bg: white;
|
|
|
+}
|
|
|
+
|
|
|
+body {
|
|
|
+ font-family: 'Noto Sans SC', sans-serif;
|
|
|
+ color: var(--text-color);
|
|
|
+ background-color: var(--bg-color);
|
|
|
+ margin: 0;
|
|
|
+ padding: 0;
|
|
|
+}
|
|
|
+
|
|
|
+.header {
|
|
|
+ background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
|
|
|
+ color: white;
|
|
|
+ padding: 2rem 1rem;
|
|
|
+ text-align: center;
|
|
|
+ box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
|
|
+
|
|
|
+ h1 {
|
|
|
+ margin: 0;
|
|
|
+ font-size: 2.2rem;
|
|
|
+ font-weight: 700;
|
|
|
+ }
|
|
|
+
|
|
|
+ p {
|
|
|
+ margin: 0.5rem 0 0;
|
|
|
+ font-size: 1rem;
|
|
|
+ opacity: 0.9;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
.fitting-room-container {
|
|
|
- margin: 20px;
|
|
|
+ max-width: 800px;
|
|
|
+ margin: 20px auto;
|
|
|
+ padding: 0 20px;
|
|
|
}
|
|
|
|
|
|
.ar-camera {
|
|
|
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
|
- border-radius: 20px;
|
|
|
- height: 400px;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- color: white;
|
|
|
- font-size: 18px;
|
|
|
- margin-bottom: 20px;
|
|
|
- position: relative;
|
|
|
- overflow: hidden;
|
|
|
- cursor: pointer;
|
|
|
+ background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
|
|
|
+ border-radius: 20px;
|
|
|
+ height: 400px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ color: white;
|
|
|
+ font-size: 18px;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ position: relative;
|
|
|
+ overflow: hidden;
|
|
|
+ cursor: pointer;
|
|
|
+ transition: all 0.3s ease;
|
|
|
+
|
|
|
+ &:hover:not(.active) {
|
|
|
+ transform: translateY(-5px);
|
|
|
+ box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
|
|
|
+ }
|
|
|
+
|
|
|
+ &::before {
|
|
|
+ content: '';
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ bottom: 0;
|
|
|
+ background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
|
|
|
+ }
|
|
|
+
|
|
|
+ &.active {
|
|
|
+ background: #222;
|
|
|
|
|
|
&::before {
|
|
|
- content: '';
|
|
|
- position: absolute;
|
|
|
- top: 0;
|
|
|
- left: 0;
|
|
|
- right: 0;
|
|
|
- bottom: 0;
|
|
|
- background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
|
|
|
+ opacity: 0.5;
|
|
|
}
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.camera-content {
|
|
|
- text-align: center;
|
|
|
- z-index: 2;
|
|
|
- position: relative;
|
|
|
+ text-align: center;
|
|
|
+ z-index: 2;
|
|
|
+ position: relative;
|
|
|
+ padding: 20px;
|
|
|
}
|
|
|
|
|
|
.camera-icon {
|
|
|
- font-size: 80px;
|
|
|
- margin-bottom: 20px;
|
|
|
- animation: pulse 2s infinite;
|
|
|
+ font-size: 80px;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ animation: pulse 2s infinite;
|
|
|
}
|
|
|
|
|
|
.camera-desc {
|
|
|
- font-size: 14px;
|
|
|
- opacity: 0.8;
|
|
|
- margin-top: 8px;
|
|
|
+ font-size: 14px;
|
|
|
+ opacity: 0.8;
|
|
|
+ margin-top: 8px;
|
|
|
+}
|
|
|
+
|
|
|
+.ar-preview {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ bottom: 0;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ z-index: 1;
|
|
|
+}
|
|
|
+
|
|
|
+.ar-overlay {
|
|
|
+ position: relative;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+}
|
|
|
+
|
|
|
+.scanning-animation {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ height: 3px;
|
|
|
+ background: var(--accent-color);
|
|
|
+ animation: scan 3s infinite;
|
|
|
+ box-shadow: 0 0 10px var(--accent-color);
|
|
|
+}
|
|
|
+
|
|
|
+.ar-instruction {
|
|
|
+ position: absolute;
|
|
|
+ bottom: 30px;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 16px;
|
|
|
+ background: rgba(0,0,0,0.7);
|
|
|
+ padding: 10px;
|
|
|
+ border-radius: 20px;
|
|
|
+ margin: 0 40px;
|
|
|
+}
|
|
|
+
|
|
|
+@keyframes scan {
|
|
|
+ 0% { top: 0; }
|
|
|
+ 50% { top: 100%; }
|
|
|
+ 100% { top: 0; }
|
|
|
}
|
|
|
|
|
|
@keyframes pulse {
|
|
|
- 0%, 100% { transform: scale(1); }
|
|
|
- 50% { transform: scale(1.1); }
|
|
|
+ 0%, 100% { transform: scale(1); }
|
|
|
+ 50% { transform: scale(1.1); }
|
|
|
}
|
|
|
|
|
|
.body-settings {
|
|
|
- background: white;
|
|
|
- border-radius: 15px;
|
|
|
- padding: 20px;
|
|
|
- margin-bottom: 20px;
|
|
|
- box-shadow: 0 5px 20px rgba(0,0,0,0.1);
|
|
|
+ background: var(--card-bg);
|
|
|
+ border-radius: 15px;
|
|
|
+ padding: 20px;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ box-shadow: 0 5px 20px rgba(0,0,0,0.1);
|
|
|
+
|
|
|
+ h4 {
|
|
|
+ margin-bottom: 15px;
|
|
|
+ font-size: 16px;
|
|
|
+ color: var(--primary-dark);
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
|
|
|
- h4 {
|
|
|
- margin-bottom: 15px;
|
|
|
- font-size: 16px;
|
|
|
+ &::before {
|
|
|
+ content: '👤';
|
|
|
+ margin-right: 8px;
|
|
|
}
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.settings-grid {
|
|
|
- display: grid;
|
|
|
- grid-template-columns: repeat(2, 1fr);
|
|
|
- gap: 15px;
|
|
|
+ display: grid;
|
|
|
+ grid-template-columns: repeat(2, 1fr);
|
|
|
+ gap: 15px;
|
|
|
+
|
|
|
+ @media (max-width: 600px) {
|
|
|
+ grid-template-columns: 1fr;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.setting-item {
|
|
|
- label {
|
|
|
- display: block;
|
|
|
- font-size: 14px;
|
|
|
- color: #666;
|
|
|
- margin-bottom: 5px;
|
|
|
- }
|
|
|
-
|
|
|
- input[type="range"] {
|
|
|
- width: 100%;
|
|
|
- }
|
|
|
-
|
|
|
- span {
|
|
|
- font-size: 12px;
|
|
|
- color: #999;
|
|
|
- }
|
|
|
+ label {
|
|
|
+ display: block;
|
|
|
+ font-size: 14px;
|
|
|
+ color: var(--light-text);
|
|
|
+ margin-bottom: 5px;
|
|
|
+ font-weight: 500;
|
|
|
+ }
|
|
|
+
|
|
|
+ input[type="range"] {
|
|
|
+ width: 100%;
|
|
|
+ margin: 8px 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ span, .measurement-value {
|
|
|
+ font-size: 14px;
|
|
|
+ color: var(--text-color);
|
|
|
+ font-weight: 500;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.full-width {
|
|
|
+ grid-column: 1 / -1;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.body-preview {
|
|
|
+ height: 120px;
|
|
|
+ background: linear-gradient(to right, #f5f5f5, #e0e0e0);
|
|
|
+ border-radius: 10px;
|
|
|
+ position: relative;
|
|
|
+ overflow: hidden;
|
|
|
+ margin-top: 10px;
|
|
|
+}
|
|
|
+
|
|
|
+.body-shape {
|
|
|
+ position: absolute;
|
|
|
+ bottom: 0;
|
|
|
+ left: 50%;
|
|
|
+ transform: translateX(-50%);
|
|
|
+ width: 60px;
|
|
|
+ background: linear-gradient(to bottom, #ff9a9e, #fecfef);
|
|
|
+ border-radius: 30px 30px 0 0;
|
|
|
+ transition: height 0.3s ease;
|
|
|
}
|
|
|
|
|
|
.scene-selector {
|
|
|
- background: white;
|
|
|
- border-radius: 15px;
|
|
|
- padding: 20px;
|
|
|
- box-shadow: 0 5px 20px rgba(0,0,0,0.1);
|
|
|
+ background: var(--card-bg);
|
|
|
+ border-radius: 15px;
|
|
|
+ padding: 20px;
|
|
|
+ box-shadow: 0 5px 20px rgba(0,0,0,0.1);
|
|
|
+
|
|
|
+ h4 {
|
|
|
+ margin-bottom: 15px;
|
|
|
+ font-size: 16px;
|
|
|
+ color: var(--primary-dark);
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
|
|
|
- h4 {
|
|
|
- margin-bottom: 15px;
|
|
|
- font-size: 16px;
|
|
|
+ &::before {
|
|
|
+ content: '🌍';
|
|
|
+ margin-right: 8px;
|
|
|
+ }
|
|
|
+
|
|
|
+ span {
|
|
|
+ margin-left: 8px;
|
|
|
+ font-weight: normal;
|
|
|
+ color: var(--light-text);
|
|
|
}
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.scenes {
|
|
|
- display: flex;
|
|
|
- gap: 10px;
|
|
|
- overflow-x: auto;
|
|
|
+ display: grid;
|
|
|
+ grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
|
|
|
+ gap: 12px;
|
|
|
}
|
|
|
|
|
|
.scene-item {
|
|
|
- min-width: 80px;
|
|
|
- height: 80px;
|
|
|
- border-radius: 12px;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- font-size: 24px;
|
|
|
- cursor: pointer;
|
|
|
- transition: all 0.3s ease;
|
|
|
- background: linear-gradient(45deg, var(--scene-bg-start, #ff9a9e), var(--scene-bg-end, #fecfef));
|
|
|
+ height: 120px;
|
|
|
+ border-radius: 12px;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ cursor: pointer;
|
|
|
+ transition: all 0.3s ease;
|
|
|
+ position: relative;
|
|
|
+ overflow: hidden;
|
|
|
+ border: 2px solid transparent;
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ transform: translateY(-5px);
|
|
|
+ box-shadow: 0 5px 15px rgba(0,0,0,0.1);
|
|
|
+ }
|
|
|
+
|
|
|
+ &.active {
|
|
|
+ border-color: var(--primary-color);
|
|
|
+ box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
|
|
|
|
|
|
- &:hover {
|
|
|
- transform: scale(1.05);
|
|
|
+ &::after {
|
|
|
+ content: '✓';
|
|
|
+ position: absolute;
|
|
|
+ top: 5px;
|
|
|
+ right: 5px;
|
|
|
+ width: 20px;
|
|
|
+ height: 20px;
|
|
|
+ background: var(--primary-color);
|
|
|
+ color: white;
|
|
|
+ border-radius: 50%;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ font-size: 12px;
|
|
|
}
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.scene-icon {
|
|
|
+ font-size: 32px;
|
|
|
+ margin-bottom: 8px;
|
|
|
+}
|
|
|
+
|
|
|
+.scene-name {
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 500;
|
|
|
+}
|
|
|
+
|
|
|
+.custom-notification {
|
|
|
+ position: fixed;
|
|
|
+ bottom: 20px;
|
|
|
+ left: 50%;
|
|
|
+ transform: translateX(-50%) translateY(100px);
|
|
|
+ background: rgba(0,0,0,0.8);
|
|
|
+ color: white;
|
|
|
+ padding: 12px 20px;
|
|
|
+ border-radius: 8px;
|
|
|
+ z-index: 1000;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: center;
|
|
|
+ transition: transform 0.3s ease;
|
|
|
+
|
|
|
+ strong {
|
|
|
+ font-weight: 500;
|
|
|
+ margin-bottom: 4px;
|
|
|
+ }
|
|
|
+
|
|
|
+ span {
|
|
|
+ font-size: 14px;
|
|
|
+ opacity: 0.9;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.show {
|
|
|
+ transform: translateX(-50%) translateY(0);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// 响应式调整
|
|
|
+@media (max-width: 480px) {
|
|
|
+ .ar-camera {
|
|
|
+ height: 300px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .scenes {
|
|
|
+ grid-template-columns: repeat(2, 1fr);
|
|
|
+ }
|
|
|
}
|