/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #fff;
    /* 确保背景色不会被Bootstrap覆盖 */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Bootstrap样式重置 */
.container,
.container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 顶部导航栏 - 公共样式 */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #333;
    color: #fff;
    padding: 0.75rem 1rem;
    font-size: 1.6rem;
}

.back-btn {
    text-decoration: none;
    color: #fff;
}

/* 中英文切换样式 */
.language-switch {
    display: flex;
    align-items: center;
    margin: 0 auto;
    color: #fff;
    font-size: 14px;
}

.lang-btn {
    background: transparent;
    color: #fff;
    text-decoration: none;
    padding: 0 8px;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lang-btn.active {
    color: #C7272F;
    font-weight: 500;
    text-decoration: none;
}

.lang-btn:hover {
    color: #C7272F;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info span {
    margin-right: 1rem;
}

.logout-btn,
.login-btn,
.register-btn {
    text-decoration: none;
    color: #fff;
    margin-left: 1rem;
}

.hero {
    height: auto;
    width: 100%;
    position: relative;
}

.banner-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

/* 错误提示样式 */
.border-danger {
    border-color: #ff4d4f !important;
    background-color: #fff2f0;
}

.error-message {
    color: #ff4d4f;
    font-size: 1.2rem;
    margin: 0.2rem 0.5rem 0.5rem 1rem;
    display: block;
}

/* 通用a标签样式 */
a:active {
    text-decoration: none;
}
a:hover {
    text-decoration: none;
}

/* 英文模式下重置字母间距 */
body.en [data-letter-spacing] {
    letter-spacing: normal;
}