@import "variables.css";
@import "components.css";

/* Custom CSS extracted from index.html styles */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700;900&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
  --brand-50: #f4f6f8;
  --brand-100: #e4e8ed;
  --brand-200: #d1d5db;
  --brand-400: #8ba0b5;
  --brand-600: #3c5a78;
  --brand-800: #1a2e44;
  --brand-900: #0f1c2e;
  --brand-950: #08101a;
  
  --gold-400: #d4af37;
  --gold-500: #bf9b30;
  --gold-600: #a68529;
  
  --crimson-600: #991b1b;
  --crimson-700: #7f1d1d;
  
  --shadow-elegant: 0 10px 40px -10px rgba(15, 28, 46, 0.08);
  --shadow-elegant-hover: 0 20px 40px -10px rgba(15, 28, 46, 0.12);
  --font-sans: 'Noto Sans SC', sans-serif;
  --font-serif: 'Noto Serif SC', serif;
}

body {
  font-family: var(--font-sans);
  background-color: #fafafa;
  color: #333333;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
}

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

/* Header
   Note: we removed old global header styles since Tailwind is used in detail pages now.
*/



.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: #07c160;
  color: white;
}

.btn-primary:hover {
  background-color: #06ad56;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* Detail Header */
.detail-header {
  padding-top: 140px;
  padding-bottom: 40px;
  background-color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--brand-600);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.detail-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-950);
  margin-bottom: 24px;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .detail-title {
    font-size: 3.5rem;
  }
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-size: 0.875rem;
  color: #6b7280;
}

.detail-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-50);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--brand-100);
  color: var(--brand-800);
  font-weight: 500;
}

.detail-meta svg {
  width: 16px;
  height: 16px;
  color: var(--gold-500);
}

/* Content Layout */
.detail-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 60px;
}

@media (min-width: 992px) {
  .detail-content {
    flex-direction: row;
  }
  .main-content {
    flex: 1;
    min-width: 0;
  }
  .sidebar {
    width: 340px;
    flex-shrink: 0;
  }
}

.main-content {
  background: white;
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-elegant);
  border: 1px solid var(--brand-100);
}

@media (min-width: 768px) {
  .main-content {
    padding: 48px;
  }
}



.main-content h2 {
  font-size: 1.5rem;
  color: var(--brand-900);
  margin-top: 40px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--brand-100);
  padding-bottom: 12px;
}

.main-content h2 svg {
  width: 24px;
  height: 24px;
  color: var(--gold-500);
}

.main-content p {
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1rem;
}

.guide-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px;
  margin-top: 48px;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.widget {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-elegant);
  border: 1px solid var(--brand-100);
}

.widget-primary {
  background: linear-gradient(135deg, var(--brand-900), var(--brand-800));
  color: white;
  text-align: center;
}

.widget-primary h4 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: white;
  font-family: var(--font-serif);
}

.widget-primary p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  line-height: 1.6;
}

.btn-consult {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #07c160;
  color: white;
  padding: 14px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s;
  width: 100%;
  box-sizing: border-box;
}

.btn-consult:hover {
  background: #06ad56;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(7,193,96,0.3);
}

.widget h3 {
  font-size: 1.25rem;
  color: var(--brand-900);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
}

.widget h3 svg {
  width: 20px;
  height: 20px;
  color: var(--gold-500);
}

.widget-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-list li {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--brand-50);
}

.widget-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.widget-list a {
  text-decoration: none;
  color: #4b5563;
  font-size: 0.875rem;
  transition: color 0.3s;
  display: block;
  line-height: 1.6;
}

.widget-list a:hover {
  color: var(--brand-600);
  font-weight: 500;
}

/* Planning Section */
.planning-section {
  background: white;
  padding: 80px 0;
  border-top: 1px solid var(--brand-100);
}

.planning-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 992px) {
  .planning-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.planning-content h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--brand-950);
}

.text-gradient {
  background: linear-gradient(to right, var(--gold-600), var(--brand-800));
  -webkit-background-clip: text;
  color: transparent;
}

.planning-content p {
  color: #6b7280;
  line-height: 1.8;
  margin-bottom: 32px;
  font-size: 1.125rem;
}

.planning-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.planning-actions .btn {
  padding: 14px 32px;
  border-radius: 30px;
}

.btn-outline {
  border: 1px solid var(--brand-200);
  color: var(--brand-600);
  background: transparent;
}

.btn-outline:hover {
  background: var(--brand-50);
  border-color: var(--brand-400);
}

.planning-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-card {
  display: flex;
  gap: 24px;
  background: var(--brand-50);
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--brand-100);
  transition: transform 0.3s, box-shadow 0.3s;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elegant);
  border-color: var(--brand-200);
}

.step-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--brand-600);
  opacity: 0.2;
  line-height: 1;
}

.step-info h3 {
  font-size: 1.25rem;
  color: var(--brand-900);
  margin-bottom: 8px;
  font-weight: 700;
}

.step-info p {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background: var(--brand-950);
  color: white;
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-logo .logo-text {
  color: white;
  font-size: 1.5rem;
}

.footer-desc {
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  font-size: 1rem;
  max-width: 500px;
}

.footer-disclaimer h4 {
  color: white;
  margin-bottom: 16px;
  font-size: 1.125rem;
}

.footer-disclaimer p {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  line-height: 1.8;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.copyright {
  color: rgba(255,255,255,0.4);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links a:hover {
  color: var(--gold-400);
}

/* Floating Tools */
.floating-tools {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 100;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: all 0.3s;
  background: var(--brand-900);
}

.float-btn.wechat {
  background: #07c160;
}

.float-btn.wechat:hover {
  background: #06ad56;
  transform: translateY(-4px);
}

#backToTop {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

#backToTop.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#backToTop:hover {
  background: var(--brand-800);
  transform: translateY(-4px);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f4f6f8; 
}
::-webkit-scrollbar-thumb {
  background: #8ba0b5; 
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3c5a78; 
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(15, 28, 46, 0.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
  background: white; border-radius: 1rem; padding: 2rem; width: 90%; max-width: 500px;
  box-shadow: 0 20px 40px -10px rgba(15, 28, 46, 0.2);
  transform: scale(0.95); transition: all 0.3s ease;
}
.modal-overlay.active .modal-content { transform: scale(1); }
