/* ------------------軟體資料區---------------- */
/* 通用樣式 */
.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 {
    margin-bottom: 8px;
    text-align: right;
    display: block;
}

.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;
}

.select-wrapper {
    text-decoration: none;
    display: inline-block;
    position: relative;
}

.select-wrapper:before {
    color: rgba(144, 144, 144, 0.25);
    display: block;
    height: 2.75em;
    line-height: 2.75em;
    pointer-events: none;
    position: absolute;
    right: -0.8em;
    text-align: center;
    top: 0;
    width: 2.75em;
    content: "\f078";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-style: normal;
    text-transform: none !important;
}

/* 導航選單 */
.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;
}

.subnav .class2 {
    font-weight: 600;
    color: #fff;
}

.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; */
}

.snarl-icon .fa-lg {
    font-size: 3em;
}

.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;
}

.display_os .fab.fa-lg {
    color: #fff;
    font-size: 2em;
    line-height: 1.6em;
}

/* 按鈕和標籤 */
.toRight {
    background: url('/images/right_a.png') center no-repeat;
    background-position: center;
    background-repeat: no-repeat;
    bottom: 50%;
    cursor: pointer;
    display: none;
    height: 48px;
    overflow: hidden;
    position: fixed;
    right: 20px;
    text-decoration: none;
    text-indent: 100%;
    width: 5em;
    z-index: 9999;
    opacity: 0.4;
}

.toLeft {
    background: url('/images/left_a.png') center no-repeat;
    background-position: center;
    background-repeat: no-repeat;
    bottom: 50%;
    cursor: pointer;
    display: none;
    height: 48px;
    overflow: hidden;
    position: fixed;
    left: 20px;
    text-decoration: none;
    text-indent: 100%;
    width: 5em;
    z-index: 9999;
    opacity: 0.4;
}

.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;
}

.new_into {
    border-radius: 9999px;
    font-weight: 700;
    line-height: 1em;
    padding: 3px 10px;
    text-align: center;
    background: #e97200 none repeat scroll 0 0;
    color: #ffffff;
    margin-right: 6px;
    font-size: 1.25rem;
}

.system_lang {
    border-radius: 9999px;
    font-weight: 700;
    line-height: 1em;
    padding: 2px 10px;
    text-align: center;
    color: #ffffff;
    margin-right: 0;
    font-size: 1.25rem;
}

.fa-lg.card_name {
    color: #a5a0a0;
    font-size: 2rem;
    display: inline;
}

.card a {
    color: #323338;
    padding: 2px 6px;
    line-height: 1.4em;
    font-size: 1.25rem;
}

.To_edit .fas {
    color: #a5a0a0;
    margin-left: 0.5rem;
}

.categories a {
    font-weight: bold;
    font-size: 1rem;
}

.right.categories .fab.fa-lg {
    font-size: 1.5rem;
    color: #ea4c89;
}

.noData h3 {
    text-align: center;
    font-size: 1.5rem;
    color: #c62828;
}

.sys_class {
    background: linear-gradient(90deg, #d90000, #b00000);
    padding: 0;
}

.sys_class ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 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 {
    background: rgba(255, 255, 255, 0.1);
    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: 1rem;
    border: 1px solid #edf0f3;
    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 #edf0f3;
}

.latest-focus {
    display: inline-block;
    margin-bottom: 0.25rem;
}

.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;
}

.two-card-block .tags, .sidebar .card-info .tags {
    display: flex;
    align-items: center;
    gap: 1px;
    margin-bottom: 0.25rem;
    height: 3rem;
}

.card-info .tags {
    display: flex;
    align-items: center;
    gap: 1px;
    margin-bottom: 0.75rem;
}

.tag {
    padding: 6px 0;
    font-size: 12px;
    font-weight: bold;
    color: white;
    display: block;
}

.timeline .card-info .tags {
    display: block;
    margin: 0.75rem 0 0 0;
}

.software-name {
    font-size: 1.38rem;
    font-weight: bold;
    color: #111827;
    margin-left: 0.25rem;
    display: inline-block;
}

.content-section {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.content-section_up {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.text-section {
    flex: 5.5;
    min-width: 0;
}

.image-section {
    flex: 4.5;
    min-width: 0;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    box-sizing: border-box;
    flex-shrink: 0;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
}

.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 {
    display: block;
}

.Horizontal.software-card .software-image {
    /* display: contents; */
}

.content-section.no-image {
    display: inline-block;
    width: 100%;
}

.image-section:empty {
    display: none !important;
}

.two-card-block .highlight-text {
    color: #cc0000;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
    height: 5rem;
}

.Inline .highlight-text {
    color: #cc0000;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
    height: 5rem;
}

.Horizontal .highlight-text {
    color: #cc0000;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
    max-height: 100px;
}

.description-text {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 12px;
    line-height: 1.7;
    overflow: hidden;
    min-height: 190px;
}

.card-info .Horizontal .description-text {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 8px;
    line-height: 1.7;
    max-height: 270px;
    overflow: hidden;
}

.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;
}

.bottom-tags {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 2px solid #2196F3;
}

.left-tags {
    display: flex;
    align-items: center;
    gap: 8px;
}

.separator {
    color: #374151;
    font-weight: bold;
}

.right-tags {
    display: flex;
    align-items: center;
}

.software-card.no-image .text-section {
    width: 100%;
}

.software-card.no-image .image-section {
    display: none;
}

/* 軟體詳情頁 */
.software_container {
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: background 0.3s, color 0.3s;
}

.scrollable-section {
    margin-bottom: 30px;
}

.softpage_data blockquote {
    margin: 0;
    padding: 15px 20px;
    background: #fafafa;
}

.others_version blockquote, .Teach_List blockquote {
    padding: 15px 0;
}

.basic_information_ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.basic_information_ul li {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.side_information_ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
}

.side_information_ul li {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    display: block;
    justify-content: space-between;
    align-items: center;
}

.side_information_ul li > div:first-child {
    margin-bottom: 10px;
}

.side_information_ul li > div:last-child {
    margin: 0.5rem 0 0 0.5rem;
}

.side_information_ul li > div {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

.side_information_ul li > span {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

.side_information_ul li > div:last-child {
    margin-bottom: 0;
}

.side_information_ul i {
    flex-shrink: 0;
    margin-right: 10px;
    min-width: 20px;
    text-align: center;
}

.side_information_ul a {
    color: #2980b9;
    text-decoration: none;
    flex: 1;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.basic_information_ul li:last-child, .side_information_ul li:last-child {
    border-bottom: none;
}

.modal_container .basic_information_ul li {
    padding: 6px 12px;
    width: 100%;
}

.basic_information_ul .software_name {
    font-size: 1.5rem;
    font-weight: bold;
}

.bg-danger {
    background: #f3f3f3;
}

.myfavorite {
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
}

.Limit_free_link {
    color: #3684bf;
    padding: 6px;
    margin-bottom: 2rem;
    font-weight: 800;
}

.download_button {
    background: #7b68ee;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    transition: background 0.3s;
}

.download_button:hover {
    background: #5d4dcf;
}

.file_text ul {
    list-style: disc inside;
    margin: 10px 0 10px 20px;
    padding: 0;
}

.file_text li {
    margin-bottom: 6px;
}

.image_related ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.image_related img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.image_related img:hover {
    transform: scale(1.02);
}

.footer-right {
    text-align: right;
    font-size: 0.85rem;
    color: #374151;
}

.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;
}

.float-right {
    float: right;
    text-align: right;
}

.float-left {
    float: left;
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.download_button_red, .detailed_button {
    padding: 0.6em;
    background-color: #D20059;
    line-height: 2.2em;
    font-size: 1.3em;
    font-weight: 700;
    border-radius: 25px;
    margin-top: 0.5em;
    color: #fff;
}

.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;
}

/* 連結樣式 */
a {
    position: relative;
    display: inline-block;
    padding: 0 2px;
    text-decoration: none;
    color: #2c3e50;
}

a::after {
    content: '';
    position: absolute;
    width: 98%;
    height: 2px;
    bottom: -2px;
    left: 1%;
    background: #3498db;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.fa-lg-blue {
    color: #3b82f6;
}

.fa-lg-gray {
    color: #a2afb9;
    line-height: 2rem;
}

.fa-lg-red {
    color: #cc0000 !important;
    line-height: 2rem;
}

.pointer {
    cursor: pointer;
}

.fa-lg-x {
    font-size: 1.5rem;
}

.fa-lg-2x {
    font-size: 2rem;
    line-height: 1.5rem;
    padding-left: 0.5rem;
}

.preview {
    font-size: 2rem;
    cursor: pointer;
}

.font-bold {
    font-weight: 800;
}

.font-gray {
    color: #a2afb9;
}

.font-left {
    text-align: left;
    float: inline-end;
}

.font-right {
    text-align: right;
    float: inline-end;
}

.custom-tooltip {
    position: absolute;
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
}

.custom-tooltip.show {
    opacity: 1;
    transform: translateY(-20px);
}

/* 時間軸樣式 */
.timeline {
    max-width: 1200px;
    margin: 2rem auto !important;
    padding: 0 16px;
    position: relative;
}

.timeline-row {
    position: relative;
    margin: 28px 0;
}

.timeline-left {
    position: absolute;
    left: -160px;
    top: 0;
    width: 160px;
    text-align: right;
}

.timebox {
    color: #6b7c93;
    line-height: 1.2;
}

.time-title {
    font-size: 14px;
    color: #90a4ae;
    margin-bottom: 6px;
}

.time-text {
    font-size: 16px;
    font-weight: 700;
}

.node {
    position: absolute;
    right: -22px;
    top: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 6px solid var(--blue);
    box-shadow: 0 0 0 4px #e8f3fb;
}

.node.type-download {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px #fdf0e3;
}

.timeline_card {
    background: var(--card);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
    overflow: hidden;
    border: 6px solid var(--blue);
    padding: 10px 14px 16px;
}

.timeline_card.type-download {
    border-color: var(--orange);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.badges .badge {
    display: inline-block;
    font-size: 12px;
    background: #e7f3ff;
    color: #1565c0;
    border-radius: 16px;
    padding: 2px 8px;
    margin-right: 6px;
}

.timeline_card.type-download .badges .badge {
    background: #fff2df;
    color: #b66219;
}

.btn-del {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #8d99a6;
}

.btn-del:hover {
    color: #c62828;
}

.card-body {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.thumb {
    width: 360px;
    max-width: 40%;
    background: #fafafa;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.noimg {
    padding: 30px;
    color: #90a4ae;
    font-size: 14px;
}

.content {
    flex: 1;
    min-width: 0;
}

.title {
    margin: 4px 0 6px;
    font-size: 20px;
    font-weight: 800;
}

.desc {
    margin: 0;
    color: #455a64;
    line-height: 1.7;
    font-size: 14px;
    max-height: 6.2em;
    overflow: hidden;
}

.meta-line {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #607d8b;
    font-size: 13px;
}

.pill {
    display: inline-block;
    border-radius: 14px;
    padding: 2px 8px;
    background: #eaf3fb;
    color: #1565c0;
}

.timeline_card.type-download .pill {
    background: #fff2e3;
    color: #b66219;
}

.ago {
    color: #78909c;
}

.pager {
    padding: 20px 0 40px 160px;
    text-align: left;
}

.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;
}

.page-link.active {
    background: #1976d2;
    color: #fff;
    cursor: default;
}

.page-link.disabled {
    opacity: .5;
    pointer-events: none;
}

.webad_display {
    margin-bottom: 2rem;
}

/* ====== 卡片整體區塊 ====== */
.download_section {
  margin: 20px auto;
  background: #fff;
  border-radius: 14px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  line-height: 1.6;
  color: #333;
  transition: background 0.3s, color 0.3s;
}

.download_section h2 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: #444;
}

/* ====== 規範列表 ====== */
.download_terms {
  list-style: disc inside;
  margin: 0 0 20px 15px;
  padding: 0;
}

.download_terms li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

/* ====== 下載連結列表 ====== */
.download_links {
  margin: 25px 0;
}

.download_list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
}

.download_list li {
  text-align: center;
}

.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_homepage dt {
	font-size: 2rem;
    margin: 1rem auto;
    text-align: center;
    font-weight: 800;
    color: #cc0000;
}

.download_rule dt {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 2rem;
}
.download_rule .rule_list {
	margin: 0 2rem;
}

.responsive ul {
    list-style: none;
    padding: 1px;
}
.download_info-left {
	width: 50%;
    text-align: center;
    display: inline-block;
}

.download_info-right-xx {
	width: 50%;
    text-align: center;
	display: flex;
  	flex-direction: column;
  	justify-content: flex-start;
  	align-items: flex-start;
  	margin-top: 0;
  	padding-top: 0;
}

.download_url_link-xx {
    margin: 2rem;
	display: flex;
    align-items: flex-start; /* 父容器內子元素靠頂 */
}

.download_url_link {
    display: flex;
    gap: 20px;               /* 左右間距 */
    padding: 10px;
    box-sizing: border-box;
}

.download_info-left,
.download_info-right {
    flex: 1;                 /* 左右平分寬度 */
    display: flex;
    flex-direction: column;  /* 垂直排版 */
    padding: 10px;
    box-sizing: border-box;
}

.download_info-right dt {
    margin-top: auto;        /* 把 dt 推到底部 */
    color: #fff;
    padding: 8px;
    text-align: left;
}

/* 修正潛在的子元素樣式 */
.download_lid {
  margin-top: 0;
  padding-top: 0;
}
.download_bigicon_blue li {
	margin: 1rem;
}

.download_rule .softpage_data, .download_software .softpage_data {
	margin: 2rem;
}

.software_info dt {
	margin: 0.5rem;
}

.dl_btn.dllink {
	cursor: pointer;
}

.button_retry {
  background: #28a745;
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.button_retry:hover {
  background: #218838;
}

/* loader 動畫 (轉圈圈) */
.loader {
  text-align: center;
  display: none; /* 預設隱藏 */
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  margin: 10px auto;
  animation: spin 1s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.loader.show {
  display: block;
  opacity: 1;
}
.loader.hide {
  opacity: 0;
  transition: opacity 0.3s ease;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.downloadDiv {
  text-align: center;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

/* 顯示狀態 */
.downloadDiv.show {
  max-height: 500px; /* 足夠容納內文的高度，可以設大一點 */
  opacity: 1;
}
.downloadDiv h2 {
	color: #cc0000;
}
.buttonload {
    display: inline-block;
    background: #E70112;
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
}
.app_download_icon {
    width: 250px;
    height: 66px;
}
span.apple_download-button {
    display: inline-block;
    width: 250px;
    height: 72px;
    background: url(/images/app-store.svg);
    background-size: 250px 72px;
}
span.google_download-button {
    display: inline-block;
    width: 250px;
    height: 72px;
    background: url(/images/google-play.svg);
    background-size: 250px 72px;
}
.dl_btn.dllink.qrcode_app {
	background: none;
}

/* -------------------------- 暗色模式 ---------------------------------- */
body.dark-mode .pagination_result {
    background-color: #181a1b;
}

body.dark-mode .card a {
    color: #f5f5f5;
}

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 {
    background: #181a1b;
    color: #e4e6eb;
}

body.dark-mode .software_container {
    background: #242526;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

body.dark-mode h2 {
    color: #ddd;
}

body.dark-mode blockquote {
    background: #2f3133;
    border-left-color: #9a85ff;
}

body.dark-mode .basic_information_ul li {
    border-bottom: 1px solid #444;
}

body.dark-mode .download_button {
    background: #9a85ff;
}

body.dark-mode .download_button:hover {
    background: #7b68ee;
}

body.dark-mode a {
    color: #d1d5db;
}

body.dark-mode a:hover {
    color: #a6c1ff;
}

body.dark-mode .footer-right {
    color: #aaa;
}

body.dark-mode .bg-danger {
    background: #242526;
}

body.dark-mode .softpage_data .filename3 {
    color: #aaa;
}

body.dark-mode .Limit_free_link {
    color: #aaa;
}

body.dark-mode .download_section {
  background: #242526;
  color: #ddd;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

body.dark-mode h2 {
  color: #ddd;
  border-left-color: #9a85ff;
}

body.dark-mode blockquote {
  background: #2f3133;
  color: #ccc;
  border-left-color: #9a85ff;
}

body.dark-mode .dl_btn {
  background: #9a85ff;
}
body.dark-mode .dl_btn:hover {
  background: #7b68ee;
}

body.dark-mode .button_retry {
  background: #3fbf6f;
}
body.dark-mode .button_retry:hover {
  background: #2fa35a;
}

/* ----------------------- 響應式設計 ------------------------- */
@media (max-width: 1024px) {
    .content-section {
        flex-direction: column;
        gap: 20px;
    }
    
    .image-section {
        flex: none;
        order: 1;
        margin-bottom: 0;
    }
    
    .text-section {
        flex: none;
        order: 2;
    }
    
    .software-card {
        padding: 20px;
    }
    
    .bottom-tags {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .right-tags {
        align-self: flex-end;
    }
    
	.fa-lg-2x {
    	font-size: 1.5rem;
    	line-height: 1.5rem;
    	padding-left: 0.5rem;
	}
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .software-card {
        padding: 0.5rem;
    }
    
    .software-name {
        font-size: 20px;
    }
    
    .software_container {
        padding: 18px;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    .download_button {
        width: 100%;
        text-align: center;
    }
    
    .version_illustrate blockquote {
        grid-template-columns: 1fr;
    }
    
    .version-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .version-divider {
        display: none;
    }
    
    .version-item .arch {
        margin-bottom: 8px;
        min-width: auto;
    }
}

@media (max-width: 600px) {
  .download_list {
    grid-template-columns: 1fr;
  }
  .dl_btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
    .software-name {
        font-size: 18px;
    }
    
    .highlight-text {
        font-size: 15px;
    }
    
    .description-text {
        font-size: 13px;
    }
	.download_section {
    	margin: 1rem auto;
    	padding: 0;
	}
	.download-container {
    	margin: 1rem auto;
    	padding: 0;
	}
	.download_rule .rule_list {
    	margin: 0 1rem;
	}
	.download_software .softpage_data {
    	margin: 1rem;
	}
	.download_url_link {
    	margin: 1rem;
	}
	.download_info-right {
    	width: 100%;
	}
	ul.download_lid {
		padding-left: 0;
	}
	.download_homepage dt {
    	font-size: 1.5rem;
	}
    .sys_class .homepage_name, .sys_class .web_date {
        font-size: 1rem;
    }
}