/* ═══════════════════════════════════════════
   石头数智信息 — 品牌样式
   深蓝 #0a1628 + 橙色 #f59e0b
   ═══════════════════════════════════════════ */

:root {
  --navy: #0a1628;
  --navy-light: #132040;
  --navy-lighter: #1a2d54;
  --orange: #f59e0b;
  --orange-hover: #d97706;
  --white: #f8fafc;
  --gray: #94a3b8;
  --gray-light: #e2e8f0;
  --gray-bg: #f1f5f9;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--gray-bg);
  color: #1e293b;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 60px;
}
.nav-brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--white); font-size: 1.2rem; font-weight: 700;
}
.brand-icon { font-size: 1.4rem; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  color: var(--gray); text-decoration: none;
  padding: 6px 14px; border-radius: var(--radius);
  font-size: 0.9rem; transition: all 0.2s;
}
.nav-links a:hover { color: var(--white); background: var(--navy-lighter); }
.nav-highlight {
  background: var(--orange) !important; color: var(--navy) !important;
  font-weight: 600 !important;
}
.nav-highlight:hover { background: var(--orange-hover) !important; }
.nav-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #0f2847 100%);
  color: var(--white); padding: 80px 20px;
  display: flex; align-items: center; justify-content: center;
  gap: 60px; flex-wrap: wrap;
}
.hero-content { max-width: 520px; }
.hero-content h1 { font-size: 2.8rem; line-height: 1.3; margin-bottom: 20px; }
.hero-content h1 span { color: var(--orange); }
.hero-sub { font-size: 1.15rem; color: var(--gray); margin-bottom: 32px; line-height: 1.8; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { display: flex; gap: 16px; }
.hero-box {
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 2rem; text-align: center; font-weight: 600;
  backdrop-filter: blur(10px);
}

/* Buttons */
.btn-primary {
  display: inline-block; background: var(--orange); color: var(--navy);
  padding: 12px 28px; border-radius: var(--radius); text-decoration: none;
  font-weight: 700; font-size: 1rem; border: none; cursor: pointer;
  transition: all 0.2s;
}
.btn-primary:hover { background: var(--orange-hover); transform: translateY(-1px); }
.btn-secondary {
  display: inline-block; background: rgba(255,255,255,0.1); color: white;
  padding: 12px 28px; border-radius: var(--radius); text-decoration: none;
  font-weight: 600; font-size: 1rem; border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }
.btn-sm {
  display: inline-block; background: var(--navy-lighter); color: var(--orange);
  padding: 4px 12px; border-radius: 4px; text-decoration: none;
  font-size: 0.8rem; font-weight: 600; border: none; cursor: pointer;
}
.btn-sm:hover { background: var(--navy); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* Sections */
.features, .product-preview, .cta-section {
  max-width: 1200px; margin: 0 auto; padding: 60px 20px;
}
.features h2, .product-preview h2 { text-align: center; font-size: 2rem; margin-bottom: 40px; color: var(--navy); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.feature-card {
  background: white; padding: 32px 24px; border-radius: 12px;
  box-shadow: var(--shadow); transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon { font-size: 2.5rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--navy); }
.feature-card p { color: #64748b; font-size: 0.9rem; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.cat-card {
  background: white; padding: 20px 16px; border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06); text-decoration: none;
  display: flex; flex-direction: column; gap: 4px;
  transition: all 0.2s; border: 2px solid transparent;
}
.cat-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.cat-icon { font-size: 1.8rem; }
.cat-name { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.cat-desc { font-size: 0.78rem; color: #94a3b8; }

.cta-section {
  text-align: center; background: white; border-radius: 16px;
  padding: 60px 20px; margin: 40px auto; box-shadow: var(--shadow);
}
.cta-section h2 { margin-bottom: 12px; }
.cta-section p { color: #64748b; margin-bottom: 24px; }

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: white; text-align: center; padding: 50px 20px;
}
.page-header h1 { font-size: 2rem; margin-bottom: 8px; }
.page-header p { color: var(--gray); }
.update-time { font-size: 0.85rem; color: var(--orange); margin-top: 8px; }

/* Filters */
.cat-filters {
  max-width: 1200px; margin: 20px auto; padding: 0 20px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.filter-tag {
  padding: 6px 16px; border-radius: 20px; text-decoration: none;
  background: white; color: #64748b; font-size: 0.88rem;
  border: 1px solid var(--gray-light); transition: all 0.2s;
}
.filter-tag:hover, .filter-tag.active {
  background: var(--navy); color: white; border-color: var(--navy);
}

/* Tables */
.product-section {
  max-width: 1200px; margin: 30px auto; padding: 0 20px;
}
.product-section h2 { font-size: 1.4rem; color: var(--navy); margin-bottom: 12px; }
.count-badge {
  background: var(--orange); color: var(--navy); font-size: 0.75rem;
  padding: 2px 10px; border-radius: 12px; font-weight: 600; margin-left: 8px;
}
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
table { width: 100%; border-collapse: collapse; background: white; font-size: 0.88rem; }
th {
  background: var(--navy); color: white; padding: 12px 10px;
  text-align: left; font-weight: 600; white-space: nowrap;
}
td { padding: 10px; border-bottom: 1px solid var(--gray-light); }
tr:hover td { background: #f8fafc; }
.td-app { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Selector */
.selector-form {
  max-width: 800px; margin: 30px auto; padding: 30px;
  background: white; border-radius: 12px; box-shadow: var(--shadow);
}
.form-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin-bottom: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: #475569; }
.form-group select, .form-group input {
  padding: 10px 12px; border: 1px solid var(--gray-light);
  border-radius: 6px; font-size: 0.95rem; transition: border-color 0.2s;
}
.form-group select:focus, .form-group input:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}
.required { color: #ef4444; }

.quick-presets {
  max-width: 800px; margin: 30px auto; padding: 0 20px;
}
.preset-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.preset-tags span {
  background: var(--gray-bg); padding: 8px 14px;
  border-radius: 20px; font-size: 0.85rem; cursor: pointer;
  border: 1px solid var(--gray-light); transition: all 0.2s;
}
.preset-tags span:hover { background: var(--navy-lighter); color: var(--orange); border-color: var(--navy-lighter); }

/* Results */
#result-section { max-width: 1000px; margin: 30px auto; padding: 0 20px; }
.result-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.result-header h3 { color: var(--navy); }
.result-header strong { color: var(--orange); }

.market-ref { margin-bottom: 20px; }
.market-ref h4 { margin-bottom: 8px; color: #475569; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.price-card {
  background: white; padding: 12px 16px; border-radius: 8px;
  border-left: 3px solid var(--orange); box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.region { font-weight: 700; font-size: 0.85rem; color: var(--navy); }
.price-range { font-size: 1.1rem; font-weight: 700; color: #ef4444; margin: 4px 0; }
.price-note { font-size: 0.75rem; color: #94a3b8; }

.inquiry-cta {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  padding: 24px; border-radius: 12px; text-align: center; margin-top: 20px;
}
.inquiry-cta h4 { margin-bottom: 8px; }
.inquiry-cta p { margin-bottom: 12px; font-size: 0.9rem; }

/* Bid */
.bid-list { max-width: 900px; margin: 30px auto; padding: 0 20px; }
.bid-card {
  background: white; padding: 16px 20px; border-radius: var(--radius);
  margin-bottom: 12px; box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  border-left: 3px solid var(--navy); transition: all 0.2s;
}
.bid-card:hover { border-left-color: var(--orange); }
.bid-title { font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.bid-meta { display: flex; gap: 16px; font-size: 0.84rem; color: #64748b; flex-wrap: wrap; }
.bid-budget { color: #ef4444; font-weight: 600; }
.bid-actions { margin-top: 8px; display: flex; gap: 8px; }
.btn-alt { background: #e2e8f0; color: #475569; border: 1px solid #cbd5e1; }
.btn-alt:hover { background: #cbd5e1; }

/* Contact */
.contact-content {
  max-width: 1000px; margin: 40px auto; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
}
.contact-card, .contact-form-card {
  background: white; padding: 30px; border-radius: 12px; box-shadow: var(--shadow);
}
.contact-card h2 { color: var(--navy); margin-bottom: 4px; }
.tagline { color: var(--gray); margin-bottom: 24px; }
.contact-info { display: flex; flex-direction: column; gap: 12px; }
.info-row { display: flex; gap: 12px; font-size: 0.9rem; }
.info-label { font-weight: 600; color: #475569; min-width: 80px; }

.contact-form-card h3 { margin-bottom: 16px; color: var(--navy); }
.contact-form-card textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--gray-light);
  border-radius: 6px; font-size: 0.95rem; font-family: inherit; resize: vertical;
}
.contact-form-card .form-group { margin-bottom: 14px; }
.success { color: #16a34a; font-weight: 600; margin-top: 12px; }
.error { color: #ef4444; }

/* About */
.about-content { max-width: 800px; margin: 40px auto; padding: 0 20px; }
.about-card {
  background: white; padding: 30px; border-radius: 12px;
  box-shadow: var(--shadow); margin-bottom: 24px;
}
.about-card h2 { color: var(--navy); margin-bottom: 16px; font-size: 1.3rem; }
.about-card p { margin-bottom: 10px; line-height: 1.8; }
.advantage-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.advantage-item h3 { font-size: 1rem; color: var(--navy); margin-bottom: 4px; }
.advantage-item p { font-size: 0.88rem; color: #64748b; }

/* Footer */
footer {
  background: var(--navy); color: var(--gray); margin-top: 60px;
  padding: 40px 20px 20px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px; margin-bottom: 30px;
}
.footer-col h4 { color: white; margin-bottom: 12px; }
.footer-col p, .footer-col a { font-size: 0.85rem; line-height: 1.8; display: block; }
.footer-col a { color: var(--gray); text-decoration: none; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid var(--navy-lighter); padding-top: 16px;
  text-align: center; font-size: 0.8rem;
}

/* Empty State */
.empty-state {
  text-align: center; padding: 60px 20px; color: #94a3b8;
}
.empty-state p { font-size: 1.2rem; }
.hint { font-size: 0.9rem !important; margin-top: 8px; }

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 40px 16px; text-align: center; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-visual { display: none; }
  .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0;
    background: var(--navy); flex-direction: column; padding: 12px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .contact-content { grid-template-columns: 1fr; }
  .advantage-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media print {
  nav, footer, .hero, .features, .product-preview, .cta-section,
  .page-header, .cat-filters, .quick-presets, .inquiry-cta { display: none; }
  .product-section, .table-wrap { box-shadow: none; }
  .result-header button { display: none; }
}
