/* 
 * OpenHub Portal - 科技风格门户样式
 * 采用现代化设计，强调科技感和用户体验
 */

/* 基础重置和变量定义 */
:root {
  --primary-color: #0066cc;
  --primary-dark: #004d99;
  --secondary-color: #00c896;
  --accent-color: #00eeff;
  --background-color: #0a1128;
  --card-background: #1a2332;
  --text-color: #ffffff;
  --text-secondary: #a0b0c0;
  --border-radius: 12px;
  --transition: all 0.3s ease;
  --box-shadow: 0 8px 32px rgba(0, 105, 217, 0.2);
  --gradient-primary: linear-gradient(135deg, #0066cc 0%, #00c896 100%);
  --gradient-secondary: linear-gradient(135deg, #00c896 0%, #00eeff 100%);
}

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

body {
  font-family: 'Roboto', sans-serif;
  background: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 102, 204, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(0, 200, 150, 0.1) 0%, transparent 20%);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部导航样式 */
.header {
  background: rgba(10, 17, 40, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 238, 255, 0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.logo p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.nav ul {
  display: flex;
  list-style: none;
}

.nav a {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  border-radius: 30px;
  transition: var(--transition);
  font-size: 1rem;
}

.nav a:hover {
  background: rgba(0, 102, 204, 0.2);
  color: var(--accent-color);
}

.user-actions .btn-login {
  background: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  margin-right: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Roboto', sans-serif;
}

.user-actions .btn-login:hover {
  background: rgba(0, 238, 255, 0.1);
  transform: translateY(-2px);
}

.user-actions .btn-register {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Roboto', sans-serif;
}

.user-actions .btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 102, 204, 0.3);
}

/* 主要内容区域 */
.main {
  min-height: calc(100vh - 200px);
}

/* 英雄横幅 */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(10, 17, 40, 0.9) 0%, rgba(0, 50, 100, 0.7) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 200, 150, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(0, 102, 204, 0.1) 0%, transparent 30%);
  z-index: -1;
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  box-shadow: var(--box-shadow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
}

.btn-secondary:hover {
  background: rgba(0, 238, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 238, 255, 0.2);
}

/* 应用部分样式 */
.apps-section {
  padding: 5rem 0;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.app-card {
  background: var(--card-background);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0, 238, 255, 0.1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 238, 255, 0.1), transparent);
  transition: 0.5s;
}

.app-card:hover::before {
  left: 100%;
}

.app-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 238, 255, 0.3);
}

.app-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  color: white;
}

.app-icon svg {
  width: 40px;
  height: 40px;
}

.app-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.app-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.btn-app {
  background: transparent;
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Roboto', sans-serif;
  width: 100%;
}

.btn-app:hover {
  background: var(--secondary-color);
  color: var(--background-color);
}

/* 服务部分样式 */
.services-section {
  padding: 5rem 0;
  background: rgba(10, 17, 40, 0.7);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--card-background);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  text-align: center;
  border: 1px solid rgba(0, 102, 204, 0.1);
  transition: var(--transition);
  box-shadow: var(--box-shadow);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 238, 255, 0.3);
  box-shadow: 0 15px 30px rgba(0, 102, 204, 0.3);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
  font-family: 'Orbitron', sans-serif;
}

.service-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* 页脚样式 */
.footer {
  background: #080e1a;
  padding: 3rem 0 1rem;
  border-top: 1px solid rgba(0, 238, 255, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
  font-family: 'Orbitron', sans-serif;
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.footer-section p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .user-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
}