/* 基础样式变量 */
:root {
    --primary-color: #007aff;
    --primary-gradient: linear-gradient(135deg, #007aff, #0051d3);
    --secondary-color: #34c759;
    --accent-color: #5856d6;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --text-tertiary: #aeaeb2;
    --bg-primary: #ffffff;
    --bg-secondary: #f2f2f7;
    --bg-tertiary: #f8f9fa;
    --separator: rgba(60, 60, 67, 0.12);
    --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    --hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    --system-red: #ff3b30;
    --system-orange: #ff9500;
    --system-yellow: #ffcc00;
    --system-green: #34c759;
    --system-blue: #007aff;
    --system-purple: #af52de;
    --border-radius: 12px;
    --border-radius-small: 8px;
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.47059;
    background-color: var(--bg-secondary);
    font-size: 16px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 工具头部 */
.tool-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 40px 0;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    margin: 24px 0;
    box-shadow: var(--card-shadow);
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    margin-left: 32px;
    flex-shrink: 0;
}

.tool-info h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.036em;
}

.tool-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-right: 32px;
}

/* 功能特性 */
.tool-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.feature-card {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-2px);
}

.feature-card i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* 软件预览区域 */
.software-preview {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 32px;
}

.preview-header {
    text-align: center;
    margin-bottom: 24px;
}

.preview-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.preview-header h3 i {
    color: var(--primary-color);
}

.preview-header p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
}

.preview-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.preview-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.preview-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.preview-image:hover img {
    transform: scale(1.02);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 24px 20px 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.preview-image:hover .image-caption {
    transform: translateY(0);
}

.image-caption p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

/* 按钮样式 */
.btn-primary, .btn-secondary, .btn-success, .btn-danger {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius-small);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--separator);
}

.btn-secondary:hover {
    background: var(--separator);
}

/* 下载区域增强样式 */
.download-section {
    margin: 32px 0;
}

.download-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.download-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.download-header i {
    font-size: 32px;
}

.download-header h3 {
    font-size: 24px;
    font-weight: 700;
}

.download-card p {
    font-size: 16px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.download-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.download-link {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
    min-width: 300px;
}

.download-link i {
    font-size: 24px;
    margin-top: 4px;
}

.download-link strong {
    font-size: 16px;
    margin-bottom: 8px;
    display: block;
}

.link-info p {
    margin: 4px 0;
    font-size: 14px;
    opacity: 0.8;
    word-break: break-all;
}

.download-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 180px;
}

.download-card .btn-primary,
.download-card .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    justify-content: center;
    transition: all 0.3s ease;
}

.download-card .btn-primary:hover,
.download-card .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.copy-success {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(52, 199, 89, 0.2);
    border: 1px solid rgba(52, 199, 89, 0.4);
    border-radius: var(--border-radius-small);
    color: #34c759;
    font-size: 14px;
    font-weight: 500;
}

.copy-success i {
    font-size: 16px;
}

/* 软件介绍样式 */
.software-intro {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 32px;
}

.software-intro h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.software-intro h3 i {
    color: var(--primary-color);
}

.intro-content {
    display: grid;
    gap: 24px;
}

.intro-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-small);
    transition: all 0.3s ease;
}

.intro-item:hover {
    background: rgba(0, 122, 255, 0.05);
    transform: translateY(-2px);
}

.intro-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.intro-text h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.intro-text p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .tool-header {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .tool-icon {
        margin: 0;
    }
    
    .tool-info {
        margin: 0;
    }
    
    .tool-info h1 {
        font-size: 28px;
    }
    
    .tool-description {
        font-size: 16px;
        margin: 0;
    }
    
    .tool-features {
        grid-template-columns: 1fr;
    }
    
    .download-info {
        flex-direction: column;
        text-align: center;
    }
    
    .download-link {
        min-width: auto;
    }
    
    .software-intro {
        padding: 20px;
    }
    
    .software-preview {
        padding: 20px;
    }
    
    .preview-header h3 {
        font-size: 20px;
        flex-direction: column;
        gap: 8px;
    }
    
    .preview-header p {
        font-size: 14px;
    }
    
    .image-caption {
        position: static;
        transform: none;
        background: rgba(0, 0, 0, 0.8);
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .tool-info h1 {
        font-size: 24px;
    }
    
    .tool-description {
        font-size: 14px;
    }
    
    .download-card {
        padding: 20px;
    }
    
    .software-intro {
        padding: 16px;
    }
    
    .software-preview {
        padding: 16px;
    }
    
    .preview-header h3 {
        font-size: 18px;
    }
    
    .preview-header p {
        font-size: 13px;
    }
    
    .intro-item {
        flex-direction: column;
        text-align: center;
    }
    
    .intro-icon {
        margin: 0 auto 16px auto;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.3s ease-out;
}