/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #333; background: #f5f7fa; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; border: none; outline: none; }
button { cursor: pointer; }

/* ===== Container ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Header / Navbar ===== */
.site-header {
  background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 1000;
}
.navbar {
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.navbar .logo {
  font-size: 1.25rem; font-weight: 700; color: #1a73e8; white-space: nowrap;
}
.navbar .logo span { color: #ff6b35; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 6px; font-size: .9rem; color: #555; transition: all .2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { background: #e8f0fe; color: #1a73e8; }
.nav-links a.btn-primary {
  background: #1a73e8; color: #fff; padding: 8px 20px;
}
.nav-links a.btn-primary:hover { background: #1557b0; }
.nav-links a.btn-outline {
  border: 1px solid #1a73e8; color: #1a73e8; padding: 7px 18px;
}
.nav-links a.btn-outline:hover { background: #e8f0fe; }

/* Mobile menu */
.menu-toggle { display: none; background: none; font-size: 1.5rem; color: #333; }
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 12px 20px; box-shadow: 0 8px 24px rgba(0,0,0,.1);
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 14px; }
}

/* ===== Banner ===== */
.banner {
  position: relative; overflow: hidden; border-radius: 0; max-height: 420px;
}
.banner img {
  width: 100%; height: 420px; object-fit: cover;
}
.banner-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; background: linear-gradient(135deg, rgba(26,115,232,.75), rgba(100,50,200,.65));
  color: #fff; text-align: center; padding: 40px 20px;
}
.banner-overlay h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 12px; text-shadow: 0 2px 8px rgba(0,0,0,.2); }
.banner-overlay p { font-size: 1.15rem; max-width: 600px; opacity: .92; margin-bottom: 24px; }
.banner-overlay .btn-banner {
  display: inline-block; padding: 12px 36px; background: #ff6b35; color: #fff; border-radius: 30px;
  font-weight: 600; font-size: 1rem; transition: transform .2s, box-shadow .2s;
}
.banner-overlay .btn-banner:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,107,53,.4); }

/* ===== Section ===== */
.section { padding: 60px 0; }
.section-title {
  text-align: center; font-size: 1.75rem; font-weight: 700; color: #222; margin-bottom: 8px;
}
.section-subtitle {
  text-align: center; color: #888; font-size: .95rem; margin-bottom: 40px;
}
.section-divider {
  width: 50px; height: 3px; background: #1a73e8; margin: 12px auto 0; border-radius: 2px;
}

/* ===== Card Grid ===== */
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; }
.card-tag {
  display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: .75rem; font-weight: 600;
  margin-bottom: 8px;
}
.tag-plane { background: #e8f0fe; color: #1a73e8; }
.tag-brand { background: #fef3e2; color: #e67e22; }
.card-title { font-size: 1.1rem; font-weight: 600; color: #222; margin-bottom: 8px; }
.card-desc { font-size: .875rem; color: #666; margin-bottom: 12px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: #999; }
.card-price { font-weight: 700; color: #ff6b35; font-size: .95rem; }

/* ===== Detail Page ===== */
.detail-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px 0; }
@media (max-width: 768px) { .detail-hero { grid-template-columns: 1fr; } }
.detail-hero-img { border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.detail-hero-img img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.detail-hero-info { display: flex; flex-direction: column; justify-content: center; }
.detail-hero-info h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 12px; color: #222; }
.detail-hero-info .detail-tag { margin-bottom: 16px; }
.detail-hero-info .detail-desc { color: #555; line-height: 1.8; margin-bottom: 24px; font-size: .95rem; }
.detail-contact-box {
  background: #f8f9fb; border-radius: 10px; padding: 20px; border: 1px solid #eee;
}
.detail-contact-box h3 { font-size: 1rem; margin-bottom: 12px; color: #333; }
.detail-contact-box p { font-size: .9rem; color: #555; margin-bottom: 6px; }
.detail-contact-box .phone-number { font-weight: 600; color: #1a73e8; font-size: 1.05rem; }
.detail-contact-box .login-hint {
  margin-top: 10px; padding: 10px 14px; background: #fff3e0; border-radius: 6px;
  font-size: .85rem; color: #e65100;
}
.detail-contact-box .login-hint a { color: #1a73e8; font-weight: 600; text-decoration: underline; }
.detail-price { font-size: 1.5rem; font-weight: 800; color: #ff6b35; margin-bottom: 16px; }

/* ===== Breadcrumb ===== */
.breadcrumb { padding: 16px 0; font-size: .85rem; color: #999; }
.breadcrumb a { color: #1a73e8; }
.breadcrumb span { margin: 0 6px; }

/* ===== Form Pages ===== */
.form-page { padding: 60px 0; }
.form-card {
  max-width: 480px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.form-card h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; color: #222; text-align: center; }
.form-card .form-subtitle { text-align: center; color: #888; font-size: .9rem; margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; color: #444; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: 8px; font-size: .9rem;
  transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: #1a73e8; box-shadow: 0 0 0 3px rgba(26,115,232,.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-submit {
  width: 100%; padding: 14px; background: #1a73e8; color: #fff; border-radius: 8px;
  font-size: 1rem; font-weight: 600; transition: background .2s;
}
.btn-submit:hover { background: #1557b0; }
.form-footer { text-align: center; margin-top: 20px; font-size: .85rem; color: #888; }
.form-footer a { color: #1a73e8; font-weight: 600; }

/* ===== Content Page (Terms, Privacy, Pricing) ===== */
.content-page { padding: 60px 0; }
.content-card {
  max-width: 800px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 48px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.content-card h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 24px; color: #222; }
.content-card h2 { font-size: 1.25rem; font-weight: 600; margin: 24px 0 12px; color: #333; }
.content-card p { color: #555; line-height: 1.8; margin-bottom: 12px; font-size: .95rem; }
.content-card ul { padding-left: 20px; margin-bottom: 12px; }
.content-card ul li { color: #555; line-height: 1.8; margin-bottom: 4px; font-size: .95rem; list-style: disc; }

/* ===== Pricing Table ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
@media (max-width: 768px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card {
  border: 2px solid #eee; border-radius: 16px; padding: 32px 24px; text-align: center;
  transition: border-color .3s, transform .3s;
}
.pricing-card:hover { border-color: #1a73e8; transform: translateY(-4px); }
.pricing-card.featured { border-color: #1a73e8; position: relative; }
.pricing-card.featured::before {
  content: "推荐"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: #ff6b35; color: #fff; padding: 2px 16px; border-radius: 12px; font-size: .8rem; font-weight: 600;
}
.pricing-card h3 { font-size: 1.2rem; margin-bottom: 8px; color: #333; }
.pricing-card .price { font-size: 2rem; font-weight: 800; color: #1a73e8; margin-bottom: 4px; }
.pricing-card .price-unit { font-size: .85rem; color: #999; margin-bottom: 20px; }
.pricing-card ul { text-align: left; margin-bottom: 24px; }
.pricing-card ul li { padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: .9rem; color: #555; }
.pricing-card ul li::before { content: "✓ "; color: #1a73e8; font-weight: 700; }
.pricing-card .btn-pricing {
  display: inline-block; padding: 10px 32px; border-radius: 8px; font-weight: 600; font-size: .9rem;
  border: 2px solid #1a73e8; color: #1a73e8; transition: all .2s;
}
.pricing-card .btn-pricing:hover { background: #1a73e8; color: #fff; }
.pricing-card.featured .btn-pricing { background: #1a73e8; color: #fff; }

/* ===== Footer ===== */
.site-footer {
  background: #1a1a2e; color: #aaa; padding: 40px 0 24px; margin-top: auto;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer-col p { font-size: .85rem; line-height: 1.7; }
.footer-col a { display: block; font-size: .85rem; padding: 3px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; text-align: center; font-size: .8rem;
}
.footer-bottom a { color: #aaa; }
.footer-bottom a:hover { color: #fff; }

/* ===== Publish Form ===== */
.publish-page { padding: 60px 0; }
.publish-card {
  max-width: 680px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.publish-card h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; color: #222; text-align: center; }
.publish-card .form-subtitle { text-align: center; color: #888; font-size: .9rem; margin-bottom: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* ===== Listing Page Tabs ===== */
.tabs { display: flex; gap: 8px; margin-bottom: 32px; justify-content: center; }
.tab-btn {
  padding: 10px 28px; border-radius: 30px; font-size: .9rem; font-weight: 600;
  background: #f0f0f0; color: #666; transition: all .2s; border: none;
}
.tab-btn.active, .tab-btn:hover { background: #1a73e8; color: #fff; }

/* ===== User Greeting ===== */
.user-greeting { font-size: .85rem; color: #555; display: flex; align-items: center; gap: 8px; }
.user-greeting .username { font-weight: 600; color: #1a73e8; }
.user-greeting .btn-logout {
  padding: 4px 12px; border-radius: 4px; font-size: .8rem; background: #f0f0f0; color: #666;
  border: none; cursor: pointer;
}
.user-greeting .btn-logout:hover { background: #e0e0e0; }

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.main-content { flex: 1; }
