/* ============================================================
   全局样式 - 微信风格
   主色: #07C160 (微信绿)
   ============================================================ */

:root {
    --wx-green: #07C160;
    --wx-green-light: #95EC69;
    --wx-green-dark: #06AD56;
    --wx-bg: #EDEDED;
    --wx-card: #FFFFFF;
    --wx-text: #191919;
    --wx-text-secondary: #888888;
    --wx-border: #E5E5E5;
    --wx-blue: #10AEFF;
    --wx-red: #FA5151;
    --wx-orange: #FA9D3B;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--wx-bg);
    color: var(--wx-text);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* 按钮 */
.btn-primary {
    background: var(--wx-green);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }
.btn-primary:active { opacity: 0.75; }

.btn-secondary {
    background: #F5F5F5;
    color: var(--wx-text);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-secondary:hover { background: #EBEBEB; }

/* 卡片 */
.wx-card {
    background: var(--wx-card);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* 输入框 */
.wx-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--wx-border);
    border-radius: 8px;
    font-size: 15px;
    background: #F9F9F9;
    transition: all 0.2s;
    outline: none;
}
.wx-input:focus {
    border-color: var(--wx-green);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(7,193,96,0.08);
}

/* 标签 */
.wx-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}
.wx-badge-green { background: #E8F8EE; color: var(--wx-green-dark); }
.wx-badge-blue { background: #E6F5FF; color: var(--wx-blue); }
.wx-badge-orange { background: #FFF3E0; color: var(--wx-orange); }
.wx-badge-red { background: #FFE8E8; color: var(--wx-red); }
.wx-badge-gray { background: #F0F0F0; color: #999; }

/* 滚动条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #CCC; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #AAA; }
::-webkit-scrollbar-track { background: transparent; }

/* 渐变背景 */
.wx-gradient {
    background: linear-gradient(135deg, var(--wx-green) 0%, var(--wx-green-dark) 100%);
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.wx-fade-in { animation: fadeIn 0.3s ease-out; }

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* 头像 */
.wx-avatar {
    border-radius: 6px;
    object-fit: cover;
}

/* 消息气泡 */
.wx-bubble-self {
    background: var(--wx-green-light);
    border-radius: 8px 0 8px 8px;
}
.wx-bubble-other {
    background: #fff;
    border-radius: 0 8px 8px 8px;
}

/* 导航栏 */
.wx-nav {
    background: #F7F7F7;
    border-bottom: 1px solid var(--wx-border);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 列表项 */
.wx-list-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #F5F5F5;
    cursor: pointer;
    transition: background 0.15s;
}
.wx-list-item:hover { background: #F5F5F5; }

/* 模态框遮罩 */
.wx-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 响应式 */
@media (max-width: 768px) {
    .wx-hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
    .wx-hide-desktop { display: none !important; }
}
