body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: url('https://img.zhaochenkai.com/pic/pic%20(42).webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 10vh;
    padding-bottom: 20px;
    box-sizing: border-box;
}

.center-section {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    margin-top: 2vh;
}

.circle-mask {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    display: block;
    border: 3px solid #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.header-title {
    color: white;
    font-size: 20px;
    margin: 15px 0;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    min-height: 30px;
    text-align: center;
    max-width: 50%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
    padding: 0 10px;
    box-sizing: border-box;
}

.button-container {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    max-width: 100%;
    width: 100%;
    flex-wrap: wrap;
    padding: 0 15px;
    box-sizing: border-box;
}

.button-link {
    border-radius: 50%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    backdrop-filter: blur(5px);
    aspect-ratio: 1/1;
}

.button-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.1);
}

.button-icon {
    width: 25px;
    height: 25px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

/* 新增的搜索框样式 */
.search-container {
    margin-top: 20px;
    width: 100%;
    max-width: 500px;
    padding: 0 15px;
    box-sizing: border-box;
}

.search-container form {
    display: flex;
    width: 100%;
}

.search-input {
    padding: 10px 15px;
    flex-grow: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px 0 0 20px;
    font-size: 16px;
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(5px);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-button {
    padding: 10px 20px;
    background-color: #3385ff;
    color: white;
    border: none;
    border-radius: 0 20px 20px 0;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    backdrop-filter: blur(5px);
}

.search-button:hover {
    background-color: #2a6fd6;
}

.photo-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 15px;
    flex-grow: 1;
    min-height: 200px;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.5s ease;
    box-sizing: border-box;
}

.photo-row.loaded {
    opacity: 1;
}

.photo-item {
    flex: 1;
    min-width: 0;
    height: 220px;
    min-height: 180px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.photo-img:hover {
    transform: scale(1.05);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 95%;
    max-height: 95%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #f1f1f1;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.loader {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 平板设备样式 */
@media (min-width: 600px) {
    .circle-mask {
        width: 120px;
        height: 120px;
    }
    
    .header-title {
        font-size: 22px;
    }
    
    .button-link {
        width: 55px;
        height: 55px;
    }
    
    .button-icon {
        width: 28px;
        height: 28px;
    }
    
    .photo-item {
        height: 240px;
    }
}

/* 电脑设备样式 */
@media (min-width: 992px) {
    .main-container {
        padding-top: 15vh;
    }
    
    .circle-mask {
        width: 140px;
        height: 140px;
        margin-bottom: 25px;
    }
    
    .header-title {
        font-size: 24px;
        margin: 20px 0;
    }
    
    .button-container {
        gap: 30px;
        margin: 40px 0;
    }
    
    .button-link {
        width: 60px;
        height: 60px;
        padding: 15px;
    }
    
    .button-icon {
        width: 30px;
        height: 30px;
    }
    
    .photo-item {
        height: 260px;
    }
}

/* 手机设备样式 */
@media (max-width: 400px) {
    .main-container {
        padding-top: 8vh;
    }
    
    .circle-mask {
        width: 80px;
        height: 80px;
    }
    
    .header-title {
        font-size: 18px;
        margin: 10px 0;
    }
    
    .button-container {
        gap: 10px;
        margin: 20px 0;
    }
    
    .button-link {
        width: 45px;
        height: 45px;
        padding: 10px;
    }
    
    .button-icon {
        width: 22px;
        height: 22px;
    }
    
    .photo-item {
        height: 180px;
    }

    /* 手机上的搜索框样式 */
    .search-container {
        margin-top: 15px;
    }
    
    .search-input {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .search-button {
        padding: 8px 15px;
        font-size: 14px;
    }
}