*{box-sizing:border-box}

:root{
  --green:#2fa943;
  --dark:#167a2b;
  --soft:#e9f8df;
  --blue:#5d84db;
  --text:#202326;
  --muted:#69766a;
  --line:rgba(38,120,50,.12);
  --shadow:0 16px 40px rgba(31,89,45,.14);
}

body{
  margin:0;
  color:var(--text);
  font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif;
  background:linear-gradient(180deg,#f8fff1,#edf8e7);
}

a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit}
button{border:0;cursor:pointer}
h1,h2,h3,p{margin:0}

.top{
  height:80px;
  padding:0 48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:rgba(255,255,255,.92);
  box-shadow:0 8px 24px rgba(46,115,50,.08);
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:blur(12px);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:900;
  line-height:1.1;
  font-size:20px;
}

.mark{
  width:44px;
  height:44px;
  border-radius:50% 50% 50% 12px;
  background:linear-gradient(145deg,#61c863,#1c8f35);
  display:grid;
  place-items:center;
  color:#fff;
  transform:rotate(-12deg);
  box-shadow:0 10px 22px rgba(47,169,67,.22);
  font-size:18px;
}

.mark span{transform:rotate(12deg)}

.brand small{
  display:block;
  font-size:12px;
  color:#455245;
  letter-spacing:.05em;
  font-weight:600;
}

/* ===== 导航：字体超大、间距拉宽、字重加重 ===== */
.nav{
  display:flex;
  gap:55px;
  font-weight:900;
  font-size:22px;
  letter-spacing:1px;
}

.nav a{
  color:#1f2a22;
  position:relative;
  font-size:22px;
  padding:4px 0;
  transition:color 0.2s;
}

.nav a:hover{
  color:var(--green);
}

.nav a.active{
  color:var(--green);
}

.nav a.active:after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-20px;
  width:24px;
  height:5px;
  border-radius:8px;
  background:var(--green);
  transform:translateX(-50%);
}

.login{
  padding:12px 26px;
  border-radius:999px;
  color:#fff;
  background:linear-gradient(135deg,#2fa943,#16812c);
  font-weight:800;
  font-size:16px;
}

.login.active{
  box-shadow:0 0 0 4px rgba(47,169,67,.16);
}

.home{
  display:grid;
  grid-template-columns:350px minmax(560px,1fr);
  gap:24px;
  min-height:0;
  padding:26px 36px 24px;
  align-items:start;
}

.hero-copy{
  padding:24px 0 0 4px;
}

.hero-copy h1{
  font-size:72px;
  letter-spacing:-3px;
  line-height:.98;
}

.script{
  font-family:"Brush Script MT","Segoe Script",cursive;
  color:var(--green);
  font-size:46px;
  margin-top:4px;
}

.slogan{
  margin-top:28px;
  font-size:22px;
  font-weight:900;
}

.lead{
  margin-top:16px;
  color:#405040;
  font-size:17px;
  line-height:1.85;
}

.search{
  margin-top:26px;
  padding:13px;
  border-radius:24px;
  background:rgba(255,255,255,.9);
  box-shadow:var(--shadow);
}

.search input{
  width:100%;
  height:48px;
  border:0;
  border-radius:18px;
  background:#f7fbf5;
  padding:0 16px;
  outline:0;
}

.search button{
  margin-top:10px;
  width:100%;
  height:48px;
  border-radius:18px;
  background:linear-gradient(135deg,#34b343,#208c2f);
  color:#fff;
  font-weight:800;
}

.quick{
  margin-top:26px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}

.quick a{
  display:grid;
  justify-items:center;
  gap:8px;
  color:#526052;
  font-size:13px;
  font-weight:700;
  text-align:center;
  transition:.18s;
}

.quick a:hover{
  transform:translateY(-3px);
  color:var(--dark);
}

.quick span{
  width:38px;
  height:38px;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#fff;
}

.map-wrap{
  position:relative;
  height:520px;
  min-height:520px;
  border-radius:34px;
  overflow:hidden;
  box-shadow:0 26px 55px rgba(42,105,46,.18);
  background:transparent;
}

#map{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

#map .amap-container{
  height:100%!important;
}

.spot-marker{
  position:relative;
  display:flex;
  align-items:center;
  gap:7px;
  padding:6px 10px 6px 6px;
  border-radius:14px;
  background:rgba(255,255,255,.95);
  box-shadow:0 10px 24px rgba(40,77,50,.2);
  white-space:nowrap;
  font-size:13px;
  font-weight:900;
  color:#27302a;
  transform:translateY(-8px);
  transition:.18s;
}

.spot-thumb{
  width:34px;
  height:34px;
  border-radius:10px;
  background:var(--photo);
  display:block;
}

.spot-marker:after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-13px;
  width:17px;
  height:17px;
  border:5px solid #6f93cf;
  border-radius:50%;
  background:#fff;
  transform:translateX(-50%);
}

.spot-marker:hover{
  transform:translateY(-13px) scale(1.04);
  box-shadow:0 16px 30px rgba(40,77,50,.3);
}

.home-below{
  padding:0 36px 36px;
}

.clean-board{
  border-radius:30px;
  background:rgba(255,255,255,.82);
  box-shadow:var(--shadow);
  padding:22px;
}

.board-top{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.rank-card{
  min-height:104px;
  border-radius:22px;
  padding:20px;
  background:linear-gradient(135deg,#eefbf0,#fff);
  display:flex;
  align-items:center;
  justify-content:space-between;
  overflow:hidden;
}

.rank-card:nth-child(2){
  background:linear-gradient(135deg,#fff8ea,#fff);
}

.rank-card h3{
  font-size:24px;
}

.rank-card p{
  margin-top:8px;
  color:#62725f;
}

.rank-art{
  width:112px;
  height:72px;
  border-radius:18px;
  background:var(--photo);
  box-shadow:0 12px 24px rgba(0,0,0,.1);
}

.tabs{
  display:flex;
  gap:26px;
  margin:24px 0 18px;
  color:#6d756f;
  font-size:18px;
  flex-wrap:wrap;
}

.tabs span{
  padding:7px 15px;
  border-radius:999px;
}

.tabs .on{
  background:#e9effd;
  color:#4e73c9;
}

.recommend-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}

.recommend-card{
  border-radius:20px;
  background:#fff;
  box-shadow:0 10px 24px rgba(35,91,43,.08);
  overflow:hidden;
}

.recommend-img{
  height:116px;
  background:var(--photo);
}

.recommend-body{
  padding:14px;
}

.recommend-body h3{
  font-size:18px;
}

.recommend-body p{
  margin-top:7px;
  color:#667266;
  font-size:14px;
  line-height:1.5;
}

.page{
  padding:34px 42px;
}

.page-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  margin-bottom:22px;
}

.page-head h1{
  font-size:38px;
}

.page-head p{
  color:var(--muted);
  margin-top:8px;
}

.city-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}

.city-card{
  padding:20px;
  border-radius:22px;
  background:#fff;
  box-shadow:var(--shadow);
  min-height:220px;
  transition:.18s;
}

.city-card:hover{
  transform:translateY(-4px);
}

.city-card h3{
  font-size:24px;
  color:var(--dark);
}

.city-card p{
  margin-top:10px;
  color:#60705f;
  line-height:1.7;
}

.mini{
  margin-top:14px;
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.pill{
  padding:5px 9px;
  border-radius:999px;
  background:#e9f8df;
  color:var(--dark);
  font-size:13px;
  font-weight:700;
}

.detail{
  display:grid;
  grid-template-columns:340px 1fr;
  gap:22px;
}

.side{
  padding:24px;
  border-radius:28px;
  background:#fff;
  box-shadow:var(--shadow);
  height:max-content;
}

.side h1{
  font-size:42px;
  margin-top:18px;
}

.side p{
  margin-top:16px;
  color:#60705f;
  line-height:1.8;
}

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

.spot-card{
  border-radius:22px;
  background:#fff;
  box-shadow:var(--shadow);
  overflow:hidden;
}

.spot-card .pic{
  height:150px;
  background:var(--photo);
}

.spot-card .body{
  padding:16px;
}

.spot-card h3{
  font-size:20px;
}

.spot-card p{
  margin-top:8px;
  color:#657365;
  line-height:1.55;
}

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

.route-card{
  padding:20px;
  border-radius:22px;
  background:#fff;
  box-shadow:var(--shadow);
}

.route-card h3{
  color:var(--dark);
  font-size:22px;
}

.route-card p{
  margin-top:10px;
  color:#657365;
  line-height:1.7;
}

.form-card{
  max-width:760px;
  padding:24px;
  border-radius:26px;
  background:#fff;
  box-shadow:var(--shadow);
}

.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.form-card label{
  display:grid;
  gap:8px;
  color:#60705f;
}

.form-card input,
.form-card select,
.form-card textarea{
  width:100%;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fbfef9;
  outline:0;
}

.form-card textarea{
  min-height:110px;
  resize:vertical;
}

.primary{
  margin-top:16px;
  padding:12px 18px;
  border-radius:999px;
  background:linear-gradient(135deg,#34b343,#208c2f);
  color:#fff;
  font-weight:800;
}

.result{
  margin-top:18px;
  padding:18px;
  border-radius:20px;
  background:#f3fbef;
  color:#476047;
  line-height:1.7;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.post-img {
  height: 200px;
  border-radius: 16px 16px 0 0;
  background: var(--photo);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.post-body {
  padding: 16px;
}
.post-body h3 {
  margin:0 0 8px;
  font-size: 20px;
}
.post-body p {
  margin:0;
  color:#555;
  line-height:1.6;
}

.profile-hero{
  display:grid;
  grid-template-columns:360px 1fr;
  gap:22px;
}

.profile-card{
  padding:24px;
  border-radius:28px;
  background:#fff;
  box-shadow:var(--shadow);
}

.avatar{
  width:96px;
  height:96px;
  border-radius:28px;
  background:linear-gradient(135deg,#ffd6e7,#86d989);
  display:grid;
  place-items:center;
  font-size:44px;
  box-shadow:0 12px 24px rgba(47,169,67,.14);
}

.profile-name{
  margin-top:16px;
  font-size:30px;
  color:var(--dark);
}

.profile-card p{
  margin-top:10px;
  color:#657365;
  line-height:1.7;
}

.avatar-upload{
  margin-top:14px;
  display:inline-block;
  padding:9px 14px;
  border-radius:999px;
  background:#e9f8df;
  color:var(--dark);
  font-weight:800;
  cursor:pointer;
}

.avatar-upload input{
  display:none;
}

.profile-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:20px;
}

.stat{
  padding:16px;
  border-radius:18px;
  background:#f3fbef;
}

.stat strong{
  font-size:24px;
  color:var(--dark);
}

.stat span{
  display:block;
  margin-top:4px;
  color:#687667;
}

.profile-map{
  margin-top:18px;
  height:210px;
  border-radius:24px;
  background:
    radial-gradient(circle at 35% 35%,#98dc8c 0 8%,transparent 9%),
    radial-gradient(circle at 60% 42%,#57c36f 0 7%,transparent 8%),
    radial-gradient(circle at 48% 68%,#ffc95c 0 7%,transparent 8%),
    linear-gradient(135deg,#e8f8df,#f7fff3);
  position:relative;
  overflow:hidden;
}

.profile-map:before{
  content:"我的浙江点亮地图";
  position:absolute;
  left:20px;
  top:18px;
  font-weight:900;
  color:var(--dark);
}

.profile-map span{
  position:absolute;
  padding:6px 10px;
  border-radius:999px;
  background:#fff;
  box-shadow:0 8px 18px rgba(47,105,47,.12);
  font-size:13px;
  font-weight:800;
  color:#4b604b;
}

.pin-hz{left:28%;top:38%}
.pin-jx{left:54%;top:31%}
.pin-zs{right:18%;top:58%}
.pin-ls{left:42%;bottom:18%}

.check-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}

.check-card{
  padding:18px;
  border-radius:22px;
  background:#fff;
  box-shadow:var(--shadow);
  min-height:150px;
}

.check-card.done{
  background:linear-gradient(135deg,#f3fff1,#fff);
}

.check-card h3{
  color:var(--dark);
  font-size:21px;
}

.check-card p{
  margin-top:8px;
  color:#657365;
  line-height:1.55;
}

.stamp{
  margin-top:16px;
  display:inline-block;
  padding:7px 12px;
  border-radius:999px;
  background:#e9f8df;
  color:var(--dark);
  font-weight:800;
}

.stamp.todo{
  background:#fff3e1;
  color:#9a6a18;
}

@media(max-width:1100px){
  .home,
  .detail,
  .profile-hero{
    grid-template-columns:1fr;
  }

  .city-grid,
  .recommend-grid,
  .spot-grid,
  .route-list,
  .post-grid,
  .check-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:720px){
  .top{
    height:auto;
    padding:14px 18px;
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
  }

  .nav{
    gap:20px;
    flex-wrap:wrap;
    font-size:16px;
  }

  .nav a{
    font-size:16px;
  }

  .home,
  .page,
  .home-below{
    padding:20px;
  }

  .hero-copy h1{
    font-size:54px;
  }

  .map-wrap,
  #map{
    height:420px;
    min-height:420px;
  }

  .board-top,
  .form-grid,
  .city-grid,
  .recommend-grid,
  .spot-grid,
  .route-list,
  .post-grid,
  .profile-stats,
  .check-grid{
    grid-template-columns:1fr;
  }
}
.slideshow{
    position:relative;
    overflow:hidden;
}

.slide{
    position:absolute;
    width:100%;
    height:100%;
    object-fit:cover;
    opacity:0;
    transition:opacity 1s;
}

.slide.active{
    opacity:1;
}

.recommend-img{
    overflow:hidden;
}

.recommend-img img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.pic-img{
  width:100%;
  height:180px;
  object-fit:cover;
  border-radius:12px 12px 0 0;
  display:block;
}
/* ===== AI行程 左右分栏 ===== */
.plan-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 30px;
  align-items: stretch;
}

.plan-form-container {
  min-width: 0;
}

.plan-slideshow-container {
  height: 100%;
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #eaf6e3;
  position: relative;
}

.plan-slideshow-container .slideshow {
  width: 100%;
  height: 100%;
  position: relative;
}

.plan-slideshow-container .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.plan-slideshow-container .slide.active {
  opacity: 1;
}

@media (max-width: 1100px) {
  .plan-layout {
    grid-template-columns: 1fr;
  }
  .plan-slideshow-container {
    height: 400px;
    min-height: 400px;
  }
}

.post-delete-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.95);
  color: #d93636;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: background 0.2s;
}
.post-delete-btn:hover {
  background: #ffe0e0;
}
/* 地图上的地名气泡 */
.map-label {
  padding: 6px 14px;
  border-radius: 22px;
  background: #ff5722;
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  border: 3px solid #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  white-space: nowrap;
}