/* 全局样式 */
:root {
    --primary-color: #10B981; /* 绿色主题 */
    --secondary-color: #34D399;
    --accent-color: #f59e0b;
    --text-color: #1f2937;
    --light-text-color: #6b7280;
    --background-color: #f3f4f6;
    --white: #ffffff;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* iPhone底部安全区域 */
.safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom, 20px);
}

/* 标签页底部导航样式 */
.tab-bar {
    height: 70px;
    padding-bottom: env(safe-area-inset-bottom, 20px);
}

/* 导航栏样式 */
.navbar {
    height: 60px;
}

/* 卡片样式 */
.card {
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 按钮涟漪效果 */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}

.btn-ripple:active:after {
    transform: scale(0, 0);
    opacity: .2;
    transition: 0s;
}

/* 动画过渡效果 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 图片加载效果 */
.img-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 确保图片加载占位样式 */
.img-placeholder {
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.img-placeholder::after {
    content: 'Loading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #9ca3af;
    font-size: 12px;
}

/* 行程规划卡片样式 */
.plan-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background-color: white;
}

/* 行程时间线样式 */
.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.timeline-line {
    width: 2px;
    background-color: #e5e7eb;
} 