/* 
 * KY Kaiyuan (Group) - Global Styles
 * Theme: Pale Black & Gold (淡黑金)
 */

:root {
  --primary-gold: #d4af37;
  --light-gold: #f4e1a1;
  --dark-gold: #aa8d2d;
  --pale-black: #121212;
  --deep-gray: #1e1e1e;
  --light-gray: #f5f5f5;
  --text-main: #e0e0e0;
  --text-muted: #888888;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--pale-black);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--primary-gold);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(18, 18, 18, 0.95);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  backdrop-filter: blur(10px);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-gold);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a:hover {
  color: var(--primary-gold);
}

.nav-links a.active {
  color: var(--primary-gold);
  border-bottom: 2px solid var(--primary-gold);
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://tse-mm.bing.com/th?q=企业总部大楼') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content h1 {
  font-size: 4rem;
  color: var(--light-gold);
  margin-bottom: 20px;
  animation: fadeInUp 1s ease-out;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 30px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.btn-gold {
  display: inline-block;
  padding: 12px 35px;
  background: var(--primary-gold);
  color: #000;
  font-weight: 600;
  border-radius: 4px;
  transition: var(--transition);
}

.btn-gold:hover {
  background: var(--light-gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Cards & Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: var(--deep-gray);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-gold);
}

.card-img {
  height: 200px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-img img {
  transform: scale(1.1);
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  color: var(--primary-gold);
  margin-bottom: 10px;
}

/* Stats Section */
.stats {
  background: var(--deep-gray);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.stat-item h4 {
  font-size: 2.5rem;
  color: var(--primary-gold);
  margin-bottom: 5px;
}

/* Footer */
footer {
  background: #0a0a0a;
  padding: 60px 0 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--primary-gold);
  margin-bottom: 20px;
}

.footer-col p, .footer-col li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Floating Online Customer Service */
.customer-service {
  position: fixed;
  right: 30px;
  bottom: 30px;
  background: var(--primary-gold);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 999;
  transition: var(--transition);
}

.customer-service:hover {
  transform: scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
