* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
color: #333;
overflow-x: hidden;
}
.game-container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
background: rgba(255, 255, 255, 0.95);
border-radius: 20px;
padding: 15px 30px;
margin-bottom: 20px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.header h1 {
font-size: 28px;
background: linear-gradient(45deg, #ff6b6b, #ee5a24, #f0932b);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.coins-display {
background: linear-gradient(45deg, #ffd700, #ffb347);
padding: 8px 20px;
border-radius: 25px;
font-size: 20px;
font-weight: bold;
color: #fff;
box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}
.main-area {
display: flex;
gap: 20px;
margin-bottom: 20px;
}
.character-section {
flex: 1;
background: rgba(255, 255, 255, 0.95);
border-radius: 20px;
padding: 20px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.character-stage {
position: relative;
width: 300px;
height: 400px;
margin: 0 auto 20px;
border-radius: 15px;
overflow: hidden;
border: 3px solid #ddd;
}
.stage-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(180deg, #87CEEB 0%, #98D8E8 50%, #F7DC6F 100%);
z-index: 0;
transition: background 0.5s ease;
}
.character {
position: relative;
width: 100%;
height: 100%;
z-index: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-end;
}
.hair {
width: 120px;
height: 80px;
background: #2C2C2C;
border-radius: 60px 60px 20px 20px;
position: absolute;
top: 20px;
z-index: 3;
transition: all 0.3s ease;
}
.face {
width: 100px;
height: 110px;
background: #FFE0BD;
border-radius: 50%;
position: absolute;
top: 60px;
z-index: 2;
}
.eyes {
display: flex;
justify-content: space-around;
margin-top: 35px;
padding: 0 15px;
}
.eye {
width: 18px;
height: 22px;
background: #2C2C2C;
border-radius: 50%;
animation: blink 4s infinite;
}
@keyframes blink {
0%, 90%, 100% { height: 22px; }
93% { height: 3px; }
96% { height: 22px; }
}
.blush {
width: 18px;
height: 12px;
background: rgba(255, 105, 180, 0.4);
border-radius: 50%;
position: absolute;
top: 65px;
}
.left-blush { left: 12px; }
.right-blush { right: 12px; }
.mouth {
width: 25px;
height: 12px;
border-bottom: 3px solid #E74C3C;
border-radius: 0 0 15px 15px;
position: absolute;
bottom: 25px;
left: 50%;
transform: translateX(-50%);
}
.body {
width: 130px;
height: 120px;
background: #3498DB;
border-radius: 20px 20px 10px 10px;
position: absolute;
top: 160px;
z-index: 2;
transition: all 0.3s ease;
}
.legs {
width: 120px;
height: 90px;
background: #2C3E50;
border-radius: 10px 10px 20px 20px;
position: absolute;
top: 270px;
z-index: 1;
transition: all 0.3s ease;
}
.shoes {
width: 130px;
height: 30px;
background: #8B4513;
border-radius: 10px;
position: absolute;
bottom: 0;
z-index: 2;
transition: all 0.3s ease;
}
.accessory {
position: absolute;
top: 5px;
z-index: 4;
font-size: 40px;
transition: all 0.3s ease;
}
.effects {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 5;
pointer-events: none;
}
.action-buttons {
display: flex;
justify-content: center;
gap: 10px;
flex-wrap: wrap;
}
.btn {
padding: 10px 20px;
border: none;
border-radius: 25px;
font-size: 14px;
font-weight: bold;
cursor: pointer;
transition: all 0.3s ease;
color: white;
}
.btn:hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.btn-save { background: linear-gradient(45deg, #ee5a24, #f0932b); }
.btn-random { background: linear-gradient(45deg, #6c5ce7, #a29bfe); }
.btn-reset { background: linear-gradient(45deg, #e17055, #fab1a0); }
.btn-share { background: linear-gradient(45deg, #00b894, #55efc4); }
.btn-confirm { background: linear-gradient(45deg, #0984e3, #74b9ff); }
.wardrobe-section {
flex: 1;
background: rgba(255, 255, 255, 0.95);
border-radius: 20px;
padding: 20px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
}
.category-tabs {
display: flex;
gap: 8px;
margin-bottom: 15px;
flex-wrap: wrap;
}
.tab {
padding: 8px 16px;
border: 2px solid #ddd;
border-radius: 20px;
background: white;
cursor: pointer;
font-size: 14px;
transition: all 0.3s ease;
}
.tab.active {
background: linear-gradient(45deg, #667eea, #764ba2);
color: white;
border-color: transparent;
}
.tab:hover:not(.active) {
border-color: #667eea;
}
.items-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
overflow-y: auto;
max-height: 350px;
padding: 5px;
}
.item-card {
background: #f8f9fa;
border: 2px solid transparent;
border-radius: 12px;
padding: 15px;
text-align: center;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
}
.item-card:hover {
transform: scale(1.05);
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.item-card.selected {
border-color: #667eea;
background: #e8ecff;
}
.item-card.locked {
opacity: 0.5;
cursor: not-allowed;
}
.item-icon {
font-size: 36px;
margin-bottom: 5px;
}
.item-name {
font-size: 12px;
color: #666;
}
.item-price {
font-size: 11px;
color: #f39c12;
font-weight: bold;
margin-top: 3px;
}
.collection-section {
background: rgba(255, 255, 255, 0.95);
border-radius: 20px;
padding: 20px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.collection-section h2 {
margin-bottom: 15px;
color: #e84393;
}
.saved-looks {
display: flex;
gap: 15px;
flex-wrap: wrap;
}
.empty-hint {
color: #999;
text-align: center;
width: 100%;
padding: 20px;
}
.saved-card {
width: 120px;
height: 160px;
background: linear-gradient(180deg, #87CEEB, #F7DC6F);
border-radius: 10px;
border: 2px solid #ddd;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
display: flex;
align-items: center;
justify-content: center;
font-size: 40px;
}
.saved-card:hover {
transform: scale(1.05);
border-color: #e84393;
}
.saved-card .delete-btn {
position: absolute;
top: 5px;
right: 5px;
background: rgba(255, 0, 0, 0.7);
color: white;
border: none;
border-radius: 50%;
width: 20px;
height: 20px;
cursor: pointer;
font-size: 12px;
}
.toast {
position: fixed;
top: 20px;
left: 50%;
transform: translateX(-50%) translateY(-100px);
background: rgba(0, 0, 0, 0.8);
color: white;
padding: 12px 30px;
border-radius: 25px;
font-size: 14px;
transition: transform 0.3s ease;
z-index: 1000;
}
.toast.show {
transform: translateX(-50%) translateY(0);
}
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 999;
align-items: center;
justify-content: center;
}
.modal.show {
display: flex;
}
.modal-content {
background: white;
padding: 30px;
border-radius: 20px;
text-align: center;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.modal-content h2 {
margin-bottom: 10px;
color: #e84393;
}
.modal-content p {
color: #666;
margin-bottom: 20px;
}
@media (max-width: 768px) {
.main-area {
flex-direction: column;
}
.header h1 {
font-size: 20px;
}
.items-grid {
grid-template-columns: repeat(2, 1fr);
}
}