/* ===== ANLI (CASES) PAGE STYLES ===== */
/* Shared by anli.html and anli-detail.html */

/* === Hide stats grid on case pages === */
.anli-page .stats-grid {
  display: none !important;
}
.anli-page .cta-area {
  padding-top: 0;
}

/* === PAGE HEADER === */
.page-header-section {
  background:
    radial-gradient(ellipse at 20% 40%, rgba(10, 181, 228, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(245, 166, 35, 0.06) 0%, transparent 50%), #f5fcff;
  padding: 72px 0 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header-section h1 {
  font-size: 38px;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.page-header-section h1 span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-header-section p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.page-header-sm {
  padding: 36px 0 28px;
  text-align: left;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 14px;
  color: var(--text-light);
}
.breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--blue);
}
.breadcrumb span {
  color: var(--text);
  font-weight: 500;
}

/* === FILTER TABS === */
.anli-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.anli-filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  background: #fff;
  font-family: inherit;
  transition: all 0.3s;
  cursor: pointer;
}
.anli-filter-btn:hover,
.anli-filter-btn.active {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(10, 181, 228, 0.2);
  transform: translateY(-1px);
}

/* === CASE LIST SECTION === */
.anli-list-section {
  background: #fff;
  position: relative;
  padding: 60px 0 80px;
}
.anli-list-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 30%, rgba(10, 181, 228, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 70%, rgba(245, 166, 35, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* === CASE GRID === */
.anli-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}

/* === CASE CARDS === */
.anli-card {
  height: 100%;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.anli-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}
.anli-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.anli-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(10, 181, 228, 0.08), rgba(245, 166, 35, 0.08));
}
.anli-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.anli-card:hover .anli-card-img img {
  transform: scale(1.05);
}
.anli-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}
.anli-card-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.5;
}

/* === INDUSTRY TAGS === */
.anli-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 2px;
}
.anli-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}
.tag-tech {
  background: rgba(10, 181, 228, 0.1);
  color: #0891b2;
}
.tag-brand {
  background: rgba(245, 166, 35, 0.1);
  color: #d97706;
}
.tag-food {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}
.tag-video {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}
.tag-beauty {
  background: rgba(236, 72, 153, 0.1);
  color: #db2777;
}
.tag-mouth {
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
}
.tag-edu {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}
.tag-geo {
  background: linear-gradient(135deg, rgba(10, 181, 228, 0.1), rgba(245, 166, 35, 0.1));
  color: #0891b2;
}
.tag-law {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}
.tag-medical {
  background: rgba(20, 184, 166, 0.1);
  color: #0d9488;
}
.tag-suppress {
  background: rgba(107, 114, 128, 0.1);
  color: #4b5563;
}
.tag-ecom {
  background: rgba(249, 115, 22, 0.1);
  color: #ea580c;
}
.tag-newmedia {
  background: rgba(168, 85, 247, 0.1);
  color: #9333ea;
}
.tag-ai {
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
}

/* === PLACEHOLDER IMAGE === */
.anli-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(135deg, var(--blue), var(--orange));
}
.anli-card-placeholder svg {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* === PAGINATION === */
.anli-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 52px;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: #fff;
  border: 1.5px solid var(--border);
  transition: all 0.3s;
  cursor: pointer;
}
.page-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.page-btn.active {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(10, 181, 228, 0.2);
}
.page-btn:disabled {
  color: #aab3bc;
  background: #f5f7f9;
  cursor: not-allowed;
  opacity: 0.75;
}

.anli-load-more {
  min-width: 190px;
  height: 44px;
  padding: 0 24px;
  border: 1px solid rgba(10, 181, 228, 0.35);
  border-radius: 10px;
  background: linear-gradient(135deg, #f0fbff, #fffaf0);
  color: #087fa1;
  font: 600 14px inherit;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.anli-load-more:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: 0 8px 20px rgba(10, 181, 228, 0.14);
}
.anli-load-more:focus-visible {
  outline: 3px solid rgba(10, 181, 228, 0.24);
  outline-offset: 3px;
}

/* === CASE DETAIL SECTION === */
.anli-detail-section {
  padding: 40px 0 80px;
  background: #fff;
  position: relative;
}
.anli-detail-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(10, 181, 228, 0.02) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(245, 166, 35, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

/* === DETAIL LAYOUT === */
.anli-detail-layout {
  display: flex;
  gap: 32px;
  position: relative;
  z-index: 1;
}
.anli-detail-main {
  flex: 9;
  min-width: 0;
}
.anli-detail-sidebar {
  flex: 3;
  align-self: flex-start;
  position: sticky;
  top: 80px;
}

/* === DETAIL HEADER === */
.anli-detail-header {
  margin-bottom: 28px;
}
.anli-detail-header h1 {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 16px;
}
.anli-detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.anli-detail-date {
  font-size: 13px;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.anli-detail-date svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* === DETAIL HERO IMAGE === */
.anli-detail-hero {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 36px;
  border: 1px solid var(--border);
}
.anli-detail-hero img {
  width: 100%;
  display: block;
}

/* === DETAIL BODY SECTIONS === */
.anli-detail-body {
  margin-bottom: 40px;
}
.anli-section {
  margin-bottom: 36px;
}
.anli-section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid transparent;
  border-image: var(--gradient-brand) 1;
}
.anli-section-title svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.anli-detail-body p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 14px;
}
.anli-detail-body ul {
  margin: 12px 0 16px 8px;
  list-style: none;
}
.anli-detail-body ul li {
  position: relative;
  padding: 6px 0 6px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.anli-detail-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-brand);
}

/* === RESULTS GRID === */
.anli-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.anli-result-item {
  background: linear-gradient(135deg, rgba(10, 181, 228, 0.05), rgba(245, 166, 35, 0.05));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
}
.anli-result-num {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}
.anli-result-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.anli-results-note {
  margin-top: 14px;
  color: var(--text-light) !important;
  font-size: 13px !important;
}

/* === CTA BOX === */
.anli-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 36px;
  border-radius: 16px;
  background: var(--gradient-brand);
  margin-bottom: 32px;
}
.anli-cta-text h3 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.anli-cta-text p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.anli-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: all 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
  border: 0;
  cursor: pointer;
}
.anli-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

/* === DETAIL NAVIGATION === */
.anli-detail-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.anli-detail-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.anli-detail-nav a:hover {
  color: var(--blue);
}

/* === SIDEBAR === */
.sidebar-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.consultant-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid var(--border);
  margin-bottom: 12px;
  transition: all 0.2s;
}
.consultant-card:hover {
  background: rgba(245, 166, 35, 0.04);
  box-shadow: 0 0 0 1px rgba(245, 166, 35, 0.2);
}
.consultant-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.consultant-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.consultant-info {
  flex: 1;
  min-width: 0;
}
.consultant-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.consultant-name span {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
}
.consultant-contact {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.copy-contact-btn {
  padding: 2px 8px;
  border: 1px solid rgba(10, 181, 228, 0.2);
  background: rgba(10, 181, 228, 0.05);
  color: #0ab5e4;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.copy-contact-btn:hover {
  background: #0ab5e4;
  color: #fff;
  border-color: #0ab5e4;
}

/* === RELATED CASES === */
.related-case-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s;
}
.related-case-item:last-child {
  border-bottom: none;
}
.related-case-item:hover {
  opacity: 0.8;
}
.related-case-thumb {
  width: 80px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(10, 181, 228, 0.1), rgba(245, 166, 35, 0.1));
}
.related-case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-case-info {
  flex: 1;
  min-width: 0;
}
.related-case-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-case-info span {
  font-size: 12px;
  color: var(--text-light);
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
  .anli-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .anli-detail-layout {
    flex-direction: column;
  }
  .anli-detail-sidebar {
    order: 2;
    position: static;
  }
  .anli-results-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .anli-cta-box {
    flex-direction: column;
    text-align: center;
  }
  .page-header-section {
    padding: 56px 0 40px;
  }
  .page-header-section h1 {
    font-size: 30px;
  }
}
@media (max-width: 768px) {
  .anli-grid {
    grid-template-columns: 1fr;
  }
  .anli-filter {
    gap: 8px;
  }
  .anli-filter-btn {
    padding: 7px 16px;
    font-size: 13px;
  }
  .page-header-section {
    padding: 40px 0 32px;
  }
  .page-header-section h1 {
    font-size: 26px;
  }
  .anli-detail-header h1 {
    font-size: 24px;
  }
  .anli-results-grid {
    grid-template-columns: 1fr;
  }
  .anli-cta-box {
    padding: 24px 20px;
  }
  .anli-detail-nav {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .anli-list-section {
    padding: 40px 0 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .anli-card,
  .anli-card-img img,
  .anli-load-more,
  .anli-cta-btn {
    transition: none;
  }
  .anli-card:hover,
  .anli-card:hover .anli-card-img img,
  .anli-load-more:hover,
  .anli-cta-btn:hover {
    transform: none;
  }
}
