/**
 * 工具详情页样式
 * 确保与网站整体风格保持一致
 */

/* 兼容性变量 */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-color: #eaeaea;
    --shadow-sm: 0 3px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-lg: 15px;
    --font-sm: 0.9rem;
    --font-md: 1rem;
    --font-lg: 1.2rem;
    --font-xl: 1.5rem;
    --font-xxl: 2rem;
}

/* 页面基础样式 */
.tool-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* 工具头部 */
.tool-header {
    background-color: var(--light-color);
    padding: 40px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.tool-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(45deg, rgba(13, 110, 253, 0.05), rgba(108, 117, 125, 0.05));
    z-index: 0;
}

.tool-header .container {
    position: relative;
    z-index: 1;
}

.tool-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: white;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-logo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.tool-name {
    font-size: var(--font-xxl);
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--dark-color);
}

.tool-description {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: var(--font-lg);
    line-height: 1.6;
}

/* 工具元数据 */
.tool-meta {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tool-meta span {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
}

.tool-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* 评分星星 */
.tool-rating {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: var(--font-md);
}

.tool-rating .stars {
    color: var(--warning-color);
    margin-right: 10px;
    display: flex;
}

.tool-rating .stars i {
    margin-right: 2px;
}

/* 工具操作按钮 */
.tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.tool-actions .btn {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    padding: 8px 16px;
}

.tool-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-favorite.active {
    background-color: var(--success-color);
    color: white;
}

/* 社交分享 */
.social-share {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--light-color);
    border-radius: 50%;
    color: var(--secondary-color);
    transition: all 0.2s ease;
}

.social-share a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* 分区标题 */
.section-title {
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: var(--font-xl);
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* 标签样式 */
.tool-tags {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tool-tags span {
    display: inline-block;
    background-color: var(--light-color);
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: var(--font-sm);
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.tool-tags span:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 特性列表 */
.feature-list {
    list-style-type: none;
    padding-left: 0;
}

.feature-list li {
    padding: 10px 0;
    position: relative;
    padding-left: 30px;
    border-bottom: 1px dashed rgba(0,0,0,0.05);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li:before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-size: 18px;
}

/* 定价卡片 */
.pricing-card {
    background-color: var(--light-color);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.pricing-card.popular {
    border-color: var(--primary-color);
    position: relative;
}

.pricing-card.popular::before {
    content: '推荐';
    position: absolute;
    top: -10px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: var(--font-sm);
    font-weight: 500;
}

.pricing-card h4 {
    font-size: var(--font-lg);
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--dark-color);
}

.pricing-card .price {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.pricing-card .period {
    font-size: var(--font-sm);
    color: var(--secondary-color);
}

.pricing-features {
    margin: 20px 0;
    padding-left: 0;
    list-style-type: none;
}

.pricing-features li {
    margin-bottom: 8px;
    padding-left: 22px;
    position: relative;
}

.pricing-features li:before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--success-color);
}

/* 相似工具 */
.similar-tools {
    margin-top: 30px;
}

.similar-tool-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    transition: all 0.3s ease;
    background-color: white;
    position: relative;
}

.similar-tool-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.similar-tool-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    margin-right: 15px;
    object-fit: contain;
    border: 1px solid var(--border-color);
}

.similar-tool-info {
    flex: 1;
}

.similar-tool-name {
    font-size: var(--font-lg);
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.similar-tool-description {
    color: var(--secondary-color);
    font-size: var(--font-sm);
    line-height: 1.4;
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

/* 用户评价 */
.tool-review {
    background-color: var(--light-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.tool-review:hover {
    box-shadow: var(--shadow-sm);
}

.tool-review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.tool-review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.tool-review-user {
    font-weight: 600;
    color: var(--dark-color);
}

.tool-review-date {
    color: var(--secondary-color);
    font-size: var(--font-sm);
    margin-left: 10px;
}

.tool-review-rating {
    color: var(--warning-color);
    margin-left: auto;
}

.tool-review-content {
    color: var(--dark-color);
    line-height: 1.6;
}

/* 截图展示 */
.tool-screenshots {
    margin: 30px 0;
}

.screenshot-item {
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.screenshot-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.screenshot-img {
    width: 100%;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.screenshot-item:hover .screenshot-img {
    transform: scale(1.02);
}

/* 截图模态框 */
.screenshot-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.screenshot-modal.show {
    opacity: 1;
    visibility: visible;
}

.screenshot-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.screenshot-modal-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-sm);
}

.screenshot-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.screenshot-modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.screenshot-modal-nav button {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 20px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.screenshot-modal-nav button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* 更新历史 */
.update-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
}

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

.update-item .version {
    font-weight: 600;
    color: var(--primary-color);
}

.update-item .date {
    font-size: var(--font-sm);
    color: var(--secondary-color);
    margin-left: 10px;
}

.update-item .description {
    margin-top: 5px;
    color: var(--dark-color);
}

/* 提示消息 */
.tool-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 9999;
}

/* 响应式适配 */
@media (max-width: 767px) {
    .tool-logo {
        width: 100px;
        height: 100px;
        margin: 0 auto 20px;
    }
    
    .tool-header {
        padding: 30px 0;
        text-align: center;
    }
    
    .tool-name {
        font-size: 1.8rem;
    }
    
    .tool-meta {
        justify-content: center;
    }
    
    .tool-actions {
        justify-content: center;
    }
    
    .tool-rating {
        justify-content: center;
    }
    
    .social-share {
        justify-content: center;
    }
    
    .screenshot-modal-nav button {
        padding: 5px 10px;
        font-size: 16px;
    }
} 