/* HydroCloud 下载页 — 亮色水主题 */
:root {
  --color-bg: #eef1fc;
  --color-bg-deep: #dde4fa;
  --color-surface: #ffffff;
  --color-primary: #1e58ec;
  --color-primary-light: #4a74f0;
  --color-primary-dark: #1849c7;
  --color-water: #6b90f5;
  --color-text: #1a2540;
  --color-text-secondary: #3d4d6e;
  --color-text-muted: #7a88a8;
  --color-border: #d8dff5;
  --color-icon-bg: #eaeeff;
  --radius-card: 20px;
  --radius-btn: 14px;
  --shadow-card: 0 6px 28px rgba(30, 88, 236, 0.08);
  --shadow-btn: 0 3px 12px rgba(30, 88, 236, 0.07);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body.download-page {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--color-text);
  background: linear-gradient(180deg, #e6ebfc 0%, var(--color-bg) 35%, #f5f7fd 70%, #e2e8fa 100%);
  overflow-x: hidden;
}

/* Background */
.download-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.download-bg__wave {
  position: absolute;
  left: 0;
  width: 100%;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.download-bg__wave--top {
  top: 0;
  height: 100px;
  background-image: url("../images/download/wave-top.svg");
  background-position: top center;
}

.download-bg__wave--bottom {
  bottom: 0;
  height: 88px;
  background-image: url("../images/download/wave-bottom.svg");
  background-position: bottom center;
}

.download-bg__ripple {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 88, 236, 0.1) 0%, rgba(30, 88, 236, 0.03) 45%, transparent 70%);
}

.download-main {
  position: relative;
  z-index: 1;
  max-width: 400px;
  margin: 0 auto;
  padding: 44px 20px 56px;
}

/* Header */
.download-header {
  text-align: center;
  margin-bottom: 30px;
}

.download-header__icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  display: block;
  border-radius: 22px;
  box-shadow:
    0 8px 24px rgba(30, 88, 236, 0.18),
    0 0 0 4px rgba(255, 255, 255, 0.7);
}

.download-header__title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 6px;
}

.download-header__subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 14px;
}

.download-header__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.download-header__divider::before,
.download-header__divider::after {
  content: "";
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-water), transparent);
}

.download-header__drop {
  width: auto;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

.download-header__desc {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.65;
  max-width: 300px;
  margin: 0 auto;
}

/* Panel */
.download-panel {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  margin-bottom: 28px;
  overflow: hidden;
}

.download-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-water), var(--color-primary), var(--color-water));
}

.download-panel__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
  padding: 24px 20px 4px;
}

/* Features */
.download-features__list {
  list-style: none;
  padding: 8px 20px 20px;
}

.download-features__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.download-features__item:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.download-features__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(160deg, #f4f6fe 0%, var(--color-icon-bg) 100%);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(30, 88, 236, 0.08);
}

.download-features__icon svg {
  width: 22px;
  height: 22px;
}

.download-features__content {
  flex: 1;
  min-width: 0;
}

.download-features__name {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
  margin-bottom: 2px;
}

.download-features__hint {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Download section */
.download-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 14px;
  padding-left: 2px;
}

.download-section__title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--color-water), var(--color-primary));
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-btn);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.download-item:active {
  border-color: #c5cff0;
  box-shadow: 0 2px 8px rgba(30, 88, 236, 0.06);
}

.download-item--primary {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(30, 88, 236, 0.3);
}

.download-item--primary:active {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.download-item--primary .download-item__icon {
  background: transparent;
  box-shadow: none;
}

.download-item--primary .download-item__label,
.download-item--primary .download-item__store {
  color: #fff;
}

.download-item--primary .download-item__store {
  opacity: 0.88;
}

.download-item--primary .download-item__arrow {
  color: rgba(255, 255, 255, 0.75);
}

.download-item__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.download-item__icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 11px;
}

.download-item__text {
  flex: 1;
  min-width: 0;
}

.download-item__label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.download-item__store {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.35;
  margin-top: 1px;
}

.download-item__arrow {
  flex-shrink: 0;
  color: var(--color-water);
  display: flex;
  align-items: center;
}

.download-item__arrow svg {
  width: 8px;
  height: 12px;
}

.download-item--hidden {
  display: none !important;
}

.download-item--apk {
  background: rgba(255, 255, 255, 0.65);
  box-shadow: none;
  border: 1px dashed #c5cff0;
}

.download-item--apk:active {
  background: rgba(255, 255, 255, 0.9);
}

/* Footer */
.download-footer {
  position: relative;
  text-align: center;
  margin-top: 40px;
  padding-top: 32px;
}

.download-footer__wave {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  max-width: 360px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-water) 30%, var(--color-water) 70%, transparent);
  opacity: 0.5;
}

.download-footer__logo {
  width: 56px;
  height: auto;
  margin: 0 auto 8px;
  display: block;
  opacity: 0.92;
}

.download-footer__name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

@media (min-width: 401px) {
  .download-main {
    padding-top: 56px;
  }
}
