/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 导航栏和横幅合并 */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav {
    text-align: center;
}

nav h1 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
}

/* 主要内容 */
main {
    margin-top: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.tools-section {
    padding: 2rem 0;
}

/* 首页横幅 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.subtitle {
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.9;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

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

.tool-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.tool-card h3 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.tool-card p {
    color: #666;
    margin-bottom: 1.2rem;
    line-height: 1.4;
    font-size: 0.9rem;
}

.tool-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* 联系信息区域 - 简化版 */
.contact-section {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    padding: 1.5rem 0;
    margin-top: 1.5rem;
}

.contact-content {
    text-align: center;
    color: white;
}

.contact-content h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.contact-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.contact-item .icon {
    font-size: 1.2rem;
}

.contact-item .label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-item .contact-info {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-item .contact-info:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 联系信息 */
.contact-info {
    text-align: center;
    font-size: 1.1rem;
}

.contact-info p {
    margin: 1rem 0;
}

/* 页脚 */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem;
}

.footer-content p {
    margin: 0.5rem 0;
}

.runtime {
    font-size: 0.9rem;
    opacity: 0.8;
}

#runtime-display {
    font-weight: 600;
    color: #67c3f3;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.3rem;
    }

    .subtitle {
        font-size: 0.8rem;
    }

    .contact-content h2 {
        font-size: 1.2rem;
    }

    .contact-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .container {
        padding: 0 1rem;
    }

    header {
        padding: 1rem 1rem;
    }

    .tools-section {
        padding: 1.5rem 0;
    }

    .contact-section {
        padding: 1.5rem 0;
    }

    .contact-item {
        padding: 0.7rem 1rem;
    }

    .tool-card {
        padding: 1.2rem;
    }
}