电脑版
首页

搜索 繁体

代码(5/7)

代码











李司青的手机







@import url(&039;https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap&039;);

* {

margin: 0;

padding: 0;

box-sizing: border-box;

font-family: &039;Inter&039;, -apple-system, BlinkMacSystemFont, sans-serif;

}

body {

background: linear-gradient(135deg, 1a1a1a 0%, 2d2d2d 100%);

display: flex;

flex-direction: column;

align-items: center;

justify-content: center;

min-height: 100vh;

padding: 2rem;

color: 333;

}

.phone-frame {

width: 360px;

height: 700px;

background: linear-gradient(145deg, 0a0a0a, 1a1a1a);

border-radius: 42px;

padding: 12px;

position: relative;

box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6),

0 0 0 1px rgba(255, 255, 255, 0.05) inset,

0 8px 32px rgba(0, 0, 0, 0.4);

overflow: hidden;

}

.screen {

width: 100%;

height: 100%;

background: white;

border-radius: 36px;

overflow: hidden;

position: relative;

transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);

}

.status-bar {

height: 44px;

display: flex;

justify-content: space-between;

align-items: center;

padding: 0 20px;

font-size: 14px;

font-weight: 600;

background: rgba(255, 255, 255, 0.8);

backdrop-filter: blur(10px);

border-bottom: 1px solid rgba(0, 0, 0, 0.05);

}

.home-indicator {

width: 120px;

height: 5px;

background: 000;

border-radius: 3px;

position: absolute;

bottom: 12px;

left: 50%;

transform: translateX(-50%);

transition: all 0.3s ease;

}

.home-indicator:hover {

height: 7px;

background: 333;

}

.app-grid {

display: grid;

grid-template-columns: repeat(4, 1fr);

gap: 20px;

padding: 24px;

margin-top: 10px;

}

.app-icon {

display: flex;

flex-direction: column;

align-items: center;

cursor: pointer;

transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);

position: relative;

}

.app-icon:hover {

transform: translateY(-5px);

}

.app-icon .icon {

width: 64px;

height: 64px;

border-radius: 16px;

display: flex;

justify-content: center;

align-items: center;

margin-bottom: 8px;

font-size: 24px;

box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

transition: all 0.3s ease;

}

.app-icon:hover .icon {

box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);

}

.app-name {

font-size: 12px;

font-weight: 500;

color: 000;

}

.nav-bar {

height: 80px;

background: rgba(255, 255, 255, 0.9);

backdrop-filter: blur(20px);

border-top: 1px solid rgba(0, 0, 0, 0.05);

display: flex;

align-items: center;

justify-content: space-around;

position: absolute;

bottom: 0;

left: 0;

right: 0;

padding-bottom: 10px;

}

.nav-item {

display: flex;

flex-direction: column;

align-items: center;

cursor: pointer;

transition: all 0.2s ease;

}

.nav-item:hover {

transform: translateY(-2px);

}

.nav-icon {

font-size: 20px;

margin-bottom: 4px;

}

.nav-label {

font-size: 10px;

font-weight: 500;

}

.tab-active {

color: 000;

}

.tab-inactive {

color: 8e8e93;

}

.app-header {

padding: 16px 20px;

border-bottom: 1px solid rgba(0, 0, 0, 0.05);

display: flex;

align-items: center;

justify-content: space-between;

background: rgba(255, 255, 255, 0.9);

backdrop-filter: blur(10px);

position: sticky;

top: 0;

z-index: 10;

}

.back-btn {

cursor: pointer;

transition: all 0.2s ease;

width: 32px;

height: 32px;

display: flex;

align-items: center;

justify-content: center;

border-radius: 8px;

}

.back-btn:hover {

background: rgba(0, 0, 0, 0.05);

transform: scale(1.05);

}

.card {

background: white;

border-radius: 16px;

padding: 18px;

margin-bottom: 16px;

box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);

border: 1px solid rgba(0, 0, 0, 0.03);

transition: all 0.3s ease;

}

.card:hover {

box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

transform: translateY(-2px);

}

.chat-bubble {

max-width: 75%;

border-radius: 18px;

padding: 12px 16px;

margin-bottom: 12px;

box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);

position: relative;

animation: fadeIn 0.3s ease;

}

@keyframes fadeIn {

from { opacity: 0; transform: translateY(10px); }

to { opacity: 1; transform: translateY(0); }

}

.chat-left {

background: f1f1f1;

热门小说推荐

最近更新小说