/* === 眼睛样式（移除独立背景/阴影/圆角）=== */
.eye {
  /* 背景透明，融入统一容器 */
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  margin: 0;
}
.eye-group {
  display: flex;
  gap: 15px;
}
.round-eye {
  width: 30px;
  height: 30px;
  background-color: transparent;
  border-radius: 50%;
  border: 1px solid #ccc;
  position: relative;
  background-color: white;
}
.pupil {
  width: 15px;
  height: 15px;
  background-color: #333;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
}

/* === 时间区域样式（也移除独立背景/阴影）=== */
.dynamic-greeting {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  margin: 0;
  text-align: center;
}
.time-display {
    font-size: 2em;
    font-weight: 700;
    color: #70c2f3;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}
.time-display .colon {
  animation: blink 1s infinite;
  opacity: 1;
}
@keyframes blink {
  50% { opacity: 0; }
}
.date-display {
  font-size: 0.9em;
  font-weight: 700;
  color: #ffffff;
  margin-top: 18px;
}
.site-info p {
    display: -webkit-box;
    -webkit-line-clamp: 2;      /* 控制显示的行数 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 弹窗样式 */
    .modal-overlay {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(4px);
        display: flex;
        align-items: flex-start;
        justify-content: center;
        z-index: 9999;
        visibility: hidden;
        opacity: 0;
        transition: 0.2s;
    }
    .modal-overlay.active {
        visibility: visible;
        opacity: 1;
    }
    .modal-container {
        background: white;
        max-width: 400px;
        width: 85%;
        border-radius: 28px;
        box-shadow: 0 20px 35px rgba(0,0,0,0.2);
        transform: scale(0.95);
        transition: transform 0.2s;
        margin-top: 15vh;   /* 加这一行 */
    }
    .active .modal-container {
        transform: scale(1);
    }
    .modal-header {
        padding: 18px 20px 0 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .modal-title {
        font-size: 1.3rem;
        font-weight: 600;
        margin: 0;
        color: #1e2f3e;
    }
    .modal-close {
        background: none;
        border: none;
        font-size: 26px;
        cursor: pointer;
        color: #8e9eae;
    }
    .modal-content {
        padding: 16px 20px;
        font-size: 1rem;
        line-height: 1.4;
        color: #2c4b66;
    }
    .modal-footer {
        padding: 0 20px 20px 20px;
        text-align: right;
    }
    .modal-btn {
        background: #1f6e8c;
        border: none;
        padding: 8px 22px;
        border-radius: 60px;
        color: white;
        cursor: pointer;
        font-size: 0.9rem;
    }



/* 网站跳转 独立弹窗样式 - 不与原有冲突 */
/* 基础样式（桌面端） */
.skill-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;         /* 桌面端居中 */
    justify-content: center;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s;
}
.skill-modal-overlay.active {
    visibility: visible;
    opacity: 1;
}
.skill-modal-container {
    background: white;
    max-width: 350px;
    width: 85%;
    border-radius: 28px;
    box-shadow: 0 20px 35px rgba(0,0,0,0.2);
    transform: scale(0.95);
    transition: transform 0.2s;
}
.active .skill-modal-container {
    transform: scale(1);
}

/* 手机端样式：屏幕宽度小于 768px 时固定在底部 */
@media (max-width: 768px) {
    .skill-modal-overlay {
        align-items: flex-end;   /* 底部对齐 */
        background: rgba(0,0,0,0.5);
    }
    .skill-modal-container {
        width: 90%;
        max-width: 90%;
        margin-bottom: 200px;     /* 距离底部 20px */
        border-radius: 28px;
        transform: scale(0.95);
    }
    .active .skill-modal-container {
        transform: scale(1);
    }
}
.skill-modal-header {
    padding: 18px 20px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.skill-modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e2f3e;
}
.skill-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #8e9eae;
}
.skill-modal-body {
    padding: 16px 20px;
    font-size: 1rem;
    line-height: 1.4;
    color: #2c4b66;
}
.skill-modal-footer {
    padding: 0 20px 20px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.skill-modal-btn {
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.skill-modal-cancel {
    background: #e9ecef;
    color: #495057;
}
.skill-modal-cancel:hover {
    background: #dee2e6;
}
.skill-modal-confirm {
    background: #1f6e8c;
    color: white;
}
.skill-modal-confirm:hover {
    background: #0e5a75;
}

.masked a1 {

    background-image: -webkit-linear-gradient(left, #ffffff, #ff0000 6.25%, #ff7d00 12.5%, #ffff00 18.75%, #00ff00 25%, #00ffff 31.25%, #0000ff 37.5%, #ff00ff 43.75%, #ffff00 50%, #ff0000 56.25%, #ff7d00 62.5%, #ffff00 68.75%, #00ff00 75%, #00ffff 81.25%, #0000ff 87.5%, #ff00ff 93.75%, #ffff00 100%);
	  color:transparent;
    -webkit-text-fill-color:#fffdfd21;
	  -webkit-background-clip:text;
    -webkit-background-size:200% 100%;
    background-size:200% 100%;
    -webkit-animation:masked-animation 6s infinite linear;
}
@keyframes masked-animation {
	0% {
	background-position:0 0;
	/*background-position 属性设置背景图像的起始位置。*/
}
100% {
	background-position:-100% 0;
}
}@-webkit-keyframes masked-animation {
	0% {
	background-position:0 0;
}
100% {
	background-position:-100% 0;
}
}
.text3-1 {
    background: #fff -webkit-linear-gradient(left, #fffefe, #29b906) 0 0 no-repeat;
    -webkit-background-size: 2.2em;
    -webkit-background-clip: text;
    -webkit-text-fill-color: rgb(255 239 207 / 61%);
    -webkit-animation: slideShine 6s infinite;
}

@-webkit-keyframes slideShine {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100% 100%;
    }
}
/* --- 节日倒计时）--- */
.festival-countdown-module{
    --fc-primary:#3498db;--fc-secondary:#2c3e50;--fc-accent:#e67e22;--fc-success:#2ecc71;--fc-warning:#f39c12;--fc-danger:#e74c3c;
    display:block;width:100%;max-width:600px;container-type: inline-size;margin:0 auto;font-family:'Microsoft Yahei',Arial,sans-serif;box-sizing:border-box;
    container-type:inline-size;
}
.festival-countdown-module *,.festival-countdown-module ::before,.festival-countdown-module ::after{
    box-sizing:border-box;margin:0;padding:0
}
.festival-countdown-module .holidays-container{
    position:relative;display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:6px 0
}
.festival-countdown-module .holidays-scroll{
    display:flex;justify-content:center;flex-wrap:wrap;gap:8px;width:100%
}
.festival-countdown-module .holidays-scroll::-webkit-scrollbar{height:6px}
.festival-countdown-module .holidays-scroll::-webkit-scrollbar-thumb{background:var(--fc-primary);border-radius:3px;opacity:.7}
.festival-countdown-module .holidays-scroll::-webkit-scrollbar-track{background:rgba(227,242,253,.5);border-radius:3px}
.festival-countdown-module .holiday-item{
    width:calc(33.333% - 5.333px);min-width:0;padding:12px;border-radius:10px;
    box-shadow:0 3px 6px rgba(0,0,0,.08);border:1px solid #e0e0e0;position:relative;
    transition:transform .2s ease,box-shadow .2s ease
}
.festival-countdown-module .holiday-item:hover{transform:translateY(-2px);box-shadow:0 5px 12px rgba(0,0,0,.12)}
.festival-countdown-module .holiday-item.lunar{background:linear-gradient(145deg,#f5f5f5,#e8f5e9)}
.festival-countdown-module .holiday-item.lunar::before{
    content:"传统节日";position:absolute;top:5px;right:5px;font-size:10px;color:#fff;
    background:var(--fc-danger);padding:2px 5px;border-radius:4px
}
.festival-countdown-module .holiday-item.solar{background:linear-gradient(145deg,#f5f5f5,#e3f2fd)}
.festival-countdown-module .holiday-item.solar::before{
    content:"公历节日";position:absolute;top:5px;right:5px;font-size:10px;color:#fff;
    background:var(--fc-primary);padding:2px 5px;border-radius:4px
}
.festival-countdown-module .holiday-item.term{background:linear-gradient(145deg,#f5f5f5,#fff0f5)}
.festival-countdown-module .holiday-item.term::before{
    content:"二十四节气";position:absolute;top:5px;right:5px;font-size:10px;color:#fff;
    background:#9b59b6;padding:2px 5px;border-radius:4px
}
.festival-countdown-module .holiday-name{
    font-size:1em;color:var(--fc-secondary);font-weight:bold;margin-bottom:5px;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.festival-countdown-module .holiday-date{font-size:.9em;color:#7f8c8d;margin-bottom:5px}
.festival-countdown-module .lunar-date{font-size:.8em;color:#e67e22;font-style:italic;margin-bottom:3px}
.festival-countdown-module .countdown{font-size:1em;color:var(--fc-success);font-weight:bold}
.festival-countdown-module .holiday-empty{width:100%;text-align:center;padding:20px;color:#7f8c8d;font-size:15px}

/* 以下是最重要的容器自适应部分：无论电脑还是手机，只要容器宽度 ≤400px 就缩小 */
@container (max-width: 14000px) {
    .festival-countdown-module .holidays-scroll{gap:4px}
    .festival-countdown-module .holiday-item{
        width:calc(33.333% - 2.667px);padding:18px 1px
    }
    .festival-countdown-module .holiday-name{font-size:.95em}
    .festival-countdown-module .holiday-date,.festival-countdown-module .countdown{font-size:.85em}
    .festival-countdown-module .lunar-date{font-size:.6em}
    .festival-countdown-module .holiday-item.lunar::before,
    .festival-countdown-module .holiday-item.solar::before,
    .festival-countdown-module .holiday-item.term::before{
        font-size:10px;padding:1px 2px;top:2px;right:2px
    }
}
}

/* ========== 友情链接模块样式（独立） ========== */
.friend-link-module .module-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-color, #333);
}
.friend-link-module .module-title .title-text {
    position: relative;
}
.friend-link-module .module-title .title-actions a {
    display: inline-block;
    margin-left: 6px;
    padding: 0.3em 0.8em;
    font-size: 0.8rem;
    border-radius: 20px;
    background: rgba(108,108,238,0.1);
    color: #6c6cee;
    text-decoration: none;
    transition: background 0.2s;
}
.friend-link-module .module-title .title-actions a:hover {
    background: rgba(108,108,238,0.2);
}

.friend-link-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
@media (max-width: 768px) {
    .friend-link-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 480px) {
    .friend-link-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.friend-link-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}
.friend-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.friend-link-card .card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: blur(10px) brightness(1.5);
    background: rgb(0 0 0 / 25%);
    color: #fff;
    padding: 0.3rem;
    box-sizing: border-box;
}
.friend-link-card .link-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.friend-link-card .link-img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    flex-shrink: 0;
}
.friend-link-card .link-name {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    text-decoration: none;
}
.friend-link-card .link-name:hover {
    text-decoration: underline;
}
.friend-link-card .link-desc {
    font-size: 0.7rem;
    line-height: 1.3;
    color: rgba(255,255,255,0.8);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.friend-link-card .blur-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    z-index: -1;
}
/* ===== 覆盖层（自动缩小字体，无滚动） ===== */
.friend-link-card .link-cover {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 0.8rem;
    line-height: 1.5;
    letter-spacing: normal;
    word-break: break-word;
    border-radius: inherit;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;               /* 穿透点击 */
    overflow: hidden;                   /* 禁止滚动条 */
    display: flex;
    align-items: center;                /* 垂直居中 */
    justify-content: center;            /* 水平居中 */
    text-align: center;                 /* 文字居中，更美观 */
    box-sizing: border-box;
}

.friend-link-card:hover .link-cover {
    opacity: 1;
    visibility: visible;
}
