/* 全局样式 */
:root {
    --primary-color: #3f6ad8;
    --secondary-color: #6c757d;
    --success-color: #3ac47d;
    --info-color: #16aaff;
    --warning-color: #f7b924;
    --danger-color: #d92550;
    --light-color: #eee;
    --dark-color: #343a40;
    --body-bg: #f8f9fa;
    --body-color: #212529;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--body-bg);
    color: var(--body-color);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: #2850a7;
    text-decoration: none;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

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

.btn-primary:hover {
    background-color: #2850a7;
    border-color: #2850a7;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 600;
    padding: 0.5rem 1rem !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.dropdown-item:hover {
    background-color: rgba(63, 106, 216, 0.1);
}

/* 英雄区域样式 */
.hero-section {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, #2850a7 100%);
    padding: 120px 0;
    color: white;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* 特性区域样式 */
.features-section {
    padding: 80px 0;
}

.feature-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(63, 106, 216, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* 工具卡片样式 */
.tools-section {
    padding: 80px 0;
}

.tool-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.tool-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.tool-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tool-card:hover .tool-image img {
    transform: scale(1.05);
}

.tool-body {
    padding: 20px;
}

.tool-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.tool-description {
    color: var(--secondary-color);
    margin-bottom: 20px;
    min-height: 50px;
}

.tool-action {
    text-align: center;
}

/* 评价区域样式 */
.testimonials-section {
    padding: 80px 0;
}

/* CTA区域样式 */
.cta-section {
    padding: 60px 0;
}

/* 页脚样式 */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-description {
    opacity: 0.8;
    margin-bottom: 25px;
}

.footer-links h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    margin-bottom: 25px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
}

.copyright {
    opacity: 0.7;
}

/* 工具页面样式 */
.breadcrumb-section {
    background-color: #f8f9fa;
    padding: 15px 0;
    margin-bottom: 30px;
}

.tool-header {
    margin-bottom: 30px;
}

.tool-header h1 {
    font-weight: 700;
    margin-bottom: 15px;
}

.tool-header p {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.upload-container {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary-color);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.upload-text h3 {
    font-weight: 600;
    margin-bottom: 10px;
}

.upload-text p {
    color: var(--secondary-color);
}

.file-input {
    display: none;
}

.tool-tabs {
    margin-bottom: 30px;
}

.process-container {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.progress-container {
    margin: 30px 0;
}

.result-container {
    display: flex;
    flex-wrap: wrap;
    /* margin: 0 -15px; */
    float:right;
}

.result-item {
    padding: 15px;
    width: 50%;
}

.result-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.result-title {
    padding: 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.result-image {
    padding: 15px;
    text-align: center;
}

.result-image img {
    max-width: 100%;
    max-height: 300px;
}

.result-actions {
    padding: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.related-tools {
    margin-top: 50px;
}

.related-tools h3 {
    font-weight: 700;
    margin-bottom: 25px;
}

/* 涂抹工具特定样式 */
.canvas-container {
    position: relative;
    margin: 20px auto;
    border: 1px solid #ddd;
    overflow: hidden;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.canvas-tools {
    margin-bottom: 15px;
}

.brush-size-control {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.brush-size-control label {
    margin-right: 10px;
    font-weight: 600;
}

.brush-size-control input {
    flex: 1;
}

.brush-size-display {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: black;
    margin-left: 15px;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .result-item {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .tool-description {
        min-height: auto;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .feature-card, .tool-card {
        margin-bottom: 20px;
    }
    
    .upload-area {
        padding: 20px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
} 


.footer .list-unstyled a {
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    display: inline-block;
}
.footer .list-unstyled a:hover {
    color: #6e8efb !important;
    transform: translateX(5px);
}
.footer .list-unstyled a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #6e8efb;
    transition: width 0.3s ease;
}
.footer .list-unstyled a:hover::after {
    width: 100%;
}
.footer .social-links a {
    transition: all 0.3s ease;
}
.footer .social-links a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}