* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #1b2838;
    color: #c7d5e0;
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: hidden;
    height: 800px;
}

.container {
    display: flex;
    height: 100vh;
}

/* 安装信息栏毛玻璃效果，与信息区融合 */
.detail-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px 16px 32px;
    background: linear-gradient(to top, rgba(32, 40, 56, 0.95), rgba(32, 40, 56, 0.55));
    backdrop-filter: blur(12px);
    border-radius: 0 0 12px 12px;
    margin: 0 0 -64px;
    width: 100%;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.10);
    position: relative;
    top: -64px;
    z-index: 2;
}
.detail-info-bar .info-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.detail-info-bar .info-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.install-btn.main {
    background: linear-gradient(90deg, #2ecc71 0%, #27ae60 100%);
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    padding: 8px 36px;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
    margin-right: 8px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}
.install-btn.main:hover {
    background: linear-gradient(90deg, #27ae60 0%, #229954 100%);
    box-shadow: 0 6px 16px rgba(46, 204, 113, 0.4);
}
.install-btn.main:disabled {
    background: linear-gradient(90deg, #95a5a6 0%, #7f8c8d 100%);
    opacity: 0.7;
    cursor: not-allowed;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.install-btn.main.installing-active:disabled {
    background: linear-gradient(90deg, #4aa3ff 0%, #2f7de1 100%);
    color: #fff;
    opacity: 1;
    cursor: not-allowed;
    box-shadow: 0 4px 12px rgba(74, 163, 255, 0.35);
}
.install-btn.starting-active:disabled {
    background: linear-gradient(90deg, #4aa3ff 0%, #2f7de1 100%);
    color: #fff;
    opacity: 1;
    cursor: not-allowed;
    box-shadow: 0 4px 12px rgba(74, 163, 255, 0.35);
}
.install-btn.main.stop-btn {
    background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}
.install-btn.main.stop-btn:hover {
    background: linear-gradient(90deg, #c0392b 0%, #a93226 100%);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}
.install-btn.main.stop-btn:disabled {
    background: linear-gradient(90deg, #95a5a6 0%, #7f8c8d 100%);
    opacity: 0.7;
    cursor: not-allowed;
}
.action-btn.icon {
    background: rgba(0,0,0,0.35);
    color: #c7d5e0;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    padding: 0;
    margin-right: 0;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
}

.action-btn.icon:hover {
    background: rgba(66,192,244,0.18);
    color: #66c0f4;
    transform: scale(1.05);
}
.install-size {
    color: #c7d5e0;
    font-size: 15px;
    margin-right: 16px;
}

/* 顶部导航栏 */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    background-color: #171a21;
    border-bottom: 1px solid #2a475e;
}

.top-nav-left {
    display: flex;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 18px;
    color: #66c0f4;
}

.launcher-version-badge {
    display: none;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    margin-right: 12px;
    padding: 2px 8px;
    border: 1px solid rgba(102, 192, 244, 0.35);
    border-radius: 999px;
    background: rgba(102, 192, 244, 0.12);
    color: #c7e6fb;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.top-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Plain text links placed next to the logo */
.top-link {
    margin-left: 12px;
    font-size: 17px; /* 字体稍稍放大 */
    color: #c7d5e0;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Announcement modal: clean and simple Steam-style design */
#announcementPopup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

#announcementPopup.show {
    display: flex;
}

#announcementPopup .modal-content {
    width: 1200px;
    height: 800px;
    max-width: 90%;
    max-height: 90%;
    background: linear-gradient(180deg, #1a2633 0%, #0f1419 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#announcementPopup .announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    flex-shrink: 0;
}

#announcementPopup .announcement-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #c7d5e0;
    letter-spacing: 0.3px;
}

#announcementPopup .announcement-header .close {
    background: none;
    border: none;
    color: #9aa7b4;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

#announcementPopup .announcement-header .close:hover {
    color: #c7d5e0;
}

#announcementPopup .iframe-wrapper {
    flex: 1;
    display: flex;
}

#announcementPopup .iframe-wrapper iframe {
    flex: 1;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 6px;
    background: white;
}

/* Multi-connect modal content styling to match app theme */
.multi-connect-content {
    width: 860px;
    max-width: calc(100% - 40px);
    padding: 24px;
    border-radius: 14px;
    background: linear-gradient(180deg, #1a2633 0%, #141d27 100%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 0 60px rgba(0,0,0,0.8), inset 0 0 80px rgba(255,255,255,0.02);
    color: #c7d5e0;
    overflow: hidden;
    position: relative;
}

/* Tools modal content styling */
.tools-modal-content {
    width: 780px;
    max-width: calc(100% - 40px);
    padding: 24px;
    border-radius: 14px;
    background: linear-gradient(180deg, #1a2633 0%, #141d27 100%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 0 60px rgba(0,0,0,0.8), inset 0 0 80px rgba(255,255,255,0.02);
    color: #c7d5e0;
    overflow: auto;
    position: relative;
}

/* Multi-connect inner styles */
.multi-connect-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.multi-connect-header .header-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2a5a8f, #1f4870);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 0 24px rgba(42, 90, 143, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.multi-connect-header .header-title {
    font-size: 20px;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.multi-connect-header .header-subtitle {
    color: #9aa7b4;
    font-size: 13px;
    margin-top: 2px;
}

.multi-connect-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-card, .usb4-status-card, .vram-card {
    background: linear-gradient(135deg, rgba(58, 120, 180, 0.08) 0%, rgba(10, 15, 20, 0) 100%);
    border: 1px solid rgba(58, 120, 180, 0.15);
    padding: 14px;
    border-radius: 10px;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.02);
}

.info-header {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.info-icon {
    font-size: 18px;
}

.info-title {
    color: #c7d5e0;
    font-weight: 700;
}

.info-content {
    color: #b9c6cf;
    font-size: 14px;
    line-height: 1.6;
}

.usb4-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.usb4-status-text {
    display: flex;
    gap: 8px;
    align-items: center;
}

.status-label {
    color: #9aa7b4;
    font-size: 13px;
}

.status-value {
    color: #c7d5e0;
    font-weight: 600;
}

.status-value.status-connected {
    color: #6ee7b7;
}

.status-value.status-disconnected {
    color: #f77373;
}
.usb4-check-btn {
    background: linear-gradient(90deg, #3a78b4, #2a5a8f);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(58, 120, 180, 0.3);
    transition: all 0.2s ease;
}
.usb4-check-btn:hover {
    background: linear-gradient(90deg, #4a88c4, #3a6a9f);
    box-shadow: 0 6px 16px rgba(58, 120, 180, 0.4);
}

.usb4-check-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.input-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

.input-label .label-text {
    color: #9aa7b4;
    font-size: 13px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ip-prefix {
    color: #9aa7b4;
    background: none; /* 去掉背景 */
    padding: 0;
    font-size: 16px; /* 增大字体 */
    font-weight: 600;
}

.ip-input, .inline-input {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.1));
    color: #c7d5e0;
    border: 1px solid rgba(58, 120, 180, 0.2);
    padding: 8px 10px;
    border-radius: 6px;
    width: 120px;
    transition: all 0.2s ease;
}

.ip-input:focus, .inline-input:focus {
    outline: none;
    border-color: rgba(58, 120, 180, 0.4);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.15));
    box-shadow: 0 0 12px rgba(58, 120, 180, 0.15);
}

.ip-input::-webkit-outer-spin-button,
.ip-input::-webkit-inner-spin-button,
.inline-input::-webkit-outer-spin-button,
.inline-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 隐藏数字输入框的上下按键（Firefox） */
.ip-input[type="number"],
.inline-input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.input-hint {
    color: #7f8c8d;
    font-size: 12px;
}

.set-slave-btn {
    margin-top: 14px;
    padding: 10px 16px;
    border-radius: 8px;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.25);
    transition: all 0.2s ease;
}

.set-slave-btn:hover {
    background: linear-gradient(90deg, #27ae60, #229954);
    box-shadow: 0 6px 16px rgba(46, 204, 113, 0.35);
}

.set-slave-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.multi-connect-close {
    position: absolute;
    right: 16px;
    top: 14px;
    background: transparent;
    border: none;
    color: #9aa7b4;
    cursor: pointer;
    transition: color 0.2s ease;
}

.multi-connect-close:hover {
    color: #c7d5e0;
}

.tools-close {
    position: absolute;
    right: 16px;
    top: 14px;
    background: transparent;
    border: none;
    color: #9aa7b4;
    cursor: pointer;
    transition: color 0.2s ease;
}

.tools-close:hover {
    color: #c7d5e0;
}

/* Tools modal inner styles */
.tools-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tools-header .header-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6a5aaf, #5a4a9f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 0 24px rgba(106, 90, 175, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.tools-header .header-title {
    font-size: 20px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.tools-header .header-subtitle {
    color: #9aa7b4;
    font-size: 13px;
    margin-top: 2px;
}

.tools-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tool-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(106, 90, 175, 0.08) 0%, rgba(10, 15, 20, 0) 100%);
    border: 1px solid rgba(106, 90, 175, 0.15);
}

.tool-info {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tool-icon-small {
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(106, 90, 175, 0.15), rgba(10, 15, 20, 0));
    border: 1px solid rgba(106, 90, 175, 0.2);
    border-radius: 8px;
}

.tool-name {
    color: #c7d5e0;
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.tool-desc {
    color: #9aa7b4;
    margin: 0;
    font-size: 13px;
}

.tool-download-btn {
    background: linear-gradient(90deg, #3a78b4, #2a5a8f);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(58, 120, 180, 0.25);
    transition: all 0.2s ease;
}

.tool-download-btn:hover {
    background: linear-gradient(90deg, #4a88c4, #3a6a9f);
    box-shadow: 0 6px 16px rgba(58, 120, 180, 0.35);
}

.nav-btn {
    background-color: transparent;
    color: #c7d5e0;
    border: none;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 顶部导航栏的按钮样式 */
.top-nav-right .nav-btn {
    background-color: #2a475e;
    border: 1px solid #3c5a78;
    padding: 3px 10px;
    font-size: 12px;
    color: #c7d5e0;
    font-weight: 400;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.top-nav-right .nav-btn:hover {
    background-color: #3c5a78;
    border-color: #66c0f4;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

.maintenance-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-bottom: 8px;
    margin-bottom: -8px;
}

.maintenance-trigger::after {
    content: " ▾";
    font-size: 10px;
}

.maintenance-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 140px;
    margin-top: 2px;
    padding: 6px 0;
    background: #1b2838;
    border: 1px solid #3c5a78;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    z-index: 50;
}

.maintenance-menu.is-open .maintenance-dropdown {
    display: block;
}

.maintenance-item {
    display: block;
    width: 100%;
    padding: 8px 14px;
    background: transparent;
    border: none;
    color: #c7d5e0;
    text-align: left;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.maintenance-item:hover {
    background-color: rgba(102, 192, 244, 0.16);
    color: #ffffff;
}

/* 侧边栏样式 */
.sidebar {
    width: 220px;
    background-color: #181a21;
    padding: 10px 0;
    padding-bottom: 0; /* 底部不需要padding，授权信息会占据这个空间 */
    border-right: 1px solid #2a475e;
    height: calc(100vh - 60px); /* 减去顶部标题栏高度 */
    overflow: hidden; /* 整体不滚动 */
    display: flex;
    flex-direction: column;
    position: relative;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 10px;
}

.sidebar-section {
    padding: 5px 0;
}

.sidebar-section-title {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: bold;
    color: #66c0f4;
    cursor: default;
}

.sidebar-item {
    padding: 8px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.sidebar-item:hover, .sidebar-item.active {
    background-color: #2a475e;
}

.sidebar-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* 侧边栏底部授权信息 */
.sidebar-footer {
    flex-shrink: 0; /* 不允许缩小 */
    height: 70px; /* 默认高度 */
    padding: 0 16px;
    background: #0e1419;
    border-top: 2px solid #2a475e;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直居中 */
    gap: 8px;
    transition: height 0.2s ease; /* 平滑过渡 */
}

/* 没有按钮时，减小高度 */
.sidebar-footer.no-button {
    height: 40px; /* 减小高度，整个区域（包括分割线）往下移 */
    gap: 0; /* 移除间距，确保文字完全居中 */
    justify-content: center; /* 确保垂直居中 */
}

.license-status {
    font-size: 13px;
    color: #c7d5e0;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
    margin: 0; /* 移除默认margin */
}

.cdk-btn {
    width: 100%;
    padding: 5px 10px;
    background: transparent;
    color: #c7d5e0;
    border: 1px solid rgba(199, 213, 224, 0.4);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.cdk-btn:hover {
    background: rgba(199, 213, 224, 0.1);
    border-color: #c7d5e0;
    color: #fff;
}

.cdk-btn:active {
    background: rgba(199, 213, 224, 0.2);
}

/* 主内容区样式 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 15px;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #1b2a3f;
    border-radius: 6px;
    font-size: 14px;
}

/* 主页专属样式 */
.home-page-container {
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - 60px);
    width: 100%;
}

.home-app-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex-shrink: 0;
    padding: 0 30px;
}

.home-group-title {
    margin: 0;
    padding: 10px 0;
    border-bottom: 2px solid #2a475e;
}

.home-app-group:first-child .home-group-title {
    margin-top: 50px;
}

.home-app-group:not(:first-child) .home-group-title {
    margin-top: 40px;
}

.home-group-title h2 {
    color: #66c0f4;
    font-size: 18px;
    margin: 0;
}

.home-card-grid-wrapper {
    padding: 20px 0;
    transform-origin: top left;
    transform: scale(1);
}

.home-card-grid {
    display: grid;
    grid-template-columns: repeat(5, 220px);
    column-gap: 20px;
    row-gap: 20px;
    justify-content: start;
}


/* 应用卡片区域 */
.apps-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 220px);
    column-gap: 20px;
    row-gap: 20px;
    padding: 15px 20px;
    overflow-y: auto;
    overflow-x: auto;
    height: calc(100vh - 60px); /* 减去顶部标题栏的高度 */
    align-content: start; /* 让内容从顶部开始排列 */
    justify-content: space-evenly;
}

.app-card {
    background-color: #16202d;
    border-radius: 6px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    border: 1px solid #2a475e;
    height: 280px;
    overflow: hidden;
    transform-origin: center center;
}

.app-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}


.app-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(45deg, #2a475e, #3c5a78);
    position: absolute;
    overflow: hidden;
}

.app-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(22,32,45,0.8));
}

.app-info {
    padding: 12px;
    background: linear-gradient(to top, rgba(22,32,45,0.95), rgba(22,32,45,0.6));
    backdrop-filter: blur(12px);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0s 0.3s;
}

.app-card:hover .app-info {
    opacity: 0;
    transition: opacity 0s 0s;
}

.app-card.active .app-info {
    opacity: 0;
    transition: opacity 0s 0s;
}

.app-name {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-desc {
    font-size: 13px;
    color: #8f98a0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 36px;
    height: 36px;
}

.app-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(22,32,45,0.95), rgba(22,32,45,0.6));
    backdrop-filter: blur(12px);
    padding: 12px;
    transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1),
                opacity 0s 0.3s;
    z-index: 10;
    height: auto;
    pointer-events: none;
    opacity: 0;
    overflow: visible;
    transform: translateY(calc(100% - 90px));
}

.app-card:hover .app-overlay {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1),
                opacity 0s 0s;
}

.app-card.active .app-overlay {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1),
                opacity 0s 0s;
}

.app-overlay h3 {
    font-weight: bold;
    font-size: 18px;
    margin: 0 0 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: auto;
}

.app-overlay .function-actions,
.app-overlay .function-actions button,
.app-overlay .function-actions .status-btn {
    pointer-events: auto;
}

.function-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.status-btn, .install-btn, .update-btn {
    background: linear-gradient(90deg, #2ecc71 0%, #27ae60 100%);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.2);
}

.status-btn:hover, .install-btn:hover, .update-btn:hover {
    background: linear-gradient(90deg, #27ae60 0%, #229954 100%);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
    transform: translateY(-2px);
}

.status-btn.running {
    background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
}

.status-btn.running:hover {
    background: linear-gradient(90deg, #c0392b 0%, #a93226 100%);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    transform: translateY(-2px);
}

/* 应用卡片旗标样式 - 斜彩带风格 */
.app-badge {
    position: absolute;
    top: 10px;
    right: -35px;
    width: 150px;
    height: 40px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(45deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.app-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #2ecc71 0%, #27ae60 100%);
    z-index: -1;
}

.app-badge.running::before {
    background: linear-gradient(90deg, #2ecc71 0%, #27ae60 100%);
}

.app-badge.uninstalled::before {
    background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
}

.app-badge.update::before {
    background: linear-gradient(90deg, #f39c12 0%, #d68910 100%);
}

.app-badge-text {
    position: relative;
    color: white;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.banner {
    background: linear-gradient(135deg, #2a475e 0%, #3c5a78 100%);
    color: white;
    padding: 8px 0;
    position: relative;
    z-index: 1000;
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.banner-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.banner-action {
    background-color: #66c0f4;
    color: #1b2838;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.banner-close {
    cursor: pointer;
    font-size: 18px;
    padding: 0 10px;
}

.module-group-title {
    grid-column: 1 / -1;
    margin: 20px 0 10px 0;
    padding: 10px 20px;
    border-bottom: 2px solid #2a475e;
}

.module-group-title h2 {
    color: #66c0f4;
    font-size: 18px;
    margin: 0;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.force-modal {
    z-index: 10050;
    background-color: rgba(0, 0, 0, 0.75);
}

.modal-content {
    background-color: #1b2838;
    padding: 20px;
    border: 1px solid #2a475e;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    max-height: 85%;
    overflow-y: auto;
    color: #c7d5e0;
}

/* 安装进度弹窗固定高度 */
#installProgressPopup .modal-content {
    width: 700px;
    max-width: 90%;
    height: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

#installProgressPopup .modal-content h2 {
    flex-shrink: 0;
    margin-bottom: 10px;
    padding-right: 40px;
}

#installProgressPopup .modal-content .close {
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 10;
}

/* 服务器断开弹窗强制居中 */
#serverDisconnectedPopup {
    position: fixed;
    inset: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 10010;
    background-color: rgba(0, 0, 0, 0.65);
}

#serverDisconnectedPopup .modal-content {
    margin: 0;
    max-width: 500px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #fff;
}

.progress-container {
    width: 100%;
    background-color: #2a475e;
    border-radius: 4px;
    margin: 10px 0;
    flex-shrink: 0;
}

.progress-bar {
    width: 0%;
    height: 8px;
    background-color: #66c0f4;
    border-radius: 4px;
    transition: width 0.3s;
}

#installOutput {
    background-color: #0f1419;
    padding: 10px;
    border-radius: 4px;
    height: 480px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 12px;
    margin-top: 10px;
    white-space: pre-wrap;
    word-wrap: break-word;
    flex: 1;
    border: 1px solid #2a475e;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1b2a3f;
}

::-webkit-scrollbar-thumb {
    background: #2a475e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3c5a78;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 180px;
    }
    
    .apps-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* 应用详情模态框样式 */
.app-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #2a475e;
    margin-bottom: 20px;
}

.app-detail-content {
    display: flex;
    gap: 30px;
}

.app-detail-info {
    flex: 2;
}

.app-detail-desc {
    font-size: 14px;
    line-height: 1.6;
    margin: 15px 0;
    color: #8f98a0;
}

.app-detail-meta p {
    margin: 8px 0;
    font-size: 14px;
}

.app-detail-actions {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 侧边栏切换行容器 */
.sidebar-toggle-row {
    display: flex;
    align-items: center;
    padding: 4px 10px;
}

.sidebar-toggle-row .nav-btn {
    margin-right: 0;
}

.sidebar-toggle-label {
    flex: 1;
    cursor: pointer;
    padding: 8px 0;
}

.sidebar-toggle-label:hover,
.sidebar-toggle-label.active {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 侧边栏应用列表 */
.sidebar-app-list {
    padding: 6px 0;
}

.sidebar-app-entry {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 6px 8px;
    cursor: pointer;
    transition: background-color 0.12s;
    font-size: 12px;
}

.sidebar-app-entry img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}

/* 当侧边栏应用列表折叠时隐藏列表 */
.sidebar-app-list.collapsed {
    display: none;
}

.sidebar-app-entry .app-entry-name {
    color: #c7d5e0;
}

.sidebar-app-entry:hover, .sidebar-app-entry.active {
    background-color: #2a475e;
}

/* 详情页样式（替代弹窗的全页详情） */

.detail-page {
    display: none;
    background: linear-gradient(180deg, rgba(27, 40, 56, 0.98), rgba(21, 30, 42, 0.98));
    padding: 0; /* remove extra padding so banner can be full width */
    border-radius: 0;
    height: calc(100vh - 60px);
    overflow: auto;
    width: 100%;
}

/* Banner stretches full width of the main content area and will stretch image if needed */
.detail-banner {
    width: 100%;
    height: 390px;
    min-height: 260px;
    border-radius: 0;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 0px;
}

.detail-banner .detail-back {
    position: absolute;
    left: 16px;
    top: 16px;
    background: rgba(0, 0, 0, 0.45);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.detail-banner .banner-actions {
    position: absolute;
    right: 16px;
    top: 12px;
    display: flex;
    gap: 8px;
}

.detail-banner .banner-actions .action-btn {
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 14px;
}

.detail-nav-buttons {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #2a475e;
    background: rgba(0, 0, 0, 0.2);
}

.detail-nav-buttons a {
    display: inline-block;
    text-decoration: none;
    color: #9aa7b4;
    background: transparent;
    padding: 12px 20px;
    border-radius: 0;
    border-right: 1px solid #2a475e;
    font-size: 13px;
    transition: color 0.2s;
}

.detail-nav-buttons a:last-child {
    border-right: none;
}

.detail-nav-buttons a:hover {
    color: #66c0f4;
}

.detail-body {
    display: block;
    padding: 24px 32px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    box-sizing: border-box;
}

/* Top panel: thumbnail + main actions on left, metadata on right */
.detail-top-panel {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-top: 14px;
}

.detail-thumb {
    width: 360px;
    min-width: 240px;
    background: linear-gradient(180deg, #111821, #1b2838);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.detail-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.detail-meta {
    flex: 1;
    min-width: 360px;
}

.detail-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-main-title {
    font-size: 28px;
    color: #fff;
    margin: 0;
}

.detail-subtitle {
    color: #9aa7b4;
    margin-top: 6px;
}

.detail-action-row {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    align-items: center;
}

.detail-action-row .action-btn.install-large {
    background: linear-gradient(135deg, #3ea6ff 0%, #2b7bdc 100%);
    color: white;
    padding: 12px 18px;
    font-size: 16px;
    border-radius: 6px;
}

.detail-info-block {
    margin-top: 16px;
    color: #b9c6cf;
    line-height: 1.6;
}

.action-btn {
    background-color: #66c0f4;
    color: #1b2838;
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s;
}

.action-btn:hover {
    background-color: #4a9cd4;
}

.action-btn.danger {
    background-color: #e74c3c;
    color: white;
}

.action-btn.danger:hover {
    background-color: #c0392b;
}

.action-btn.success {
    background-color: #2ecc71;
    color: white;
}

.action-btn.success:hover {
    background-color: #27ae60;
}

/* ============ 动态创建的提示框样式 ============ */

/* 错误提示框 */
.verification-error-toast {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #e74c3c 0%, #ff6b6b 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

/* 成功提示框 */
.verification-success-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
    z-index: 1000;
    animation: slideDownSuccess 0.5s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.verification-success-toast.reverse {
    animation: slideDownSuccess 0.3s ease reverse;
}

/* 下载提示 toast */
.download-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.4);
    z-index: 10000;
    animation: slideUp 0.3s ease;
}

.download-toast.reverse {
    animation: slideUp 0.3s ease reverse;
}

.status-update-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    padding: 12px 22px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    z-index: 2147483647;
    animation: slideDownSuccess 0.25s ease;
}

.status-update-toast.error {
    background: linear-gradient(135deg, #e74c3c 0%, #ff6b6b 100%);
}

.status-update-toast.success {
    background: linear-gradient(135deg, #4aa3ff 0%, #2f7de1 100%);
}

.status-update-toast.reverse {
    animation: slideDownSuccess 0.25s ease reverse;
}

/* 设备验证弹窗样式 - 深色主题风格 */
.device-verification-modal .modal-content {
    background: linear-gradient(180deg, #1a2633 0%, #141d27 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
    text-align: center;
    padding: 40px 30px;
    max-width: 450px;
    position: relative;
    overflow: visible;
}

.device-verification-modal .modal-decorative-bg-1 {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #66c0f4, #4a90e2);
    border-radius: 50%;
    opacity: 0.05;
    animation: float 3s ease-in-out infinite;
}

.device-verification-modal .modal-decorative-bg-2 {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    border-radius: 50%;
    opacity: 0.05;
    animation: float 3s ease-in-out infinite reverse;
}

.device-verification-modal .modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: white;
    box-shadow:
        0 10px 20px rgba(231, 76, 60, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    z-index: 1;
}

.device-verification-modal .modal-title {
    color: #ffffff;
    font-size: 24px;
    margin: 0 0 20px 0;
    font-weight: 700;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}

.device-verification-modal .modal-description {
    font-size: 15px;
    margin: 0 0 30px 0;
    color: #b9c6cf;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.device-verification-modal .modal-description .desc-main {
    display: block;
}

.device-verification-modal .modal-description .desc-tip {
    display: block;
    margin-top: 8px;
    color: #66c0f4;
    font-size: 13px;
}

/* 按钮组容器 */
.device-verification-modal .modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.device-verification-modal .modal-button {
    background: linear-gradient(90deg, #66c0f4 0%, #4a90e2 100%);
    color: #1b2838;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(102, 192, 244, 0.3);
    position: relative;
    z-index: 1;
}

.device-verification-modal .modal-button:hover {
    background: linear-gradient(90deg, #5aadf0 0%, #3a80d2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 192, 244, 0.4);
}

.device-verification-modal .modal-button:active {
    transform: translateY(0);
}

/* CDK按钮样式 - 定位到右下角，仅文字样式 */
.device-verification-modal .cdk-button {
    background: transparent;
    box-shadow: none;
    position: absolute;
    bottom: 10px;
    right: 40px;
    min-width: auto;
    padding: 8px 12px;
    font-size: 12px;
    color: #66c0f4;
    border: none;
    text-decoration: none;
    cursor: pointer;
}

.device-verification-modal .cdk-button:hover {
    background: transparent;
    color: #5aadf0;
    text-decoration: underline;
    transform: none;
    box-shadow: none;
}


/* ============ CDK激活弹窗样式 - 深色主题风格 ============ */
.cdk-activation-modal .modal-content {
    background: linear-gradient(180deg, #1a2633 0%, #141d27 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
    text-align: center;
    padding: 40px 30px;
    max-width: 450px;
    position: relative;
    overflow: hidden;
}

.cdk-activation-modal .modal-decorative-bg-1 {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #66c0f4, #4a90e2);
    border-radius: 50%;
    opacity: 0.05;
    animation: float 3s ease-in-out infinite;
}

.cdk-activation-modal .modal-decorative-bg-2 {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
    border-radius: 50%;
    opacity: 0.05;
    animation: float 3s ease-in-out infinite reverse;
}

.cdk-activation-modal .modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: white;
    box-shadow:
        0 10px 20px rgba(155, 89, 182, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    z-index: 1;
}

.cdk-activation-modal .modal-title {
    color: #ffffff;
    font-size: 24px;
    margin: 0 0 20px 0;
    font-weight: 700;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}

.cdk-activation-modal .modal-description {
    font-size: 15px;
    margin: 0 0 25px 0;
    color: #b9c6cf;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* CDK输入框容器 */
.cdk-input-container {
    margin: 0 0 25px 0;
    position: relative;
    z-index: 1;
}

.cdk-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: #c7d5e0;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.cdk-input:focus {
    border-color: #66c0f4;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(102, 192, 244, 0.1);
}

.cdk-input::placeholder {
    color: #7a8fa3;
}

.cdk-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* CDK验证按钮 */
.cdk-verify-button {
    background: linear-gradient(90deg, #66c0f4 0%, #4a90e2 100%);
    color: #1b2838;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.2s ease;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(102, 192, 244, 0.3);
    position: relative;
    z-index: 1;
}

.cdk-verify-button:hover {
    background: linear-gradient(90deg, #5aadf0 0%, #3a80d2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 192, 244, 0.4);
}

.cdk-verify-button:active {
    transform: translateY(0);
}

.cdk-verify-button:disabled {
    background: linear-gradient(90deg, #7f8c8d 0%, #95a5a6 100%);
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
    transform: none;
}

/* 关闭按钮 */
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 20px;
    color: #9aa7b4;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #c7d5e0;
    transform: scale(1.05);
}

/* ========== 不支持的设备弹窗样式 ========== */
.unsupported-device-modal .modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    text-align: center;
    padding: 40px 30px;
    max-width: 450px;
    position: relative;
    overflow: hidden;
}

.unsupported-device-modal .modal-decorative-bg-1 {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #e67e22, #f39c12);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 3s ease-in-out infinite;
}

.unsupported-device-modal .modal-decorative-bg-2 {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #c0392b, #e74c3c);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 3s ease-in-out infinite reverse;
}

.unsupported-device-modal .modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: white;
    box-shadow: 
        0 10px 20px rgba(230, 126, 34, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    position: relative;
    z-index: 1;
}

.unsupported-device-modal .modal-title {
    color: #1f3e64;
    font-size: 28px;
    margin: 0 0 20px 0;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.unsupported-device-modal .modal-description {
    font-size: 16px;
    margin: 0 0 30px 0;
    color: #555;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.unsupported-device-modal .modal-description .gpu-name {
    display: block;
    font-size: 15px;
    color: #e67e22;
    font-weight: bold;
    margin: 10px 0;
}

.unsupported-device-modal .modal-description .required-gpu {
    display: block;
    font-size: 14px;
    color: #27ae60;
    margin-top: 5px;
}

.unsupported-device-modal .modal-button {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 140px;
    box-shadow: 
        0 8px 20px rgba(192, 57, 43, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.unsupported-device-modal .modal-button:hover {
    background: linear-gradient(135deg, #a93226 0%, #cb4335 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(192, 57, 43, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.unsupported-device-modal .modal-button:active {
    transform: translateY(0);
}

/* 按钮禁用状态 */
.btn-verifying {
    background: linear-gradient(135deg, #95a5a6 0%, #bdc3c7 100%) !important;
}

/* 按钮默认状态 */
.btn-verify-default {
    background: linear-gradient(135deg, #4a90e2 0%, #79afff 100%);
}

/* 详情页按钮样式 */
.detail-start-btn {
    background: linear-gradient(90deg, #2ecc71 0%, #27ae60 100%);
    color: #fff;
}

.detail-stop-btn {
    background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
}

.detail-stop-btn-main {
    background: linear-gradient(90deg, #ff4444 0%, #cc0000 100%);
}

/* 导航按钮状态 */
.nav-button-enabled {
    opacity: 1;
    cursor: pointer;
    pointer-events: auto;
}

.nav-button-disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

/* 喜欢按钮状态 */
.like-btn-liked {
    background: rgba(0, 0, 0, 0.45);
}

.like-btn-unliked {
    background: linear-gradient(135deg, #ff6b6b, #ffb86b);
}

/* ============ 动画定义 ============ */

@keyframes slideDown {
    from { 
        transform: translateX(-50%) translateY(-20px); 
        opacity: 0; 
    }
    to { 
        transform: translateX(-50%) translateY(0); 
        opacity: 1; 
    }
}

@keyframes slideDownSuccess {
    from { 
        transform: translateX(-50%) translateY(-30px); 
        opacity: 0; 
        scale: 0.9;
    }
    to { 
        transform: translateX(-50%) translateY(0); 
        opacity: 1; 
        scale: 1;
    }
}

@keyframes slideUp {
    from { 
        transform: translateX(-50%) translateY(20px); 
        opacity: 0; 
    }
    to { 
        transform: translateX(-50%) translateY(0); 
        opacity: 1; 
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-10px) rotate(180deg); 
    }
}

/* 空状态样式 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    color: #8b98a5;
    font-size: 16px;
    min-height: 400px;
}

.empty-state p {
    margin: 0;
    font-size: 18px;
    opacity: 0.7;
}

/* ================== 通知弹窗样式 ================== */
.notification-modal-content {
    max-width: 450px !important;
    background: linear-gradient(135deg, #1e3a52 0%, #1b2838 100%);
    border: 1px solid rgba(74, 144, 226, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.notification-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.notification-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.notification-header .close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
    transition: color 0.2s;
    flex-shrink: 0;
}

.notification-header .close-btn:hover {
    color: #ffffff;
}

.notification-body {
    padding: 10px 0 20px 0;
}

.notification-message {
    color: #c7d5e0;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.notification-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 10px;
}

.notification-actions .confirm-btn-ok {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.notification-actions .confirm-btn-ok:hover {
    background: linear-gradient(135deg, #5a9ef5 0%, #4a8bd4 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

/* ================== 确认对话框样式 ================== */
.confirm-modal-content {
    max-width: 500px !important;
    background: linear-gradient(135deg, #1e3a52 0%, #1b2838 100%);
    border: 1px solid rgba(231, 76, 60, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.confirm-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.confirm-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.confirm-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.confirm-body {
    padding: 10px 0 25px 0;
}

.confirm-message {
    color: #c7d5e0;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 15px 0;
    text-align: center;
}

.confirm-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
    box-sizing: border-box;
}

.confirm-input:focus {
    border-color: #4a90e2;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.confirm-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.confirm-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-top: 10px;
}

.confirm-btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: #c7d5e0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 30px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.confirm-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.confirm-btn-ok {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.confirm-btn-ok:hover {
    background: linear-gradient(135deg, #ff5a4a 0%, #d63d2d 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.confirm-btn-ok:disabled {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.3) !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* 启动器强制更新弹窗 */
.launcher-update-content {
    background: linear-gradient(180deg, rgba(18, 31, 44, 0.95), rgba(15, 24, 35, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 32px;
    width: 420px;
    max-width: 90vw;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.launcher-update-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.launcher-update-title {
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 8px;
}

.launcher-update-message {
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.launcher-update-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    justify-content: center;
}

.launcher-update-btn {
    flex: 1;
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.launcher-update-btn.later {
    background: rgba(255, 255, 255, 0.05);
    color: #9fb1c7;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.launcher-update-btn.later:hover {
    background: rgba(255, 255, 255, 0.08);
}

.launcher-update-btn.snooze {
    background: rgba(255, 255, 255, 0.04);
    color: #8fa3bc;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.launcher-update-btn.snooze:hover {
    background: rgba(255, 255, 255, 0.07);
}

.launcher-update-btn.now {
    background: linear-gradient(90deg, #5ad2ff, #2f8cf7);
    color: #0b1220;
    box-shadow: 0 12px 25px rgba(47, 140, 247, 0.35);
}

.launcher-update-btn.now:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(47, 140, 247, 0.45);
}

.launcher-update-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

.launcher-update-note {
    margin-top: 18px;
    font-size: 13px;
    color: #9fb1c7;
    line-height: 1.4;
}

/* RPC连接信息样式 */
.rpc-address-wrapper {
    margin-top: 15px;
}

.rpc-address-label {
    font-size: 13px;
    color: #9aa7b4;
    margin-bottom: 8px;
}

.rpc-address-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(58, 120, 180, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    gap: 16px; /* 增加复制按钮与IP地址的间距 */
}

.rpc-address-box code {
    flex: 1;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 15px;
    color: #66c0f4;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* 复制按钮样式 - 去掉白色边框 */
.copy-btn {
    background: rgba(58, 120, 180, 0.15);
    border: none; /* 去掉边框 */
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: rgba(58, 120, 180, 0.25);
    transform: translateY(-1px);
}

.copy-btn svg {
    color: #66c0f4;
    width: 16px;
    height: 16px;
}

/* 退出从机模式按钮样式 */
.exit-slave-btn {
    width: 100%;
    background: linear-gradient(90deg, #e67e22, #d35400);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
    margin-top: 20px;
}

.exit-slave-btn:hover {
    background: linear-gradient(90deg, #d35400, #c0392b);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.4);
}

.exit-slave-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.2);
}

.exit-slave-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

/* 更新提示弹窗样式 */
.update-prompt-content {
    width: 500px;
    max-width: calc(100% - 40px);
    padding: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #1a2633 0%, #141d27 100%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 0 60px rgba(0,0,0,0.8), inset 0 0 80px rgba(255,255,255,0.02);
    color: #c7d5e0;
    overflow: hidden;
}

.update-prompt-header {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.update-prompt-header .header-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 0 24px rgba(243, 156, 18, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.update-prompt-header .header-title {
    font-size: 18px;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin: 0;
}

.update-prompt-header .header-subtitle {
    color: #9aa7b4;
    font-size: 13px;
    margin: 4px 0 0 0;
}

.update-prompt-body {
    padding: 20px 24px 24px 24px;
}

.update-prompt-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.update-prompt-btn {
    flex: 1;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.update-prompt-btn.cancel {
    background: rgba(255, 255, 255, 0.05);
    color: #9fb1c7;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.update-prompt-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.08);
}

.update-prompt-btn.confirm {
    background: linear-gradient(90deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.update-prompt-btn.confirm:hover {
    background: linear-gradient(90deg, #e67e22, #d35400);
    box-shadow: 0 6px 16px rgba(243, 156, 18, 0.4);
    transform: translateY(-1px);
}

/* ================== 应用启动错误弹窗样式 ================== */
.app-start-error-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.app-start-error-content {
    width: 520px;
    max-width: calc(100% - 40px);
    padding: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, #1a2633 0%, #141d27 100%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 0 60px rgba(0,0,0,0.8), inset 0 0 80px rgba(255,255,255,0.02);
    color: #c7d5e0;
    overflow: hidden;
    text-align: center;
}

.app-start-error-icon-wrapper {
    padding: 32px 32px 20px 32px;
}

.app-start-error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #3a78b4, #2a5a8f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 8px 24px rgba(58, 120, 180, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.app-start-error-title {
    font-size: 24px;
    color: #ffffff;
    font-weight: 700;
    margin: 0 0 16px 0;
    padding: 0 32px;
}

.app-start-error-description {
    font-size: 15px;
    color: #b9c6cf;
    line-height: 1.7;
    margin: 0 0 20px 0;
    padding: 0 32px;
}

.app-start-error-missing-images {
    padding: 0 32px;
    margin-bottom: 20px;
}

.app-start-error-images-list {
    list-style: none;
    padding: 12px;
    margin: 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
}

.app-start-error-images-list li {
    padding: 6px 0;
    color: #66c0f4;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.app-start-error-images-list li:last-child {
    border-bottom: none;
}

.app-start-error-actions {
    display: flex;
    gap: 12px;
    padding: 24px 32px 32px 32px;
    justify-content: center;
}

.app-start-error-btn {
    flex: 1;
    max-width: 180px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.app-start-error-btn.primary {
    background: linear-gradient(90deg, #3a78b4, #2a5a8f);
    color: white;
    box-shadow: 0 4px 12px rgba(58, 120, 180, 0.3);
}

.app-start-error-btn.primary:hover {
    background: linear-gradient(90deg, #4a88c4, #3a6a9f);
    box-shadow: 0 6px 16px rgba(58, 120, 180, 0.4);
    transform: translateY(-1px);
}

.app-start-error-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #c7d5e0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.app-start-error-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

/* GPU显存不足弹窗样式 */
.gpu-insufficient-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.gpu-insufficient-content {
    width: 520px;
    max-width: calc(100% - 40px);
    padding: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, #1a2633 0%, #141d27 100%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 0 60px rgba(0,0,0,0.8), inset 0 0 80px rgba(255,255,255,0.02);
    color: #c7d5e0;
    overflow: hidden;
    text-align: center;
}

.gpu-insufficient-icon-wrapper {
    padding: 24px 32px 20px 32px;
}

.gpu-insufficient-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #3a78b4, #2a5a8f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 8px 24px rgba(58, 120, 180, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.1);
    line-height: 1;
    position: relative;
}

.gpu-insufficient-icon::before {
    content: '⚠️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% - 3px));
    line-height: 1;
}

.gpu-insufficient-title {
    font-size: 24px;
    color: #ffffff;
    font-weight: 700;
    margin: 0 0 16px 0;
    padding: 0 32px;
}

.gpu-insufficient-description {
    font-size: 15px;
    color: #b9c6cf;
    line-height: 1.7;
    margin: 0 0 20px 0;
    padding: 0 32px;
}

.gpu-insufficient-actions {
    display: flex;
    gap: 12px;
    padding: 24px 32px 32px 32px;
    justify-content: center;
}

.gpu-insufficient-btn {
    flex: 1;
    max-width: 180px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.gpu-insufficient-btn.primary {
    background: linear-gradient(90deg, #3a78b4, #2a5a8f);
    color: white;
    box-shadow: 0 4px 12px rgba(58, 120, 180, 0.3);
}

.gpu-insufficient-btn.primary:hover {
    background: linear-gradient(90deg, #4a88c4, #3a6a9f);
    box-shadow: 0 6px 16px rgba(58, 120, 180, 0.4);
    transform: translateY(-1px);
}

.gpu-insufficient-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #c7d5e0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.gpu-insufficient-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

/* ================== 应用设置弹窗样式 ================== */
.app-settings-content {
    max-width: 600px !important;
    background: linear-gradient(135deg, #1e3a52 0%, #1b2838 100%);
    border: 1px solid rgba(74, 144, 226, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    padding: 30px;
}

.app-settings-content .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
    transition: color 0.2s;
}

.app-settings-content .close-btn:hover {
    color: #ffffff;
}

.app-settings-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-settings-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.app-settings-subtitle {
    color: #c7d5e0;
    font-size: 14px;
    margin: 0;
}

.app-settings-body {
    margin-bottom: 25px;
}

.settings-field {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.settings-label {
    display: block;
    margin-bottom: 8px;
    color: #c7d5e0;
    font-size: 14px;
    font-weight: 500;
}

/* 行内标签样式（用于开关） */
.settings-label-inline {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 0;
    flex: 1;
}

.settings-label-inline .label-text {
    margin-right: 8px;
    margin-bottom: 0;
}

.settings-label-inline .label-hint {
    color: #7a8fa3;
    font-size: 12px;
    margin-left: 4px;
}

/* 开关字段布局 */
.settings-field:has(.switch) {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-field:has(.switch):last-child {
    border-bottom: none;
}

/* 滑动开关样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
    margin-left: 12px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: #7a8fa3;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: rgba(46, 204, 113, 0.3);
    border-color: #2ecc71;
}

input:checked + .slider:before {
    transform: translateX(18px);
    background-color: #2ecc71;
}

.slider:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

input:checked + .slider:hover {
    background-color: rgba(46, 204, 113, 0.4);
}

.settings-label .label-text {
    display: block;
    margin-bottom: 4px;
}

.settings-label .label-hint {
    display: block;
    color: #7a8fa3;
    font-size: 12px;
    font-weight: normal;
    font-style: italic;
}

.settings-textarea {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 12px;
    color: #c7d5e0;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
}

.settings-textarea:focus {
    outline: none;
    border-color: #4a90e2;
    background-color: rgba(0, 0, 0, 0.4);
}

.settings-textarea::placeholder {
    color: #7a8fa3;
}

.app-settings-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}

.settings-actions-right {
    display: flex;
    gap: 10px;
}

.settings-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.settings-btn.cancel-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #9aa7b4;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-btn.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #c7d5e0;
    border-color: rgba(255, 255, 255, 0.2);
}

.settings-btn.save-btn {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.25);
}

.settings-btn.save-btn:hover {
    background: linear-gradient(135deg, #5a9ef5 0%, #4a8bd4 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.35);
}

.settings-btn.reset-btn {
    background: transparent;
    color: #9aa7b4;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-right: auto;
    font-size: 13px;
    padding: 8px 16px;
    min-width: auto;
}

.settings-btn.reset-btn:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.3);
}