/* maryask Travel — 金黑风世界级设计 */
:root {
  --gold: #FFAC02;
  --gold-dark: #C88400;
  --black: #170D02;
  --dark: #1a1a1a;
  --card: #1e1e1e;
  --text: #ccc;
  --muted: #777;
  --border: #2a2a2a;
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Nav ── */
.nav {
  background: rgba(23,13,2,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  padding: 14px 0;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { color: var(--gold); font-size: 22px; font-weight: 900; letter-spacing: 2px; text-decoration: none; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }
.nav-links a:active { color: var(--gold); }
.nav-toggle { display: none; }
.nav-links a.active { color: var(--gold); font-weight: bold; }

/* ── Hero ── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,172,2,0.08) 0%, transparent 60%);
}
.hero h1 { font-size: 48px; color: var(--gold); letter-spacing: 4px; margin-bottom: 12px; font-weight: 900; }
.hero .subtitle { font-size: 18px; color: var(--muted); letter-spacing: 8px; text-transform: uppercase; margin-bottom: 36px; }
.hero-search {
  display: flex; max-width: 600px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--border); border-radius: 50px;
  overflow: hidden; transition: transform 0.3s, border-color 0.3s;
}
.hero-search:focus-within { border-color: var(--gold); }
.hero-search input {
  flex: 1; padding: 16px 24px; font-size: 16px;
  background: transparent; border: none; color: #fff; outline: none;
}
.hero-search input::placeholder { color: #555; }
.hero-search button {
  padding: 16px 32px; background: var(--gold); border: none;
  color: var(--black); font-weight: bold; font-size: 15px; cursor: pointer;
  transition: background 0.2s;
}
.hero-search button:hover { background: var(--gold-dark); }
.hero-tags { margin-top: 20px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.hero-tags span {
  padding: 6px 16px; background: rgba(255,172,2,0.1); border: 1px solid rgba(255,172,2,0.2);
  border-radius: 20px; font-size: 13px; color: var(--gold); cursor: pointer; transition: background 0.2s;
}
.hero-tags span:hover { background: rgba(255,172,2,0.2); }

/* ── Section ── */
.section { padding: 40px 0; }
.section-header { margin-bottom: 28px; display: flex; justify-content: space-between; align-items: center; }
.section-header h2 { font-size: 24px; color: var(--gold); letter-spacing: 2px; }
.section-header a { color: var(--muted); text-decoration: none; font-size: 14px; }
.section-header a:hover { color: var(--gold); }

/* ── Destination Cards ── */
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.dest-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; cursor: pointer; transition: transform 0.3s, border-color 0.3s;
}
.dest-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.dest-card-img {
  height: 180px; background-size: cover; background-position: center;
  position: relative;
}
.dest-card-img .tag {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px; background: var(--gold); color: var(--black);
  font-size: 11px; font-weight: bold; border-radius: 4px;
}
.dest-card-body { padding: 16px; }
.dest-card-body h3 { font-size: 18px; color: #fff; margin-bottom: 6px; }
.dest-card-body p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.dest-card-body .meta { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: #555; }

/* ── AI Banner ── */
.ai-banner {
  background: linear-gradient(135deg, rgba(255,172,2,0.1), rgba(255,172,2,0.02));
  border: 1px solid rgba(255,172,2,0.2); border-radius: 16px;
  padding: 40px; text-align: center; margin: 40px 0;
}
.ai-banner h2 { font-size: 28px; color: var(--gold); margin-bottom: 12px; }
.ai-banner p { color: var(--muted); margin-bottom: 24px; max-width: 500px; margin-left: auto; margin-right: auto; }
.ai-banner .btn {
  display: inline-block; padding: 14px 40px; background: var(--gold);
  color: var(--black); font-weight: bold; font-size: 16px; border-radius: 50px;
  text-decoration: none; transition: background 0.2s, transform 0.2s;
}
.ai-banner .btn:hover { background: var(--gold-dark); transform: scale(1.05); }

/* ── News Feed ── */
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item {
  display: flex; gap: 16px; padding: 16px; background: var(--card);
  border: 1px solid var(--border); border-radius: 8px; text-decoration: none;
  transition: border-color 0.2s;
}
.news-item:hover { border-color: var(--gold); }
.news-item .source {
  padding: 2px 8px; background: rgba(255,172,2,0.15); color: var(--gold);
  font-size: 11px; border-radius: 4px; white-space: nowrap; height: fit-content;
}
.news-item .content h4 { color: #ddd; font-size: 14px; margin-bottom: 4px; }
.news-item .content p { color: var(--muted); font-size: 12px; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border); padding: 40px 0; text-align: center;
  color: var(--muted); font-size: 13px;
}
.footer .links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; }
.footer .links a { color: var(--muted); text-decoration: none; }
.footer .links a:hover { color: var(--gold); }

/* ── Destination Page ── */
.dest-hero {
  height: 400px; background-size: cover; background-position: center;
  display: flex; align-items: flex-end; padding: 40px; position: relative;
}
.dest-hero::after { content:''; position:absolute; inset:0; background:linear-gradient(transparent 40%, var(--black) 100%); }
.dest-hero h1 { font-size: 42px; color: #fff; position: relative; z-index: 1; }
.dest-hero .sub { font-size: 16px; color: var(--gold); position: relative; z-index: 1; }
.dest-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 30px; }
.dest-tabs a { padding: 14px 24px; color: var(--muted); text-decoration: none; font-size: 14px; border-bottom: 2px solid transparent; transition: color 0.2s, border-bottom-color 0.2s; }
.dest-tabs a:hover, .dest-tabs a.active { color: var(--gold); border-bottom-color: var(--gold); }
.dest-grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.dest-card-lg { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.dest-card-lg h3 { font-size: 18px; color: var(--gold); margin-bottom: 16px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  /* Nav */
  .nav { padding: 10px 0; }
  .nav .container { padding: 0 12px; }
  .nav-logo { font-size: 18px; }
  .nav-links { display: none; }
  .nav-links.open { 
    display: flex; flex-direction: column; position: absolute; top: 48px; left: 0; right: 0;
    background: rgba(23,13,2,0.98); padding: 12px; gap: 8px; border-bottom: 1px solid var(--border);
  }
  .nav-links.open a { padding: 10px 12px; border-radius: 8px; }
  .nav-links.open a:active { background: rgba(255,172,2,0.1); }
  
  /* Hamburger */
  .nav-toggle { display: block; background: none; border: none; color: var(--gold); font-size: 24px; cursor: pointer; padding: 4px; }
  @media (min-width: 769px) { .nav-toggle { display: none; } }
  
  /* Hero */
  .hero { padding: 40px 12px 30px; }
  .hero h1 { font-size: 26px; }
  .hero .subtitle { font-size: 13px; letter-spacing: 4px; margin-bottom: 24px; }
  .hero-search { max-width: 100%; border-radius: 30px; }
  .hero-search input { padding: 12px 16px; font-size: 14px; }
  .hero-search button { padding: 12px 20px; font-size: 13px; }
  .hero-tags { gap: 6px; }
  .hero-tags span { padding: 4px 12px; font-size: 11px; }
  
  /* Sections */
  .section { padding: 24px 0; }
  .section-header h2 { font-size: 18px; }
  .container { padding: 0 12px; }
  
  /* Cards */
  .dest-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dest-card-img { height: 120px; }
  .dest-card-body { padding: 10px; }
  .dest-card-body h3 { font-size: 15px; }
  .dest-card-body p { font-size: 11px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .dest-card-body .meta { font-size: 10px; gap: 8px; margin-top: 6px; }
  
  /* AI Banner */
  .ai-banner { padding: 24px 16px; margin: 20px 0; }
  .ai-banner h2 { font-size: 20px; }
  .ai-banner .btn { padding: 12px 28px; font-size: 14px; }
  
  /* News */
  .news-item { padding: 12px; gap: 10px; }
  .news-item .content h4 { font-size: 13px; }
  .news-item .content p { font-size: 11px; }
  
  /* Dest page */
  .dest-hero { height: 220px; padding: 20px; }
  .dest-hero h1 { font-size: 28px; }
  .dest-grid-2 { grid-template-columns: 1fr; gap: 16px; }
  .dest-tabs { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .dest-tabs a { padding: 10px 16px; font-size: 13px; }
  .dest-card-lg { padding: 16px; }
  .dest-card-lg h3 { font-size: 16px; }
  
  /* Footer */
  .footer { padding: 24px 0; font-size: 11px; }
  .footer .links { gap: 16px; }
}

/* Small phones */
@media (max-width: 400px) {
  .dest-grid { grid-template-columns: 1fr; }
  .dest-card-img { height: 160px; }
  .hero h1 { font-size: 22px; }
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease-out; }

@media(max-width:640px){
.nav .container{padding:8px 12px}
.nav-logo{font-size:16px}
.nav-links{gap:10px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.nav-links::-webkit-scrollbar{display:none}
.nav-links a{font-size:11px;white-space:nowrap;padding:4px 0}
}
