2026請假攻略大全
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;600;700;800;900&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
min-height: 100vh;
padding: 40px 20px;
position: relative;
}
/* 背景裝飾 */
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background:
radial-gradient(circle at 15% 15%, rgba(255,255,255,0.1) 0%, transparent 50%),
radial-gradient(circle at 85% 20%, rgba(255,255,255,0.08) 0%, transparent 40%),
radial-gradient(circle at 10% 80%, rgba(255,255,255,0.06) 0%, transparent 60%);
pointer-events: none;
z-index: -1;
}
.container {
max-width: 1000px;
margin: 0 auto;
position: relative;
}
/* 頂部卡片 */
.header-card {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(20px);
border-radius: 25px;
padding: 30px 40px;
margin-bottom: 30px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
display: flex;
align-items: center;
gap: 30px;
position: relative;
overflow: hidden;
}
.header-card::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
transform: rotate(45deg);
animation: shimmer 4s infinite;
}
@keyframes shimmer {
0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}
/* 可愛牛吉祥物 */
.mascot {
width: 80px;
height: 80px;
position: relative;
flex-shrink: 0;
}
.cow-body {
width: 50px;
height: 40px;
background: #d2691e;
border-radius: 50%;
position: absolute;
top: 25px;
left: 15px;
}
.cow-head {
width: 36px;
height: 30px;
background: #daa520;
border-radius: 50%;
position: absolute;
top: 5px;
left: 22px;
}
.cow-horn {
width: 6px;
height: 16px;
background: #8b4513;
border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
position: absolute;
}
.cow-horn.left {
top: 0;
left: 18px;
transform: rotate(-20deg);
}
.cow-horn.right {
top: 0;
right: 18px;
transform: rotate(20deg);
}
.cow-eye {
width: 6px;
height: 6px;
background: white;
border-radius: 50%;
position: absolute;
top: 10px;
}
.cow-eye.left { left: 28px; }
.cow-eye.right { left: 42px; }
.cow-eye::after {
content: '';
width: 3px;
height: 3px;
background: black;
border-radius: 50%;
position: absolute;
top: 1.5px;
left: 1.5px;
}
.cow-nose {
width: 8px;
height: 4px;
background: #cd853f;
border-radius: 50%;
position: absolute;
top: 18px;
left: 36px;
}
.cow-legs {
position: absolute;
bottom: 5px;
left: 20px;
display: flex;
gap: 8px;
}
.cow-leg {
width: 4px;
height: 10px;
background: #8b4513;
border-radius: 2px;
}
/* 標題區 */
.title-section {
flex: 1;
display: flex;
align-items: center;
gap: 20px;
}
.year-title {
font-size: 48px;
font-weight: 900;
color: #1f2937;
line-height: 1;
}
.new-badge {
background: #10b981;
color: white;
width: 60px;
height: 60px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
font-weight: 700;
box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
animation: pulse 2s infinite;
}
@keyframes pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.05); }
}
.main-title {
font-size: 56px;
font-weight: 900;
color: #1f2937;
line-height: 1;
}
/* 表格標題 */
.table-header {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
color: white;
padding: 15px 30px;
border-radius: 25px;
margin-bottom: 20px;
display: grid;
grid-template-columns: 200px 1fr;
gap: 20px;
align-items: center;
box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}
.table-header h3 {
font-size: 18px;
font-weight: 700;
text-align: center;
}
/* 假日項目 */
.holiday-item {
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(10px);
border-radius: 15px;
margin-bottom: 10px;
padding: 20px 30px;
display: grid;
grid-template-columns: 200px 1fr;
gap: 20px;
align-items: center;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
position: relative;
overflow: hidden;
}
.holiday-item:nth-child(even) {
background: rgba(248, 250, 252, 0.9);
}
.holiday-item:hover {
transform: translateY(-3px) scale(1.02);
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
.holiday-info h4 {
font-size: 16px;
font-weight: 600;
color: #1f2937;
margin-bottom: 5px;
}
.holiday-info .date {
font-size: 14px;
color: #6b7280;
}
/* 策略標籤 */
.strategies {
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
}
.strategy-tag {
padding: 8px 16px;
border-radius: 20px;
font-size: 11px;
font-weight: 700;
color: white;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.strategy-tag::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;
}
.strategy-tag:hover::before {
left: 100%;
}
.strategy-tag:hover {
transform: translateY(-2px) scale(1.05);
}
/* 普通標籤 */
.strategy-tag.normal {
background: linear-gradient(135deg, #ec4899, #be185d);
box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}
/* 特殊推薦標籤 */
.strategy-tag.special {
background: linear-gradient(135deg, #f59e0b, #d97706);
box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
animation: glow 2s infinite;
}
@keyframes glow {
0%, 100% { box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4); }
50% { box-shadow: 0 8px 30px rgba(245, 158, 11, 0.6); }
}
.strategy-description {
font-size: 12px;
color: #374151;
margin-left: 8px;
}
/* 響應式設計 */
@media (max-width: 768px) {
body {
padding: 20px 10px;
}
.header-card {
flex-direction: column;
text-align: center;
padding: 25px 20px;
gap: 20px;
}
.title-section {
flex-direction: column;
gap: 15px;
}
.year-title {
font-size: 36px;
}
.main-title {
font-size: 40px;
}
.new-badge {
width: 50px;
height: 50px;
font-size: 12px;
}
.table-header,
.holiday-item {
grid-template-columns: 1fr;
text-align: center;
gap: 15px;
}
.strategies {
justify-content: center;
}
.strategy-tag {
font-size: 10px;
padding: 6px 12px;
}
.strategy-description {
font-size: 11px;
display: block;
margin-left: 0;
margin-top: 5px;
}
}
@media (max-width: 480px) {
.year-title {
font-size: 28px;
}
.main-title {
font-size: 32px;
}
.holiday-item {
padding: 15px 20px;
}
.strategy-tag {
font-size: 9px;
padding: 5px 10px;
}
}
/* 進入動畫 */
.holiday-item {
animation: slideInUp 0.6s ease-out forwards;
opacity: 0;
transform: translateY(30px);
}
.holiday-item:nth-child(1) { animation-delay: 0.1s; }
.holiday-item:nth-child(2) { animation-delay: 0.2s; }
.holiday-item:nth-child(3) { animation-delay: 0.3s; }
.holiday-item:nth-child(4) { animation-delay: 0.4s; }
.holiday-item:nth-child(5) { animation-delay: 0.5s; }
.holiday-item:nth-child(6) { animation-delay: 0.6s; }
.holiday-item:nth-child(7) { animation-delay: 0.7s; }
.holiday-item:nth-child(8) { animation-delay: 0.8s; }
.holiday-item:nth-child(9) { animation-delay: 0.9s; }
.holiday-item:nth-child(10) { animation-delay: 1.0s; }
@keyframes slideInUp {
to {
opacity: 1;
transform: translateY(0);
}
}
請1休4
請1/2可連休4天
請3休6
請12/29-12/31可連休6天
請4休9
請12/29-12/31、1/2可連休9天
請4休10
請3/30-4/2可連休10天
請4休10
請4/7-4/10可連休10天
// 添加互動效果
document.addEventListener('DOMContentLoaded', function() {
// 為策略標籤添加點擊動畫
const strategyTags = document.querySelectorAll('.strategy-tag');
strategyTags.forEach(tag => {
tag.addEventListener('click', function() {
this.style.transform = 'scale(0.95)';
setTimeout(() => {
this.style.transform = '';
}, 150);
});
});
// 為假日項目添加點擊效果
const holidayItems = document.querySelectorAll('.holiday-item');
holidayItems.forEach(item => {
item.addEventListener('click', function() {
this.style.transform = 'translateY(-3px) scale(0.98)';
setTimeout(() => {
this.style.transform = '';
}, 200);
});
});
// 新年徽章旋轉動畫
const newBadge = document.querySelector('.new-badge');
newBadge.addEventListener('mouseenter', function() {
this.style.transform = 'rotate(360deg) scale(1.1)';
this.style.transition = 'transform 0.6s ease';
});
newBadge.addEventListener('mouseleave', function() {
this.style.transform = 'rotate(0deg) scale(1)';
});
});