/* ===== 导游网 - 全局样式 ===== */
:root {
  --primary: #c0392b;
  --primary-dark: #a93226;
  --primary-light: #e74c3c;
  --secondary: #2c3e50;
  --accent: #f39c12;
  --accent-light: #f1c40f;
  --bg-light: #f8f9fa;
  --bg-dark: #1a1a2e;
  --text: #333;
  --text-light: #666;
  --text-white: #fff;
  --border: #e0e0e0;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-hover: 0 5px 25px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-lg: 12px;
  --font: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); color: var(--text); background: var(--bg-light); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 15px; }

/* ===== Header / Top Bar ===== */
.top-bar {
  background: var(--secondary);
  color: var(--text-white);
  font-size: 13px;
  padding: 6px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: #ccc; margin-left: 15px; }
.top-bar a:hover { color: #fff; }
.top-bar .phone { color: var(--accent); font-weight: bold; font-size: 14px; }

/* ===== Header / Logo + Search ===== */
.header {
  background: #fff;
  border-bottom: 3px solid var(--primary);
  padding: 20px 0;
}
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo h1 { font-size: 28px; color: var(--primary); }
.logo h1 span { color: var(--secondary); }
.logo p { font-size: 13px; color: var(--text-light); margin-top: 2px; }
.search-box { display: flex; }
.search-box input {
  width: 350px; padding: 10px 15px; border: 2px solid var(--border);
  border-right: none; border-radius: var(--radius) 0 0 var(--radius);
  font-size: 14px; outline: none; transition: border-color 0.3s;
}
.search-box input:focus { border-color: var(--primary); }
.search-box button {
  background: var(--primary); color: #fff; border: none;
  padding: 10px 20px; border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer; font-size: 14px; font-weight: bold;
}
.search-box button:hover { background: var(--primary-dark); }

/* ===== Navigation ===== */
.nav {
  background: var(--primary);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky; top: 0; z-index: 1000;
}
.nav .container { display: flex; }
.nav a {
  display: block; padding: 14px 22px; color: var(--text-white);
  font-size: 15px; font-weight: 500; transition: background 0.3s;
}
.nav a:hover, .nav a.active { background: var(--primary-dark); }
.nav a:first-child { border-radius: 0; }

/* ===== Banner / Hero Slider ===== */
.hero-slider {
  position: relative; overflow: hidden; height: 420px;
}
.hero-slider .slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1s ease; background-size: cover; background-position: center;
}
.hero-slider .slide.active { opacity: 1; }
.hero-slider .slide .overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}
.hero-slider .slide .caption {
  position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%);
  text-align: center; color: #fff; z-index: 2;
}
.hero-slider .slide .caption h2 { font-size: 36px; margin-bottom: 10px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.hero-slider .slide .caption p { font-size: 16px; opacity: 0.9; }
.hero-slider .dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 3;
}
.hero-slider .dots span {
  width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5);
  cursor: pointer; transition: all 0.3s;
}
.hero-slider .dots span.active { background: #fff; width: 30px; border-radius: 6px; }

/* ===== Section Common ===== */
.section { padding: 50px 0; }
.section-title {
  text-align: center; margin-bottom: 35px;
}
.section-title h2 {
  font-size: 28px; color: var(--secondary); position: relative;
  display: inline-block; padding-bottom: 12px;
}
.section-title h2::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 3px; background: var(--primary);
}
.section-title p { color: var(--text-light); margin-top: 8px; font-size: 15px; }
.section-white { background: #fff; }

/* ===== Guide Cards Grid ===== */
.guide-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px;
}
.guide-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: all 0.3s; text-align: center;
}
.guide-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.guide-card .avatar {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  margin: 25px auto 10px; border: 3px solid var(--primary-light);
}
.guide-card .badge {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 2px 10px; border-radius: 20px; font-size: 12px; margin-bottom: 8px;
}
.guide-card h3 { font-size: 18px; color: var(--secondary); margin-bottom: 5px; }
.guide-card .info { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.guide-card .tags { display: flex; justify-content: center; gap: 5px; flex-wrap: wrap; margin: 8px 15px; }
.guide-card .tags span {
  background: var(--bg-light); padding: 2px 10px; border-radius: 15px;
  font-size: 12px; color: var(--text-light);
}
.guide-card .rating { color: var(--accent); font-size: 14px; margin-bottom: 15px; }
.guide-card .stars { color: var(--accent-light); font-size: 16px; }

/* ===== Ranking / List Cards ===== */
.rank-card {
  display: flex; align-items: center; background: #fff; border-radius: var(--radius);
  padding: 20px; margin-bottom: 15px; box-shadow: var(--shadow); transition: all 0.3s;
}
.rank-card:hover { transform: translateX(5px); box-shadow: var(--shadow-hover); }
.rank-card .rank-num {
  width: 40px; height: 40px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 18px;
  font-weight: bold; color: #fff; margin-right: 20px; flex-shrink: 0;
}
.rank-card .rank-num.n1 { background: #e74c3c; }
.rank-card .rank-num.n2 { background: #e67e22; }
.rank-card .rank-num.n3 { background: #f1c40f; }
.rank-card .rank-num.n4,
.rank-card .rank-num.n5,
.rank-card .rank-num.n6,
.rank-card .rank-num.n7,
.rank-card .rank-num.n8,
.rank-card .rank-num.n9,
.rank-card .rank-num.n10 { background: #bdc3c7; }
.rank-card .rank-info { flex: 1; }
.rank-card .rank-info h3 { font-size: 16px; color: var(--secondary); margin-bottom: 3px; }
.rank-card .rank-info p { font-size: 13px; color: var(--text-light); }
.rank-card .rank-score { text-align: right; }
.rank-card .rank-score .big { font-size: 24px; font-weight: bold; color: var(--primary); }
.rank-card .rank-score .label { font-size: 12px; color: var(--text-light); }

/* ===== Blog / Post Cards ===== */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px;
}
.blog-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: all 0.3s;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.blog-card .img-wrap { height: 200px; overflow: hidden; }
.blog-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .img-wrap img { transform: scale(1.05); }
.blog-card .content { padding: 20px; }
.blog-card .content .cat {
  display: inline-block; background: var(--primary); color: #fff;
  padding: 2px 12px; border-radius: 15px; font-size: 12px; margin-bottom: 8px;
}
.blog-card .content h3 { font-size: 16px; margin-bottom: 8px; line-height: 1.4; }
.blog-card .content p { font-size: 13px; color: var(--text-light); line-height: 1.6; }
.blog-card .content .meta {
  margin-top: 12px; font-size: 12px; color: #999; display: flex; justify-content: space-between;
}

/* ===== Feature Boxes ===== */
.feature-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px;
}
.feature-box {
  background: #fff; border-radius: var(--radius-lg); padding: 30px 20px;
  text-align: center; box-shadow: var(--shadow); transition: all 0.3s;
  border-top: 3px solid transparent;
}
.feature-box:hover { transform: translateY(-5px); border-top-color: var(--primary); }
.feature-box .icon { font-size: 40px; margin-bottom: 15px; }
.feature-box h3 { font-size: 16px; margin-bottom: 8px; color: var(--secondary); }
.feature-box p { font-size: 13px; color: var(--text-light); }

/* ===== Review Cards ===== */
.review-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px;
}
.review-card {
  background: #fff; border-radius: var(--radius-lg); padding: 25px;
  box-shadow: var(--shadow); position: relative;
}
.review-card::before {
  content: '"'; font-size: 60px; color: var(--primary-light); opacity: 0.2;
  position: absolute; top: 10px; left: 15px; line-height: 1;
}
.review-card p { font-size: 14px; line-height: 1.7; margin-bottom: 15px; color: var(--text); }
.review-card .author { display: flex; align-items: center; gap: 10px; }
.review-card .author img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
}
.review-card .author .name { font-size: 14px; font-weight: 500; }
.review-card .author .from { font-size: 12px; color: var(--text-light); }
.review-card .stars { color: var(--accent-light); font-size: 14px; margin-bottom: 8px; }

/* ===== Footer ===== */
.footer {
  background: var(--secondary);
  color: #ccc; padding: 50px 0 20px;
}
.footer .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.footer h3 { color: #fff; font-size: 18px; margin-bottom: 20px; }
.footer p { font-size: 13px; line-height: 1.8; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a { color: #aaa; font-size: 13px; }
.footer ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #444; margin-top: 30px; padding-top: 20px;
  text-align: center; font-size: 13px;
}
.footer-bottom a { color: var(--accent); }

/* ===== Page Header ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; padding: 40px 0; text-align: center;
}
.page-header h1 { font-size: 32px; margin-bottom: 8px; }
.page-header p { font-size: 15px; opacity: 0.9; }
.breadcrumb { margin-top: 10px; font-size: 13px; }
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb span { color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .guide-grid, .blog-grid, .feature-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
  .footer .container { grid-template-columns: repeat(2, 1fr); }
  .hero-slider { height: 250px; }
  .hero-slider .slide .caption h2 { font-size: 24px; }
  .search-box input { width: 200px; }
}
@media (max-width: 480px) {
  .guide-grid, .blog-grid, .feature-grid, .review-grid { grid-template-columns: 1fr; }
  .footer .container { grid-template-columns: 1fr; }
  .rank-card { flex-direction: column; text-align: center; }
  .rank-card .rank-num { margin: 0 0 10px 0; }
  .rank-card .rank-score { margin-top: 10px; }
}

/* ===== About Page Special ===== */
.about-content { max-width: 800px; margin: 0 auto; }
.about-content h3 { color: var(--secondary); font-size: 20px; margin: 30px 0 15px; }
.about-content p { margin-bottom: 15px; line-height: 1.8; font-size: 15px; }
.about-content ul { margin-bottom: 15px; padding-left: 20px; }
.about-content ul li { list-style: disc; margin-bottom: 8px; font-size: 14px; }

/* ===== Contact Page ===== */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info h3 { font-size: 18px; color: var(--secondary); margin-bottom: 15px; }
.contact-info p { margin-bottom: 10px; font-size: 14px; }
.contact-info .icon { display: inline-block; width: 30px; text-align: center; font-size: 18px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 10px 15px; border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 15px; font-size: 14px; outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); }
.contact-form textarea { height: 150px; resize: vertical; }
.contact-form button {
  background: var(--primary); color: #fff; border: none; padding: 12px 30px;
  border-radius: var(--radius); font-size: 15px; cursor: pointer;
}

/* ===== CTA Button ===== */
.cta-btn {
  display: inline-block; background: var(--primary); color: #fff;
  padding: 10px 25px; border-radius: 25px; font-size: 14px; font-weight: 500;
  transition: all 0.3s; border: none; cursor: pointer;
}
.cta-btn:hover { background: var(--primary-dark); transform: translateY(-2px); color: #fff; }

/* ===== Table ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
table th, table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
table th { background: var(--secondary); color: #fff; font-weight: 500; }
table tr:hover { background: var(--bg-light); }

/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination a {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 14px; color: var(--text);
}
.pagination a:hover, .pagination a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== Certification Badges ===== */
.badge-row { display: flex; justify-content: center; gap: 30px; margin: 20px 0; flex-wrap: wrap; }
.badge-item { text-align: center; }
.badge-item img { width: 80px; height: 80px; object-fit: contain; }
.badge-item p { font-size: 12px; color: var(--text-light); margin-top: 5px; }
