/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

/* 加载动画 */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 0 10px;
    animation: bounce 1.5s infinite ease-in-out;
}

.circle:nth-child(1) {
    background-color: var(--primary-color);
    animation-delay: 0s;
}

.circle:nth-child(2) {
    background-color: var(--accent-color);
    animation-delay: 0.2s;
}

.circle:nth-child(3) {
    background-color: var(--secondary-color);
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.preloader p {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

:root {
    --primary-color: #1a3a8f;
    --secondary-color: #2c3e50;
    --accent-color: #3498db;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 20px 0 0 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="none" width="100" height="100"/><rect fill="rgba(255,255,255,0.05)" x="25" y="25" width="50" height="50" transform="rotate(45 50 50)"/></svg>');
    background-size: 30px 30px;
    opacity: 0.3;
    z-index: 0;
}

.header-content {
    padding: 30px 20px 15px;
    position: relative;
    z-index: 1;
}

h1 {
    margin-bottom: 15px;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 1s ease-out;
}

.subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 20px;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* 搜索框样式 */
.search-container {
    margin: 15px auto 25px;
    max-width: 500px;
    position: relative;
    display: flex;
    animation: fadeInUp 1s ease-out 0.5s both;
}

#searchInput {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

#searchBtn {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--accent-color);
    border: none;
    color: white;
    padding: 7px 15px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

#searchBtn:hover {
    background: #2980b9;
}

/* 导航栏 */
nav {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: white;
}

nav ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
    display: flex;
    align-items: center;
}

nav ul li a i {
    margin-right: 8px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

nav ul li a:hover {
    color: var(--accent-color);
}

nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
}

/* 动画效果 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 主内容区域 */
main {
    padding: 40px 0;
}

section {
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    font-size: 1.8rem;
}

h3 {
    color: #2c3e50;
    margin: 15px 0;
    font-size: 1.4rem;
}

p {
    margin-bottom: 15px;
}

/* 工具卡片 */
.tools-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    margin-top: 30px;
}

.tool-card {
    flex: 1 1 calc(50% - 15px);
    min-width: 300px;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    top: 0;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-image-container {
    position: relative;
    overflow: hidden;
}

.tool-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
    padding: 10px;
    transition: transform 0.5s ease;
}

.tool-card:hover .tool-image {
    transform: scale(1.05);
}

.tool-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #2980b9 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.tool-content {
    padding: 20px;
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.tool-title {
    font-size: 1.5rem;
    margin: 0;
    color: var(--secondary-color);
}

.tool-version {
    font-size: 0.8rem;
    color: #fff;
    background-color: var(--secondary-color);
    padding: 3px 8px;
    border-radius: 20px;
}

.tool-description {
    margin-bottom: 15px;
    color: #555;
}

.instructions {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    border-left: 3px solid var(--accent-color);
}

.instructions h4 {
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.instruction-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.instruction-group h5 {
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.instruction-group h5 i {
    margin-right: 8px;
    color: var(--accent-color);
}

.instructions ul {
    list-style-position: inside;
    margin-left: 15px;
}

.instructions ul li {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.card-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #2980b9 100%);
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: hidden;
    flex: 1;
}

.info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--accent-color);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border: 2px solid var(--accent-color);
    cursor: pointer;
}

.info-btn:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

/* 关于我 */
.about-container {
    padding: 10px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.about-text p {
    position: relative;
    padding-left: 28px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-text p i {
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--accent-color);
}

.skills h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 联系方式 */
.contact-container {
    padding: 10px;
}

.contact-card {
    display: flex;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    flex: 0 0 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-size: 3rem;
    padding: 20px;
}

.contact-info {
    flex: 1;
    padding: 25px;
}

.contact-info h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.contact-method {
    margin: 20px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--accent-color);
}

.contact-item a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.thanks-message {
    margin-top: 20px;
    font-style: italic;
    color: #666;
}

/* 页脚样式 */
footer {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tools-container {
        flex-direction: column;
    }
    
    .tool-card {
        flex: 1 1 100%;
        margin-bottom: 20px;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--secondary-color);
        padding: 10px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 20px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    #searchInput {
        padding: 10px 15px;
    }
    
    .search-container {
        max-width: 90%;
    }
    
    .contact-card {
        flex-direction: column;
    }
    
    .contact-icon {
        flex: 0 0 auto;
        padding: 30px;
    }
    
    .skill-tags {
        justify-content: center;
    }
} 