📜 使用说明:本文档为优雅复古风格的UI设计规范示例文档。
🎭 目的:定义基于20世纪初期印刷品美学的设计理念,重现古典印刷工艺的精致细节,营造温暖怀旧且充满文化底蕴的视觉体验。
古典雅致 · 印刷美学 · 温暖怀旧
深度还原20世纪初期的优雅印刷美学,通过仿古纸张质感、经典衬线字体和传统印刷色调,创造如同翻阅古老书籍般的温馨体验。设计强调文化传承与工艺精神,每个细节都体现出对传统印刷艺术的敬意,如同百年老牌出版社的经典作品和维多利亚时代的精装书籍。
📚 优雅复古风格 - 传统文化的数字传承
本设计风格专为重视文化传承和古典美学的应用场景设计,适合具有深厚文化底蕴的用户群体:
温润怀旧的传统色调
#F5F1E8
(Parchment - 古老羊皮纸的温润色)#F0E6D2
(Cream - 陈年书页的淡黄色)#FFF8DC
(Ivory - 象牙般的温润白色)#E8DCC6
(Aged Paper - 泛黄书页的怀旧色)#4A3C28
(Deep Brown - 古典印刷的深棕墨色)#8B3A3A
(Dark Red - 传统印刷的暗红色)#2F4F2F
(Forest Green - 古典装帧的墨绿色)#2F4F4F
(Dark Slate - 古典印刷的深蓝色)#B8860B
(Antique Gold - 古典烫金的典雅金色)#CD7F32
(Bronze - 古铜色装饰元素)#C0C0C0
(Silver - 银色装饰细节)#663399
(Royal Purple - 皇家紫色强调色)#556B2F
(Olive Green - 橄榄绿成功提示)#B8860B
(Antique Gold - 古金色警告)#A0522D
(Sienna - 赭石色错误提示)#4682B4
(Steel Blue - 钢蓝色信息提示)传统印刷的优雅字体
.elegant-typography {
font-family: 'Baskerville', 'Garamond', 'Georgia', 'Times New Roman', serif;
font-weight: 400;
line-height: 1.8; /* 古典书籍的宽松行距 */
letter-spacing: 0.02em;
color: #4A3C28;
}
.title-elegant {
font-size: 36px;
font-weight: 600;
line-height: 1.4;
color: #4A3C28;
margin-bottom: 32px;
letter-spacing: 0.05em;
text-align: center;
}
.subtitle-elegant {
font-size: 24px;
font-weight: 500;
line-height: 1.6;
color: #8B3A3A;
margin-bottom: 24px;
letter-spacing: 0.03em;
}
.body-elegant {
font-size: 16px;
font-weight: 400;
line-height: 1.8;
color: #4A3C28;
max-width: 700px;
text-align: justify; /* 两端对齐,如古典书籍 */
}
.caption-elegant {
font-size: 14px;
font-weight: 300;
color: #8B3A3A;
line-height: 1.6;
font-style: italic;
}
.quote-elegant {
font-size: 18px;
font-weight: 400;
line-height: 1.8;
color: #2F4F2F;
font-style: italic;
padding: 24px 32px;
border-left: 4px solid #B8860B;
background: rgba(184, 134, 11, 0.05);
}
.decorative-initial {
float: left;
font-size: 64px;
line-height: 50px;
padding-right: 8px;
padding-top: 4px;
color: #B8860B;
font-family: 'Garamond', serif;
font-weight: 700;
}
.chapter-number {
font-size: 48px;
font-weight: 300;
color: #8B3A3A;
text-align: center;
margin-bottom: 16px;
font-family: 'Baskerville', serif;
}
.ornamental-text {
font-size: 20px;
text-align: center;
color: #B8860B;
font-weight: 500;
letter-spacing: 0.2em;
text-transform: uppercase;
}
古典书籍的版式美学
.page-margins {
--margin-top: 80px;
--margin-bottom: 80px;
--margin-inner: 120px; /* 内侧较宽,便于装订 */
--margin-outer: 80px;
}
.content-area {
max-width: 800px;
margin: 0 auto;
padding: var(--margin-top) var(--margin-outer) var(--margin-bottom);
}
.text-block {
margin-bottom: 32px;
text-indent: 2em; /* 段落首行缩进 */
}
传统工艺美术元素
.btn-elegant-primary {
background: linear-gradient(135deg, #B8860B 0%, #CD7F32 100%);
color: #F5F1E8;
border: 2px solid #B8860B;
border-radius: 8px;
padding: 14px 28px;
font-family: 'Baskerville', serif;
font-size: 16px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
position: relative;
overflow: hidden;
}
.btn-elegant-primary::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: left 0.5s ease;
}
.btn-elegant-primary:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(184, 134, 11, 0.4);
}
.btn-elegant-primary:hover::before {
left: 100%;
}
.btn-elegant-secondary {
background: transparent;
color: #8B3A3A;
border: 2px solid #8B3A3A;
border-radius: 8px;
padding: 12px 26px;
font-family: 'Baskerville', serif;
font-size: 16px;
font-weight: 400;
cursor: pointer;
transition: all 0.3s ease;
}
.btn-elegant-secondary:hover {
background: #8B3A3A;
color: #F5F1E8;
box-shadow: 0 4px 12px rgba(139, 58, 58, 0.3);
}
.card-elegant {
background: #F5F1E8;
border: 1px solid #E8DCC6;
border-radius: 12px;
padding: 32px;
margin-bottom: 32px;
box-shadow: 0 8px 24px rgba(74, 60, 40, 0.12);
position: relative;
overflow: hidden;
}
.card-elegant::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, #B8860B, #CD7F32, #B8860B);
}
.card-elegant-deluxe {
background: linear-gradient(135deg, #F5F1E8 0%, #F0E6D2 100%);
border: 2px solid #B8860B;
box-shadow:
0 8px 24px rgba(74, 60, 40, 0.15),
inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.card-header-elegant {
border-bottom: 2px solid #E8DCC6;
padding-bottom: 16px;
margin-bottom: 24px;
text-align: center;
position: relative;
}
.card-header-elegant::after {
content: '❦';
position: absolute;
bottom: -12px;
left: 50%;
transform: translateX(-50%);
background: #F5F1E8;
color: #B8860B;
font-size: 20px;
padding: 0 8px;
}
.card-title-elegant {
font-size: 22px;
font-weight: 600;
color: #4A3C28;
margin: 0;
font-family: 'Baskerville', serif;
}
.form-elegant {
max-width: 500px;
margin: 0 auto;
background: #F5F1E8;
padding: 40px;
border-radius: 16px;
border: 2px solid #E8DCC6;
box-shadow: 0 12px 32px rgba(74, 60, 40, 0.15);
}
.input-elegant {
width: 100%;
background: #FFF8DC;
border: 2px solid #E8DCC6;
border-radius: 8px;
padding: 14px 18px;
font-family: 'Baskerville', serif;
font-size: 16px;
color: #4A3C28;
outline: none;
transition: all 0.3s ease;
}
.input-elegant:focus {
border-color: #B8860B;
background: #FFFFFF;
box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.1);
}
.input-elegant::placeholder {
color: #8B7355;
font-style: italic;
}
.label-elegant {
display: block;
font-size: 14px;
font-weight: 500;
color: #4A3C28;
margin-bottom: 8px;
font-family: 'Baskerville', serif;
letter-spacing: 0.02em;
}
.select-elegant {
width: 100%;
background: #FFF8DC;
border: 2px solid #E8DCC6;
border-radius: 8px;
padding: 14px 18px;
font-family: 'Baskerville', serif;
font-size: 16px;
color: #4A3C28;
cursor: pointer;
outline: none;
appearance: none;
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%234A3C28' viewBox='0 0 16 16'%3e%3cpath d='M8 13.1l4.7-4.7-1.4-1.4L8 10.3 4.7 7l-1.4 1.4z'/%3e%3c/svg%3e");
background-repeat: no-repeat;
background-position: right 16px center;
background-size: 16px;
}
.checkbox-elegant {
width: 20px;
height: 20px;
border: 2px solid #8B3A3A;
border-radius: 4px;
background: #FFF8DC;
cursor: pointer;
position: relative;
transition: all 0.3s ease;
}
.checkbox-elegant:checked {
background: #8B3A3A;
border-color: #8B3A3A;
}
.checkbox-elegant:checked::after {
content: '✓';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #F5F1E8;
font-size: 14px;
font-weight: bold;
}
传统工艺美术元素
.ornamental-border {
border: 2px solid #B8860B;
border-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3e%3cpath d='M0 10 Q 25 0 50 10 T 100 10' stroke='%23B8860B' stroke-width='2' fill='none'/%3e%3c/svg%3e") 2;
padding: 24px;
margin: 32px 0;
}
.corner-ornament {
position: absolute;
width: 40px;
height: 40px;
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3e%3cpath d='M20 5 Q 35 5 35 20 Q 35 35 20 35 Q 5 35 5 20 Q 5 5 20 5' stroke='%23B8860B' stroke-width='1' fill='none'/%3e%3c/svg%3e");
opacity: 0.6;
}
.corner-ornament.top-left { top: 0; left: 0; }
.corner-ornament.top-right { top: 0; right: 0; transform: scaleX(-1); }
.corner-ornament.bottom-left { bottom: 0; left: 0; transform: scaleY(-1); }
.corner-ornament.bottom-right { bottom: 0; right: 0; transform: scale(-1); }
.fleuron {
text-align: center;
font-size: 24px;
color: #B8860B;
margin: 32px 0;
}
.fleuron::before {
content: '❦ ❦ ❦';
letter-spacing: 16px;
}
.vintage-badge {
display: inline-block;
background: linear-gradient(135deg, #B8860B 0%, #CD7F32 100%);
color: #F5F1E8;
padding: 8px 16px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.1em;
border: 2px solid #B8860B;
box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
position: relative;
}
.vintage-badge::before {
content: '';
position: absolute;
top: -4px;
left: -4px;
right: -4px;
bottom: -4px;
border: 1px solid #B8860B;
border-radius: 24px;
opacity: 0.5;
}
.ribbon {
position: relative;
background: #8B3A3A;
color: #F5F1E8;
padding: 12px 24px;
margin: 16px 0;
font-family: 'Baskerville', serif;
font-weight: 500;
text-align: center;
}
.ribbon::before,
.ribbon::after {
content: '';
position: absolute;
top: 0;
width: 0;
height: 0;
border-style: solid;
}
.ribbon::before {
left: -20px;
border-width: 22px 20px 22px 0;
border-color: transparent #8B3A3A transparent transparent;
}
.ribbon::after {
right: -20px;
border-width: 22px 0 22px 20px;
border-color: transparent transparent transparent #8B3A3A;
}
.elegant-divider {
text-align: center;
margin: 48px 0;
position: relative;
height: 2px;
background: linear-gradient(to right, transparent, #B8860B, transparent);
}
.elegant-divider::before {
content: '◆';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #F5F1E8;
color: #B8860B;
font-size: 16px;
padding: 0 16px;
}
.ornamental-divider {
text-align: center;
margin: 40px 0;
color: #B8860B;
font-size: 20px;
}
.ornamental-divider::before {
content: '❦ ◆ ❦';
letter-spacing: 8px;
}
.chapter-break {
text-align: center;
margin: 64px 0;
padding: 24px 0;
border-top: 2px solid #E8DCC6;
border-bottom: 2px solid #E8DCC6;
color: #8B3A3A;
font-family: 'Baskerville', serif;
font-size: 14px;
font-weight: 500;
letter-spacing: 0.2em;
text-transform: uppercase;
}
传统书籍的页面设计
.page-elegant {
min-height: 100vh;
background: linear-gradient(135deg, #F5F1E8 0%, #F0E6D2 100%);
display: grid;
grid-template-columns: 1fr minmax(320px, 900px) 1fr;
grid-template-rows: auto 1fr auto;
grid-template-areas:
". header ."
". main ."
". footer .";
gap: 0;
position: relative;
}
.page-elegant::before {
content: '';
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image:
radial-gradient(circle at 25% 25%, rgba(184, 134, 11, 0.05) 0%, transparent 50%),
radial-gradient(circle at 75% 75%, rgba(139, 58, 58, 0.03) 0%, transparent 50%);
pointer-events: none;
z-index: -1;
}
.header-elegant {
grid-area: header;
padding: 32px 0;
border-bottom: 2px solid #E8DCC6;
text-align: center;
position: relative;
}
.main-elegant {
grid-area: main;
padding: 64px 32px;
display: flex;
flex-direction: column;
gap: 48px;
}
.footer-elegant {
grid-area: footer;
padding: 32px 0;
border-top: 2px solid #E8DCC6;
text-align: center;
background: rgba(240, 230, 210, 0.5);
}
.book-layout {
display: grid;
grid-template-columns: 200px 1fr;
gap: 48px;
max-width: 1000px;
margin: 0 auto;
padding: 48px 32px;
}
.table-of-contents {
background: #F0E6D2;
border: 2px solid #E8DCC6;
border-radius: 12px;
padding: 24px;
height: fit-content;
position: sticky;
top: 32px;
}
.content-main {
background: #F5F1E8;
border: 2px solid #E8DCC6;
border-radius: 16px;
padding: 48px;
box-shadow:
0 12px 32px rgba(74, 60, 40, 0.12),
inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.chapter-layout {
margin-bottom: 64px;
padding-bottom: 48px;
border-bottom: 1px solid #E8DCC6;
}
.chapter-layout:last-child {
border-bottom: none;
margin-bottom: 0;
}
.two-column-text {
columns: 2;
column-gap: 48px;
column-rule: 1px solid #E8DCC6;
text-align: justify;
line-height: 1.8;
}
.elegant-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 32px;
margin: 48px 0;
}
.grid-item-elegant {
background: #F5F1E8;
border: 2px solid #E8DCC6;
border-radius: 12px;
padding: 32px;
position: relative;
transition: all 0.3s ease;
}
.grid-item-elegant:hover {
transform: translateY(-4px);
box-shadow: 0 12px 32px rgba(74, 60, 40, 0.15);
border-color: #B8860B;
}
.grid-item-elegant::before {
content: '';
position: absolute;
top: 16px;
right: 16px;
width: 24px;
height: 24px;
background: radial-gradient(circle, #B8860B 30%, transparent 30%);
opacity: 0.3;
}
优雅的导航美学
.nav-elegant {
display: flex;
align-items: center;
gap: 40px;
padding: 0 32px;
font-family: 'Baskerville', serif;
}
.nav-item-elegant {
color: #4A3C28;
text-decoration: none;
font-size: 16px;
font-weight: 500;
padding: 12px 16px;
position: relative;
transition: color 0.3s ease;
letter-spacing: 0.02em;
}
.nav-item-elegant::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
width: 0;
height: 2px;
background: linear-gradient(90deg, #B8860B, #CD7F32);
transition: all 0.3s ease;
transform: translateX(-50%);
}
.nav-item-elegant:hover {
color: #8B3A3A;
}
.nav-item-elegant:hover::after {
width: 100%;
}
.nav-item-elegant.active {
color: #8B3A3A;
}
.nav-item-elegant.active::after {
width: 100%;
}
.logo-elegant {
font-size: 28px;
font-weight: 700;
color: #B8860B;
text-decoration: none;
margin-right: auto;
font-family: 'Baskerville', serif;
letter-spacing: 0.05em;
position: relative;
}
.logo-elegant::after {
content: '◆';
margin-left: 8px;
font-size: 16px;
color: #8B3A3A;
}
.breadcrumb-elegant {
display: flex;
align-items: center;
gap: 16px;
margin-bottom: 32px;
font-size: 14px;
color: #8B7355;
font-family: 'Baskerville', serif;
}
.breadcrumb-item-elegant {
text-decoration: none;
color: inherit;
transition: color 0.3s ease;
}
.breadcrumb-item-elegant:hover {
color: #B8860B;
}
.breadcrumb-separator {
color: #B8860B;
font-weight: 500;
}
.mobile-nav-elegant {
position: fixed;
top: 0;
left: -280px;
width: 280px;
height: 100vh;
background: linear-gradient(135deg, #F5F1E8 0%, #F0E6D2 100%);
border-right: 2px solid #E8DCC6;
transition: left 0.3s ease;
z-index: 1000;
padding: 32px 24px;
box-shadow: 4px 0 20px rgba(74, 60, 40, 0.15);
}
.mobile-nav-elegant.active {
left: 0;
}
.mobile-nav-toggle {
display: none;
flex-direction: column;
gap: 4px;
cursor: pointer;
padding: 8px;
}
.mobile-nav-line {
width: 24px;
height: 2px;
background: #4A3C28;
border-radius: 1px;
transition: all 0.3s ease;
}
@media (max-width: 768px) {
.nav-elegant {
display: none;
}
.mobile-nav-toggle {
display: flex;
}
}
古典美学的动态表现
.elegant-transition {
transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.gentle-hover {
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gentle-hover:hover {
transform: translateY(-3px);
box-shadow: 0 8px 24px rgba(74, 60, 40, 0.15);
}
.fade-in-elegant {
opacity: 0;
transform: translateY(20px);
animation: fadeInElegant 0.8s ease-out forwards;
}
@keyframes fadeInElegant {
0% {
opacity: 0;
transform: translateY(20px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
.page-turn {
animation: pageTurn 0.6s ease-in-out;
}
@keyframes pageTurn {
0% { transform: rotateY(0deg); }
50% { transform: rotateY(-90deg); }
100% { transform: rotateY(0deg); }
}
.vintage-glow {
position: relative;
overflow: hidden;
}
.vintage-glow::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(184, 134, 11, 0.1) 0%, transparent 70%);
opacity: 0;
transition: opacity 0.5s ease;
}
.vintage-glow:hover::before {
opacity: 1;
}
保持优雅的响应式原则
/* 移动端优化 */
@media (max-width: 767px) {
.page-elegant {
grid-template-columns: 1fr;
padding: 0 16px;
}
.title-elegant {
font-size: 28px;
margin-bottom: 24px;
}
.subtitle-elegant {
font-size: 20px;
margin-bottom: 16px;
}
.card-elegant {
padding: 24px;
margin-bottom: 24px;
border-radius: 8px;
}
.book-layout {
grid-template-columns: 1fr;
gap: 32px;
}
.two-column-text {
columns: 1;
column-gap: 0;
column-rule: none;
}
.content-main {
padding: 32px 24px;
}
}
/* 平板端适配 */
@media (min-width: 768px) and (max-width: 1024px) {
.page-elegant {
grid-template-columns: 1fr minmax(320px, 700px) 1fr;
}
.elegant-grid {
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 24px;
}
.book-layout {
grid-template-columns: 180px 1fr;
gap: 32px;
}
}
/* 大屏优化 */
@media (min-width: 1200px) {
.page-elegant {
grid-template-columns: 1fr minmax(320px, 1100px) 1fr;
}
.title-elegant {
font-size: 42px;
}
.content-main {
padding: 64px;
}
.main-elegant {
gap: 64px;
}
}
优雅的无障碍体验
.accessible-elegant {
/* 确保充足的颜色对比度 */
color: #4A3C28;
background: #F5F1E8;
}
.focus-elegant:focus {
outline: 3px solid #B8860B;
outline-offset: 2px;
border-radius: 4px;
}
.skip-to-main-elegant {
position: absolute;
top: -40px;
left: 24px;
background: #4A3C28;
color: #F5F1E8;
padding: 8px 16px;
text-decoration: none;
border-radius: 4px;
transition: top 0.3s;
font-family: 'Baskerville', serif;
font-weight: 500;
}
.skip-to-main-elegant:focus {
top: 24px;
}
.sr-only-elegant {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* 高对比度模式支持 */
@media (prefers-contrast: high) {
.card-elegant {
border: 3px solid #4A3C28;
}
.btn-elegant-primary {
border: 3px solid #4A3C28;
}
}
/* 减少动画偏好支持 */
@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
古典美学引用:
"Beauty is truth, truth beauty, —that is all ye know on earth, and all ye need to know."
— John Keats,英国浪漫主义诗人
"The beautiful is always bizarre."
— Charles Baudelaire,法国诗人
设计哲学:
优雅不是被注意到,而是被记住
真正的奢华在于细节的完美