@charset "UTF-8";
header {
  background: var(--red-primary);
  color: var(--text-inverse);
  padding: 4rem 1rem;
  text-align: center;
}
header h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: var(--spacing-md);
}
header h1 img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
header p {
  font-size: 1.3rem;
  font-weight: 300;
  margin: 0;
  color: var(--white);
}

.features > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing);
  padding: 5px;
}
.features > div > div {
  display: flex;
  flex-direction: row;
  background-color: #eaeaea;
  border-radius: 10px;
  padding: 5px;
  text-align: center;
}
.features > div > div h3 {
  padding-bottom: 16px;
  padding-top: 10px;
  font-size: 1.4rem;
}
.features > div > div > .icon {
  font-size: 75px;
}
.features > div > div > .description {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-right: 12px;
  line-height: 1.3;
}

@media (max-width: 1100px) {
  .features > div > div h3 {
    font-size: 1.1rem;
    padding-bottom: 5px;
  }
  .features > div > div .description {
    font-size: 1rem;
  }
  .features > div > div .icon {
    font-size: 60px;
  }
}
@media (max-width: 920px) {
  .features > div {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .features > div > div h3 {
    font-size: 1rem;
    padding-bottom: 10px;
  }
}
@media (max-width: 650px) {
  .features > div {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .features > div > div .icon {
    font-size: 50px;
  }
}
@media (max-width: 550px) {
  .features > div {
    grid-template-columns: repeat(1, 1fr);
  }
  .features > div > div {
    padding: 1px;
  }
  .features > div > div .icon {
    font-size: 40px;
  }
  .features > div > div h3 {
    padding-bottom: 2px;
  }
  .features > div > div .description {
    width: 100%;
  }
}
.downloads > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.downloads .item {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.downloads .item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--red-bright);
  transform: translateY(-4px);
}
.downloads .item .icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}
.downloads .item .name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}
.downloads .item .description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}
.downloads .item .description .warning {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #ff9800;
  font-weight: 600;
  background: rgba(255, 152, 0, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 152, 0, 0.3);
}
.downloads .item .description .warning::before {
  content: "⚠️";
  font-size: 0.9rem;
}
.downloads .item .btn {
  display: inline-block;
  background: var(--red-primary);
  color: #ffffff;
  padding: 12px 32px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  width: 100%;
  max-width: 220px;
}
.downloads .item .btn:hover {
  background: var(--red-bright);
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(255, 68, 68, 0.4);
}

@media (max-width: 768px) {
  .downloads > div {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
  .downloads .item {
    padding: 0.5rem 0.75rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "icon content btn";
    align-items: center;
    text-align: left;
    gap: 0.75rem;
  }
  .downloads .item:hover {
    transform: none;
  }
  .downloads .item .icon {
    grid-area: icon;
    font-size: 2rem;
    margin-bottom: 0;
    width: 40px;
    text-align: center;
  }
  .downloads .item .name {
    grid-area: content;
    font-size: 1rem;
  }
  .downloads .item .description {
    grid-area: content;
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 0;
    margin-top: 2.2rem;
    color: rgba(255, 255, 255, 0.6);
  }
  .downloads .item .btn {
    grid-area: btn;
    padding: 8px 16px;
    font-size: 0.85rem;
    width: auto;
    max-width: none;
    white-space: nowrap;
    justify-self: end;
  }
  .downloads .item .btn:hover {
    transform: none;
  }
}
@media (max-width: 480px) {
  .downloads > div {
    gap: 0.35rem;
  }
  .downloads .item {
    padding: 0.35rem 0.5rem;
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
  }
  .downloads .item .icon {
    font-size: 1.5rem;
    width: 32px;
  }
  .downloads .item .name {
    font-size: 0.9rem;
  }
  .downloads .item .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}
.diagram-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.flow-step {
  flex-shrink: 0;
}

.box {
  color: white;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 140px;
}
.box.cloud-box {
  border-radius: 50%;
  padding: 1.5rem;
}
.box .icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.box .title {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.box .detail {
  font-size: 0.625rem;
}

.flow-arrow {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  width: 30px;
}
.flow-arrow .label {
  font-size: 0.75rem;
  white-space: nowrap;
  color: var(--bg-card);
}
.flow-arrow .line {
  width: 30px;
  height: 2px;
  background: var(--bg-card);
  opacity: 0.8;
  position: relative;
}
.flow-arrow .line::after {
  content: "";
  position: absolute;
  right: -8px;
  top: -4px;
  width: 0;
  height: 0;
  border-left: 10px solid var(--bg-card);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  opacity: 0.8;
}
.flow-arrow.dashed .line {
  background: repeating-linear-gradient(to right, white 0, white 5px, transparent 5px, transparent 10px);
  opacity: 0.6;
}

.subfolders-container {
  border: 1px solid white;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 700px;
  margin: 34px auto;
}
.subfolders-container .subfolders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}
.subfolders-container .subfolders .subfolder {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 0.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.subfolders-container .subfolders .subfolder .icon {
  font-size: 1.7rem;
}
.subfolders-container .subfolders .subfolder .title {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.connection-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: -1;
}
.connection-lines .line {
  position: absolute;
  width: 2px;
  background: var(--bg-card);
  opacity: 0.3;
}

.vertical-connect {
  width: 1px;
  height: 65px;
  background-color: var(--bg-card);
  left: 50%;
  transform: translateY(-46px);
  position: absolute;
}

@media (max-width: 768px) {
  .diagram-flow {
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }
  .vertical-connect {
    transform: translateY(-35px);
    height: 44px;
  }
  .flow-arrow {
    width: 28px;
  }
  .flow-arrow .line {
    width: 28px;
  }
  .flow-arrow .line::after {
    right: -7px;
    top: -3px;
    border-left: 9px solid var(--bg-card);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
  }
  .flow-arrow .label {
    font-size: 0.7rem;
  }
  .box {
    padding: 0.85rem 1.1rem;
    min-width: 110px;
  }
  .box.cloud-box {
    padding: 1.1rem;
  }
  .box .icon {
    font-size: 2.2rem;
  }
  .box .title {
    font-size: 0.9rem;
  }
  .box .detail {
    font-size: 0.6rem;
  }
  .subfolders-container {
    padding: 1.1rem;
    max-width: 100%;
    margin: 20px auto;
  }
  .subfolders-container .subfolders {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .subfolders-container .subfolders .subfolder {
    padding: 0.45rem;
  }
  .subfolders-container .subfolders .subfolder .icon {
    font-size: 1.7rem;
  }
  .subfolders-container .subfolders .subfolder .title {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }
}
@media (max-width: 480px) {
  .vertical-connect {
    transform: translateY(-29px);
    height: 33px;
  }
  .diagram-flow {
    gap: 0.35rem;
    flex-wrap: wrap;
  }
  .flow-arrow {
    width: 22px;
  }
  .flow-arrow .line {
    width: 22px;
  }
  .flow-arrow .line::after {
    right: -6px;
    border-left: 7px solid var(--bg-card);
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
  }
  .flow-arrow .label {
    font-size: 0.65rem;
  }
  .box {
    padding: 0.6rem 0.85rem;
    min-width: 90px;
  }
  .box .icon {
    font-size: 1.8rem;
  }
  .box .title {
    font-size: 0.8rem;
  }
  .subfolders-container {
    padding: 0.85rem;
    margin: 15px auto;
  }
  .subfolders-container .subfolders {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .subfolders-container .subfolders .subfolder {
    padding: 0.4rem;
  }
  .subfolders-container .subfolders .subfolder .icon {
    font-size: 1.5rem;
  }
  .subfolders-container .subfolders .subfolder .title {
    font-size: 0.75rem;
  }
}
.smart-download .smart-download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}
@media (max-width: 768px) {
  .smart-download .smart-download-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
.smart-download .download-column {
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--border-color, #e0e0e0);
  background: var(--bg-card, #f8f9fa);
}
.smart-download .download-column.install-column {
  border-left: 3px solid #4CAF50;
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f7f0 100%);
}
.smart-download .download-column.update-column {
  border-left: 3px solid #2196F3;
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f5f7 100%);
}
.smart-download .column-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}
.smart-download .column-description {
  font-size: 0.85rem;
  color: var(--text-secondary, #666);
  margin: 0 0 1rem 0;
}
.smart-download .option-block {
  margin-bottom: 0.75rem;
}
.smart-download .option-block:last-child {
  margin-bottom: 0;
}
.smart-download .option-block.alt-option {
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-color, #ddd);
  opacity: 0.85;
}
.smart-download .option-block h4 {
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0 0 0.5rem 0;
  color: var(--text-secondary, #666);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.smart-download .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid var(--primary-color, #007bff);
  background: transparent;
  color: var(--primary-color, #007bff);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.smart-download .btn-secondary:hover {
  background: var(--primary-color, #007bff);
  color: white;
}
.smart-download .btn-secondary.btn-download {
  border-color: #4CAF50;
  color: #4CAF50;
}
.smart-download .btn-secondary.btn-download:hover {
  background: #4CAF50;
  color: white;
}
.smart-download .btn-secondary.btn-browse {
  border-color: #2196F3;
  color: #2196F3;
}
.smart-download .btn-secondary.btn-browse:hover {
  background: #2196F3;
  color: white;
}
.smart-download .progress {
  width: 100%;
  height: 4px;
  background: var(--bg-secondary, #e0e0e0);
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
  display: none;
}
.smart-download .progress.active {
  display: block;
}
.smart-download .progress .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color, #007bff), #0056b3);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}
.smart-download .progress-text {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-secondary, #666);
}
.smart-download .status {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  min-height: 1.2em;
}
.smart-download .status div:first-child {
  color: #2e7d32;
}
.smart-download .tree-container {
  margin-top: 0.75rem;
  background: white;
  border-radius: 6px;
  border: 1px solid var(--border-color, #e0e0e0);
  overflow: hidden;
}
.smart-download .tree-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-secondary, #f5f5f5);
  border-bottom: 1px solid var(--border-color, #e0e0e0);
  flex-wrap: wrap;
}
.smart-download .tree-actions .btn-small {
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  border: 1px solid var(--border-color, #ccc);
  background: white;
  border-radius: 3px;
  cursor: pointer;
  color: var(--text-secondary, #666);
}
.smart-download .tree-actions .btn-small:hover {
  background: var(--bg-secondary, #f0f0f0);
}
.smart-download .tree-actions .tree-stats {
  font-size: 0.75rem;
  color: var(--text-secondary, #666);
  margin-left: auto;
}
.smart-download .tree-view {
  max-height: 250px;
  overflow-y: auto;
  padding: 0.5rem 0;
}
.smart-download .tree-node .tree-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  transition: background 0.15s ease;
  font-size: 0.85rem;
}
.smart-download .tree-node .tree-item:hover {
  background: var(--bg-hover, #f0f4f8);
}
.smart-download .tree-node .tree-item .tree-expand {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  user-select: none;
  font-size: 0.85rem;
  padding: 4px;
}
.smart-download .tree-node .tree-item .tree-expand:hover {
  color: var(--primary-color, #007bff);
}
.smart-download .tree-node .tree-item .tree-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin: 0;
  min-width: 18px;
  min-height: 18px;
}
.smart-download .tree-node .tree-item .tree-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
}
.smart-download .tree-node .tree-item .tree-name {
  flex: 1;
  color: var(--text-primary, #333);
  user-select: none;
}
.smart-download .tree-node .tree-item .tree-name:hover {
  color: var(--primary-color, #007bff);
}
.smart-download .tree-node .tree-item .tree-size {
  font-size: 0.75rem;
  color: var(--text-muted, #999);
  flex-shrink: 0;
}
.smart-download .tree-node .tree-children {
  margin-left: 0;
}
@media (max-width: 768px) {
  .smart-download .tree-node .tree-item {
    padding: 0.4rem 0.5rem;
  }
  .smart-download .tree-node .tree-item .tree-expand {
    width: 28px;
    font-size: 1rem;
    padding: 6px;
  }
  .smart-download .tree-node .tree-item .tree-checkbox {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
  }
  .smart-download .tree-node .tree-item .tree-icon {
    font-size: 1.1rem;
  }
  .smart-download .tree-node .tree-item .tree-name {
    font-size: 1rem;
  }
}
.smart-download .tree-footer {
  padding: 0.75rem;
  border-top: 1px solid var(--border-color, #e0e0e0);
  background: var(--bg-secondary, #f8f9fa);
  display: flex;
  justify-content: center;
}
.smart-download .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.625rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 4px;
  border: none;
  background: #2196F3;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}
.smart-download .btn-primary:hover:not(:disabled) {
  background: #1976D2;
}
.smart-download .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@font-face {
  font-family: ownFont;
  src: url("assets/Arya-Regular.ttf");
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: ownFont, "Arya", sans-serif;
  line-height: 1.6;
  color: #2c2c2c;
  background: #bebebe;
  min-height: 100vh;
}

#container {
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

:root {
  --red-primary: #D33333;
  --spacing: 14px;
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  --red-accent: #b82828;
  --red-subtle: #e63939;
  --red-bright: #ff4444;
  --text-primary: #2c2c2c;
  --text-secondary: #666666;
  --text-muted: #999999;
  --text-inverse: #ffffff;
  --white: #ffffff;
  --black: #2c2c2c;
  --gray-light: #f8f8f8;
  --gray-medium: #e0e0e0;
  --gray-dark: #333333;
}

section {
  background-color: #D33333;
  padding: 25px;
  padding-bottom: 35px;
  margin-top: 5px;
}
section:nth-child(even) {
  background-color: #111;
}
section h2 {
  color: white;
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  padding-bottom: 20px;
}

@media (max-width: 900px) {
  section {
    padding: 8px;
  }
  section h2 {
    font-size: 1.8rem;
  }
}
@media (max-width: 600px) {
  section {
    padding: 4px;
  }
  section h2 {
    font-size: 1.7rem;
  }
}