/* ==================== 基础重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #07C160;
    --primary-dark: #06AD56;
    --primary-light: #E8F8EE;
    --danger: #FA5151;
    --danger-light: #FFF0F0;
    --warning: #FFC300;
    --info: #10AEFF;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-hint: #999999;
    --bg-page: #F6F6F6;
    --bg-white: #FFFFFF;
    --border-color: #E5E5E5;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --radius: 12px;
    --radius-sm: 8px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-page);
    overflow: hidden;
}

#app {
    width: 100%;
    height: 100%;
    position: relative;
}

/* ==================== 页面切换 ==================== */
.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    background: var(--bg-page);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.page.active {
    display: flex;
}

/* ==================== 登录页 ==================== */
.login-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 30px;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.logo-area {
    text-align: center;
    margin-bottom: 50px;
}

.logo-icon {
    font-size: 64px;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.logo-area h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.subtitle {
    font-size: 14px;
    color: var(--text-hint);
    letter-spacing: 2px;
}

.form-area {
    width: 100%;
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0 16px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
    background: var(--bg-white);
}

.input-group input:focus {
    border-color: var(--primary);
}

.btn-group-vertical {
    width: 100%;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-hint);
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    padding: 0 16px;
}

.input-group-row {
    display: flex;
    gap: 12px;
}

.input-group-row input {
    flex: 1;
    height: 48px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0 16px;
    font-size: 16px;
    outline: none;
    background: var(--bg-white);
    letter-spacing: 4px;
    text-align: center;
}

.input-group-row input:focus {
    border-color: var(--primary);
}

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:active {
    background: var(--primary-dark);
}

.btn-success {
    background: var(--primary);
    color: #fff;
}

.btn-default {
    background: var(--bg-white);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-block {
    width: 100%;
}

.btn-large {
    height: 52px;
    font-size: 17px;
    border-radius: var(--radius);
}

.btn-win {
    background: linear-gradient(135deg, #FF6B6B, #FA5151);
    color: #fff;
    font-size: 16px;
    height: 48px;
    flex: 1;
}

.btn-kong {
    background: linear-gradient(135deg, #10AEFF, #0D9EF0);
    color: #fff;
    flex: 1;
}

.btn-draw {
    background: var(--bg-white);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    flex: 1;
}

.btn-back {
    background: none;
    border: none;
    font-size: 15px;
    color: var(--primary);
    cursor: pointer;
    padding: 4px 8px;
    font-family: inherit;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-icon:active {
    background: rgba(0,0,0,0.05);
}

.btn-back-home {
    color: var(--text-secondary);
    font-size: 18px;
}

.btn-back-home:hover {
    color: var(--primary);
}

.btn-sm {
    height: 32px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 6px;
}

.btn-copy {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

/* ==================== 房间等待页 ==================== */
.page-header {
    background: var(--bg-white);
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header h2 {
    font-size: 17px;
    font-weight: 500;
    margin: 8px 0;
    text-align: center;
}

.room-id-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.room-id-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 6px;
}

.lobby-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.player-slots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.player-slot {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.player-slot.occupied {
    border-color: var(--primary);
    background: var(--primary-light);
}

.player-slot.host {
    position: relative;
}

.player-slot .slot-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 8px;
}

.player-slot.occupied .slot-avatar {
    background: var(--primary);
    color: #fff;
}

.player-slot .slot-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.player-slot .slot-empty {
    font-size: 14px;
    color: var(--text-hint);
}

.player-slot .host-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--warning);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

.lobby-info {
    text-align: center;
    padding: 16px;
    background: var(--bg-white);
    border-radius: var(--radius);
}

.lobby-info p {
    font-size: 13px;
    color: var(--text-hint);
    margin: 4px 0;
}

/* ==================== 游戏主页面 ==================== */
.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.game-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.round-info {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.room-info-small {
    font-size: 12px;
    color: var(--text-hint);
}

.game-header-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.public-pool-badge {
    background: linear-gradient(135deg, #FFF8E1, #FFECB3);
    color: #F57F17;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #FFE082;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.public-pool-badge i {
    font-size: 13px;
}

/* ==================== 记分板 ==================== */
.scoreboard {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.score-card {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.score-card.winner {
    border-left: 4px solid var(--primary);
}

.score-card.loser {
    border-left: 4px solid var(--danger);
}

.score-card .rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
}

.rank-1 { background: #FFD700; color: #fff; }
.rank-2 { background: #C0C0C0; color: #fff; }
.rank-3 { background: #CD7F32; color: #fff; }
.rank-4 { background: #999; color: #fff; }

.score-card .player-info {
    flex: 1;
}

.score-card .player-name {
    font-size: 15px;
    font-weight: 500;
}

.score-card .player-name .host-tag {
    font-size: 10px;
    background: var(--warning);
    color: #fff;
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: middle;
}

.score-card .player-score {
    font-size: 28px;
    font-weight: 700;
    text-align: right;
    min-width: 60px;
}

.score-positive {
    color: var(--primary);
}

.score-negative {
    color: var(--danger);
}

.score-zero {
    color: var(--text-hint);
}

.score-card .score-change {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 700;
    opacity: 0;
    animation: scoreFloat 1.5s ease-out forwards;
}

@keyframes scoreFloat {
    0% { opacity: 1; transform: translateY(-50%) scale(1.2); }
    50% { opacity: 0.8; transform: translateY(-80%) scale(1); }
    100% { opacity: 0; transform: translateY(-120%) scale(0.8); }
}

/* ==================== 操作区域 ==================== */
.action-area {
    flex: 1;
    padding: 12px 16px;
    padding-bottom: calc(20px + var(--safe-bottom));
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.action-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.action-title {
    font-size: 13px;
    color: var(--text-hint);
    margin-bottom: 10px;
    font-weight: 400;
}

.action-grid {
    display: flex;
    gap: 10px;
}

/* ==================== 弹窗 ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: flex-end;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.modal-large .modal-content {
    max-height: 92vh;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 17px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-hint);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.modal-footer .btn {
    flex: 1;
}

/* ==================== 表单组件 ==================== */
.form-section {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.player-select {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.player-select-btn {
    padding: 8px 20px;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-white);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.player-select-btn.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 500;
}

/* 胡牌类型网格 */
.win-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.btn-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 8px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-type .type-score {
    font-size: 11px;
    color: var(--text-hint);
    margin-top: 2px;
    font-weight: 400;
}

.btn-type.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary-dark);
}

.btn-type .type-score {
    color: var(--text-hint);
}

.btn-type.active .type-score {
    color: var(--primary);
}

/* 开关 */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 28px;
    transition: 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* 码牌选择 */
.ma-card-area {
    max-height: 300px;
    overflow-y: auto;
}

.ma-card-category {
    margin-bottom: 12px;
}

.ma-category-title {
    font-size: 12px;
    color: var(--text-hint);
    margin-bottom: 6px;
    padding-left: 4px;
}

.ma-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.btn-ma {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-white);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.btn-ma span {
    font-size: 10px;
    color: var(--text-hint);
    margin-top: 2px;
}

.btn-ma.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary-dark);
}

.btn-ma-ghost {
    border-color: #FF6B6B;
    background: #FFF5F5;
    color: #D32F2F;
}

.btn-ma-ghost span {
    color: #D32F2F;
}

.btn-ma-ghost.active {
    background: #FF6B6B;
    color: #fff;
    border-color: #FF6B6B;
}

.btn-ma-ghost.active span {
    color: #fff;
}

/* 码分输入框 */
.input-ma-score {
    width: 100%;
    height: 48px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0 16px;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    background: var(--bg-white);
    text-align: center;
    transition: border-color 0.2s;
    -moz-appearance: textfield;
}

.input-ma-score::-webkit-outer-spin-button,
.input-ma-score::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-ma-score:focus {
    border-color: var(--primary);
    background: var(--primary-light);
}

/* ==================== 分数预览 ==================== */
.score-preview {
    background: var(--bg-page);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.preview-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.preview-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.preview-note {
    font-size: 12px;
    color: var(--text-hint);
    margin-top: 4px;
}

/* ==================== 历史记录 ==================== */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    background: var(--bg-page);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.history-round {
    font-size: 12px;
    color: var(--text-hint);
    background: var(--bg-white);
    padding: 2px 8px;
    border-radius: 10px;
}

.history-type {
    font-size: 14px;
    font-weight: 600;
}

.history-detail {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.history-detail .highlight {
    color: var(--primary);
    font-weight: 600;
}

.history-detail .highlight-red {
    color: var(--danger);
    font-weight: 600;
}

.history-time {
    font-size: 11px;
    color: var(--text-hint);
    margin-top: 6px;
}

.empty-text {
    text-align: center;
    color: var(--text-hint);
    padding: 40px 0;
    font-size: 14px;
}

/* ==================== 结算 ==================== */
.settlement-summary {
    text-align: center;
    margin-bottom: 20px;
}

.settlement-pool {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
}

.settlement-pool-label {
    font-size: 13px;
    color: var(--text-hint);
    margin-top: 4px;
}

.settlement-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.settlement-player {
    font-size: 15px;
    font-weight: 500;
}

.settlement-detail {
    text-align: right;
    font-size: 13px;
    color: var(--text-secondary);
}

.settlement-refund {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

.final-scores {
    margin-top: 20px;
    background: var(--bg-page);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.final-score-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 15px;
}

/* ==================== Toast ==================== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    text-align: center;
    max-width: 80%;
}

.toast.show {
    opacity: 1;
}

/* ==================== 加载遮罩 ==================== */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==================== 房主控制栏 ==================== */
.host-controls {
    background: var(--bg-white);
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.host-control-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.host-control-label {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.host-control-label i {
    color: var(--primary);
}

/* ==================== 操作权限提示 ==================== */
.operate-permission-hint {
    background: #FFF8E1;
    color: #F57F17;
    font-size: 13px;
    padding: 8px 16px;
    text-align: center;
    border-bottom: 1px solid #FFE082;
    flex-shrink: 0;
}

.operate-permission-hint i {
    margin-right: 4px;
}

/* ==================== 操作区域禁用状态 ==================== */
.action-area.action-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.action-area.action-disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==================== 版本更新通知 ==================== */
.update-notification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5000;
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    border-bottom: 2px solid var(--primary);
    animation: slideDown 0.4s ease;
}

.update-notification-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    flex-wrap: wrap;
}

.update-notification-content i {
    color: var(--primary);
    font-size: 18px;
}

.update-notification-content .btn {
    height: 32px;
    padding: 0 14px;
    font-size: 13px;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* ==================== 响应式 ==================== */
@media (min-width: 500px) {
    .modal-content {
        border-radius: 16px;
        margin: auto;
        max-height: 90vh;
    }

    .modal {
        align-items: center;
    }
}

@media (min-width: 768px) {
    .scoreboard {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .score-card {
        min-width: 200px;
        flex: 1;
        max-width: 300px;
    }

    .action-area {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
}

/* ==================== 动画辅助 ==================== */
.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pulse {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 红色通知圆点 */
.notification-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
}

/* ==================== 微信登录 ==================== */
.wx-login-section {
    text-align: center;
    padding: 20px 0;
}

.wx-login-hint {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.wx-login-hint i {
    color: #07C160;
    font-size: 20px;
    margin-right: 4px;
    vertical-align: middle;
}

.btn-wx {
    background: #07C160;
    color: #fff;
    font-size: 16px;
    height: 48px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-wx:active {
    background: #06AD56;
}

.btn-wx i {
    font-size: 20px;
    margin-right: 6px;
    vertical-align: middle;
}

/* 微信已登录用户信息 */
.wx-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--primary-light);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.wx-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
    flex-shrink: 0;
}

.wx-user-detail {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wx-nickname {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-link {
    background: none;
    border: none;
    color: var(--text-hint);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    padding: 0;
}

.btn-link:hover {
    color: var(--danger);
}
