body {
  font-family: 'Open Sans', sans-serif;
}

/* sticky footer 兼容：page-content 作为 flex 列，container 弹性填充 */
.page-content {
  display: flex;
  flex-direction: column;
}

.top-text{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.middle-text{
  margin-top: 20px;
}

.container {
  flex: 1;
  max-width: none;
  margin:0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.wrapper{
  width: 50%;
}

.scroll-wrapper::-webkit-scrollbar { 
    display: none; 
    margin-right: 5%;
}

.scroll-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.top-text p {
  font-size: 56px;
  font-family: 'Roboto', sans-serif;
}

.fixed-wrapper {
    position: fixed;
    right: 50%;
    top: calc(50% - 135px);
}

ul li a {
  color: #808080;
}

.text-title {
  margin:0px;
}

.title-logo{
    height:24px;
    margin: 0px 12px 0px 2px;
    opacity: 0.4;
    filter: alpha(opacity=40);
    text-decoration:none;
}

.title-logo:hover{
    opacity: 0.8;
    filter: alpha(opacity=80);
    text-decoration:none;
}

.mobile-view {
  display: none;
}

.desktop-view {
    display: block;
}

.top-text .text-content {
  margin: 14px 0px;
  font-size: 14px;
  font-weight: 400;
  color: #888;
  line-height: 1.6;
}

@media only screen and (max-width: 1094px) {
  .container {
    flex-direction: column;
  }
  .wrapper {
    width: 100%;
  }
  .mobile-view {
    display: block;
  }
  .desktop-view {
    display: none;
  }
  .wrapper.fixed-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    right: 0%;
    display:none;
  }
  .scroll-wrapper {
    align-items: center;
  }
  .social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  #terminal {
    width: 100%;
  }
  .top-text p {
    font-size: 48px;
  }
}

@media only screen and (max-width: 600px) {
  #terminal .terminal .window-title .win-buttons{
    width: 60px;
  }
  #terminal .terminal {
    height: 400px;
  }
  .top-text p {
    font-size: 40px;
  }
}

#terminal #terminal-container .overlay {
  position: absolute;
  background-color: #FFF;
  width: 100%;
  height: 100%;
  top: 0;
  opacity: 0.3;
}
#terminal .terminal {
  position: relative;
  background: rgba(38, 38, 38, 0.8);
  width: 80%;
  height: 260px;
  border-radius: 8px;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  margin: auto;
}
#terminal .terminal .window-title {
  background: linear-gradient(top, #dedede, #c0c0c0);
  width: calc(100% - 16px);
  height: 8%;
  text-align: center;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  padding: 1px 8px;
}
#terminal .terminal .window-title .win-buttons {
  position: relative;
  width: 15%;
  left: -11px;
  float: left;
  margin: 0;
}
#terminal .terminal .window-title .button {
  display: inline-block;
  text-align: center;
  width: 10px;
  height: 10px;
  border: 0.5px solid;
  border-radius: 100px;
  vertical-align: middle;
  margin: 3px 2px 3px 0;
}
#terminal .terminal .window-title #close {
  background: #e25544;
  border-color: #d84b3a;
}
#terminal .terminal .window-title #min {
  background: #f5b640;
  border-color: #e0a12b;
}
#terminal .terminal .window-title #max {
  background: #7cb058;
  border-color: #6fa44b;
}
#terminal .terminal .title {
  position: relative;
  display: inline-block;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-align: center;
  vertical-align: middle;
  top: 0.5px;
  left: -43px;
}
#terminal .terminal .prompt {
  font-size: 98%;
}
#terminal .terminal .user {
  color: #ea7e7d;
  letter-spacing: 0.002em;
  padding-right: 3px;
}
#terminal .terminal .at {
  color: #e8d880;
  padding-right: 2px;
}
#terminal .terminal .path {
  color: #7ecdcb;
  letter-spacing: 0.002em;
  padding-right: 2px;
}
#terminal .terminal .caret {
  color: #50cd70;
}
#terminal .message {
  position: relative;
  color: rgba(255, 255, 255, 0.75);
  font-family: "Source Code Pro", monospace;
  width: 95%;
  margin: auto;
  padding: 1.5vh 0 0;
  z-index: 999;
}
#terminal .message span {
  font-size: 90%;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.045em;
  margin-bottom: 1em;
}
#terminal .message span a {
  font-family: "Source Code Pro", monospace;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.75);
}
#terminal .message form input {
  background: transparent;
  border: none;
  outline: none;
  caret-color: #50cd70;
}
#terminal .message form input:focus {
  color: rgba(255, 255, 255, 0.75);
}
#terminal .message .typed-cursor {
  color: rgba(255, 255, 255, 0.9);
}
#terminal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
#terminal a:hover {
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px dotted rgba(255, 255, 255, 0.9);
}

/* ===== 内嵌真终端适配（抵消 terminal.css 全局污染 + 尺寸） ===== */
/* 恢复 home 页 body 字体与文字颜色（terminal.css 会设为等宽绿色） */
body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
}

/* 左侧终端容器：占左半屏、垂直居中、固定高度 */
.fixed-wrapper {
    position: fixed;
    left: 3%;
    width: 44%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

.fixed-wrapper #terminal {
    width: 100%;
}

/* 终端窗口：macOS 风格（圆角 + 柔和投影） */
.fixed-wrapper .term-window {
    width: 100%;
    height: 430px;
    border-radius: 12px;
    border: 1px solid #1e1e1e;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
    /* 终端文本颜色降低约 20% 亮度 */
    --term-text: #22aa48;
    --term-green: #3eb362;
}

/* 标题栏顶部圆角与窗口一致 */
.fixed-wrapper .term-window .term-titlebar {
    border-radius: 12px 12px 0 0;
}

/* 硬编码终端颜色同步降低约 20% 亮度 */
.fixed-wrapper .term-window .term-line .term-prompt .u { color: #64cc86; }
.fixed-wrapper .term-window .term-line .term-prompt .h { color: #3eb362; }
.fixed-wrapper .term-window .term-line .term-prompt .d { color: #3eb362; }
.fixed-wrapper .term-window .term-cmd { color: #c0a04c; }
.fixed-wrapper .term-window .tool-prefix { color: #9a4444; }
.fixed-wrapper .term-window .term-out .bright { color: #72b880; }
.fixed-wrapper .term-window .term-out .hl { color: #65b275; }
.fixed-wrapper .term-window .term-out .dim { color: #3eab5c; }
.fixed-wrapper .term-window .term-out .sep { color: #31954c; }
.fixed-wrapper .term-window .term-out a { color: #64cc86; }
.fixed-wrapper .term-window .term-out .warn { color: #ccae62; }
.fixed-wrapper .term-window .term-out .err { color: #cc564b; }

/* 终端屏幕占满剩余高度，可滚动 */
.fixed-wrapper .term-screen {
    flex: 1;
    min-height: 0;
}

/* 移动端：终端占满宽度，纵向堆叠 */
@media (max-width: 900px) {
    .fixed-wrapper {
        position: static;
        left: auto;
        width: 100%;
        top: auto;
        transform: none;
        padding: 12px;
    }
    .fixed-wrapper .term-window {
        height: 400px;
    }
}


/* ===== 首页分类快捷方式（轻样式，同软件列表非选中胶囊） ===== */
.home-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.home-cat {
    padding: 6px 14px;
    border-radius: 999px;
    background: #f4f5f7;
    color: #5b6270;
    text-decoration: none;
    font-size: 13.5px;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease;
}

.home-cat:hover {
    background: #eceef1;
    color: #2f3540;
}

.home-cat-count {
    font-style: normal;
    font-size: 12px;
    color: #a4aab4;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    padding: 0 7px;
    line-height: 18px;
    margin-left: 5px;
}

/* ===== 首页推荐软件行 ===== */
.home-recommend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.home-recommend-label {
    font-size: 12px;
    color: #a4aab4;
    margin-right: 4px;
}

.home-recommend-item {
    padding: 4px 12px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e3e6ee;
    color: #4a515c;
    font-size: 13px;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.home-recommend-item:hover {
    background: #f4f5f7;
    color: #2f3540;
}
