/* 基本重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body 样式 */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* Header 样式 */
header {
    background-color: #1e3d58;  /* 深蓝色背景 */
    color: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* 导航栏 */
header nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* 网站名称 */
header .site-name {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #ffcc00; /* 使用明亮的黄色 */
    text-transform: uppercase;
    text-decoration: none;
}

/* 导航菜单 */
header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

/* 导航链接 */
header nav a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
}

header nav a:hover {
    color: #ffcc00;  /* 悬停时字体变为黄色 */
    transform: scale(1.1);  /* 放大效果 */
}

header nav a.active {
    color: #ffcc00;  /* 激活链接高亮 */
    font-weight: bold;
}

/* 语言切换按钮 */
.language-switcher {
    display: flex;
    gap: 15px;
}

.language-switcher button {
    padding: 8px 15px;
    background-color: #ffcc00;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.language-switcher button:hover {
    background-color: #ff9900;  /* 悬停时变成深黄色 */
}

/* 小屏幕时调整布局 */
@media (max-width: 768px) {
    header nav {
        flex-direction: column;
        align-items: center;
    }

    header nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .language-switcher {
        margin-top: 20px;
    }
}
/* Footer 样式 */
footer {
    background-color: #1e3d58;  /* 深蓝色背景，与导航栏一致 */
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    margin-top: 40px;
    border-top: 2px solid #ffcc00; /* 黄色分隔线 */
}

footer .social-links {
    margin-bottom: 20px;
}

footer .social-links a {
    color: #fff;
    margin: 0 20px;
    text-decoration: none;
    font-size: 24px;
    transition: color 0.3s ease, transform 0.3s ease;
}

footer .social-links a:hover {
    color: #ffcc00;  /* 悬停时变为黄色 */
    transform: scale(1.2);  /* 放大效果 */
}

footer p {
    font-size: 16px;
    margin-top: 20px;
    color: #ccc;  /* 让版权信息更加柔和 */
}

/* 社交媒体图标对齐 */
footer .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 在小屏幕下，社交图标保持居中 */
@media (max-width: 768px) {
    footer .social-links {
        flex-direction: column;
        gap: 10px;
    }
}
/* Main Content (字体转换工具区域) */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 字体转换工具区域 */
.font-converter-tool {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-top: 40px;
}

/* 标题样式 */
.font-converter-tool h1 {
    font-size: 32px;
    color: #1e3d58; /* 深蓝色 */
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* 输入框样式 */
textarea {
    width: 100%;
    height: 150px;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    resize: none;
    transition: all 0.3s ease;
}

textarea:focus {
    border-color: #ffcc00; /* 聚焦时边框颜色变为黄色 */
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.6);
}

/* 字体选择框样式 */
.font-selector {
    margin-bottom: 30px;
    text-align: center;
}

select {
    padding: 10px;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
}

select:focus {
    border-color: #ffcc00; /* 聚焦时边框颜色变为黄色 */
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.6);
}

/* 转换按钮 */
button {
    padding: 15px 30px;
    background-color: #1e3d58; /* 深蓝色背景 */
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #ffcc00; /* 悬停时背景色变为黄色 */
    transform: scale(1.05); /* 悬停时按钮放大 */
}

button:active {
    background-color: #ff9900; /* 按钮点击时背景色 */
}

/* 字体预览区域 */
.font-preview {
    margin-top: 40px;
    text-align: center;
}

#preview-text {
    font-size: 24px;
    font-weight: 500;
    color: #333;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, color 0.3s ease;
}

#preview-text:hover {
    transform: scale(1.05); /* 悬停时文字轻微放大 */
    color: #1e3d58; /* 悬停时文字颜色变深 */
}

/* 复制按钮 */
#copy-btn {
    padding: 15px;
    background-color: #28a745; /* 绿色背景 */
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#copy-btn:hover {
    background-color: #218838; /* 按钮悬停时变为深绿色 */
    transform: scale(1.05);
}

#copy-btn:active {
    background-color: #1e7e34; /* 按钮点击时变为更深绿色 */
}

/* 小屏幕适配 */
@media (max-width: 768px) {
    .font-converter-tool {
        padding: 20px;
    }

    textarea {
        height: 120px;
    }

    button, #copy-btn {
        font-size: 16px;
    }

    #preview-text {
        font-size: 20px;
    }
}
