/* 通用样式 - 液态玻璃基础质感 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
    margin: 0;
    padding: 40px 20px;
    color: #161a1d;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* 容器样式 - 液态玻璃核心效果 */
.container {
    max-width: 540px;
    margin: 0 auto;
    padding: 36px;
    background: rgba(255, 255, 255, 0.7); /* 半透明白色 */
    backdrop-filter: blur(16px); /* 毛玻璃效果 */
    -webkit-backdrop-filter: blur(16px);
    border-radius: 28px; /* 超大圆角 */
    border: 1px solid rgba(255, 255, 255, 0.3); /* 半透明边框 */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 
                0 0 0 1px rgba(255, 255, 255, 0.5) inset; /* 内外阴影结合 */
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

/* 液态玻璃光泽效果 */
.container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: glassShine 6s infinite linear;
}

@keyframes glassShine {
    0% { transform: rotate(30deg) translate(-100%, -100%); }
    100% { transform: rotate(30deg) translate(100%, 100%); }
}

/* 标题样式 - 玻璃质感文字 */
h1 {
    font-size: 26px;
    text-align: center;
    color: #161a1d;
    margin: 0 0 32px;
    font-weight: 600;
    letter-spacing: -0.3px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
    position: relative;
}

/* 输入框样式 - 液态玻璃输入控件 */
input[type="text"] {
    width: 100%;
    padding: 16px 20px;
    margin: 18px 0;
    border-radius: 20px; /* 大圆角 */
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-sizing: border-box;
    font-size: 17px;
    color: #161a1d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05),
                0 0 0 1px rgba(0, 0, 0, 0.05) inset;
    transition: all 0.3s ease;
}

input[type="text"]::placeholder {
    color: rgba(22, 26, 29, 0.4);
}

input[type="text"]:focus {
    border-color: #2979ff;
    outline: none;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 0 4px rgba(41, 121, 255, 0.15),
                0 2px 10px rgba(0, 0, 0, 0.08);
}

/* 按钮样式 - 液态玻璃按钮 */
button {
    background: linear-gradient(135deg, #2979ff, #448aff);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 17px;
    width: 100%;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(41, 121, 255, 0.25),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
}

/* 按钮液态效果 */
button::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: all 0.6s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(41, 121, 255, 0.3);
}

button:hover::before {
    left: 100%;
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(41, 121, 255, 0.2);
}

/* 错误提示 - 玻璃风格警告 */
.error-message {
    color: #d32f2f;
    font-size: 15px;
    margin: 18px 0 0;
    text-align: center;
    display: none;
    padding: 14px 18px;
    background: rgba(255, 245, 245, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(255, 226, 226, 0.8);
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.08);
}

/* 加密内容样式 - 玻璃卡片变体 */
.encrypted-content {
    text-align: center;
    padding: 22px;
    background: rgba(240, 249, 255, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    margin-top: 26px;
    border: 1px solid rgba(224, 242, 254, 0.8);
    color: #0d47a1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.encrypted-content:hover {
    background: rgba(240, 249, 255, 0.8);
    transform: translateY(-2px);
}

/* 下载文件样式 - 玻璃风格下载区 */
.download-file {
    text-align: center;
    padding: 22px;
    background: rgba(237, 247, 255, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    margin-top: 26px;
    border: 1px solid rgba(221, 238, 255, 0.8);
    color: #0d47a1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.download-file:hover {
    background: rgba(237, 247, 255, 0.8);
    transform: translateY(-2px);
}

/* 倒计时样式 - 玻璃质感信息区 */
#countdown {
    font-size: 16px;
    color: #4a4a4a;
    margin: 18px 0 0;
    text-align: center;
    padding: 14px;
    border-radius: 16px;
    background: rgba(245, 245, 247, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* 管理员链接样式 - 玻璃风格链接 */
.admin-login-link {
    position: absolute;
    top: 24px;
    right: 28px;
    font-size: 15px;
    color: #2979ff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.admin-login-link:hover {
    color: #1565c0;
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* 响应式调整 - 适配移动设备 */
@media (max-width: 480px) {
    .container {
        padding: 28px 20px;
        border-radius: 24px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    input[type="text"], button {
        padding: 14px 18px;
        font-size: 16px;
        border-radius: 18px;
    }
}