/* 全局暗黑背景 */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #0d0e12;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #ffffff;
}

/* 磨砂玻璃卡片 */
.card {
    background: rgba(25, 27, 38, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 30px;
    border-radius: 24px;
    width: 360px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* 头像外圈粉红霓虹光晕 */
.avatar-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    box-shadow: 0 0 15px rgba(255, 65, 108, 0.4);
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

h2 {
    font-size: 24px;
    margin: 10px 0;
    font-weight: 600;
    letter-spacing: 1px;
}

.tip {
    color: #7e8494;
    font-size: 14px;
    margin-bottom: 25px;
}

/* 密码输入框 */
input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    background-color: #1f2231;
    border: 1px solid #2f344d;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    text-align: center;
    letter-spacing: 4px;
    margin-bottom: 20px;
    outline: none;
    transition: border 0.3s;
}

input[type="password"]:focus {
    border-color: #cca43b;
}

/* 金黄色主按钮 */
button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #e5ba4f, #cca43b);
    border: none;
    border-radius: 12px;
    color: #111;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
}

button:hover {
    opacity: 0.9;
}

.error {
    color: #ff4d4d;
    font-size: 13px;
    margin-top: 12px;
    height: 15px;
}

/* 相册流布局 */
.gallery-view {
    width: 90%;
    max-width: 1200px;
    padding: 40px 0;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.gallery-header button {
    width: auto;
    padding: 8px 20px;
    background: #2f344d;
    color: #fff;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.photo-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.photo-item img:hover {
    transform: scale(1.03);
}

.hidden {
    display: none !important;
}
