/* 主页样式 - 黑白简约风 */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    background: #f5f5f5;
    color: #333;
}

/* 导航栏 */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.navbar-brand {
    font-size: 18px;
    font-weight: 600;
    color: #4a5568;
    text-decoration: none;
}

.navbar-brand:hover {
    color: #3d4852;
}

.navbar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4a5568;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(74, 85, 104, 0.2);
    overflow: hidden;
}

.navbar-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.navbar-avatar:hover {
    background: #3d4852;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(74, 85, 104, 0.35);
}

.navbar-avatar-icon {
    font-size: 20px;
    color: white;
}

/* 未登录时的登录/注册链接 */
.navbar-auth {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #f0f0f0;
    color: #3d4852;
}

.nav-link-primary {
    background: #4a5568;
    color: #ffffff;
}

.nav-link-primary:hover {
    background: #3d4852;
    color: #ffffff;
}

/* 主内容区 */
.main-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.container {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.container h1 {
    color: #4a5568;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
}

.container > p {
    color: #555;
    font-size: 16px;
    margin-bottom: 8px;
}

.status {
    display: inline-block;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 8px 20px;
    margin-top: 10px;
    font-size: 14px;
    color: #888;
}

/* "有什么想问我们的？" 按钮 */
.ask-btn {
    display: block;
    margin: 36px auto 0;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: #4a5568;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(74, 85, 104, 0.25);
}

.ask-btn:hover {
    background: #3d4852;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(74, 85, 104, 0.35);
}

.ask-btn:active {
    transform: translateY(0);
}

/* 照片画廊 */
.container h2 {
    color: #4a5568;
    margin: 40px 0 20px;
    font-weight: 600;
    font-size: 22px;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

/* 页脚 */
.page-footer {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 40px;
    text-align: center;
}

.server-time {
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
}

.icp-footer {
    background: #e0e0e0;
    color: #333;
    padding: 1rem 0;
    text-align: center;
}

.icp-footer a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.icp-footer a:hover {
    text-decoration: underline;
}

.copyright {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

/* 响应式 */
@media (max-width: 600px) {
    .main-content {
        padding: 20px 10px;
    }

    .container {
        padding: 25px 15px;
    }

    .container h1 {
        font-size: 22px;
    }

    .photo-gallery {
        grid-template-columns: 1fr;
    }
}
