/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    background-color: #f8f9fa;
    line-height: 1.6;
}

/* 应用容器 */
.app-container {
    width: 100%;
    max-width: 393px;
    height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #7b4397, #dc2430);
    color: white;
    padding: 15px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 1.2rem;
    font-weight: 700;
}

/* 主内容区域 */
main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 70px;
    scroll-behavior: smooth;
}

/* 面板样式 */
.panel {
    display: none;
    padding: 15px;
    height: 100%;
    padding-bottom: 30px;
}

.panel.active {
    display: block;
}

.panel h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #7b4397;
    color: #7b4397;
}

/* 底部导航栏样式 */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 393px;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.tabs {
    display: flex;
    justify-content: space-around;
}

.tabs .tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    width: 25%;
    font-size: 0.7rem;
    color: #666;
    transition: color 0.3s;
}

.tabs .tab i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.tabs .tab.active {
    color: #7b4397;
}

/* 行程安排面板样式 - 手风琴 */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    will-change: transform;
}

.accordion-item {
    border-radius: 10px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    will-change: contents;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: linear-gradient(to right, #f9f5fd, #f1e4fa);
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
    border-left: 4px solid #7b4397;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.accordion-header:hover {
    background: linear-gradient(to right, #f1e4fa, #e9d5f7);
}

.accordion-header.active {
    background: linear-gradient(to right, #f1e4fa, #e9d5f7);
}

.accordion-header h3 {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    background-color: rgba(123, 67, 151, 0.1);
    border-radius: 50%;
    transform: translateZ(0);
}

.accordion-icon i {
    color: #7b4397;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg) translateZ(0);
    background-color: rgba(123, 67, 151, 0.2);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s cubic-bezier(0, 1, 0, 1);
    padding: 0 15px;
    background-color: #ffffff;
    border-left: 4px solid #ddd;
    pointer-events: none;
}

.accordion-content.active {
    max-height: 2000px;
    padding: 0 15px 15px;
    transition: max-height 0.35s ease-in-out;
    background: linear-gradient(to bottom, #fcfaff, #ffffff);
    pointer-events: auto;
}

/* 日期相关样式 */
.accordion-item:nth-child(1) .accordion-header {
    border-left-color: #7b4397;
}

.accordion-item:nth-child(2) .accordion-header {
    border-left-color: #904e9a;
}

.accordion-item:nth-child(3) .accordion-header {
    border-left-color: #a5599d;
}

.accordion-item:nth-child(4) .accordion-header {
    border-left-color: #ba64a0;
}

/* 内容区渐变效果 */
.accordion-content.active {
    background: linear-gradient(to bottom, #fcfaff, #ffffff);
}

/* 移除旧样式 */
.day-tabs {
    display: none;
}

.day-content {
    display: none;
}

.day-content.active {
    display: block;
}

/* 时间线样式调整 */
.timeline {
    position: relative;
    padding-left: 20px;
    margin-top: 10px;
    transform: translateZ(0);
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 2px;
    background-color: #ddd;
}

.timeline-item {
    margin-bottom: 20px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 20px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -24px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #7b4397;
    border: 2px solid white;
}

.time {
    font-weight: bold;
    color: #7b4397;
    margin-bottom: 5px;
}

.event h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.event p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 3px;
}

/* 美食推荐面板样式 */
.food-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 20px;
}

.food-item {
    display: flex;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.food-item:active {
    transform: scale(0.98);
}

.food-img {
    width: 120px;
    height: 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.food-details {
    padding: 10px;
    flex: 1;
}

.food-details h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #333;
}

.food-details p {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 3px;
}

.food-details strong {
    color: #333;
}

/* 美食图标样式 */
.food-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7b4397, #dc2430);
    color: white;
}

.food-icon i {
    font-size: 2.5rem;
}

/* 为不同的美食设置不同的图标颜色 */
.food-item:nth-child(1) .food-icon {
    background: linear-gradient(135deg, #FF9500, #FF5E3A);
}

.food-item:nth-child(2) .food-icon {
    background: linear-gradient(135deg, #5856D6, #C644FC);
}

.food-item:nth-child(3) .food-icon {
    background: linear-gradient(135deg, #007AFF, #34AADC);
}

.food-item:nth-child(4) .food-icon {
    background: linear-gradient(135deg, #FF3B30, #FF9500);
}

.food-item:nth-child(5) .food-icon {
    background: linear-gradient(135deg, #4CD964, #5AC8FA);
}

.food-item:nth-child(6) .food-icon {
    background: linear-gradient(135deg, #FFCC00, #FF9500);
}

/* 交通信息面板样式 */
.transport-section {
    margin-bottom: 20px;
}

.transport-section h3 {
    font-size: 1.1rem;
    margin: 10px 0;
    color: #333;
}

.transport-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #7b4397;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.icon-wrap i {
    font-size: 1.1rem;
}

.transport-details h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.transport-details p {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 3px;
}

.notice-list {
    padding-left: 20px;
}

.notice-list li {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: #333;
}

/* 实用信息面板样式 */
.info-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.info-section h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #333;
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.info-list li i {
    margin-right: 10px;
    color: #7b4397;
    width: 20px;
    text-align: center;
}

.route-info {
    padding: 5px 0;
}

.route-stat {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #7b4397;
}

.stat-label {
    font-size: 0.75rem;
    color: #666;
}

.route-details {
    font-size: 0.85rem;
}

.route-details p {
    margin-bottom: 10px;
}

.btn {
    background-color: #7b4397;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.btn:hover {
    background-color: #6a3a83;
}

.emergency-numbers {
    display: flex;
    justify-content: space-around;
}

.emergency-item {
    text-align: center;
}

.emergency-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

.emergency-icon i {
    font-size: 1.3rem;
    color: #7b4397;
}

.emergency-number {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
}

.emergency-label {
    font-size: 0.75rem;
    color: #666;
}

.weather-info {
    display: flex;
    align-items: center;
}

.weather-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.weather-icon i {
    font-size: 1.5rem;
    color: #f8b62d;
}

.weather-details p {
    font-size: 0.85rem;
    margin-bottom: 5px;
}

/* 模态对话框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 370px;
    max-height: 80vh;
    overflow-y: auto;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
}

.route-detail h3 {
    font-size: 1.1rem;
    margin: 15px 0 10px;
}

.route-detail h4 {
    font-size: 1rem;
    margin: 12px 0 8px;
}

.route-detail p {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.route-detail ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.route-detail li {
    font-size: 0.85rem;
    margin-bottom: 5px;
}

/* 为最后一个交通条目添加底部间距 */
.transport-item:last-child {
    margin-bottom: 25px;
}

/* 为最后一个信息部分添加底部间距 */
.info-section:last-child {
    margin-bottom: 25px;
}

/* 底部安全区域 */
.safe-area-bottom {
    height: 70px;
    width: 100%;
    display: block;
    visibility: hidden;
} 