/* 自定义样式 - 深圳金环球网站美化 */

:root {
  --primary-color: #2c7be5;
  --secondary-color: #00d97e;
  --accent-color: #f6c23e;
  --dark-color: #1e2d3d;
  --light-color: #f8f9fa;
  --text-color: #495057;
  --border-radius: 12px;
  --box-shadow: 0 0.15rem 1.75rem 0 rgba(33, 40, 50, 0.15);
  --transition: all 0.3s ease;
}

/* 全局样式优化 */
body {
  font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  color: var(--text-color);
  line-height: 1.6;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

/* SEO 辅助类 - 屏幕阅读器可见，视觉隐藏 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.container {
  background: white;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  padding: 0;
  margin-top: 20px;
  margin-bottom: 20px;
  overflow: hidden;
}

/* Logo 区域 - 艺术化设计 */
.site-header {
  background: #ffffff;
  padding: 0;
  margin: 0;
  border: none;
  position: relative;
  overflow: visible;
}

.header-content {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 25px 20px 25px 30px;
  background: #ffffff;
  position: relative;
  z-index: 10;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* 左侧 Logo 区域 */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 25px;
  flex: 0 1 auto;
  margin-right: auto;
}

.logo-img {
  width: 420px;
  height: auto;
  max-width: none;
  filter: drop-shadow(0 8px 24px rgba(79, 70, 229, 0.15));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.logo-img:hover {
  transform: scale(1.03) translateY(-3px);
  filter: drop-shadow(0 12px 32px rgba(79, 70, 229, 0.25));
}

/* Logo 标语 */
.logo-tagline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 25px;
  border-left: 4px solid #4f46e5;
}

.tagline-main {
  font-size: 26px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: 1px;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tagline-sub {
  font-size: 15px;
  color: #475569;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.5;
}

/* 右侧联系信息 */
.header-contact {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
  border-color: rgba(255, 255, 255, 0.4);
}

.contact-icon {
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-label {
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-value {
  font-size: 22px;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-value:hover {
  color: #fef3c7;
  transform: scale(1.02);
  text-decoration: none;
}

/* 装饰元素 */
.header-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    #4f46e5 0%, 
    #7c3aed 35%, 
    #a855f7 70%,
    transparent 100%);
}

.header-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    #e2e8f0 20%,
    #e2e8f0 80%,
    transparent 100%);
}

/* 背景装饰 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(180deg, 
    rgba(248, 250, 252, 0.8) 0%, 
    transparent 100%);
  z-index: -1;
  pointer-events: none;
}

/* 导航栏美化 */
.navbar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  padding: 15px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.navbar-nav .nav-link {
  color: white !important;
  font-weight: 600;
  padding: 10px 20px !important;
  margin: 0 5px;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--accent-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.navbar-nav .nav-link:hover::before {
  width: 80%;
}

/* 轮播图优化 */
.carousel {
  border-radius: var(--border-radius);
  overflow: hidden;
  margin: 20px 0;
  box-shadow: var(--box-shadow);
  max-height: 350px;
}

.carousel-inner {
  border-radius: var(--border-radius);
}

.carousel-item img {
  height: 350px;
  width: 100%;
  object-fit: cover;
  filter: brightness(0.95);
  will-change: transform;
}

.carousel-caption {
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px 20px;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.carousel-caption h3 {
  font-size: 28px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 10px;
}

.carousel-caption p {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-color);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* 面包屑导航优化 */
.breadcrumb {
  background: linear-gradient(135deg, #f5f7fa 0%, #e3eaf5 100%);
  border-radius: var(--border-radius);
  padding: 15px 20px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.breadcrumb-item a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* 卡片样式美化 */
.card {
  border: none !important;
  border-radius: var(--border-radius) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
  transition: var(--transition) !important;
  overflow: hidden;
  height: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2) !important;
}

.card-body {
  padding: 30px !important;
}

.card-body .btn {
  border-radius: 25px !important;
  padding: 12px 30px !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  margin-bottom: 15px !important;
  border: none !important;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e5fa8 100%) !important;
  box-shadow: 0 4px 12px rgba(44, 123, 229, 0.4) !important;
  transition: var(--transition) !important;
  width: 100%;
  display: block;
}

.card-body .btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(44, 123, 229, 0.6) !important;
}

.card-text {
  font-size: 15px;
  line-height: 1.8;
  color: #6c757d;
  text-align: justify;
}

/* 行布局优化 */
.row {
  margin: 30px 0;
  padding: 0 15px;
}

.row .col {
  padding: 15px;
}

/* Alert 提示框美化 */
.alert-info {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
  border: none !important;
  border-radius: var(--border-radius) !important;
  color: white !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  padding: 25px !important;
  margin: 30px 15px !important;
  box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4) !important;
  text-align: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

/* 页脚美化 */
.alert-light {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border: none !important;
  color: white !important;
  font-size: 14px !important;
  padding: 20px !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.alert-light a {
  color: white !important;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.alert-light a:hover {
  color: var(--accent-color) !important;
  text-decoration: underline;
}

/* 表格美化 */
.table {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  margin: 20px 0;
}

.table thead {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e5fa8 100%);
  color: white;
}

.table thead th {
  font-weight: 700;
  padding: 18px;
  border: none;
  font-size: 16px;
}

.table tbody tr {
  transition: var(--transition);
}

.table tbody tr:hover {
  background-color: #e3f2fd;
  transform: scale(1.01);
}

.table tbody td, .table tbody th {
  padding: 15px;
  vertical-align: middle;
}

/* 内容框美化 */
.content-box {
  padding: 30px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin: 20px 0;
  line-height: 2;
  font-size: 16px;
}

.content-box h5 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--secondary-color);
}

.content-box .list-group {
  list-style: none;
  padding: 0;
}

.content-box .list-group li {
  padding: 12px 0;
  border-bottom: 1px solid #e9ecef;
  transition: var(--transition);
}

.content-box .list-group li:hover {
  padding-left: 10px;
  color: var(--primary-color);
}

.content-box .list-group li:last-child {
  border-bottom: none;
}

/* 表单美化 */
.form-control {
  border-radius: 8px !important;
  border: 2px solid #e3e6f0 !important;
  padding: 12px 15px !important;
  transition: var(--transition) !important;
  font-size: 15px !important;
}

.form-control:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(44, 123, 229, 0.25) !important;
  transform: translateY(-2px);
}

table.display {
  width: 100%;
  margin: 20px 0;
}

table.display th {
  padding: 15px 0;
  font-weight: 600;
  color: var(--dark-color);
  width: 150px;
}

table.display td {
  padding: 15px 0;
}

table.display tfoot td {
  padding-top: 25px;
}

table.display tfoot input[type="submit"] {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #00a65a 100%) !important;
  border: none !important;
  border-radius: 25px !important;
  padding: 15px 40px !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  color: white !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  box-shadow: 0 4px 12px rgba(0, 217, 126, 0.4) !important;
}

table.display tfoot input[type="submit"]:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 217, 126, 0.6) !important;
}

/* 响应式优化 */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  
  .container {
    margin-top: 10px;
    margin-bottom: 10px;
  }
  
  .card {
    margin-bottom: 20px;
    width: 100% !important;
  }
  
  .carousel-item img {
    height: 200px;
  }
  
  .carousel-caption h3 {
    font-size: 16px;
  }
  
  .carousel-caption p {
    font-size: 14px;
  }
  
  .navbar-nav {
    text-align: center;
    width: 100%;
  }
  
  .navbar-nav .nav-link {
    margin: 5px 0;
    padding: 12px 20px !important;
  }
  
  .content-box {
    padding: 20px;
  }
  
  /* Logo 区域移动端优化 */
  .header-content {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }
  
  .logo-wrapper {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  
  .logo-img {
    width: 100%;
    max-width: 320px;
  }
  
  .logo-tagline {
    border-left: none;
    border-top: 3px solid;
    border-image: linear-gradient(90deg, #4f46e5 0%, #a855f7 50%, #10b981 100%) 1;
    padding-left: 0;
    padding-top: 15px;
    text-align: center;
  }
  
  .tagline-main {
    font-size: 18px;
  }
  
  .tagline-sub {
    font-size: 12px;
  }
  
  .header-contact {
    width: 100%;
    justify-content: center;
  }
  
  .contact-item {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }
  
  .contact-value {
    font-size: 18px;
  }
  
  #top img {
    max-height: 60px;
  }
  
  .alert-info {
    font-size: 16px !important;
    padding: 20px !important;
  }
  
  .table {
    font-size: 13px;
  }
  
  .table thead th,
  .table tbody td {
    padding: 10px 8px;
  }
  
  .back-to-top {
    bottom: 20px !important;
    right: 20px !important;
    width: 45px !important;
    height: 45px !important;
    font-size: 20px !important;
  }
  
  .row {
    margin: 15px 0;
  }
  
  .breadcrumb {
    font-size: 13px;
    padding: 10px 15px;
  }
}

/* 小屏幕设备优化 */
@media (max-width: 576px) {
  .carousel-caption {
    padding: 20px 10px 10px;
  }
  
  .carousel-caption h3 {
    font-size: 14px;
  }
  
  .carousel-caption p {
    font-size: 12px;
  }
  
  .card-body {
    padding: 20px !important;
  }
  
  .card-body .btn {
    font-size: 16px !important;
    padding: 10px 20px !important;
  }
  
  #top {
    padding: 15px;
  }
  
  #top img {
    max-height: 50px;
  }
  
  .content-box h5 {
    font-size: 18px;
  }
  
  .alert-info {
    font-size: 14px !important;
  }
}

/* 平板设备优化 */
@media (min-width: 768px) and (max-width: 1024px) {
  .card {
    margin-bottom: 20px;
  }
  
  .carousel-item img {
    height: 250px;
  }
}

/* 加载动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card, .content-box, .table {
  animation: fadeIn 0.6s ease-out;
}

/* 图片响应式 */
.img-responsive {
  display: block;
  height: auto;
  max-width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* 消息提示框美化 */
.msgOk {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #00a65a 100%);
  color: white;
  padding: 20px;
  border-radius: var(--border-radius);
  margin: 20px 0;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 217, 126, 0.4);
  animation: fadeIn 0.5s ease-out;
}

.msgOk span {
  font-size: 20px;
  font-weight: 700;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e5fa8 100%);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}
