* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "SimHei", Arial, sans-serif;
    font-size: 14px;
    background: #f5f5f5;
    color: #333;
    line-height: 1.5;
}

.page-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
}

.header {
    background: linear-gradient(135deg, #ff6f00, #e65100);
    color: #fff;
    text-align: center;
    padding: 25px 15px;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.sub-title {
    font-size: 13px;
    opacity: 0.9;
}

.main-content {
    padding: 15px;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tool-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #ff6f00;
}

.tool-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    color: #ff6f00;
}

.tool-info {
    flex: 1;
    min-width: 0;
}

.tool-name {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 4px;
    color: #333;
}

.tool-desc {
    font-size: 12px;
    color: #999;
}

.footer {
    text-align: center;
    padding: 20px 15px;
    color: #999;
    font-size: 12px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.section {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.section-header {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-body {
    padding: 15px;
}

.form-row {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    margin-bottom: 10px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(135deg, #ff6f00, #e65100);
    color: #fff;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    border: 2px solid #ff6f00;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    background: #fff;
    color: #ff6f00;
    transition: all 0.2s;
    white-space: nowrap;
}

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

.result-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 8px;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.result-item:last-child {
    border-bottom: none;
}

.result-index {
    width: 50px;
    color: #999;
    font-size: 12px;
}

.result-balls {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.result-ball {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
}

.result-info {
    margin-left: auto;
    font-size: 12px;
    color: #666;
}

.result-count {
    font-size: 14px;
    color: #ff6f00;
}

@media screen and (max-width: 480px) {
    .header {
        padding: 20px 10px;
    }

    .site-title {
        font-size: 20px;
    }

    .main-content {
        padding: 10px;
    }

    .tool-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .tool-card {
        padding: 12px;
    }

    .tool-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .tool-name {
        font-size: 14px;
    }

    .form-row {
        flex-wrap: wrap;
    }

    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
    }
}