/* 全局样式文件 - Corporate Classic 商务风格 */
/* 使用 Tailwind CSS 层级管理自定义样式 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Noto+Sans+SC:wght@300;400;500;600&display=swap');

@layer base {
  /* 基础样式重置 */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html {
    font-size: 16px;
    scroll-behavior: smooth;
  }

  body {
    font-family: 'Noto Sans SC', 'Arial', sans-serif;
    color: #2d3748;
    background-color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif SC', 'Georgia', serif;
    font-weight: 600;
    line-height: 1.3;
    color: #2563EB;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  h4 {
    font-size: 1.5rem;
  }

  a {
    color: #2563EB;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  a:hover {
    color: #EA580C;
  }

  button {
    cursor: pointer;
    transition: all 0.2s ease;
  }

  input, textarea, select {
    font-family: 'Noto Sans SC', 'Arial', sans-serif;
  }
}

@layer components {
  /* 导航栏样式 */
  .navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }

  .navbar-logo {
    font-family: 'Noto Serif SC', 'Georgia', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563EB;
  }

  .nav-link {
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: #4a5568;
    border-radius: 0;
  }

  .nav-link:hover {
    color: #F97316;
    background-color: #fff7ed;
  }

  .nav-link.active {
    color: #2563EB;
    border-bottom: 2px solid #2563EB;
  }

  /* 按钮样式 */
  .btn-primary {
    background-color: #F97316;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.3);
  }

  .btn-primary:hover {
    background-color: #EA580C;
    box-shadow: 0 4px 8px rgba(249, 115, 22, 0.4);
    transform: translateY(-1px);
  }

  .btn-secondary {
    background-color: #718096;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0;
    font-weight: 500;
  }

  .btn-secondary:hover {
    background-color: #4a5568;
  }

  .btn-outline {
    background-color: transparent;
    color: #2563EB;
    padding: 0.75rem 1.5rem;
    border: 2px solid #2563EB;
    border-radius: 4px;
    font-weight: 500;
  }

  .btn-outline:hover {
    background-color: #2563EB;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
  }

  /* 卡片样式 */
  .card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
  }

  .card-header {
    font-family: 'Noto Serif SC', 'Georgia', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2563EB;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
  }

  /* 表单样式 */
  .form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 0;
    font-size: 1rem;
    background-color: #ffffff;
    transition: border-color 0.2s ease;
  }

  .form-input:focus {
    outline: none;
    border-color: #F97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
  }

  .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2d3748;
  }

  /* 英雄区域样式 */
  .hero-section {
    background: linear-gradient(135deg, #1E40AF 0%, #2563EB 100%);
    color: #ffffff;
    padding: 4rem 0;
  }

  .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
  }

  .hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: #e2e8f0;
  }

  /* 服务卡片样式 */
  .service-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 2rem;
    text-align: center;
    transition: box-shadow 0.3s ease;
  }

  .service-card:hover {
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
    border-color: #F97316;
  }

  .service-icon {
    font-size: 3rem;
    color: #2563EB;
    margin-bottom: 1rem;
  }

  /* FAQ 样式 */
  .faq-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem 0;
  }

  .faq-question {
    font-weight: 600;
    color: #2563EB;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease;
  }

  .faq-question:hover {
    color: #1D4ED8;
  }

  .faq-answer {
    color: #4a5568;
    margin-top: 0.75rem;
    line-height: 1.7;
    display: none;
  }

  .faq-answer.active {
    display: block;
  }

  /* 页脚样式 */
  .footer {
    background-color: #1E40AF;
    color: #e2e8f0;
    padding: 3rem 0 1.5rem;
    border-top: 4px solid #2563EB;
  }

  .footer-title {
    font-family: 'Noto Serif SC', 'Georgia', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
  }

  .footer-link {
    color: #cbd5e0;
    display: block;
    margin-bottom: 0.5rem;
  }

  .footer-link:hover {
    color: #ffffff;
  }

  /* 计算器样式 */
  .calculator-result {
    background-color: #f7fafc;
    border: 2px solid #2563EB;
    border-radius: 4px;
    padding: 1.5rem;
    margin-top: 1.5rem;
  }

  .calculator-result-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
  }

  .calculator-result-label {
    font-weight: 500;
    color: #4a5568;
  }

  .calculator-result-value {
    font-weight: 600;
    color: #2563EB;
    font-size: 1.25rem;
  }

  /* 表格样式 */
  .data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
  }

  .data-table th {
    background-color: #f7fafc;
    color: #2563EB;
    font-weight: 600;
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid #e2e8f0;
  }

  .data-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
  }

  .data-table tr:hover {
    background-color: #f7fafc;
  }

  /* 状态徽章 */
  .badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0;
  }

  .badge-success {
    background-color: #48bb78;
    color: #ffffff;
  }

  .badge-warning {
    background-color: #ed8936;
    color: #ffffff;
  }

  .badge-info {
    background-color: #4299e1;
    color: #ffffff;
  }

  /* 客服二维码样式 */
  .customer-service-qr {
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .customer-service-qr img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
  }

  .customer-service-qr-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2563EB;
    margin-bottom: 1rem;
  }

  .customer-service-qr-description {
    font-size: 0.875rem;
    color: #718096;
    margin-top: 1rem;
  }

  /* 分页样式 */
  .pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
  }

  .pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #cbd5e0;
    background-color: #ffffff;
    color: #4a5568;
    font-weight: 500;
  }

  .pagination-btn:hover {
    background-color: #fff7ed;
    border-color: #F97316;
  }

  .pagination-btn.active {
    background-color: #2563EB;
    color: #ffffff;
    border-color: #2563EB;
  }
}

@layer utilities {
  /* 容器工具类 */
  .container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }

  /* 网格布局工具类 */
  .grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }

  .grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  /* 间距工具类 */
  .section-spacing {
    padding: 4rem 0;
  }

  /* 文本工具类 */
  .text-business {
    color: #2563EB;
  }

  .text-muted {
    color: #718096;
  }

  /* 背景工具类 */
  .bg-light {
    background-color: #f7fafc;
  }

  .bg-business {
    background-color: #2563EB;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-spacing {
    padding: 2rem 0;
  }

  .navbar-logo {
    font-size: 1.25rem;
  }

  .data-table {
    font-size: 0.875rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.75rem 0.5rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .btn-primary,
  .btn-secondary,
  .btn-outline {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }

  .card {
    padding: 1rem;
  }
}

/* 打印样式 */
@media print {
  .navbar,
  .footer,
  button {
    display: none;
  }

  body {
    color: #000000;
  }

  .card {
    box-shadow: none;
    border: 1px solid #000000;
  }
}
