/* style.css — one file, linked from every page */

/* 1 · Text: set it once on body, everything inside inherits it */
/* style.css - one file, linked from every page */
/* 1 . Text: set it once on body, everything inside inherits it */
body {
  margin: 0;
  /* 正文、导航用清爽无衬线 */
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: #1f2937;
  background: #d9c7a1;
}

/* ✨ 新增：所有一级、二级、三级标题用衬线，增加旅行网站氛围感 */
h1, h2, h3 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  color: #3a3028
}
/* 2 · The content column */
main {
  max-width: 48rem;
  margin: 0 auto;           /* centred */
  padding: 1rem 2rem;
}

img {
  max-width: 100%;          /* never wider than its box */
  height: auto;
}

/* 3 · The homepage hero: one wide photo, cropped to fit */
.hero img {
  width: 100%;
  height: 20rem;
  object-fit: cover;        /* fill the box, crop the rest — never squash */
  border-radius: 10px;
}

/* 4 · The header: logo left, links centred, action right */
nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
}

nav .links {
  display: flex;
  gap: 1.5rem;
  margin: 0 auto;           /* pushes it to the centre */
  padding: 0;
  list-style: none;         /* no bullets */
}

nav a {
  color: #334155;
  text-decoration: none;    /* no underlines */
}

nav .logo {
  font-weight: 800;
  color: #c2410c;
}

nav .action {
  border: 1.5px solid #0369a1;
  border-radius: 99px;      /* a pill */
  padding: .3em 1em;
  color: #0369a1;
}

nav a:hover {
  color: #c2410c;
}

/* 5 · One quote card — the box model, on all twenty at once */
.quote {
  max-width: 34rem;
  margin-bottom: 1.5rem;    /* space outside */
  padding: 1.1em 1.3em;     /* space inside */
  background: #fff;
  border: 1px solid #dcd8d0;
  border-left: 4px solid #c2410c;
  border-radius: 10px;
}

.quote blockquote {
  margin: 0;                /* drop the browser's indent inside the card */
}
#randomQuote {
  transition: opacity 0.5s ease;
  font-size: 1.4rem;
  line-height:1.6;
  color: red
}

/* 6 · The site footer: by id, because every quote has a <footer> too */
#site-footer {
  padding: 1rem 2rem;
  border-top: 1px solid #dcd8d0;
  color: #6b7280;
}
.runaway-box {
  margin-top: 60px;
  padding: 40px 0;
  text-align: center;
}
#travelBtn {
  width: 180px;
  height: 180px;
  font-size: 26px;
  background-color: #dc2626;
  color: white;
  border: none;
  border-radius: 50%;  /* 50% = 正圆形 */
  cursor: pointer;
  position: relative;
  transition: 0.2s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  font-weight: 600;
  letter-spacing: 1px;
}

#travelBtn:hover {
  background-color: #b91c1c;
  box-shadow: 0 10px 26px rgba(0,0,0,0.3);
}
/* 调整导航栏标题大小和外观 */
.site-header nav a {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 21px;
  font-weight: 600;
  color: #222;
  margin: 0 12px;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.site-header nav a:hover {
  background-color: #f0e8df;
  color: #5a3f2b;
}
/* ===== Development Log 页面专用样式 ===== */
.log-entry {
  max-width: 850px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.log-entry h3 {
  color: #222;
  border-left: 4px solid #4488dd;
  padding-left: 12px;
  margin-top: 2rem;
}

.log-entry p {
  line-height: 1.7;
  color: #444;
}

.log-entry ul {
  padding-left: 24px;
  line-height: 1.7;
}

/* 👉 响应式：手机自动适配（作业响应式得分点！） */
@media (max-width: 768px) {
  .log-entry {
    margin: 1rem;
    padding: 1.2rem;
  }
}
.destination-grid{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap:1.5rem;
    margin:2rem 0;
}
.dest-card{
    background: #ffffff;
    padding:1.2rem;
    border-radius:12px;
}
@media(max-width:768px){
    .destination-grid{
        grid-template-columns:1fr;
    }
}
.about-profile {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin: 1rem 0 2rem;
}
.profile-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
}
.intro-text {
    flex: 1;
}
@media (max-width: 768px) {
    .about-profile {
        flex-direction: column;
        text-align: center;
    }
}