/* ============================================
   北京安而美科技官网 - 组件样式
   ============================================ */

/* ============================================
   导航栏
   ============================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(10, 14, 39, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-normal);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent) 0%, #3AA5FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-subtitle {
  display: none;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

@media (min-width: 640px) {
  .navbar-subtitle {
    display: block;
  }
}

.navbar-menu {
  display: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .navbar-menu {
    display: flex;
  }
}

.navbar-menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(232, 244, 255, 0.8);
  position: relative;
  transition: color var(--transition-normal);
}

.navbar-menu a:hover {
  color: var(--accent);
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--accent) 0%, #3AA5FF 100%);
  transition: width var(--transition-normal);
}

.navbar-menu a:hover::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  background-color: rgba(42, 63, 95, 0.5);
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  color: var(--accent);
  background-color: var(--muted);
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  background-color: rgba(42, 63, 95, 0.5);
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all var(--transition-normal);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn:hover {
  color: var(--accent);
  background-color: var(--muted);
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background-color: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(12px);
  animation: slideInDown 0.3s ease-out;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-menu-item {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(232, 244, 255, 0.8);
  text-decoration: none;
  transition: all var(--transition-normal);
  display: block;
}

.mobile-menu-item:hover {
  background-color: var(--muted);
  color: var(--accent);
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   页脚
   ============================================ */

.footer {
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--foreground);
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color var(--transition-normal);
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-brand h4 {
  background: linear-gradient(135deg, var(--accent) 0%, #3AA5FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.footer-copyright {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-copyright {
    text-align: left;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-links {
    justify-content: flex-start;
  }
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.footer-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-social {
    justify-content: flex-end;
  }
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-lg);
  background-color: var(--muted);
  color: var(--muted-foreground);
  transition: all var(--transition-normal);
}

.footer-social a:hover {
  background-color: var(--accent);
  color: var(--background);
}

/* ============================================
   Hero 区
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--background) 0%, rgba(30, 91, 168, 0.1) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--background) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

.hero-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  background-color: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.3);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
  animation: fadeIn 0.6s ease-out;
}

.hero-title {
  margin-bottom: 1.5rem;
  animation: slideInUp 0.6s ease-out;
}

.hero-title h1 {
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.8;
  animation: slideInUp 0.6s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  animation: slideInUp 0.6s ease-out 0.3s both;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-decoration {
  position: absolute;
  border-radius: 50%;
  opacity: 0.05;
  animation: float 6s ease-in-out infinite;
}

.hero-decoration-1 {
  top: 5%;
  right: 5%;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--accent), transparent);
}

.hero-decoration-2 {
  bottom: 5%;
  left: 5%;
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, var(--secondary), transparent);
  animation-delay: 1s;
}

/* ============================================
   部分标题
   ============================================ */

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  animation: slideInUp 0.6s ease-out;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   产品卡片
   ============================================ */

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-image {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--muted);
  margin-bottom: 1rem;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity var(--transition-normal);
}

.card:hover .product-image img {
  opacity: 0.8;
}

.product-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  background-color: rgba(0, 217, 255, 0.1);
  color: var(--accent);
  margin-bottom: 1rem;
}

.product-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.product-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-tag {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 2rem;
  background-color: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.3);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ============================================
   解决方案卡片
   ============================================ */

.solution-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .solution-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.solution-content.reverse {
  direction: rtl;
}

.solution-content.reverse > * {
  direction: ltr;
}

.solution-image {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--muted);
}

.solution-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity var(--transition-normal);
}

.solution-image:hover img {
  opacity: 0.9;
}

.solution-text h3 {
  margin-bottom: 1rem;
}

.solution-text p {
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
  font-size: 1.0625rem;
}

.benefits-list {
  list-style: none;
  margin-bottom: 2rem;
  padding: 0;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.benefits-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ============================================
   案例卡片
   ============================================ */

.case-card {
  display: flex;
  flex-direction: column;
}

.case-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.case-logo {
  font-size: 3rem;
}

.case-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.3);
  color: var(--accent);
}

.case-company {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.case-section {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.case-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.case-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.case-section-content {
  font-size: 0.875rem;
  color: rgba(232, 244, 255, 0.9);
}

.case-results {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.case-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.case-result-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.case-result-metric {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
}

/* ============================================
   新闻卡片
   ============================================ */

.news-card {
  display: flex;
  flex-direction: column;
}

.news-image {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--muted);
  margin-bottom: 1rem;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity var(--transition-normal);
}

.card:hover .news-image img {
  opacity: 0.8;
}

.news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.news-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.3);
  color: var(--accent);
  white-space: nowrap;
}

.news-date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  white-space: nowrap;
}

.news-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  transition: color var(--transition-normal);
}

.card:hover .news-title {
  color: var(--accent);
}

.news-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
  transition: gap var(--transition-normal);
}

.card:hover .news-read-more {
  gap: 0.75rem;
}

/* ============================================
   联系表单
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
}

.contact-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  background-color: rgba(0, 217, 255, 0.1);
  color: var(--accent);
  margin-bottom: 1rem;
}

.contact-item-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.contact-item h4 {
  margin-bottom: 0.5rem;
}

.contact-item p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.contact-item a {
  font-weight: 600;
  color: var(--accent);
}

.qr-codes {
  display: flex;
  gap: 1rem;
}

.qr-code {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-lg);
  background-color: var(--muted);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
  padding: 0.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.form-submit {
  width: 100%;
}

.form-success {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
  font-size: 0.875rem;
  text-align: center;
  animation: fadeIn 0.3s ease-out;
  display: none;
}

.form-success.show {
  display: block;
}

/* ============================================
   响应式布局
   ============================================ */

@media (max-width: 640px) {
  .navbar-container {
    height: 4rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .section {
    padding: 2rem 0;
  }

  .hero {
    min-height: 80vh;
  }

  .hero-content {
    padding: 1rem;
  }

  .solution-content {
    gap: 1.5rem;
  }
}


/* ============================================
   弹出式表单模态框
   ============================================ */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: var(--card);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-in-out;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--foreground);
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all var(--transition-normal);
}

.modal-close:hover {
  background-color: var(--secondary);
  color: var(--foreground);
}

.modal-form {
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.modal-form .form-group {
  margin-bottom: 1.5rem;
}

.modal-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--foreground);
  font-size: 0.95rem;
}

.modal-form input,
.modal-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--background);
  color: var(--foreground);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-normal);
}

.modal-form input:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

.modal-form textarea {
  resize: vertical;
  min-height: 120px;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: flex-end;
}

.modal-buttons .btn {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.modal-buttons .btn-primary {
  background-color: var(--primary);
  color: white;
}

.modal-buttons .btn-primary:hover {
  background-color: #0A2F6B;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 58, 125, 0.3);
}

.modal-buttons .btn-secondary {
  background-color: var(--secondary);
  color: var(--foreground);
}

.modal-buttons .btn-secondary:hover {
  background-color: var(--muted);
}

@media (max-width: 640px) {
  .modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .modal-header {
    padding: 1.5rem;
  }

  .modal-header h2 {
    font-size: 1.25rem;
  }

  .modal-form {
    padding: 1.5rem;
  }

  .modal-buttons {
    flex-direction: column;
  }

  .modal-buttons .btn {
    width: 100%;
  }
}


/* ============================================
   感谢提示消息
   ============================================ */

.thank-you-message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease-in-out;
}

.thank-you-content {
  background-color: var(--card);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  animation: slideUp 0.3s ease-in-out;
}

.thank-you-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: bold;
}

.thank-you-content h3 {
  font-size: 1.5rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.thank-you-content p {
  color: var(--muted-foreground);
  font-size: 1rem;
  margin: 0;
}

@media (max-width: 640px) {
  .thank-you-content {
    padding: 2rem 1.5rem;
    max-width: 90%;
  }

  .thank-you-icon {
    font-size: 2.5rem;
  }

  .thank-you-content h3 {
    font-size: 1.25rem;
  }
}
