/**
 * 崇法企服 - 参照ASODATA.COM风格
 */

/* ============================================
   配色系统
   ============================================ */
:root {
  --primary: #197afc;
  --primary-dark: #1d4ed8;
  --secondary: #3B82F6;
  --accent: #10B981;
  --dark: #1E293B;
  --light: #F1F5F9;
  --white: #FFFFFF;
  --text: #334155;
  --text-light: #64748B;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-900: #111827;
  
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  --gradient-text: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ============================================
   重置
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--gray-50);
  overflow-x: hidden;
}

/* ============================================
   布局容器
   ============================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   Header - 固定导航栏
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  z-index: 50;
  padding: 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo a {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-tagline {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 16px;
  border-left: 1px solid var(--gray-200);
}

.logo-tagline-line {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-600);
  line-height: 1.2;
}

.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.main-nav a {
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--primary);
}

.nav-badge {
  color: #EF4444 !important;
  font-weight: 600;
}

.nav-with-tag {
  position: relative;
  padding-right: 36px;
  margin-right: 8px;
}

.nav-tag {
  position: absolute;
  top: -4px;
  right: 4px;
  font-size: 0.625rem;
  font-weight: 600;
  color: #fff;
  background: #F59E0B;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  line-height: 1.2;
}

.btn-nav {
  color: var(--primary) !important;
  background: transparent;
  border: 1px solid var(--primary);
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-nav:hover {
  background: rgba(25, 122, 252, 0.08);
  border-color: var(--primary-dark);
  color: var(--primary-dark) !important;
}

/* ============================================
   Footer - 参照aso.com
   ============================================ */
.site-footer {
  background: #111827;
  color: #fff;
  margin-top: 80px;
}

/* CTA 与 footer 无缝衔接，去除中间白色间隔（商标/软著/专利维权页、收费标准页） */
.rights-landing + .site-footer,
.pricing-main + .site-footer {
  margin-top: 0;
}

.footer-modern {
  padding: 3rem 0 2rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
    gap: 2rem 3rem;
  }
}

.footer-col {
  min-width: 0;
}

.footer-about {
  max-width: 340px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 1rem;
}

.footer-logo:hover {
  color: var(--primary);
}

.footer-desc {
  font-size: 0.9375rem;
  color: #9CA3AF;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  background: #374151;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-social-link:hover {
  color: #fff;
  background: rgba(25, 122, 252, 0.3);
}

.footer-social-link i {
  font-size: 1.25rem;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2rem;
}

.footer-links li {
  margin-bottom: 0;
}

.footer-links a {
  color: #9CA3AF;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  margin-bottom: 0.75rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  color: #9CA3AF;
  text-decoration: none;
  transition: color 0.2s ease;
}

a.footer-contact-item:hover {
  color: #fff;
}

.footer-contact-item span:last-child {
  margin-left: 0.75rem;
}

.footer-contact-icon {
  width: 32px;
  height: 32px;
  background: #374151;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

a.footer-contact-item:hover .footer-contact-icon,
.footer-contact-item:hover .footer-contact-icon {
  background: rgba(25, 122, 252, 0.3);
}

.footer-hours {
  background: rgba(55, 65, 81, 0.5);
  border-radius: 0.5rem;
  padding: 1rem;
}

.footer-hours-label {
  font-size: 0.9375rem;
  color: #9CA3AF;
  margin: 0;
}

.footer-hours-time {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  margin: 0.25rem 0 0;
}

.footer-copyright {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  text-align: center;
}

.footer-copyright p {
  margin: 0;
  font-size: 0.875rem;
  color: #9CA3AF;
}

/* 兼容旧版单行footer */
.footer-content {
  text-align: center;
  color: #9CA3AF;
  font-size: 0.875rem;
}

/* ============================================
   主内容区
   ============================================ */
.main-content {
  min-height: calc(100vh - 200px);
  padding-top: 64px;
}

/* ============================================
   卡片系统
   ============================================ */
.card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--gray-900);
  line-height: 1.2;
}

/* ============================================
   按钮系统
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(25, 122, 252, 0.08);
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-large {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-warning {
  background: #F59E0B;
  color: var(--white);
}

.btn-warning:hover {
  background: #D97706;
  transform: translateY(-2px);
}

/* ============================================
   表单系统
   ============================================ */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  transition: all 0.3s ease;
  background: var(--white);
  color: var(--text);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(25, 122, 252, 0.1);
}

.form-control::placeholder {
  color: var(--text-light);
}

.form-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--text-light);
}

.required {
  color: #EF4444;
}

/* ============================================
   表格系统
   ============================================ */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.table th {
  padding: 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--gray-200);
  background: var(--gray-50);
}

.table td {
  padding: 16px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--text-light);
  font-size: 0.875rem;
}

.table tbody tr {
  transition: background-color 0.2s ease;
}

.table tbody tr:hover {
  background-color: var(--gray-50);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================
   状态徽章
   ============================================ */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 12px;
}

.status-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent);
}

.status-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #F59E0B;
}

.status-error {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
}

.status-default {
  background: var(--gray-100);
  color: var(--text-light);
}

/* ============================================
   分页
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 8px 12px;
  font-size: 0.875rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination-link.active {
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
}

/* ============================================
   页面头部
   ============================================ */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 24px;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}

/* ============================================
   维权介绍卡片（未登录用户）
   ============================================ */
.rights-intro-card {
  text-align: center;
  padding: 2rem 2.5rem;
}

.rights-intro-desc {
  font-size: 1.0625rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.rights-intro-card .btn {
  margin: 0 0.5rem;
}

/* ============================================
   空状态
   ============================================ */
.empty-state {
  text-align: center;
  padding: 64px 32px;
  color: var(--text-light);
}

.empty-state p {
  font-size: 1rem;
  margin-bottom: 24px;
}

/* ============================================
   工具类
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 0.875rem; }
.text-gray-500 { color: #6B7280; }

.mt-1 { margin-top: 16px; }
.mt-2 { margin-top: 32px; }
.mb-1 { margin-bottom: 16px; }
.mb-2 { margin-bottom: 32px; }

.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-1 { gap: 16px; }
.gap-2 { gap: 32px; }

/* ============================================
   移动端汉堡菜单按钮（仅小屏显示）
   ============================================ */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  z-index: 52;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* 导航遮罩 */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 48;
  opacity: 0;
  transition: opacity 0.3s;
}
.nav-overlay.active {
  opacity: 1;
}

/* ============================================
   响应式 - 手机/平板
   ============================================ */
@media (max-width: 992px) {
  .logo-tagline {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .header-content {
    height: 56px;
    padding: 0 16px;
  }

  /* 汉堡菜单 */
  .nav-toggle {
    display: flex;
  }
  
  .nav-overlay {
    display: block;
  }

  /* 导航折叠为侧滑菜单 */
  .main-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    flex-direction: column;
    gap: 0;
    padding: 70px 0 24px;
    align-items: stretch;
    z-index: 51;
    transition: right 0.3s ease;
    overflow-y: auto;
  }
  .main-nav.active {
    right: 0;
  }
  .main-nav a {
    display: block;
    padding: 14px 24px;
    font-size: 1rem;
    border-bottom: 1px solid var(--gray-100);
    -webkit-tap-highlight-color: transparent;
  }
  .main-nav .btn-nav {
    margin: 16px 24px 0;
  }

  .main-content {
    padding-top: 56px;
  }
  
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }
  
  .page-header h1 {
    font-size: 1.75rem;
  }
  
  .card {
    padding: 20px 16px;
  }

  /* 表格横向滚动（卡片内表格） */
  .table-wrap,
  .card:has(table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-wrap table,
  .card table {
    min-width: 560px;
  }

  /* 按钮组换行 */
  .d-flex {
    flex-wrap: wrap;
  }
  .btn, .form-control {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  .header-content {
    padding: 0 12px;
  }
  .main-nav {
    right: -100%;
    width: 100%;
    max-width: 100%;
  }
  .page-header h1 {
    font-size: 1.5rem;
  }
  .card {
    padding: 16px 12px;
  }
  .footer-modern {
    padding: 2rem 0 1.5rem;
  }
  .footer-inner {
    padding: 0 16px;
  }
  .footer-copyright p {
    font-size: 0.75rem;
    line-height: 1.6;
  }
}
