/* 上海速顺文化传播有限公司官网 - Main CSS */

:root {
  /* Color palette as per design document */
  --primary-dark-blue: #3C4A5A;
  --primary-purple: #5B4E7C;
  --secondary-light-gray: #F0F2F5;
  --white: #FFFFFF;
  --black: #000000;
  --glass-bg-white: rgba(255, 255, 255, 0.5);
  --glass-bg-dark: rgba(60, 74, 90, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-strong: rgba(0, 0, 0, 0.2);
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--primary-dark-blue);
  background-color: var(--secondary-light-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

a {
  color: var(--primary-purple);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark-blue);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 4rem 0;
}

.text-center {
  text-align: center;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-dark-blue), var(--primary-purple));
  color: var(--white);
}

.btn-primary:hover {
  box-shadow: 0 4px 12px var(--shadow-strong);
  transform: translateY(-2px);
}

.btn-glass {
  background: var(--glass-bg-white);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  color: var(--primary-dark-blue);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 12px var(--shadow);
}

/* Glass morphism styles */
.glass-card {
  background: var(--glass-bg-white);
  backdrop-filter: blur(15px);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 12px var(--shadow);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px var(--shadow-strong);
}

.glass-nav {
  background: var(--glass-bg-dark);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
}

/* Navigation */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: var(--white);
  position: relative;
}

.nav-links a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--white);
  transition: width 0.3s ease;
}

.nav-links a:hover:after {
  width: 100%;
}

.lang-switch {
  margin-left: 2rem;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  margin: 2px 0;
  transition: all 0.3s ease;
}

/* Hero section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Services section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-purple);
}

.service-card h3 {
  margin-bottom: 1rem;
}

/* News section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.news-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.news-content {
  padding: 1.5rem 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  color: var(--primary-purple);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.news-excerpt {
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* About section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-card {
  text-align: center;
}

.team-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.team-name {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.team-position {
  color: var(--primary-purple);
  margin-bottom: 1rem;
}

/* Contact section */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  color: var(--primary-purple);
}

.map-container {
  height: 300px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

/* Form styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(60, 74, 90, 0.2);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-purple);
}

.form-error {
  color: #e53935;
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-dark-blue), var(--primary-purple));
  color: var(--white);
  padding: 3rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  margin-top: 1rem;
}

.social-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 1rem;
  transition: background-color 0.3s ease;
}

.social-icon:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.footer-links h4 {
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 2rem;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--glass-bg-dark);
    backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    transition: height 0.3s ease;
  }
  
  .nav-links.active {
    height: calc(100vh - 70px);
    padding: 2rem 0;
  }
  
  .nav-links li {
    margin: 1.5rem 0;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
}

/* Animation classes */
.fade-in {
  animation: fadeIn 1s ease forwards;
}

.slide-up {
  animation: slideUp 0.8s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Language switcher styles */
.lang-dropdown {
  position: relative;
}

.lang-current {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.lang-options {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--glass-bg-dark);
  backdrop-filter: blur(15px);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 100px;
  display: none;
  z-index: 10;
}

.lang-options.show {
  display: block;
}

.lang-option {
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.lang-option:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* User center styles */
.login-container {
  max-width: 400px;
  margin: 6rem auto 4rem;
}

.user-dashboard {
  margin-top: 6rem;
}

.user-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1.5rem;
}

.user-welcome {
  flex-grow: 1;
}

.user-tabs {
  display: flex;
  list-style: none;
  border-bottom: 1px solid rgba(60, 74, 90, 0.2);
  margin-bottom: 2rem;
}

.user-tab {
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  position: relative;
}

.user-tab.active {
  color: var(--primary-purple);
}

.user-tab.active:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -1px;
  left: 0;
  background-color: var(--primary-purple);
}

.user-tab-content {
  display: none;
}

.user-tab-content.active {
  display: block;
}

.download-item {
  padding: 1rem;
  background-color: rgba(240, 242, 245, 0.5);
  margin-bottom: 1rem;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* News filter styles */
.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-tag {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background-color: rgba(240, 242, 245, 0.8);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.filter-tag.active {
  background-color: var(--primary-purple);
  color: var(--white);
}

.search-container {
  position: relative;
  margin-left: auto;
}

.search-input {
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(60, 74, 90, 0.2);
  font-size: 1rem;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(60, 74, 90, 0.5);
} 