/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
}

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

/* 头部 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 999;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #2d8cf0;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #2d8cf0;
}

/* 工具页面 */
.tool-page-section {
    padding: 120px 0 60px;
}

.tool-card-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 30px;
}

.tool-header h1 {
    font-size: 28px;
    color: #2d8cf0;
    margin-bottom: 10px;
    text-align: center;
}

.tool-header p {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.radio-item {
    cursor: pointer;
}

.tool-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.tool-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    resize: vertical;
}

.tool-btn-group {
    display: flex;
    gap: 15px;
    margin: 25px 0;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.primary-btn {
    background: #2d8cf0;
    color: #fff;
}

.primary-btn:hover {
    background: #1b78d8;
}

.secondary-btn {
    background: #f5f7fa;
    color: #333;
    border: 1px solid #ddd;
}

.secondary-btn:hover {
    background: #e9edf2;
}

.result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-top: 10px;
}

.result-text {
    font-size: 16px;
    font-weight: 500;
    color: #2d8cf0;
}

.copy-btn {
    padding: 6px 12px;
    font-size: 14px;
}

/* 工具信息卡片 */
.tool-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.tool-info-card h2,
.tool-info-card h3 {
    color: #2d8cf0;
    margin-bottom: 15px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.faq-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

/* 页脚 */
.footer {
    background: #fff;
    padding: 30px 0;
    margin-top: 60px;
    text-align: center;
    border-top: 1px solid #eee;
}

.footer-content p {
    color: #666;
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: #2d8cf0;
    text-decoration: none;
}

/* 响应式 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav {
        display: none;
    }
    .nav.active {
        display: block;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 15px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .nav-list {
        flex-direction: column;
        gap: 15px;
    }
    .tool-btn-group {
        flex-direction: column;
    }
}