/* 基础样式 */
* {
    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;
}

/* 主容器 */
.route-container {
    display: flex;
    height: 100vh;
    padding: 20px;
    gap: 20px;
}

/* 左侧线路列表面板 */
.route-list-panel {
    width: 320px;
    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 {
    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;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.filter-tags .tag {
    padding: 4px 12px;
    border-radius: 12px;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tags .tag.active {
    background: #e6f7ff;
    color: #1890ff;
}

/* 线路列表 */
.route-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.route-item {
    padding: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
    border: 1px solid #f0f0f0;
}

.route-item:hover {
    background: #f5f5f5;
}

.route-item.active {
    background: #e6f7ff;
    border-color: #91d5ff;
}

.route-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.route-title h3 {
    font-size: 15px;
    color: #333;
}

.price {
    color: #ff4d4f;
    font-weight: 500;
}

.route-meta {
    display: flex;
    gap: 15px;
    color: #666;
    margin-bottom: 8px;
}

.route-tags {
    display: flex;
    gap: 8px;
}

.route-tags .tag {
    padding: 2px 8px;
    border-radius: 10px;
    background: #f5f5f5;
    font-size: 12px;
    color: #666;
}

/* 右侧详情面板 */
.route-detail-panel {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.detail-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-info h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.header-meta {
    display: flex;
    gap: 20px;
    color: #666;
}

.header-meta .price {
    font-size: 16px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-btn.edit {
    background: #e6f7ff;
    color: #1890ff;
}

.action-btn.delete {
    background: #fff1f0;
    color: #ff4d4f;
}

/* 详情内容 */
.detail-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.section {
    margin-bottom: 30px;
}

.section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 行程特色 */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #fafafa;
    border-radius: 4px;
}

.feature-item i {
    color: #52c41a;
}

/* 行程安排 */
.itinerary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.day-item {
    display: flex;
    gap: 20px;
    padding: 15px;
    background: #fafafa;
    border-radius: 4px;
}

.day-title {
    font-weight: 500;
    color: #1890ff;
    min-width: 60px;
}

.day-content h4 {
    margin-bottom: 8px;
}

.day-content p {
    color: #666;
    margin-bottom: 4px;
}

/* 费用说明 */
.price-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.price-item h4 {
    margin-bottom: 10px;
    color: #666;
}

.price-item ul {
    list-style: none;
}

.price-item li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
    color: #666;
}

.price-item li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #1890ff;
}

/* 发布面板样式 */
.publish-panel {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
}

.platform-select {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.platform-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.platform-name {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
}

.platform-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
}

.publish-btn {
    padding: 8px 20px;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.publish-btn:hover {
    background: #40a9ff;
}