/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background: #f0f2f5;
}

/* 主容器 */
.tour-container {
    display: flex;
    height: 100vh;
    padding: 20px;
    gap: 20px;
}

/* 左侧旅行团列表面板 */
.tour-list-panel {
    width: 280px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.panel-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    font-size: 18px;
    font-weight: 500;
}

.add-btn, .add-member-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background: #1890ff;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-box {
    padding: 15px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 8px 32px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    outline: none;
}

.search-box i {
    position: absolute;
    left: 25px;
    top: 23px;
    color: #999;
}

/* 旅行团列表 */
.tour-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.tour-item {
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 8px;
    border: 1px solid #f0f0f0;
}

.tour-item:hover {
    background: #f5f5f5;
}

.tour-item.active {
    background: #e6f7ff;
    border-color: #91d5ff;
}

.tour-info h3 {
    margin-bottom: 6px;
    font-size: 14px;
}

.tour-meta {
    display: flex;
    gap: 10px;
    color: #666;
    margin-bottom: 6px;
    font-size: 12px;
}

.tour-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-tag {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.status-tag.ongoing {
    background: #e6f7ff;
    color: #1890ff;
}

.status-tag.upcoming {
    background: #f6ffed;
    color: #52c41a;
}

.driver-name,
.guide-name {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
    margin-left: 10px;
}

.driver-name i,
.guide-name i {
    font-size: 12px;
}

.driver-name {
    margin-right: 15px;
}

/* 右侧团员面板 */
.member-panel {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.header-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tour-date {
    color: #666;
    font-size: 14px;
}

.member-toolbar {
    padding: 15px;
    display: flex;
    gap: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-box {
    display: flex;
    gap: 10px;
}

.filter-box select {
    padding: 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    outline: none;
}

/* 团员表格 */
.member-table-container {
    flex: 1;
    overflow: auto;
    padding: 15px;
}

.member-table {
    width: 100%;
    border-collapse: collapse;
}

.member-table th,
.member-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.member-table th {
    background: #fafafa;
    font-weight: 500;
}

.action-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
}

.action-btn.edit {
    background: #e6f7ff;
    color: #1890ff;
}

.action-btn.delete {
    background: #fff1f0;
    color: #ff4d4f;
}

/* 添加微信按钮样式 */
.action-btn.wechat {
    background: #07c160;
    color: #fff;
}

.action-btn.wechat:hover {
    background: #06ad56;
}

/* 调整操作列宽度 */
.member-table td:last-child {
    min-width: 120px;
}

/* 添加按钮提示效果 */
.action-btn {
    position: relative;
}

.action-btn:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

/* 头部按钮组样式 */
.header-actions {
    display: flex;
    gap: 12px;
}

.notify-btn {
    padding: 8px 16px;
    background: #faad14;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notify-btn:hover {
    background: #ffc53d;
}

/* 复选框样式 */
.member-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
}

.member-table th:first-child,
.member-table td:first-child {
    width: 40px;
    text-align: center;
    padding: 12px 8px;
}