/**
 * Enhanced Plugin Detail Page Styles
 */

 :root {
    --primary-color: #007bff;
    --primary-rgb: 0, 123, 255;
    --secondary-color: #2c3e50;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --text-color: #333;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --bg-light: #f8f9fa;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

.plugin-detail-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    min-height: 100vh;
}

/* 面包屑导航 */
.breadcrumb-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-color);
    font-weight: 600;
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.back-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 插件主要区域 */
.plugin-hero {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.plugin-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #007bff, #6f42c1);
}

.plugin-hero-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    align-items: start;
}

/* 插件媒体区域 */
.plugin-media {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.plugin-image-main {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: white;
}

.plugin-image-main img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.plugin-image-main:hover img {
    transform: scale(1.05);
}

.plugin-badges {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-free {
    background: linear-gradient(135deg, var(--success-color), #20c997);
    color: white;
}

.badge-popular {
    background: linear-gradient(135deg, var(--warning-color), #fd7e14);
    color: white;
}

/* 截图轮播 */
.plugin-screenshots {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.screenshots-swiper {
    height: 200px;
}

.screenshots-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 插件信息区域 */
.plugin-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.plugin-header-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 插件标题容器 */
.plugin-title-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.plugin-title {
    flex: 1;
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 分享按钮样式 */
.btn-share {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #218838, #1ea085);
}

.btn-share i {
    font-size: 1rem;
}

/* 分享成功提示样式 */
.share-success {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: rgba(40, 167, 69, 0.95);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 9999;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.share-success i {
    color: white;
    font-size: 1.2rem;
    margin-right: 5px;
}

.plugin-subtitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.plugin-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.plugin-author i {
    font-size: 1.3rem;
}

.plugin-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 0.2rem;
}

.stars i {
    color: #ddd;
    font-size: 1.5rem;
    transition: var(--transition);
}

.stars i.active {
    color: #ffc107;
}

.rating-text {
    font-weight: 600;
    color: var(--text-color);
    margin-left: 0.5rem;
}

/* 统计信息 */
.plugin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-item i {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* 标签 */
.plugin-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    color: var(--text-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* 价格显示 */
.plugin-price {
    padding: 1.5rem 0;
}

.price-display {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--primary-color), #007bff);
    color: white;
    box-shadow: var(--shadow-md);
    font-weight: 600;
}

.price-display.free {
    background: linear-gradient(135deg, var(--success-color), #20c997);
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
}

.price-currency {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 操作按钮 */
.plugin-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #007bff);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-favorite {
    position: relative;
}

.btn-favorite.favorited {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

/* 内容区域 */
.plugin-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

.content-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.content-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header h2 i {
    color: var(--primary-color);
    font-size: 2rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0.5rem;
    display: block;
}

/* 插件描述 */
.plugin-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.plugin-description h1,
.plugin-description h2,
.plugin-description h3,
.plugin-description h4,
.plugin-description h5,
.plugin-description h6 {
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.plugin-description p {
    margin-bottom: 1.2rem;
}

.plugin-description ul,
.plugin-description ol {
    margin-bottom: 1.2rem;
    padding-left: 2rem;
}

.plugin-description li {
    margin-bottom: 0.5rem;
}

.plugin-description img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
}

.plugin-description code {
    background: var(--bg-light);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

.plugin-description pre {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

.plugin-description blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-muted);
    background: rgba(var(--primary-rgb), 0.05);
    padding: 1rem 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* 依赖网格 */
.dependencies-grid {
    display: grid;
    gap: 1.5rem;
}

.dependency-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    opacity: 1;
    transform: translateX(0);
}

.dependency-card.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.dependency-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.dependency-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #007bff);
    color: white;
    border-radius: 50%;
    font-size: 2rem;
    box-shadow: var(--shadow-sm);
}

.dependency-info h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0 0 0.5rem 0;
}

.dependency-info p {
    color: var(--text-muted);
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.dependency-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.dependency-status.available {
    background: rgba(var(--success-color), 0.1);
    color: var(--success-color);
}

.dependency-status.missing {
    background: rgba(var(--danger-color), 0.1);
    color: var(--danger-color);
}

/* 安装指南 */
.install-guide {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.install-steps {
    display: grid;
    gap: 2rem;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: start;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.step.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #007bff);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.step-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0 0 0.5rem 0;
}

.step-content p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* 侧边栏 */
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    /* 移除 position: sticky 和相关限制，允许自然滚动 */
    /* position: sticky; */
    /* top: 6rem; */
    /* max-height: calc(100vh - 8rem); */
    /* overflow-y: visible; */
}

.sidebar-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition); /* 添加过渡效果 */
}

.sidebar-card:hover {
    box-shadow: var(--shadow-md); /* 悬停时增强阴影效果 */
    transform: translateY(-2px); /* 轻微上移效果 */
}

.sidebar-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

/* 信息列表 */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-muted);
    font-weight: 500;
}

.info-value {
    color: var(--text-color);
    font-weight: 600;
}

/* 相关插件 */
.related-plugins {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-plugin {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.related-plugin:hover {
    background: white;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.related-plugin img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.related-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0 0 0.5rem 0;
}

.related-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.related-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* 安装模态框样式 */
.modal {
    display: none; /* Initially hidden */
    position: fixed;
    z-index: 1050; /* High z-index to appear on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if content is too long */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    align-items: center; /* For flex display: center vertically */
    justify-content: center; /* For flex display: center horizontally */
}

.modal-content {
    background-color: #fff;
    margin: auto; /* For non-flex centering, and good practice */
    padding: 25px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px; /* Max width for larger screens */
    border-radius: var(--border-radius, 8px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color, #e9ecef);
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color, #2c3e50);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-close {
    font-size: 1.8rem;
    font-weight: bold;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
    color: #333;
    text-decoration: none;
}

.modal-body {
    padding-top: 0.5rem;
    flex-grow: 1; /* Allows body to expand if content is short */
}

/* Styles for the form inside the modal */
#install-plugin-form .form-group {
    margin-bottom: 1.5rem;
}

#install-plugin-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color, #333);
}

#install-plugin-form .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color, #ced4da);
    border-radius: var(--border-radius, 4px);
    box-sizing: border-box;
}

#install-plugin-form .form-help {
    font-size: 0.9rem;
    color: var(--text-muted, #6c757d);
    margin-top: 0.5rem;
}

#install-plugin-form .dependencies-check {
    margin-top: 0.5rem;
}

#install-plugin-form .dependency-check-item {
    margin-bottom: 0.25rem;
}

#install-plugin-form .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color, #e9ecef);
}

.install-plugin-info {
    margin-bottom: 1.5rem;
}

.plugin-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--bg-light, #f8f9fa);
    padding: 1rem;
    border-radius: var(--border-radius, 8px);
    border: 1px solid var(--border-color, #e9ecef);
}

.plugin-preview img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.plugin-preview h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.plugin-preview p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted, #6c757d);
}

/* 服务器选择区域样式优化 */
.server-selection-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    margin: 25px 0;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.server-selection-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #007bff, #6f42c1);
}

.server-selection-container {
    max-width: 1200px;
    margin: 0 auto;
}

.server-selection-header {
    margin-bottom: 20px;
    text-align: center;
}

.server-selection-header h3 {
    margin: 0 0 8px 0;
    color: var(--secondary-color);
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.server-selection-header h3 i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.server-selection-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
}

.server-selection-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.server-select {
    min-width: 300px;
    max-width: 450px;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    background-color: white;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    cursor: pointer;
}

.server-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
    transform: translateY(-1px);
}

.server-select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.server-select option {
    padding: 10px;
    font-size: 14px;
}

/* 选择状态指示器 */
.server-selection-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(var(--success-color), 0.1);
    color: var(--success-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.server-selection-indicator.show {
    opacity: 1;
    transform: scale(1);
}

.server-selection-indicator i {
    font-size: 16px;
}

.install-btn.disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

.install-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #6c757d;
    border-color: #6c757d;
}

.install-btn.disabled:hover,
.install-btn:disabled:hover {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* 下载提示样式 */
.download-notice {
    background: #e8f5e8;
    border: 1px solid #28a745;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1rem;
    color: #155724;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-notice i {
    color: #28a745;
}

/* 禁用按钮样式 */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .plugin-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .plugin-detail-page {
        padding: 1rem;
    }
    
    .breadcrumb-nav {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .plugin-hero {
        padding: 2rem;
    }
    
    .plugin-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .plugin-title {
        font-size: 2.2rem;
    }
    
    .plugin-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .plugin-actions {
        justify-content: center;
    }
    
    .content-section {
        padding: 1.5rem;
    }
    
    .dependency-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .install-steps {
        gap: 1.5rem;
    }
    
    .step {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .server-selection-section {
        margin: 15px 0;
        padding: 20px 15px;
    }
    
    .server-selection-header h3 {
        font-size: 1.2rem;
    }
    
    .server-select {
        min-width: 100%;
        max-width: 100%;
    }
    
    .server-selection-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .plugin-title-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-share {
        align-self: flex-end;
    }

}