/* Hostear风格样式 */

/* 全局变量 - 深色主题 */
:root {
  --primary-color: #10B981;
  --secondary-color: #3B82F6;
  --accent-color: #F59E0B;
  --text-primary: #F9FAFB;
  --text-secondary: #D1D5DB;
  --text-light: #9CA3AF;
  --bg-dark: #121212;
  --bg-darker: #0A0A0A;
  --bg-card: #1E1E1E;
  --border-color: #374151;
  --shadow-sm: 0px 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0px 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0px 10px 15px rgba(0, 0, 0, 0.5);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* 全局样式 */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-dark);
}

/* 容器样式 */
.hostear-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部导航 */
.hostear-header {
  position: sticky;
  top: 0;
  background: var(--bg-darker);
  box-shadow: var(--shadow-md);
  z-index: 999;
}

.hostear-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 70px;
}

.hostear-header-left {
  display: flex;
  align-items: center;
}

.hostear-logo {
  margin-right: 48px;
}

.hostear-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.hostear-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hostear-nav-item {
  margin-right: 32px;
}

.hostear-nav-link {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 70px;
  transition: var(--transition);
  position: relative;
}

.hostear-nav-link:hover {
  color: var(--primary-color);
}

.hostear-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.hostear-nav-link:hover::after {
  width: 100%;
}

.hostear-header-right {
  display: flex;
  align-items: center;
}

.hostear-header-actions {
  display: flex;
  align-items: center;
}

.hostear-header-action {
  margin-left: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.hostear-header-action:hover {
  color: var(--primary-color);
}

.hostear-register {
  color: var(--primary-color);
  background: rgba(16, 185, 129, 0.1);
  padding: 6px 16px;
  border-radius: var(--border-radius);
}

.hostear-register:hover {
  background: rgba(16, 185, 129, 0.2);
}

/* 移动端菜单 */
.hostear-mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: var(--text-secondary);
}

.hostear-mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-darker);
  box-shadow: var(--shadow-md);
  z-index: 998;
}

.hostear-mobile-nav.show {
  display: block;
}

.hostear-mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hostear-mobile-nav-item {
  border-bottom: 1px solid var(--border-color);
}

.hostear-mobile-nav-link {
  display: block;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.hostear-mobile-nav-link:hover {
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary-color);
}

/* Banner区域 */
.hostear-banner {
  background: linear-gradient(135deg, #121212 0%, #1E1E1E 100%);
  color: var(--text-primary);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hostear-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSgxNSkiPjxwYXRoIGQ9Ik0gNDAgMCBMIDAgMCAwIDQwIiBmaWxsPSJub25lIiBzdHJva2U9IiMxMEI5ODEiIHN0cm9rZS13aWR0aD0iMSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
  opacity: 0.1;
}

.hostear-banner-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hostear-banner-content {
  flex: 1;
  max-width: 500px;
}

.hostear-banner-badge {
  display: inline-block;
  background: var(--primary-color);
  color: var(--bg-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.hostear-banner-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hostear-banner-desc {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 32px;
  opacity: 0.9;
  color: var(--text-secondary);
}

.hostear-banner-actions {
  display: flex;
  gap: 16px;
}

.hostear-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  outline: none;
}

.hostear-btn-primary {
  background: var(--primary-color);
  color: var(--bg-dark);
}

.hostear-btn-primary:hover {
  background: #059669;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  transform: translateY(-2px);
}

.hostear-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.hostear-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.hostear-btn-full {
  width: 100%;
  text-align: center;
}

.hostear-btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.hostear-banner-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hostear-banner-image img {
  max-width: 100%;
  height: auto;
}

.hostear-banner-features {
  display: flex;
  gap: 24px;
  margin-top: 32px;
}

.hostear-banner-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.hostear-banner-feature-icon {
  color: var(--primary-color);
  font-size: 16px;
}

/* 通用 section 样式 */
.hostear-section-header {
  text-align: center;
  margin-bottom: 64px;
}

.hostear-section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.hostear-section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* 产品卡片样式 */
.hostear-products {
  background: var(--bg-dark);
  padding: 80px 0;
}

.hostear-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.hostear-product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  transition: var(--transition);
  position: relative;
}

.hostear-product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--primary-color);
}

.hostear-product-card-popular {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.3);
}

.hostear-product-card-popular::before {
  content: '最受欢迎';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: var(--bg-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 12px;
}

.hostear-product-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.hostear-product-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.hostear-product-tag {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary-color);
  font-weight: 500;
}

.hostear-product-specs {
  margin-bottom: 24px;
}

.hostear-product-spec {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.hostear-product-spec:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.hostear-product-spec-label {
  color: var(--text-secondary);
  font-size: 14px;
}

.hostear-product-spec-value {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.hostear-product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hostear-product-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.hostear-price-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

.hostear-price-unit {
  font-size: 14px;
  color: var(--text-secondary);
}

/* 云服务器优势 */
.hostear-cloud-advantages {
  background: var(--bg-darker);
  padding: 80px 0;
}

.hostear-cloud-advantages-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.hostear-cloud-advantage {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 32px;
  transition: var(--transition);
  text-align: center;
}

.hostear-cloud-advantage:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--primary-color);
}

.hostear-cloud-advantage-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  font-size: 24px;
  color: var(--primary-color);
}

.hostear-cloud-advantage-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.hostear-cloud-advantage-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* 技术支持 */
.hostear-tech-support {
  background: var(--bg-dark);
  padding: 80px 0;
}

.hostear-tech-support-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.hostear-tech-support-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 32px;
  transition: var(--transition);
  text-align: center;
}

.hostear-tech-support-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--primary-color);
}

.hostear-tech-support-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  font-size: 24px;
  color: var(--primary-color);
}

.hostear-tech-support-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.hostear-tech-support-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* VPS 方案 */
.hostear-vps {
  background: var(--bg-darker);
  padding: 80px 0;
}

.hostear-vps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.hostear-vps-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  transition: var(--transition);
  position: relative;
}

.hostear-vps-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--primary-color);
}

.hostear-vps-card-popular {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.3);
}

.hostear-vps-card-popular::before {
  content: '最受欢迎';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: var(--bg-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 12px;
}

.hostear-vps-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.hostear-vps-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.hostear-vps-tag {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary-color);
  font-weight: 500;
}

.hostear-vps-specs {
  margin-bottom: 24px;
}

.hostear-vps-spec {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.hostear-vps-spec:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.hostear-vps-spec-label {
  color: var(--text-secondary);
  font-size: 14px;
}

.hostear-vps-spec-value {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.hostear-vps-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hostear-vps-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

/* 产品对比 */
.hostear-comparison {
  background: var(--bg-dark);
  padding: 80px 0;
}

.hostear-comparison-table {
  overflow-x: auto;
}

.hostear-comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.hostear-comparison-table th,
.hostear-comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

.hostear-comparison-table th {
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary-color);
  font-weight: 600;
}

.hostear-comparison-table td {
  color: var(--text-secondary);
}

.hostear-comparison-table tr:last-child td {
  border-bottom: none;
}

.hostear-comparison-table th:last-child,
.hostear-comparison-table td:last-child {
  border-right: none;
}

/* 联系我们 */
.hostear-contact {
  background: var(--bg-darker);
  padding: 80px 0;
}

.hostear-contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--bg-card);
  padding: 48px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.hostear-contact-info h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.hostear-contact-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hostear-contact-details {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hostear-contact-detail {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.hostear-contact-detail i {
  width: 24px;
  font-size: 16px;
  color: var(--primary-color);
  margin-right: 12px;
}

.hostear-form-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hostear-form-group {
  margin-bottom: 16px;
}

.hostear-form-group input,
.hostear-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 14px;
  transition: var(--transition);
  background: var(--bg-dark);
  color: var(--text-primary);
}

.hostear-form-group input:focus,
.hostear-form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  outline: none;
}

.hostear-form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* 页脚 */
.hostear-footer {
  background: var(--bg-darker);
  color: var(--text-primary);
  padding: 80px 0 32px;
  border-top: 1px solid var(--border-color);
}

.hostear-footer-top {
  margin-bottom: 48px;
}

.hostear-footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.hostear-footer-nav-column h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hostear-footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hostear-footer-nav-list li {
  margin-bottom: 12px;
}

.hostear-footer-nav-list a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.hostear-footer-nav-list a:hover {
  color: var(--primary-color);
  padding-left: 4px;
}

.hostear-footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hostear-footer-copyright {
  font-size: 14px;
  color: var(--text-light);
}

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

.hostear-footer-copyright a:hover {
  color: var(--primary-color);
}

.hostear-footer-social {
  display: flex;
  gap: 16px;
}

.hostear-social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 16px;
  transition: var(--transition);
}

.hostear-social-link:hover {
  background: var(--primary-color);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
  .hostear-banner-title {
    font-size: 32px;
  }
  
  .hostear-section-title {
    font-size: 28px;
  }
  
  .hostear-contact-content {
    grid-template-columns: 1fr;
  }
  
  .hostear-banner-features {
    flex-direction: column;
    gap: 12px;
  }
}

@media screen and (max-width: 768px) {
  /* 头部导航 */
  .hostear-nav {
    display: none;
  }
  
  .hostear-header-actions {
    display: none;
  }
  
  .hostear-mobile-menu-btn {
    display: flex;
  }
  
  /* Banner */
  .hostear-banner-container {
    flex-direction: column;
    text-align: center;
  }
  
  .hostear-banner-content {
    max-width: 100%;
    margin-bottom: 48px;
  }
  
  .hostear-banner-title {
    font-size: 28px;
  }
  
  .hostear-banner-actions {
    justify-content: center;
  }
  
  /* 通用 padding */
  .hostear-banner,
  .hostear-products,
  .hostear-cloud-advantages,
  .hostear-tech-support,
  .hostear-vps,
  .hostear-comparison,
  .hostear-contact {
    padding: 60px 0;
  }
  
  /* 联系我们 */
  .hostear-contact-content {
    padding: 32px 24px;
  }
  
  /* 页脚 */
  .hostear-footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  /* 产品网格 */
  .hostear-products-grid,
  .hostear-vps-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  /* 头部 */
  .hostear-header-container {
    padding: 0 16px;
  }
  
  /* Banner */
  .hostear-banner {
    padding: 40px 0;
  }
  
  .hostear-banner-title {
    font-size: 24px;
  }
  
  .hostear-banner-desc {
    font-size: 14px;
  }
  
  /* 容器 */
  .hostear-container {
    padding: 0 16px;
  }
  
  /* 通用 padding */
  .hostear-banner,
  .hostear-products,
  .hostear-cloud-advantages,
  .hostear-tech-support,
  .hostear-vps,
  .hostear-comparison,
  .hostear-contact {
    padding: 40px 0;
  }
  
  /* 联系我们 */
  .hostear-contact-content {
    padding: 24px 16px;
  }
  
  /* 页脚 */
  .hostear-footer {
    padding: 60px 0 32px;
  }
  
  .hostear-footer-nav {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hostear-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* 加载动画 */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hostear-spin {
  animation: spin 1s linear infinite;
}

/* 工具类 */
.hostear-text-center {
  text-align: center;
}

.hostear-mt-8 {
  margin-top: 8px;
}

.hostear-mt-16 {
  margin-top: 16px;
}

.hostear-mt-24 {
  margin-top: 24px;
}

.hostear-mt-32 {
  margin-top: 32px;
}

.hostear-mb-8 {
  margin-bottom: 8px;
}

.hostear-mb-16 {
  margin-bottom: 16px;
}

.hostear-mb-24 {
  margin-bottom: 24px;
}

.hostear-mb-32 {
  margin-bottom: 32px;
}
