:root {
    --primary: #2d4a3e; /* Forest Green */
    --secondary: #d4a373; /* Earth Sand */
    --accent: #e9edc9; /* Light Grass */
    --bg: #0f1612; /* Dark Deep Forest */
    --card-bg: #1a241f;
    --text: #f8f9fa;
    --text-muted: #adb5bd;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Noto Sans TC', 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    height: 60vh;
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(15,22,18,1)), url('https://images.unsplash.com/photo-1544198365-f5d60b6d8190?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 2rem;
}

.date-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(45, 74, 62, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-weight: 300;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 4rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--secondary), transparent);
}

.day-block {
    margin-bottom: 6rem;
    position: relative;
    padding-left: 60px;
}

.day-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.day-date {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.day-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}

/* Cards */
.item-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.item-card::before {
    content: '';
    position: absolute;
    left: -48px;
    top: 25px;
    width: 16px;
    height: 16px;
    background: var(--bg);
    border: 3px solid var(--secondary);
    border-radius: 50%;
    z-index: 2;
}

.item-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--secondary);
    box-shadow: var(--shadow);
}

.item-icon {
    font-size: 1.5rem;
    background: rgba(255,255,255,0.05);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.item-info {
    flex: 1;
}

.item-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.2rem;
}

.item-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.tag-交通 { background: #3a506b; color: #fff; }
.tag-景點 { background: #588157; color: #fff; }
.tag-住宿 { background: #bc4749; color: #fff; }

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 10% auto;
    padding: 3rem;
    border: 1px solid var(--border);
    width: 80%;
    max-width: 600px;
    border-radius: 24px;
    position: relative;
    box-shadow: var(--shadow);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.link-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.link-btn:hover {
    background: #c29567;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .container { padding: 1rem; }
    .hero-content h1 { font-size: 2.2rem; }
    .item-card { padding: 1rem; }
    .day-title { font-size: 1.4rem; }
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.image-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
    background: #000;
}

.image-item:hover {
    transform: scale(1.05);
    border-color: var(--secondary);
    box-shadow: var(--shadow);
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.image-item:hover img {
    opacity: 0.8;
}

.image-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    font-size: 0.7rem;
    font-family: 'Outfit', sans-serif;
    opacity: 0;
    transition: var(--transition);
}

.image-item:hover .image-info-overlay {
    opacity: 1;
}

/* Modal Image Full View */
.modal-image-full {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.gallery-title {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive fixes */
@media (max-width: 480px) {
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
