@font-face {
  font-family: "DM Sans";
  src: url("../font/DMSans-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../font/DMSans-Italic-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --primary-blue: #0ea5e9; /* Sky 500 - Professional Blue */
  --accent-cyan: #2486ff;  /* Sky 400 - Lighter accent */
  --bg-base: #0f172a;      /* Slate 900 - Deep Business Blue */
  --bg-light: #1e293b;     /* Slate 800 - Slightly lighter */
  --bg-card: rgba(30, 41, 59, 0.7);
  --text-main: #f8fafc;    /* Slate 50 */
  --text-sub: #fff;     /* Slate 400 */
  --border-light: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(15, 23, 42, 0.85);
  --radius-lg: 16px;
  --radius-md: 8px;
  --title-color: #0ea5e9;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: "DM Sans", "微软雅黑", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout */
.layout-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-sub);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.header-logo img {
  height: 32px;
  width: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav a {
  color: var(--text-sub);
  font-weight: 500;
  font-size: 0.95rem;

  letter-spacing: 1px;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent-cyan);
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: var(--text-sub);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 1px;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.lang-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(36, 134, 255, 0.2);
  transform: translateY(-2px);
}


.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #0e74e95b;
  z-index: -1;
  filter: blur(10px);
  opacity: 0;

}

.main-nav a:hover::after, .main-nav a.active::after {
  opacity: 1;
}

/* Dropdown */
.nav-item.has-dropdown {
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
}

.dropdown-box {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 320px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
  z-index: 1001;
}

.nav-item.has-dropdown:hover .dropdown-box {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-title {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
}

.dropdown-desc {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border-light);
  padding: 40px 0 30px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 80px;
  margin-bottom: 60px;
}

.footer-brand .footer-logo img {
  height: 32px;
  margin-bottom: 24px;
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 400px;
  color: #fff;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: var(--accent-cyan);
  padding-left: 5px;
}

/* Newsletter */
.subscribe-box {
  display: flex;
  gap: 10px;
}

.subscribe-box input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.subscribe-box input:focus {
  border-color: var(--primary-blue);
  background: rgba(255, 255, 255, 0.08);
}

.subscribe-box button {
  background: var(--primary-blue);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 0 20px;
  cursor: pointer;
  transition: var(--transition);
}

.subscribe-box button:hover {
  background: var(--accent-cyan);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--text-sub);
}

.glow-text {
  color: var(--accent-cyan);
  font-weight: 500;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .header-flex {
    flex-direction: column;
    height: auto;
    padding: 20px 0;
    gap: 20px;
  }
  
  .main-nav ul {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
}
