/**
 * Copyright (c) 2025 玉溪东峰科技有限公司 (Yuxi Dongfeng Technology Co., Ltd.)
 * All Rights Reserved.
 * 
 * PROPRIETARY/CONFIDENTIAL - INTERNAL USE ONLY
 * 
 * This stylesheet and its design elements are protected by copyright law.
 * Unauthorized copying, distribution, modification, or use of this code
 * is strictly prohibited without express written permission.
 * 
 * 本样式表及其设计元素受版权法保护。
 * 严禁未经书面许可复制、分发、修改或使用此代码。
 * 
 * License: Proprietary - Not for redistribution
 * Contact: info@dongfeng.tech
 * 
 * 违者必究 | Legal action will be taken against violators
 */

/* Light modern stylesheet - 明亮现代风格 */
:root {
  --primary-blue: #0E4F73;
  --secondary-blue: #126690;
  --accent-blue: #1a7fad;
  --light-blue: #deeef6;
  --text-dark: #1e293b;
  --text-gray: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(14, 79, 115, 0.12);
}

/* Security: Prevent content selection and copying */
* {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Allow selection for content areas */
.service-content,
.contact-info,
.contact-label,
.copyright {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Base styles */
* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-dark);
  background: linear-gradient(135deg, #f5f9ff 0%, #f0f6fe 50%, #f8faff 100%);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

/* Main wrapper */
#wrapper {
  width: 100%;
  max-width: 1100px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  animation: fadeScale 0.6s ease-out;
  position: relative;
  overflow: hidden;
}

/* Decorative elements */
#wrapper::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(14, 79, 115, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Header section */
header {
  text-align: center;
  padding: 20px 0 40px;
  position: relative;
  z-index: 1;
}

#logo {
  margin-bottom: 25px;
  animation: float 3s ease-in-out infinite;
}

#logo svg {
  filter: drop-shadow(0 2px 8px rgba(14, 79, 115, 0.2));
  transition: transform 0.3s ease;
}

#logo:hover svg {
  transform: scale(1.1);
}

#company .cn {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

#company .en {
  color: var(--text-gray);
  font-size: 16px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Founded section */
.founded {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 40px 0;
  position: relative;
  z-index: 1;
}

.left-hr, .right-hr {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    var(--border-color) 20%,
    var(--accent-blue) 50%,
    var(--border-color) 80%,
    transparent
  );
}

.info {
  background: white;
  color: var(--primary-blue);
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--light-blue);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

/* Service grid */
.product {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.line1,
.line2,
.line3 {
  display: contents;
}

.line3 .item5 {
  grid-column: 1 / -1;
}

.service-item {
  background: white;
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(14, 79, 115, 0.08),
    transparent
  );
  transition: 0.5s;
}

.service-item:hover {
  transform: translateY(-8px);
  border-color: var(--accent-blue);
  box-shadow: 0 12px 35px rgba(14, 79, 115, 0.15);
}

.service-item:hover::before {
  left: 100%;
}

.service-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-size: 32px;
  transition: all 0.3s ease;
}

.service-item:hover .service-icon {
  transform: scale(1.2);
  color: var(--secondary-blue);
}

.service-content {
  flex: 1;
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 500;
}

/* Contact section */
.contact {
  margin-top: 40px;
  display: grid;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.contact-item {
  background: white;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.contact-item:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-md);
  transform: translateX(8px);
}

.contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary-blue);
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
  transform: scale(1.2);
  color: var(--secondary-blue);
}

.contact-details {
  flex: 1;
}

.contact-label {
  color: var(--text-gray);
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-info {
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 500;
}

.email-link {
  color: var(--primary-blue);
  text-decoration: none;
  position: relative;
  font-weight: 600;
  transition: all 0.3s ease;
}

.email-link:hover {
  color: var(--secondary-blue);
}

.email-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.email-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Footer */
footer {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 2px solid var(--border-color);
  text-align: center;
  color: var(--text-gray);
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.copyright {
  line-height: 1.8;
}

.copyright a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.copyright a:hover {
  color: var(--secondary-blue);
}

.dongfengtech-report-img {
  vertical-align: middle;
  margin: 0 6px;
  opacity: 0.8;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .product {
    grid-template-columns: 1fr;
  }
  
  #wrapper {
    padding: 30px 20px;
  }
  
  .service-item {
    padding: 24px;
  }
  
  #company .cn {
    font-size: 24px;
  }
  
  .contact-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .founded {
    flex-wrap: wrap;
  }

  .info {
    font-size: 13px;
    padding: 10px 20px;
  }

  .service-icon {
    font-size: 40px;
  }
}

@media screen and (max-width: 480px) {
  body {
    padding: 20px 10px;
  }

  #wrapper {
    padding: 24px 16px;
    border-radius: 16px;
  }

  .service-content {
    font-size: 14px;
  }

  .contact {
    gap: 15px;
  }

  .contact-item {
    padding: 20px;
  }

  #company .cn {
    font-size: 20px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  body {
    background: white;
  }

  #wrapper {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .service-item,
  .contact-item {
    break-inside: avoid;
  }
}
