/* ===================================
   组件样式
   =================================== */

/* 场景卡片 */
.scenario-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.dark .scenario-card {
    background: #1f2937;
}

.scenario-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.scenario-card.highlight {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
    animation: highlight-pulse 0.5s ease-in-out;
}

@keyframes highlight-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.3); }
}

.scenario-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.dark .scenario-header {
    border-bottom-color: #374151;
}

.scenario-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
}

.dark .scenario-title {
    color: #f3f4f6;
}

.scenario-icon {
    font-size: 2rem;
    margin-right: 0.75rem;
}

.scenario-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.dark .scenario-meta {
    color: #9ca3af;
}

/* 工具卡片网格 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

/* 工具卡片 */
.tool-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.dark .tool-card {
    background: #111827;
    border-color: #374151;
}

.tool-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.tool-card.recommended::before {
    content: '推荐';
    position: absolute;
    top: 10px;
    right: -30px;
    background: linear-gradient(45deg, #f59e0b, #ef4444);
    color: white;
    padding: 2px 40px;
    font-size: 0.75rem;
    font-weight: 600;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tool-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.tool-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.dark .tool-name {
    color: #f3f4f6;
}

.tool-logo {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    object-fit: cover;
}

.tool-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.rating-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
}

.rating-stars {
    display: flex;
    gap: 0.125rem;
}

.rating-count {
    font-size: 0.875rem;
    color: #6b7280;
}

.dark .rating-count {
    color: #9ca3af;
}

.tool-price {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.tool-price.free {
    background: #d1fae5;
    color: #065f46;
}

.dark .tool-price.free {
    background: #064e3b;
    color: #6ee7b7;
}

.tool-price.partial {
    background: #fef3c7;
    color: #92400e;
}

.dark .tool-price.partial {
    background: #78350f;
    color: #fcd34d;
}

.tool-price.paid {
    background: #fee2e2;
    color: #991b1b;
}

.dark .tool-price.paid {
    background: #7f1d1d;
    color: #fca5a5;
}

.tool-steps {
    margin: 1rem 0;
}

.tool-steps h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.dark .tool-steps h4 {
    color: #d1d5db;
}

.tool-steps ol {
    padding-left: 1.25rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.dark .tool-steps ol {
    color: #9ca3af;
}

.tool-steps li {
    margin-bottom: 0.25rem;
}

.tool-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.pros, .cons {
    font-size: 0.875rem;
}

.pros h4 {
    color: #059669;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dark .pros h4 {
    color: #10b981;
}

.cons h4 {
    color: #dc2626;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dark .cons h4 {
    color: #ef4444;
}

.pros ul, .cons ul {
    padding-left: 1.25rem;
    color: #6b7280;
}

.dark .pros ul,
.dark .cons ul {
    color: #9ca3af;
}

.pros li, .cons li {
    margin-bottom: 0.25rem;
}

.tool-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.copy-prompt-btn {
    flex: 1;
    padding: 0.5rem 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-prompt-btn:hover {
    background: #2563eb;
}

.copy-prompt-btn.copied {
    background: #10b981;
}

.visit-website-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    color: #3b82f6;
    border: 1px solid #3b82f6;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.visit-website-btn:hover {
    background: #3b82f6;
    color: white;
}

/* 对比表格 */
.comparison-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.dark .comparison-section {
    border-top-color: #374151;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.comparison-table th,
.comparison-table td {
    padding: 0.75rem;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.dark .comparison-table th,
.dark .comparison-table td {
    border-color: #374151;
}

.comparison-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.dark .comparison-table th {
    background: #1f2937;
    color: #d1d5db;
}

.comparison-table td:first-child {
    font-weight: 600;
    text-align: left;
}

/* 评论区 */
.reviews-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.dark .reviews-section {
    border-top-color: #374151;
}

.reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.review-toggle {
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #374151;
}

.dark .review-toggle {
    background: #374151;
    color: #d1d5db;
}

.reviews-hidden {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    font-style: italic;
}

.dark .reviews-hidden {
    color: #9ca3af;
}

.comment {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.dark .comment {
    background: #111827;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-user {
    font-weight: 600;
    color: #374151;
}

.dark .comment-user {
    color: #d1d5db;
}

.comment-date {
    font-size: 0.875rem;
    color: #6b7280;
}

.dark .comment-date {
    color: #9ca3af;
}

.comment-content {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.dark .comment-content {
    color: #9ca3af;
}

.helpful-btn {
    padding: 0.25rem 0.75rem;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    cursor: pointer;
    color: #6b7280;
}

.dark .helpful-btn {
    border-color: #4b5563;
    color: #9ca3af;
}

.helpful-btn:hover {
    background: #f3f4f6;
}

.dark .helpful-btn:hover {
    background: #374151;
}

