/* 网站动态背景效果 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0.3; /* 调整透明度，0.3表示30%不透明度 */
  z-index: -2;
  pointer-events: none;
}

/* 雪花特效样式 */
.wall {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

#midground {
    z-index: 9998;
}

#foreground {
    z-index: 9999;
}

#top {
    z-index: 9997;
}

/* 雪花样式 */
.snowflake {
    position: absolute;
    top: 0;
    color: #f5f5f5fa;
    pointer-events: none;
    user-select: none;
    z-index: 10000;
}

/* 动态背景线条样式 */
#dynamic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Canvas样式优化 */
canvas {
    display: block;
}

/* 新动态背景线条Canvas样式 */
canvas[id^="c_n"] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: -1 !important;
    opacity: 0.3 !important;
    pointer-events: none !important;
}

/* 地址栏图标更换提示样式 */
.favicon-changer {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 10001;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.favicon-changer.show {
    opacity: 1;
    transform: translateY(0);
}

/* 社交媒体链接样式 */
.social-links {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 8px 0;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #007acc;
}

.social-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* 日历样式 */
.calendar-container {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-title {
    font-weight: bold;
    color: #333;
}

.calendar-nav button {
    background: #007acc;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin: 0 2px;
}

.calendar-nav button:hover {
    background: #005a9e;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-weekday {
    text-align: center;
    font-weight: bold;
    color: #666;
    padding: 5px;
    font-size: 12px;
}

.calendar-day {
    text-align: center;
    padding: 5px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    border-radius: 3px;
}

.calendar-day:hover {
    background: rgba(0, 122, 204, 0.1);
}

.calendar-day.today {
    background: #007acc;
    color: white;
}

.calendar-day.other-month {
    color: #ccc;
} 