@layer travel-photos {
  main {
    max-width: var(--travel-main-width, 1160px);
  }

  h2 {
    margin: 30px 0 14px;
    font-size: 26px;
  }

  h3 {
    margin: 0 0 8px;
    font-size: 20px;
  }

  .section-card,
  .spot-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--travel-card-bg, rgba(255, 250, 242, 0.94));
    box-shadow: var(--travel-shadow, var(--shadow, 0 12px 32px rgba(64, 55, 41, 0.08)));
  }

  .section-card {
    padding: 20px;
    margin: 0 0 22px;
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .spot-card {
    overflow: hidden;
  }

  .spot-card img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
    background: #ddd;
  }

  .spot-body {
    padding: 16px;
  }

  .tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 8px 0 12px;
  }

  .tag {
    padding: 3px 8px;
    border-radius: 999px;
    color: #fff;
    background: var(--ink);
    font-size: 12px;
    font-weight: 800;
  }

  .tag.must {
    background: var(--accent);
  }

  .tag.recommend {
    background: var(--accent-2);
  }

  .tag.optional {
    background: var(--muted);
  }

  ul {
    margin: 8px 0 0;
    padding-left: 20px;
  }

  li {
    margin: 6px 0;
  }

  .source {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
  }

  .priority {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 14px;
  }

  .priority th,
  .priority td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }

  .priority th {
    color: var(--muted);
    background: var(--travel-table-head-bg, #f2eadc);
    font-size: 13px;
  }

  .priority tr:last-child td {
    border-bottom: 0;
  }

  @media (max-width: 980px) {
    .grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (max-width: 620px) {
    main {
      padding: 18px;
    }

    .grid {
      grid-template-columns: 1fr;
    }

    .priority,
    .priority thead,
    .priority tbody,
    .priority tr,
    .priority th,
    .priority td {
      display: block;
      width: 100%;
    }

    .priority thead {
      display: none;
    }

    .priority {
      border-radius: 0;
    }

    .priority tr {
      margin: 0 0 12px;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.56);
    }

    .priority td {
      display: grid;
      grid-template-columns: 86px minmax(0, 1fr);
      gap: 10px;
      padding: 7px 0;
      border-bottom: 1px solid rgba(222, 215, 200, 0.72);
    }

    .priority td:last-child {
      border-bottom: 0;
    }

    .priority td::before {
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }

    .priority td:nth-child(1)::before {
      content: "优先级";
    }

    .priority td:nth-child(2)::before {
      content: "景点";
    }

    .priority td:nth-child(3)::before {
      content: "城市";
    }

    .priority td:nth-child(4)::before {
      content: "适合";
    }

    .priority td:nth-child(5)::before {
      content: "关键词";
    }

    .priority td:first-child {
      color: var(--accent);
      font-weight: 800;
    }
  }
}
