/* 页面淡入动画 */
body {
    animation: fadeIn 0.8s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 按钮涟漪特效 */
.link-btn {
    position: relative;
    overflow: hidden;
}
.link-btn:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.4);
    border-radius: 100%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s, opacity 0.4s;
    opacity: 0;
    pointer-events: none;
}
.link-btn:active:after {
    width: 200px;
    height: 200px;
    opacity: 1;
    transition: 0s;
}

/* 恢复原有布局和样式 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(120deg, #f8f8ff 0%, #ffe6e6 100%);
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    position: relative;
    overflow: hidden;
}
.container {
    background: none;
    padding: 32px 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    justify-content: space-between;
    /* 去除圆角和阴影 */
    border-radius: 0;
    box-shadow: none;
    animation: slideUp 0.8s cubic-bezier(.77,0,.18,1);
}
@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.header {
    margin-bottom: 5%;
}
h1 {
    color: #e60000;
    margin-bottom: 5px;
    font-size: clamp(2.7rem, 7vw, 2.7rem);
    letter-spacing: 2px;
    font-weight: 900;
    /* 精致3D立体效果 */
    text-shadow:
        0 1px 3px #fff,
        0 2px 6px #e6e6e6,
        0 1px 0 #fff,
        0 0px 4px #c00000,
        0 4px 10px #ff7f7f;
}
.domain {
    color: #e60000;
    font-size: clamp(2.1rem, 5vw, 1.8rem);
    font-weight: bold;
    margin-bottom: 3%;
    /* 强化3D立体效果 */
    text-shadow:
        0 1px 4px #fff,
        0 2px 8px #e6e6e6,
        0 0px 4px #c00000,
        0 6px 16px #ff7f7f;
}
.links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2vh;
    margin: 0 auto;
    width: 80%;
}
.link-btn {
    background: linear-gradient(90deg, #e60000 80%, #ff7f7f 100%);
    color: white;
    padding: 0.85rem 1.1rem;
    text-decoration: none;
    border-radius: 1.5625rem;
    font-size: clamp(1.15rem, 3vw, 1.25rem);
    font-weight: 900;
    letter-spacing: 1.5px;
    transition: all 0.3s cubic-bezier(.77,0,.18,1);
    box-shadow:
        0 6px 24px 0 rgba(230, 0, 0, 0.22),
        0 2px 12px 0 rgba(0,0,0,0.08),
        0 -2px 12px 0 #fff inset;
    width: 100%;
    max-width: 15.625rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background-image:
        linear-gradient(90deg, #e60000 80%, #ff7f7f 100%),
        linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 60%);
}
.link-btn span {
    display: inline-block;
    font-weight: 900;
    font-size: inherit;
    letter-spacing: 2px;
    text-shadow:
        0 1px 2px #fff,
        0 2px 6px #e60000,
        0 4px 12px #ff7f7f;
    background: linear-gradient(90deg,#fff,#ffd700,#e60000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Zhi Mang Xing', cursive !important;
}
.link-btn:hover {
    background: linear-gradient(90deg, #c00000 80%, #ffb3b3 100%);
    box-shadow:
        0 16px 40px rgba(230, 0, 0, 0.32),
        0 -2px 16px 0 #fff inset;
    transform: translateY(-5px) scale(1.06);
    letter-spacing: 2px;
}
.link-btn:active {
    transform: translateY(2px) scale(0.96);
    box-shadow:
        0 2px 8px rgba(230, 0, 0, 0.18),
        0 1px 6px rgba(0,0,0,0.10),
        0 0px 0px #fff inset;
    background: linear-gradient(90deg, #c00000 80%, #ffb3b3 100%);
}
.backup-domains {
    margin-top: 5%;
    margin-bottom: 5%;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    color: #666;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5vh;
    position: relative;
    z-index: 2;
}
.domain-box {
    border: 0.0625rem solid #e60000;
    border-radius: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: #fff;
    color: #e60000;
    display: inline-block;
    min-width: 9.375rem;
    transition: all 0.3s cubic-bezier(.77,0,.18,1);
    box-shadow: 0 2px 8px #ffe6e6;
}
.domain-box:hover {
    background: #fff0f0;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 2px 12px rgba(230, 0, 0, 0.2);
}
.backup-title {
    margin-bottom: 1.5vh;
    font-weight: bold;
    color: #e60000;
    border: 0.125rem solid #e60000;
    border-radius: 0.9375rem;
    padding: 0.375rem 0.9375rem;
    background: #fff;
    display: inline-block;
    box-shadow: 0 0.125rem 0.3125rem rgba(230, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(.77,0,.18,1);
}
.backup-title:hover {
    background: #fff0f0;
    transform: translateY(-0.125rem) scale(1.03);
    box-shadow: 0 0.25rem 0.5rem rgba(230, 0, 0, 0.2);
}
.footer {
    margin-top: 3%;
    padding-top: 1%;
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    color: #777;
    text-align: center;
}
/* 下拉刷新提示样式 */
.refresh-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #e60000;
    font-weight: bold;
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(.77,0,.18,1);
    background: rgba(255,255,255,0.9);
    z-index: 1000;
}
.refresh-indicator.visible {
    font-size: clamp(1.75rem, 2vw, 1.875rem);
    transform: translateY(0);
}
.refresh-spinner {
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid rgba(230, 0, 0, 0.3);
    border-top-color: #e60000;
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.effect-canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 0;
    pointer-events: none;
}
@media (max-width: 600px) {
    .container {
        padding: 1rem 0.5rem;
        min-height: 100vh;
        border-radius: 0.5rem;
    }
    .links {
        width: 100%;
    }
}
@media (max-height: 700px) {
    .header {
        margin-bottom: 3%;
    }
    .links {
        gap: 1.5vh;
    }
    .backup-domains {
        margin-top: 3%;
        margin-bottom: 3%;
        gap: 1vh;
    }
    .link-btn {
        padding: 8px 12px;
    }
    .domain-box {
        padding: 4px 8px;
    }
    .backup-title {
        padding: 4px 10px;
        margin-bottom: 1vh;
    }
}
