* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
body {
    background-color: #f5f5f7;
    color: #1d1d1f;
    line-height: 1.5;
}

/* 导航栏 */
.navbar {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar-content {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 500;
    font-size: 14px;
}
.logo-icon {
    font-size: 18px;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}
.nav-link {
    color: #0071e3;
    text-decoration: none;
    transition: color 0.2s ease;
}
.nav-link:hover {
    color: #0077ed;
}
.user-name {
    color: #1d1d1f;
    font-size: 14px;
}

/* 主体容器 */
.comment-center-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}
.comment-center-container h1 {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1d1d1f;
}

/* 搜索框 */
.search-container {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.search-input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    outline: none;
    font-size: 14px;
    color: #1d1d1f;
    background: transparent;
}
.search-input::placeholder {
    color: #6e6e73;
}
.search-btn {
    padding: 10px 16px;
    background-color: #0071e3;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.search-btn:hover {
    background-color: #0077ed;
}

/* 工具评价卡片 */
.tool-comment-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 6px rgba(0, 0, 0, 0.02);
}
.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f5f5f7;
}
.tool-name {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
}
.tool-avg-score {
    font-size: 14px;
    color: #6e6e73;
}
.tool-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: #0071e3;
    text-decoration: none;
}
.tool-link:hover {
    text-decoration: underline;
}

/* 单条评价样式 */
.comment-list {
    margin-top: 16px;
}
.comment-item {
    padding: 16px;
    border-radius: 12px;
    background-color: #f9fafb;
    margin-bottom: 12px;
}
.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.comment-username {
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
}
.comment-time {
    font-size: 12px;
    color: #6e6e73;
}
.comment-score {
    display: inline-block;
    padding: 4px 8px;
    background-color: #fef3c7;
    color: #92400e;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
}
.comment-content {
    font-size: 14px;
    color: #1d1d1f;
    line-height: 1.6;
}

/* 空状态提示 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background-color: #ffffff;
    border-radius: 16px;
    color: #6e6e73;
    font-size: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.empty-state p {
    margin-bottom: 20px;
}
.empty-state .btn {
    width: auto;
    padding: 12px 24px;
}

/* 页脚 */
.footer {
    background-color: #f5f5f7;
    padding: 24px 0;
    margin-top: 40px;
    border-top: 1px solid #e5e7eb;
}
.footer-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.footer-links a {
    color: #0071e3;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s ease;
}
.footer-links a:hover {
    color: #0077ed;
    text-decoration: underline;
}
.copyright {
    text-align: center;
    font-size: 12px;
    color: #6e6e73;
    line-height: 1.5;
}

/* 滚动到顶部按钮 */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}
.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.scroll-top:hover {
    background-color: #f5f5f7;
}

/* 法律声明弹窗 */
.legal-notice-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.legal-notice-modal.visible {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1d1d1f;
}
.modal-text {
    font-size: 14px;
    color: #1d1d1f;
    line-height: 1.6;
    margin-bottom: 24px;
}
.modal-confirm {
    width: 100%;
    padding: 12px;
    background-color: #0071e3;
    color: #ffffff;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.modal-confirm:hover {
    background-color: #0077ed;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.btn-primary {
    background-color: #0071e3;
    color: #ffffff;
}
.btn-primary:hover {
    background-color: #0077ed;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.2);
}
.btn-outline {
    background-color: transparent;
    border: 1px solid #0071e3;
    color: #0071e3;
}
.btn-outline:hover {
    background-color: rgba(0, 113, 227, 0.05);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .navbar {
        height: 48px;
    }
    .comment-center-container h1 {
        font-size: 24px;
    }
    .tool-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .comment-item {
        padding: 12px;
    }
    .search-container {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }
    .search-input {
        width: 100%;
    }
    .search-btn {
        width: 100%;
    }
}