/* --- SOFTWARE SPECIFIC STYLES --- */
.search-container { flex: 1;            /* 撐滿中間空間 */
    width: 100%;         /* 保證寬度可增減 */
    display: block;      /* 移除 flex */
    text-align: center;  /* 讓內層置中 */ }

/* 搜尋欄 */
.search-wrapper { position: relative;
    margin-top: 1rem;
    display: inline-block; /* 讓內層可置中 */
    width: 100%;           /* 可自行調整寬度 */
    max-width: 880px;       /* 桌面最大寬度 */ }

#search-input { height: 50px;
    width: 100%;
	color: #374151;
    padding: 0.25rem 2.5rem 0.25rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1.15rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #edf0f3; }

.search-icon { position: absolute;
	right: 0.5rem;
    top: 30%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 2rem;
    height: 2rem; }

.search-icon > i { font-size: 1.2rem;
    color: #4b5563; }

#search-error { display: inline;
    color: #fff;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0;
    text-align: left;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease; }

#search-error.visible { opacity: 1;
    max-height: 50px; }

.container.soft_category { grid-template-columns: none;
    gap: 0; }

.soft_category h1 { text-align: center;
    margin: 1rem;
    font-size: 2rem; }

.one-card-block .card .software-icon,
.right_sidebar .card .software-icon { width: 100%;
    max-width: 100% !important;
    aspect-ratio: 16 / 9;
    border-radius: 0.5rem;
    border: 1px solid #BBB;
    object-fit: cover;
    margin-bottom: 0.75rem;
    box-sizing: border-box;
    grid-column: 1 / 2;
    grid-row: 2; }

.two-card-block .card,
.two-card-block .software-card { flex: 1 1 0; }

.two-card-block .card .software-icon { flex: 0 0 auto; }

.freeware { background-color: #217d68; }

.sys_lang_1, .sys_lang_2, .sys_lang_3 { background: #0088ff none repeat scroll 0 0; }

.sys_lang_4 { background: #d467e6 none repeat scroll 0 0; }

body.dark-mode #search-input { background-color: #bbc6ce;
    border-color: #4b5563; }

body.dark-mode .search-icon > i { color: #888; }

body.dark-mode .freeware { background-color: #2f855a; }

body.dark-mode .pagination select, body.dark-mode .sys_class ul { background: #4b5563;
    color: #d1d5db; }

body.dark-mode .sys_class .homepage_name,
body.dark-mode .subnav-content { background: #4b5563;
    color: #d1d5db; }

body.dark-mode .Horizontal.software-card,
body.dark-mode .Inline.software-card, body.dark-mode .use_block.content { background: none; }

/* --- 基礎佈局 (電腦版) --- */
li.software-item { display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    list-style: none;
    background: #fff;
    transition: background 0.2s; }

/* 版本號區塊：佔滿剩餘空間並處理文字過長 */
span[itemprop="version"] { flex: 1;
    font-size: 16px;
    color: #333;
    white-space: nowrap;     /* 強制不換行 */
    overflow: hidden;        /* 超出隱藏 */
    text-overflow: ellipsis; /* 顯示省略號 (...) */
    margin-right: 10px; }

/* ------------------軟體資料區---------------- */
/* 搜尋自動切換提示樣式 */
.search-notice { background-color: #fff4e5; /* 輕微的淺橘色背景，不刺眼但醒目 */
    border-left: 5px solid #ffa500; /* 左側橘色粗條，增加視覺強調 */
    color: #666; /* 深灰色文字，閱讀舒適 */
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 4px;
    font-size: 1.2rem;
    line-height: 1.5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* 淡淡的陰影增加質感 */ }

.search-notice strong { color: #d9534f; /* 強調字體用暗紅色 */ }

/* 提示列樣式 */
.search-notice-item { padding: 12px 15px;
    background-color: #fffaf0; /* 溫暖的淺黃色 */
    color: #856404;           /* 深褐色字 */
    font-size: 1.rem;
    border-bottom: 1px solid #ffeeba;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500; }

.search-notice-item i { color: #f0ad4e; /* 橘色圖標 */
    font-size: 14px; }

/* 通用樣式 */
.review_result { display: inline-block;
    overflow: hidden;
    width: 100%; }

.pagination_result { display: block;
    width: 100%;
    padding: 0.75rem;
    background-color: #fff;
    overflow: hidden;
    box-sizing: border-box;
    max-height: fit-content;
    margin-bottom: 1rem; }

.page_amount .freeware_only { margin-right: 1rem;
    font-weight: bold; }

.page_amount .freeware_block { margin-left: 1rem;
    font-weight: bold;
    font-size: 1.5rem;
	letter-spacing: 0.5rem; }

.page_amount .freeware_only a { color: #fff; }

.pagination { display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-left: 0;
    margin: 10px 0;
    border-radius: 9999px;
    float: right;
    min-height: 0; }

.pagination[data-page-count="1"] { min-height: auto; }

.pagination ul { margin: 0;
    padding: 0;
    display: inline-block;
    text-align: right; }

.pagination li { cursor: pointer;
    display: inline-block;
    list-style-type: none;
    font-weight: 400;
    padding: 0 0 6px 0; }

.pagination a, .pagination a:visited { border: 1px solid #9aafe5;
    padding: 6px 10px;
    text-decoration: none;
    border-radius: 6px; }

.pagination .select-wrapper { display: inline-block;
    margin-left: 10px; }

.pagination select { height: 36px;
    padding: 0 10px;
    box-sizing: border-box;
    cursor: pointer; }

.pagination .currentpage { background-color: #2e6ab1;
    border-color: #2b66a5;
    color: #fff;
    cursor: pointer;
    font-weight: bold; }

/* 導航選單 */
.review_result .navbar { overflow: hidden;
    background-color: #08082b;
    margin-bottom: 1em;
    position: relative; }

.review_result .navbar a { float: left;
    font-size: 1.2em;
    color: white;
    text-align: center;
    padding: 10px;
    text-decoration: none; }

.review_result .subnav { overflow: hidden; }

.review_result .subnav .subnavbtn { font-size: 1.2em;
    border: none;
    outline: none;
    color: white;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
    line-height: 1.2em; }

.review_result .subnav:hover .subnavbtn { background-color: red; }

.review_result .subnav-content { display: none;
    position: relative;
    background-color: red;
    left: 1px; }

.review_result .subnav-content a { float: left;
    color: white;
    font-weight: 600;
    text-decoration: none;
    width: 8em;
    text-align: left; }

.review_result .subnav-content a:hover { background-color: #eee;
    color: black;
    text-align: center; }

.review_result .subnav:hover .subnav-content { display: table; }

.review_menu { color: #fff;
    font-size: 2em;
    float: left;
    margin: 0.4em;
    cursor: pointer; }

.review_result .sys_icon { color: #fff;
    line-height: 4em;
    position: absolute;
    right: 0;
    top: 0;
    padding-right: 1em;
    display: inline-block; }

.review_result .sys_icon a { font-size: 1em;
    padding: 0; }

.sys_icon .fa-lg, .sys_os_icon .fa-lg { color: #d1d5db;
    font-size: 2em;
    margin: 0 0 0.3em 0.5em;
    cursor: pointer; }

.sys_icon .fa-reply, .sys_os_icon .fa-reply { /* display: none; */ }

.sys_os_icon .fa-caret-right, .sys_os_icon .fa-angle-right { cursor: auto; }

.sys_os_icon .FavoriteList, .sys_os_icon .My-history { display: none;
    color: #f3cf6a; }

.freeware_into { border-radius: 9999px;
    font-weight: 700;
    line-height: 1em;
    padding: 3px 10px;
    text-align: center;
    background: #3da851 none repeat scroll 0 0;
    color: #ffffff;
    margin-right: 6px;
    font-size: 1.25rem; }

.sys_class { background: #d90000;
    padding: 0; }

.sys_class ul { list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px; }

.sys_class .homepage_name { width: 10rem;
    font-size: 1.5rem;
    padding: 12px 18px;
    color: #fff;
    font-weight: bold;
    letter-spacing: 0.5px; }

.sys_class .web_date { width: 20rem;
    font-size: 1.5rem;
    padding: 12px 2px;
    color: #fff;
    font-weight: bold;
    letter-spacing: 0.5px; }

.sys_class li { border-radius: 6px;
    position: relative; }

.sys_class a { display: block;
    padding: 6px 8px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 0.5px;
    background-color: transparent;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease, background-color 0.3s ease;
    text-align: center; /* 水平置中 */ }

.sys_class a:hover { color: #ffeded;
    background-color: rgba(255, 255, 255, 0.15); }

.sys_class a::after { content: "";
    position: absolute;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transform: translateX(-50%);
    transition: width 0.35s ease; }

.sys_class a:hover::after { width: 100%; /* 滑過時展開整條 */ }

/* 軟體卡片 */
.software-card { background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease; }

.software-card:hover { transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1); }

.Horizontal.software-card { background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3); }

.two-card-block .software-info { margin-bottom: 0.25rem;
    height: 90px; }

.sidebar .card-info .software-info { margin-bottom: 0.25rem;
    height: 90px; }

.card-info .software-info { margin-bottom: 1rem; }

.software-name { font-size: 1.38rem;
    font-weight: bold;
    color: #111827;
    margin-left: 0.25rem;
    display: inline-block; }

.image-section .software-icon { width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block; }

.image-section .software-image { /* border: 1px solid #BBB; */
    /* border-radius: 0.5rem; */ }

.sidebar .Inline.software-card .image-section { display: contents; }

.Inline.software-card .software-image { /* display: contents; */ }

.Horizontal.software-card .image-section, .Horizontal.glass-card .image-section { display: flex;
    justify-content: center;
    align-items: center; }

.Horizontal.software-card .software-image { /* display: contents; */ }

.sidebar .card-info .description-text, .Inline.software-card .description-text { font-size: 1rem;
    color: #374151;
    margin-bottom: 8px;
    line-height: 1.7;
    max-height: 220px;
    overflow: hidden; }

.software-card.no-image .text-section { width: 100%; }

.software-card.no-image .image-section { display: none; }

/* 軟體詳情頁 */
.software_container { margin: 0 auto;
    border-radius: 14px;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: background 0.3s, color 0.3s; }

.softpage_data blockquote { margin: 0;
    padding: 15px 20px;
    background: #fafafa; }

.others_version blockquote, .Teach_List blockquote { padding: 15px 0; }

.basic_information_ul .software_name { font-size: 1.5rem;
    font-weight: bold; }

.use_block .software_name { font-size: 1.25rem; }

.software_container .font-bbb, .modal_container .font-bbb { font-size: 1.5rem;
    font-weight: bold;
    padding: 1rem; }

.softpage_data .filename3 { font-size: 1.25rem;
    font-weight: bold;
    color: #cc0000;
    padding: 1px;
    display: block;
	text-align: left; }

.version_illustrate { background: #f8f9fa;
    border-radius: 12px;
    padding: 20px 10px;
    margin: 30px 0;
    border-left: 5px solid #3498db;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); }

.version_illustrate h3 { color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eaeaea;
    display: flex;
    align-items: center; }

.version_illustrate h3 i { margin-right: 12px;
    color: #3498db; }

.version_illustrate blockquote { display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    border-left: none; }

.version-item { background: white;
    padding: 16px 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s; }

.version-item:hover { transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); }

.version-item .arch { font-weight: 700;
    color: #2c3e50;
    min-width: 160px;
    display: flex;
    align-items: center; }

.version-item .arch i { margin-right: 10px;
    width: 24px;
    text-align: center;
    color: #3498db; }

.version-item .desc { color: #7f8c8d;
    font-weight: 500; }

.version-divider { display: inline-block;
    width: 2px;
    height: 24px;
    background: #eaeaea;
    margin: 0 15px; }

.preview { font-size: 2rem;
    cursor: pointer; }

.page-link, .paginationll li a { display: inline-block;
    margin-right: 6px;
    padding: 6px 12px;
    border: 1px solid #1976d2;
    background: #fff;
    color: #1976d2;
    border-radius: 6px;
    cursor: pointer; }

.dl_btn { display: inline-block;
  background: #7b68ee;
  color: #fff;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s; }

.dl_btn i { margin-right: 6px; }

.dl_btn:hover { background: #5d4dcf;
  transform: translateY(-2px); }

.download_rule .softpage_data, .download_software .softpage_data { margin: 2rem; }

.software_info dt { margin: 0.5rem; }

.dl_btn.dllink { cursor: pointer; }

.dl_btn.dllink.qrcode_app { background: none; }

/* -------------------------- 暗色模式 ---------------------------------- */
body.dark-mode .pagination_result { background-color: #181a1b; }

body.dark-mode .software-name { color: #d1d5db; }

body.dark-mode .description-text, 
body.dark-mode .sidebar .card-info .description-text, 
body.dark-mode .card-info .Horizontal .description-text, 
body.dark-mode .Inline.software-card .description-text { color: #d1d5db; }

body.dark-mode .software_container { background: #242526;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6); }

body.dark-mode .softpage_data .filename3 { color: #aaa; }

body.dark-mode .dl_btn { background: #9a85ff; }

body.dark-mode .dl_btn:hover { background: #7b68ee; }