/* 全局样式 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Noto+Serif+JP:wght@300;400;700&display=swap');

:root {
    --primary-color: #E94560;
    --secondary-color: #0F3460;
    --accent-color: #FF9F45;
    --light-color: #F9F7F7;
    --dark-color: #1A1A2E;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --primary-color-rgb: 233, 69, 96;
}

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

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: var(--light-color);
}

h1, h2, h3, h4 {
    font-family: 'Noto Serif JP', serif;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
}

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

/* 头部样式 */
header {
    background-color: white;
    box-shadow: var(--shadow);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.logo p {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 1.5rem;
}

nav a {
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
}

nav a:hover, nav a.active {
    color: var(--primary-color);
    background-color: rgba(233, 69, 96, 0.1);
}

nav i {
    margin-right: 0.4rem;
}

/* 英雄区域 */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/japan-hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 5%;
    text-align: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 700px;
}

.hero h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* 主要内容区 */
main {
    padding: 3rem 5%;
}

section {
    margin-bottom: 4rem;
}

.intro {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    text-align: center;
}

.intro h2 {
    color: var(--primary-color);
    font-size: 2rem;
}

.intro p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* 亮点卡片 */
.highlights-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.highlight-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateY(-10px);
}

.highlight-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* 快速访问卡片 */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* 页脚 */
footer {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 2rem;
}

/* 媒体查询 */
@media (max-width: 768px) {
    header {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav li {
        margin: 0.5rem;
    }
    
    .hero {
        height: 400px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 350px;
        padding: 3rem 5%;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

/* 行程页面样式 */
.itinerary-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.itinerary-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.day-links {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.day-links a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.day-links a:hover, .day-links a.active {
    background-color: rgba(233, 69, 96, 0.1);
    color: var(--primary-color);
}

.day-links a i {
    margin-right: 0.5rem;
}

.itinerary-content {
    flex-grow: 1;
}

.day-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.day-card h3 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    font-size: 1.5rem;
}

.day-card h3 i {
    margin-right: 0.5rem;
}

.day-card .date {
    color: #666;
    margin-bottom: 1.5rem;
}

.activity {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--accent-color);
}

.activity h4 {
    color: var(--secondary-color);
    display: flex;
    align-items: center;
}

.activity h4 i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.activity .time {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.highlight-note {
    background-color: rgba(255, 159, 69, 0.1);
    border-left: 3px solid var(--accent-color);
    padding: 1rem;
    margin: 1.5rem 0;
    position: relative;
    padding-top: 1.5rem;
}

.highlight-note::before {
    content: "旅行贴士";
    position: absolute;
    top: -12px;
    left: 10px;
    background-color: var(--accent-color);
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.special-moment {
    background-color: rgba(233, 69, 96, 0.1);
    border-left: 3px solid var(--primary-color);
    padding: 1rem;
    margin: 1.5rem 0;
    position: relative;
    padding-top: 1.5rem;
}

.special-moment::before {
    content: "特别时刻";
    position: absolute;
    top: -12px;
    left: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 景点页面样式 */
.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.attraction-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.attraction-card:hover {
    transform: translateY(-10px);
}

.attraction-image {
    height: 200px;
    overflow: hidden;
}

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

.attraction-card:hover .attraction-image img {
    transform: scale(1.1);
}

.attraction-info {
    padding: 1.5rem;
}

.attraction-card h3 {
    color: var(--secondary-color);
}

.attraction-card .location {
    color: #666;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.attraction-card .location i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

/* 日语短语页面样式 */
.phrases-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 2rem;
}

.phrase-category {
    margin-bottom: 2rem;
}

.phrase-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.phrase-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.japanese {
    font-weight: bold;
    color: var(--secondary-color);
}

.romaji {
    color: var(--primary-color);
    font-style: italic;
}

.meaning {
    margin-top: 0.5rem;
}

/* 旅行贴士页面样式 */
.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.tip-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: var(--transition);
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-card h3 {
    display: flex;
    align-items: center;
    color: var(--secondary-color);
}

.tip-card h3 i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.tip-card ul {
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.tip-card li {
    margin-bottom: 0.5rem;
}

/* 添加标签样式 */
.tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 5px;
    margin-bottom: 5px;
    cursor: help;
    position: relative;
}

.tag-highlight {
    background-color: var(--accent-color);
    color: white;
}

.tag-info {
    background-color: #3498db;
    color: white;
}

.tag-warning {
    background-color: #e67e22;
    color: white;
}

.tag-important {
    background-color: var(--primary-color);
    color: white;
}

.tag-cultural {
    background-color: #27ae60;
    color: white;
}

.tag-travel {
    background-color: #8e44ad;
    color: white;
}

.tag-food {
    background-color: #f39c12;
    color: white;
}

/* 悬停提示框样式 */
.tag .tooltip {
    visibility: hidden;
    width: 200px;
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-weight: normal;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-size: 0.85rem;
    line-height: 1.4;
    pointer-events: none;
}

.tag .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--dark-color) transparent transparent transparent;
}

.tag:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* 图片卡片替代样式 */
.fa-image-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(15, 52, 96, 0.1);
    border-radius: 8px 8px 0 0;
    transition: var(--transition);
    overflow: hidden;
}

.fa-image-container i {
    font-size: 5rem;
    color: var(--secondary-color);
    opacity: 0.7;
    transition: var(--transition);
}

.attraction-card:hover .fa-image-container i {
    transform: scale(1.2);
    opacity: 1;
}

/* 英雄区背景替代 */
.hero-fa-bg {
    background-color: var(--secondary-color) !important;
    position: relative;
    overflow: hidden;
}

.hero-fa-bg::before {
    content: "\f3c5"; /* fa-map-marker-alt */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    font-size: 20rem;
    opacity: 0.1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
}

/* 日语页面专用图标背景 */
.hero-fa-language::before {
    content: "\f1ab"; /* fa-language */
}

/* 行程页面专用图标背景 */
.hero-fa-route::before {
    content: "\f5eb"; /* fa-route */
}

/* 景点页面专用图标背景 */
.hero-fa-landmark::before {
    content: "\f66f"; /* fa-landmark */
}

/* 贴士页面专用图标背景 */
.hero-fa-tips::before {
    content: "\f0eb"; /* fa-lightbulb */
}

/* 特殊标记容器 */
.special-box {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;
    position: relative;
}

.special-box::before {
    content: attr(data-title);
    position: absolute;
    top: -12px;
    left: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 回到顶部按钮样式优化 */
#back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

#back-to-top:hover {
    background-color: #d03950;
    transform: translateY(-5px);
}

/* 针对打印的样式 */
@media print {
    .tag .tooltip {
        display: none;
    }
    
    nav, #back-to-top {
        display: none;
    }
}

/* 模态窗口样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 10% auto;
    padding: 0;
    width: 80%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.5s ease;
    overflow: hidden;
}

.modal-header {
    background-color: var(--secondary-color);
    color: white;
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.modal-header i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-header h2 {
    margin: 0;
    color: white;
}

.modal-body {
    padding: 1.5rem;
    line-height: 1.6;
}

.modal-footer {
    padding: 1rem 1.5rem;
    text-align: center;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-button:hover {
    color: var(--accent-color);
}

.modal-quote {
    background-color: rgba(var(--primary-color-rgb), 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    position: relative;
    font-style: italic;
    color: var(--secondary-color);
}

.modal-quote .fa-quote-left {
    position: absolute;
    top: -10px;
    left: -10px;
    color: var(--primary-color);
    background-color: white;
    padding: 5px;
    font-size: 1.2rem;
}

.modal-quote .fa-quote-right {
    position: absolute;
    bottom: -10px;
    right: -10px;
    color: var(--primary-color);
    background-color: white;
    padding: 5px;
    font-size: 1.2rem;
}

#start-journey {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

#start-journey:hover {
    background-color: #d03950;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
} 