* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    min-height: 100vh;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    position: relative;
}

@media (max-width: 1920px) {
    .container {
        transform: scale(calc(100vw / 1920));
        transform-origin: top left;
        width: 1920px;
        height: auto;
    }
}

.logo-section {
    width: 100%;
    height: 170px;
    /*background: linear-gradient(90deg, #FFA500, #FFFFFF);*/
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    width: 300px;
    height: 170px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}

.logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.buttons-section {
    width: 100%;
    height: 100px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.buttons-container {
    background: linear-gradient(to right, #98be2c, #fea9a2);
    padding: 10px 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}

.btn {
    background-color: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    padding: 10px;
}

.btn:hover {
    color: #ffd700;
    text-decoration: underline;
    transform: translateY(-2px);
}

.enter-website-btn {
    background-color: #ffd700;
    color: #333;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.enter-website-btn:hover {
    background-color: #ffe666;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.enter-website-btn:active {
    background-color: #ffcc00;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
}

.enter-website-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.5);
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1000;
}

.placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.1);
    color: #666;
    font-size: 24px;
    font-weight: bold;
}

/* 非Index页面的导航栏样式 */
/* 1. 导航栏主容器：设置为Flex布局，实现左右分布，固定高度 */
.navbar {
    display: flex; /* 启用Flexbox布局 */
    justify-content: space-between; /* 子元素（LOGO和链接区）分别靠左和靠右 */
    align-items: center; /* 子元素在垂直方向上居中 */
    height: 170px; /* 你要求的高度，与LOGO适配 */
    width: 100%; /* 占满整个容器宽度 */
    background: linear-gradient(to right, #94af88, #118173); /* 建议给个背景色，例如白色，可以根据你的设计调整 */
    padding: 0 20px; /* 左右加一些内边距，避免内容贴边 */
    box-sizing: border-box; /* 让padding包含在width内，防止溢出 */
}

/* 2. 导航栏内的LOGO容器：固定大小，居左 */
.navbar-logo {
    height: 170px; /* 与导航栏同高 */
    display: flex;
    align-items: center; /* LOGO在容器内垂直居中 */
}

/* 3. 确保LOGO图片本身的尺寸 */
.navbar-logo .logo {
    width: 300px; /* 你要求的宽度 */
    height: 170px; /* 你要求的高度 */
    /* 如果之前LOGO有特殊背景，这里可能需要调整 */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 4. 导航栏内的用户链接容器：靠右，内部元素水平排列 */
.navbar-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

.navbar-links {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-end;
}

.navbar-link {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navbar-link:hover {
    background-color: rgba(255, 255, 255, 0.8);
    color: #FFA500;
}

.navbar-link.login {
    background-color: #FFA500;
    color: #fff;
}

.navbar-link.login:hover {
    background-color: #FF8C00;
}

.navbar-link.register {
    background-color: #FFFFFF;
    color: #FFA500;
    border: 2px solid #FFA500;
}

.navbar-link.register:hover {
    background-color: #FFF3E0;
}

/* 登录状态显示 */
.user-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    color: white;
}

.user-info .username-link {
    background: none;
    border: none;
    padding: 10px 16px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-info .username-link:hover {
    background: none;
    color: white;
    text-decoration: underline;
}

.user-info .navbar-link {
    background: none;
    border: none;
    padding: 10px 16px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-info .navbar-link:hover {
    background: none;
    color: white;
    text-decoration: underline;
}

/* 登录链接样式 */
.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.login-links a {
    color: #FFA500;
    text-decoration: none;
    font-weight: bold;
}

.login-links a:hover {
    text-decoration: underline;
}

/* 步骤内容样式 */
.step-content {
    margin-top: 20px;
}

.success-message {
    text-align: center;
    padding: 20px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 5px;
    margin-bottom: 20px;
}

.error-message.big {
    text-align: center;
    padding: 20px;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 18px;
}
/* 记住登录状态样式在form.css中定义，避免冲突 */