/* --- 全局和重置 --- */
:root {
  --primary-color: #0084ff;
  --primary-dark: #0066cc;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --border-radius: 12px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
}

/* --- 顶部导航栏 --- */
.navbar {
  background-color: var(--white);
  padding: 12px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.navbar-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.store-logo {
  height: 32px;
  border-radius: 6px;
}

.navbar-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-800);
}

/* --- 主内容区 --- */
.main-container {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* --- 应用信息卡片 --- */
.app-card {
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #00c6ff);
}

.app-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.app-logo-container {
  position: relative;
  margin-right: 20px;
}

.app-logo {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.app-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: linear-gradient(135deg, #ff8a00, #e52e71);
  color: white;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.app-info h1 {
  font-size: 24px;
  margin: 0 0 8px 0;
  font-weight: 700;
  color: var(--gray-900);
}

.app-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 14px;
}

.app-meta .rating {
  color: #ffb800;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.app-tags {
  font-size: 14px;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-block;
}

/* --- 版本号区域 --- */
.version-container {
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f3ff 100%);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 24px;
  text-align: center;
  border: 1px solid rgba(0, 132, 255, 0.1);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-item .label {
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 500;
}

.info-item .value {
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 600;
}

/* --- 下载按钮 --- */
.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn:active::after {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 12px rgba(0, 132, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 132, 255, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background: rgba(0, 132, 255, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-icon {
  font-size: 18px;
}

/* --- 简介和评论 --- */
.intro-card, .reviews-card {
  position: relative;
}

h2 {
  font-size: 20px;
  margin-top: 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-100);
  font-weight: 600;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 8px;
}

h2::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 2px;
}

#intro-content {
  line-height: 1.7;
  color: var(--gray-700);
  margin: 0;
}

.review-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}

.review-item:hover {
  background: rgba(0, 0, 0, 0.01);
  margin: 0 -16px;
  padding: 16px;
  border-radius: 8px;
}

.review-item:last-child {
  border-bottom: none;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.review-name {
  font-weight: 600;
  color: var(--gray-800);
}

.review-rating {
  color: #ffb800;
  font-size: 14px;
}

.review-text {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.6;
}

/* --- 页脚 --- */
.footer {
  text-align: center;
  padding: 24px 20px;
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 20px;
}

/* --- 举报功能样式 --- */
.report-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, var(--danger-color), #c82333);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 6px 16px rgba(220, 53, 69, 0.3);
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.report-float-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4);
}

.report-icon {
  font-size: 16px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background-color: white;
  padding: 24px;
  border-radius: 16px;
  width: 90%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray-500);
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: var(--gray-700);
  transform: scale(1.1);
}

#report-form input,
#report-form textarea,
#report-form button {
  width: 100%;
  padding: 14px;
  margin-bottom: 16px;
  border-radius: 10px;
  border: 1px solid var(--gray-300);
  box-sizing: border-box;
  font-family: inherit;
  transition: var(--transition);
}

#report-form input:focus,
#report-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.1);
}

#report-form textarea {
  resize: vertical;
  min-height: 100px;
}

#report-form button {
  background: linear-gradient(135deg, var(--danger-color), #c82333);
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  margin-bottom: 0;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

#report-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4);
}

.custom-alert {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 20px 30px;
  border-radius: 12px;
  z-index: 3000;
  display: none;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: alertFadeIn 0.3s ease;
}

@keyframes alertFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* 响应式设计 */
@media (max-width: 600px) {
  .main-container {
    padding: 16px;
  }
  
  .card {
    padding: 20px;
  }
  .app-info {
	flex-direction: column;
	align-items: center;
	display: flex;
  }
  .app-header {
	flex-direction: column;
	align-items: center;
	gap: 16px;
  }
  
  .app-logo-container {
    margin-right: 0;
  }
  
  .version-container {
    flex-direction: column;
    gap: 12px;
  }
  
  .report-float-btn {
    bottom: 16px;
    right: 16px;
    padding: 10px 16px;
  }
  
  .report-text {
    display: none;
  }
}
