/*
 * 号令天下 - hltxaaf模板
 * 现代简约风格 - 主样式表
 */

/* CSS变量 */
:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #a5b4fc;
  --secondary-color: #10b981;
  --accent-color: #f43f5e;
  --background-color: #f9fafb;
  --surface-color: #ffffff;
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-tertiary: #9ca3af;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --container-width: 1200px;
  --header-height: 70px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --glow-effect: 0 0 15px rgba(99, 102, 241, 0.5);
}

/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* 容器 */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 头部导航 */
.header {
  background-color: var(--primary-color);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(5px);
}

.header.scrolled {
  background-color: rgba(99, 102, 241, 0.9);
  box-shadow: var(--shadow-lg);
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
}

.logo-text {
  margin-left: 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: white;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
}

.nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

.nav-link.highlight {
  background-color: var(--secondary-color);
  color: white;
}

.nav-link.special {
  background-color: var(--accent-color);
  color: white;
}

/* 主区域 */
.main {
  flex: 1;
  padding: 2rem 0 4rem;
}

/* 卡片样式 */
.card {
  background-color: var(--surface-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
  margin-bottom: 2rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-body {
  padding: 1.5rem 2rem;
}

.card-title {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.card-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 3px;
  width: 40px;
  background-color: var(--primary-color);
  border-radius: 3px;
}

/* 搜索区域 */
.search-area {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  padding: 3rem 0;
  margin-bottom: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: white;
  text-align: center;
}

.search-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.search-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.85;
}

.search-container {
  max-width: 650px;
  margin: 0 auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background-color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  color: var(--text-primary);
}

.search-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-light), var(--shadow-md);
}

.search-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

.btn-secondary {
  background-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: #0ca678;
}

.btn-accent {
  background-color: var(--accent-color);
}

.btn-accent:hover {
  background-color: #e11d48;
}

.btn-light {
  background-color: white;
  color: var(--primary-color);
}

.btn-light:hover {
  background-color: #f9fafb;
  color: var(--primary-dark);
}

/* 随机号码区域 */
.number-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.number-item {
  background-color: var(--surface-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  color: var(--text-primary);
  font-weight: 500;
}

.number-item:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* 内容卡片 */
.content-section {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.content-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* 特性展示 */
.features {
  margin: 3rem 0;
}

.feature-item {
  display: flex;
  margin-bottom: 1.5rem;
}

.feature-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(99, 102, 241, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: var(--primary-color);
}

.feature-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.feature-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* 页脚 */
.footer {
  background-color: #1f2937;
  color: #e5e7eb;
  padding: 3rem 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-info {
  flex: 1;
  min-width: 250px;
}

.footer-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
}

.footer-info p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #d1d5db;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.footer-links-group {
  min-width: 160px;
}

.footer-links-group h4 {
  color: white;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.footer-links-group ul {
  list-style-type: none;
}

.footer-links-group ul li {
  margin-bottom: 0.75rem;
}

.footer-links-group ul a {
  color: #d1d5db;
  transition: var(--transition);
}

.footer-links-group ul a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 0.95rem;
}

.copyright a {
  color: #d1d5db;
}

/* 关键词列表 */
.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.keyword-list p {
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: var(--transition);
}

.keyword-list p:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* 动画效果 */
.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.slide-up {
  animation: slideUp 0.6s ease forwards;
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* 响应式适配 */
@media (max-width: 992px) {
  :root {
    --header-height: 64px;
  }
  
  .search-title {
    font-size: 1.75rem;
  }
  
  .footer-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    background-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
  }
  
  .nav-menu.open {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    opacity: 1;
    pointer-events: auto;
  }
  
  .search-area {
    padding: 2rem 1.5rem;
  }
  
  .search-title {
    font-size: 1.5rem;
  }
  
  .search-description {
    font-size: 1rem;
  }
  
  .search-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .search-buttons .btn {
    width: 100%;
  }
  
  .card-body {
    padding: 1.25rem;
  }
  
  .number-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  
  .logo-text {
    display: none;
  }
  
  .search-container {
    padding: 0 1rem;
  }
  
  .number-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
  
  .card-title {
    font-size: 1.35rem;
  }
} 