/* ==================== 版本选择页 ==================== */
.version-select-body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Microsoft YaHei', sans-serif;
    color: #fff;
}

.version-container {
    text-align: center;
    padding: 40px 20px;
}

.version-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.version-header .subtitle {
    font-size: 16px;
    color: #aaa;
    margin-bottom: 50px;
}

.version-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.version-card {
    display: block;
    width: 240px;
    padding: 40px 20px;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.version-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
    color: #fff;
}

.card-s4 {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.card-s5 {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.card-us70 {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.card-disabled {
    background: linear-gradient(135deg, #555, #444);
    cursor: default;
    opacity: 0.6;
}

.card-disabled:hover {
    transform: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    opacity: 0.6;
}

.card-icon {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.card-level {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.card-desc {
    font-size: 14px;
    opacity: 0.7;
}

/* ==================== 登录/注册页 ==================== */
.version-login-body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Microsoft YaHei', sans-serif;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
}

.login-header h1 {
    font-size: 28px;
    margin: 10px 0 5px;
}

.login-header .version-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.login-header .back-btn {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
}

.login-header .back-btn:hover {
    color: #fff;
}

.login-form-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.login-form-wrapper .form-group {
    margin-bottom: 20px;
}

.login-form-wrapper label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.login-form-wrapper .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.login-form-wrapper .form-control:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.2);
}

.login-form-wrapper .form-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #999;
}

.login-form-wrapper .required {
    color: #e74c3c;
}

.login-form-wrapper .optional {
    color: #999;
    font-weight: normal;
    font-size: 12px;
}

.btn-block {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: #3498db;
    color: #fff;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-link {
    color: #3498db;
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: underline;
    color: #2980b9;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
}

.login-footer .divider {
    margin: 0 10px;
    color: #ccc;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

/* ==================== 主界面 ==================== */
.version-main-body {
    font-family: 'Microsoft YaHei', sans-serif;
    background: #f5f6fa;
    padding-top: 60px;
}

.main-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.user-info-bar {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.referral-code-display {
    background: #f0f7ff;
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid #d0e3ff;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.toolbar .form-inline {
    display: flex;
    gap: 8px;
}

.sort-btns {
    display: flex;
    gap: 5px;
}

.board-list {
    margin-bottom: 15px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.post-list {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.post-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.post-item:hover {
    background: #fafafa;
}

.post-item:last-child {
    border-bottom: none;
}

.post-title a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.post-title a:hover {
    color: #3498db;
}

.post-title .label {
    margin-right: 8px;
}

.post-meta {
    margin-top: 8px;
    font-size: 13px;
    color: #999;
}

.post-meta span {
    margin-right: 15px;
}

.empty-tip {
    padding: 40px;
    text-align: center;
    color: #999;
}

.post-action {
    margin-top: 20px;
    text-align: right;
}

/* ==================== 推广页面 ==================== */
.referral-code-big {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.referral-code-big .code-text {
    font-size: 32px;
    font-weight: bold;
    color: #3498db;
    letter-spacing: 2px;
}

/* ==================== 通用 ==================== */

/* 语言选择器 */
.lang-selector {
    position: fixed;
    top: 10px;
    right: 15px;
    z-index: 9999;
    display: flex;
    gap: 4px;
    background: rgba(0,0,0,0.4);
    padding: 4px 8px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.lang-selector .lang-btn {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    background: none;
}

.lang-selector .lang-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.2);
}

.lang-selector .lang-btn.active {
    color: #fff;
    background: rgba(255,255,255,0.3);
    font-weight: bold;
}

/* 主界面导航栏内的语言选择器 */
.navbar .lang-selector {
    position: static;
    background: none;
    padding: 0;
    margin-left: 10px;
}

.navbar .lang-selector .lang-btn {
    color: #999;
    font-size: 12px;
    padding: 2px 6px;
}

.navbar .lang-selector .lang-btn:hover {
    color: #333;
    background: rgba(0,0,0,0.05);
}

.navbar .lang-selector .lang-btn.active {
    color: #3498db;
    background: rgba(52,152,219,0.1);
}

.panel {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.panel-heading {
    border-radius: 8px 8px 0 0;
}

.copy-btn {
    margin-left: 8px;
}

.navbar-brand .badge {
    font-size: 11px;
    background: #3498db;
    color: #fff;
    margin-left: 5px;
}
