/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 414px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
}

/* 头部样式 */
.header {
    background: #07c160;
    color: white;
    padding: 20px 16px 16px;
    text-align: center;
    position: relative;
}

.header h1 {
    font-size: 18px;
    font-weight: 500;
}

.back-btn {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #07c160;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    text-align: center;
    margin: 8px 0;
}

.btn:hover {
    background: #06ad56;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

/* 表单样式 */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: #07c160;
}

/* 聊天记录样式 */
.chat-list {
    padding: 16px;
}

.chat-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-item:hover {
    background: #f9f9f9;
}

.chat-item-content {
    flex: 1;
    cursor: pointer;
}

.chat-item-title {
    font-weight: 500;
    margin-bottom: 8px;
}

.chat-item-time {
    color: #999;
    font-size: 14px;
}

.chat-item-actions {
    flex-shrink: 0;
    margin-left: 12px;
}

.share-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover {
    background: #f0f0f0;
    color: #07c160;
}

/* 聊天记录详情页面样式 */
.chat-detail {
    background: #f0f0f0;
    min-height: 100vh;
}

.chat-header {
    background: white;
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

.chat-header h2 {
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.chat-header .member-count {
    font-size: 14px;
    color: #999;
}

.chat-messages {
    padding: 16px;
}

.message {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
}

.message.own {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #07c160;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    margin: 0 8px;
    flex-shrink: 0;
}

.message-content {
    max-width: 70%;
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.message.own .message-content {
    background: #95ec69;
}

.message-text {
    font-size: 16px;
    line-height: 1.4;
    word-wrap: break-word;
}

.message-time {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* 登录页面样式 */
.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 32px;
    background: linear-gradient(135deg, #07c160, #06ad56);
}

.login-box {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 320px;
    text-align: center;
}

.login-title {
    font-size: 24px;
    margin-bottom: 32px;
    color: #333;
}

.wechat-btn {
    background: #07c160;
    color: white;
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wechat-btn:hover {
    background: #06ad56;
}

/* 首页样式 */
.home-container {
    padding: 24px 16px;
}

.home-title {
    text-align: center;
    margin-bottom: 32px;
    font-size: 24px;
    color: #333;
}

.home-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
    }
    
    .login-container {
        padding: 16px;
    }
    
    .login-box {
        padding: 24px;
    }
}