/* 密钥认证样式 */
.key-auth-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.key-auth-header {
    text-align: center;
    margin-bottom: 20px;
}

.key-auth-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.key-auth-subtitle {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
/* Fluent UI 风格重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #000000;
    background: #f8f9fa;
    font-size: 14px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶栏工具 */
.top-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toolbar-branding {
    display: flex;
    align-items: center;
    height: 100%;
}

.toolbar-title-container {
    display: flex;
    flex-direction: column;
}

.toolbar-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fdfdfd;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #000000, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.toolbar-description {
    font-size: 10px;
    color: #000000;
    margin: 0;
}

.admin-button-container {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px; /* 添加按钮间距 */
}

/* 页面切换滑块容器 */
.page-slider-container {
    position: relative;
    display: flex;
    border-radius: 20px;
    padding: 4px;
    margin-right: 10px;
}

/* 页面滑块 */
.page-slider {
    position: absolute;
    top: 4px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    transition: all 0.3s ease;
    z-index: 0;
}

.admin-btn {
    background: transparent;
    border: none;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #5f6368;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
}

.admin-btn:hover {
    background: #f1f3f4;
    color: #2c3e50;
}

.admin-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 600;
}

.admin-btn i {
    width: 18px;
    height: 18px;
}

/* 滑块位置 - 基于相邻兄弟元素的位置计算 */
.page-slider-container .admin-btn:nth-child(1).active ~ .page-slider {
    transform: translateX(0);
    width: 60px;
}

.page-slider-container .admin-btn:nth-child(2).active ~ .page-slider {
    transform: translateX(64px);
    width: 100px;
}

.page-slider-container .admin-btn:nth-child(3).active ~ .page-slider {
    transform: translateX(168px);
    width: 84px;
}

.admin-btn i {
    width: 18px;
    height: 18px;
}

/* 密钥状态指示器样式 */
.key-indicator {
    position: relative;
}

.key-status-indicator {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
}

.key-status-indicator.active {
    background-color: #10b981; /* 绿色 */
}

.key-status-indicator.inactive {
    background-color: #9ca3af; /* 灰色 */
}

/* 主要内容区域 */
.main-content {
    margin-top: 60px;
    padding-top: 20px;
}

.site-branding {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    position: relative;
}

.site-branding::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2c3e50, #3498db);
    border-radius: 2px;
}

.site-title {
    font-size: 3rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-description {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 页面切换滑块 */
.page-slider {
    display: flex;
    background: #f1f3f4;
    border-radius: 20px;
    padding: 4px;
}

.page-slider-btn {
    background: transparent;
    border: none;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #5f6368;
    position: relative;
    z-index: 1;
}

.page-slider-btn.active {
    background: #ffffff;
    color: #2c3e50;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 用户按钮容器 */
.user-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
}

/* 用户按钮 */
.user-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2c3e50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

/* 后台管理按钮 */
.admin-btn {
    background: transparent;
    border: none;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #5f6368;
    position: relative;
    z-index: 1;
    margin-left: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-btn.active {
    background: #ffffff;
    color: #2c3e50;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: block;
}

.admin-button-container {
    margin-left: auto;
}

.admin-btn i {
    width: 18px;
    height: 18px;
}

/* 管理页面滑块 */
.admin-page-slider {
    display: flex;
    background: #f1f3f4;
    border-radius: 20px;
    padding: 4px;
    margin-bottom: 24px;
}

.admin-page-btn {
    background: transparent;
    border: none;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #5f6368;
    position: relative;
    z-index: 1;
}

.admin-page-btn.active {
    background: #ffffff;
    color: #2c3e50;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-page {
    display: none;
}

.admin-page.active {
    display: block;
}

/* 主要内容区域 */
.main-content {
    margin-top: 60px;
    padding-top: 20px;
}

/* Fluent UI 按钮样式 */
.btn-primary, .btn-secondary {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px 12px;
    min-height: 32px;
    min-width: 80px;
}

.btn-primary {
    background-color: #2c3e50;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1a252f;
}

.btn-secondary {
    background-color: #ffffff;
    color: #2c3e50;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #f8f9fa;
}

/* 搜索容器 */
.search-container {
    max-width: 700px;
    margin: 0 auto 30px;
    position: relative;
}

/* 搜索框样式 */
.search-box {
    display: flex;
    gap: 8px;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.search-input:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.1);
}

.search-placeholder {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
    transition: opacity 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 32px);
}

.search-input:focus + .search-placeholder,
.search-input:not(:placeholder-shown) + .search-placeholder {
    opacity: 0;
}

.reset-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 18px;
    display: none;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    border-radius: 50%;
}

.reset-btn:hover {
    color: #2c3e50;
    background-color: #f1f3f4;
}

.search-input:not(:placeholder-shown) ~ .reset-btn {
    display: block;
}

.search-btn {
    background-color: #2c3e50;
    color: #ffffff;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;
}

.search-btn:hover {
    background-color: #1a252f;
}

/* 排序控件 */
.sort-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px auto;
    max-width: 300px;
}

.sort-label {
    color: #6c757d;
    font-size: 14px;
}

.sort-select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background-color: #fff;
    cursor: pointer;
    color: #2c3e50;
    transition: all 0.2s ease;
}

.sort-select:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.1);
}

.sort-select:hover {
    border-color: #2c3e50;
}

/* 搜索引导 */
.search-guide {
    text-align: center;
    color: #6c757d;
    font-size: 13px;
    margin-top: 12px;
}

.search-guide .search-history {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.search-guide .search-history span {
    color: #6c757d;
}

.clear-all-btn {
    background: none;
    border: none;
    color: #6c757d;
    text-decoration: underline;
    font-size: 13px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
}

.clear-all-btn:hover {
    background-color: #f1f3f4;
    color: #2c3e50;
}

.search-history-item {
    display: inline-flex;
    align-items: center;
    background-color: #f1f3f4;
    color: #2c3e50;
    text-decoration: none;
    padding: 4px 8px 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    transition: all 0.2s ease;
    max-width: 120px;
}

.search-history-item:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
}

.search-history-item .keyword {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.search-history-item .remove-btn {
    margin-left: 6px;
    padding: 0 6px;
    border: none;
    background: none;
    color: #6c757d;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-history-item .remove-btn:hover {
    background-color: #d4d4d4;
    color: #000;
}

/* 主体内容 */
.site-main {
    min-height: calc(100vh - 120px);
}

/* 真正的瀑布流布局 */
.site-grid {
    column-count: 3;
    column-gap: 20px;
    column-fill: balance;
}

@media (max-width: 1024px) {
    .site-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .site-grid {
        column-count: 1;
    }
}

.site-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
    break-inside: avoid;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    height: fit-content;
    position: relative;
}

.site-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 信息区样式 */
.site-card-info {
    padding: 16px;
    border-bottom: 1px solid #eee;
    flex: 1;
}

.site-card-info:hover {
    background-color: transparent;
}

.site-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

.site-card-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-card-url {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    word-break: break-all;
    display: flex;
    align-items: center;
    line-height: 1.4;
    padding: 8px 0px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-card-url:hover {
    background-color: #f1f3f4;
    color: #1a252f;
}

.url-icon {
    width: 12px;
    height: 12px;
    margin-right: 8px;
}

/* 站点图标容器 */
.site-icon-container {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* 默认图标 */
.default-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    color: #6c757d;
}

/* 站点图标 */
.site-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

/* 卡片操作按钮 */
.site-card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 2;
}

.action-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6c757d;
    border: none;
    background: transparent;
    padding: 0;
}

.action-btn:hover {
    color: #2c3e50;
    transform: scale(1.1);
}

.action-btn i {
    width: 16px;
    height: 16px;
}

/* 评论区样式 */
.site-card-reviews {
    padding: 16px;
    border-bottom: 1px solid #eee;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.review-content {
    color: #495057;
    line-height: 1.5;
    font-size: 14px;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 5px;
    flex: 1;
}

.review-content::-webkit-scrollbar {
    width: 6px;
}

.review-content::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 3px;
}

.review-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.review-content::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.review-content p {
    margin: 0 0 10px 0;
}

.review-content ul, 
.review-content ol {
    margin: 10px 0;
    padding-left: 20px;
}

.review-content li {
    margin-bottom: 5px;
}

.review-content code {
    background-color: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}

.review-content pre {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 10px 0;
}

.review-content pre code {
    background: none;
    padding: 0;
}

.review-content blockquote {
    border-left: 3px solid #ddd;
    padding-left: 15px;
    margin: 10px 0;
    color: #6c757d;
}

.review-count {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #888;
    margin-top: 10px;
    justify-content: flex-end;
}

/* 详情模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    border-radius: 8px 8px 0 0;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #2c3e50;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close:hover {
    color: #000;
    background-color: #f1f3f4;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 20px;
    color: #2c3e50;
}

.site-detail-info {
    margin-bottom: 20px;
}

.site-detail-info dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 10px 15px;
}

.site-detail-info dt {
    font-weight: 600;
    color: #495057;
}

.site-detail-info dd {
    margin: 0;
    color: #2c3e50;
}

.site-detail-info dd.name-value,
.site-detail-info dd.url-value {
    display: flex;
}

.site-detail-info textarea {
    flex: 1;
    font-family: inherit;
    font-size: 14px;
    color: #2c3e57;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    resize: vertical;
    min-height: 30px;
    background-color: #f8f9fa;
    cursor: pointer;
}

.site-detail-info textarea:focus {
    outline: none;
    border-color: #2c3e50;
    background-color: #e3f2fd; /* 使用更美观的浅蓝色背景替代原来的绿色 */
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.2); /* 添加柔和的阴影效果 */
}

.suid-copy-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.suid-value {
    flex: 1;
    font-family: monospace;
    word-break: break-all;
    font-size: 14px;
}

.copy-suid-btn {
    background: #f1f3f4;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    color: #6c757d;
    white-space: nowrap;
}

.copy-suid-btn:hover {
    background: #e9ecef;
}

.site-reviews-list {
    margin-top: 20px;
}

.site-reviews-list h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c3e50;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.review-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.review-item:last-child {
    border-bottom: none;
}

.review-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.review-date {
    font-size: 12px;
    color: #6c757d;
}

.review-content-full {
    color: #495057;
    line-height: 1.6;
}

.review-content-full p {
    margin: 0 0 10px 0;
}

.review-content-full ul, 
.review-content-full ol {
    margin: 10px 0;
    padding-left: 20px;
}

.review-content-full li {
    margin-bottom: 5px;
}

.review-content-full code {
    background-color: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}

.review-content-full pre {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 10px 0;
}

.review-content-full pre code {
    background: none;
    padding: 0;
}

.review-content-full blockquote {
    border-left: 3px solid #ddd;
    padding-left: 15px;
    margin: 10px 0;
    color: #6c757d;
}

/* 评论列表样式 */
.site-reviews-list h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.review-item {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
}

.review-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-date {
    font-size: 12px;
    color: #666;
}

.review-content-full {
    font-size: 14px;
    line-height: 1.6;
}

.review-content-full p {
    margin: 0 0 10px 0;
}

.review-content-full ul,
.review-content-full ol {
    margin: 0 0 10px 20px;
    padding: 0;
}

.review-content-full li {
    margin-bottom: 5px;
}

.review-content-full code {
    background-color: #e9ecef;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}

.review-content-full pre {
    background-color: #e9ecef;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
}

.review-content-full blockquote {
    border-left: 4px solid #007bff;
    padding-left: 15px;
    margin: 0 0 10px 0;
    color: #666;
}

/* 评论模态框样式 */
.comment-modal .modal-content {
    max-width: 500px;
}

.modal.comment-modal .modal-body {
    padding: 20px;
}

.modal.comment-modal .form-group {
    margin-bottom: 20px;
}

.modal.comment-modal label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.modal.comment-modal textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

.modal.comment-modal .form-actions {
    text-align: right;
}

.modal.comment-modal .btn-primary {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.modal.comment-modal .btn-primary:hover {
    background-color: #1a252f;
}

/* 无API密钥消息样式 */
.no-api-key-message {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 20px;
}

.no-api-key-message p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #666;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 用户操作区域 */
.user-info span {
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
}

/* 导入区域 */
.import-section {
    margin: 16px 0;
}

.parse-result {
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 16px;
    margin: 16px 0;
}

.parse-result ul {
    list-style-type: none;
    padding-left: 0;
}

.parse-result li {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.parse-result li:last-child {
    border-bottom: none;
}

#importSection {
    margin-top: 16px;
}

/* 底部样式 */
.site-footer {
    background-color: #ffffff;
    color: #495057;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #eee;
}

.site-footer a {
    color: #2c3e50;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.github-link svg {
    vertical-align: middle;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-copyright {
    margin-top: 10px;
    font-size: 14px;
    color: #6c757d;
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-item {
        font-size: 14px;
    }
}

.fav-detail-info {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e5e9;
}

.fav-detail-info p {
    color: #5f6368;
    line-height: 1.6;
}

/* 信息框样式 */
.info-box {
    background-color: #f0f8ff;
    border: 1px solid #cce6ff;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.info-box h3 {
    margin-top: 0;
    color: #2c3e50;
}

.info-box p {
    margin: 10px 0;
    color: #5f6368;
}

.info-box code {
    background-color: #eef7ff;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}
